diff --git a/kubernetes/README.md b/kubernetes/README.md index 92e793d825..b07de8507a 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -1,10 +1,10 @@ # kubernetes.client -No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) +OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- API version: v1.6.5 -- Package version: 2.0.0-snapshot +- API version: latest +- Package version: 2.0.0 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. @@ -74,48 +74,24 @@ Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *ApisApi* | [**get_api_versions**](docs/ApisApi.md#get_api_versions) | **GET** /apis/ | *AppsApi* | [**get_api_group**](docs/AppsApi.md#get_api_group) | **GET** /apis/apps/ | -*AppsV1beta1Api* | [**create_namespaced_deployment**](docs/AppsV1beta1Api.md#create_namespaced_deployment) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/deployments | -*AppsV1beta1Api* | [**create_namespaced_deployment_rollback_rollback**](docs/AppsV1beta1Api.md#create_namespaced_deployment_rollback_rollback) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | *AppsV1beta1Api* | [**create_namespaced_stateful_set**](docs/AppsV1beta1Api.md#create_namespaced_stateful_set) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | -*AppsV1beta1Api* | [**delete_collection_namespaced_deployment**](docs/AppsV1beta1Api.md#delete_collection_namespaced_deployment) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/deployments | +*AppsV1beta1Api* | [**create_stateful_set_for_all_namespaces**](docs/AppsV1beta1Api.md#create_stateful_set_for_all_namespaces) | **POST** /apis/apps/v1beta1/statefulsets | *AppsV1beta1Api* | [**delete_collection_namespaced_stateful_set**](docs/AppsV1beta1Api.md#delete_collection_namespaced_stateful_set) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | -*AppsV1beta1Api* | [**delete_namespaced_deployment**](docs/AppsV1beta1Api.md#delete_namespaced_deployment) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | *AppsV1beta1Api* | [**delete_namespaced_stateful_set**](docs/AppsV1beta1Api.md#delete_namespaced_stateful_set) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | *AppsV1beta1Api* | [**get_api_resources**](docs/AppsV1beta1Api.md#get_api_resources) | **GET** /apis/apps/v1beta1/ | -*AppsV1beta1Api* | [**list_deployment_for_all_namespaces**](docs/AppsV1beta1Api.md#list_deployment_for_all_namespaces) | **GET** /apis/apps/v1beta1/deployments | -*AppsV1beta1Api* | [**list_namespaced_deployment**](docs/AppsV1beta1Api.md#list_namespaced_deployment) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments | *AppsV1beta1Api* | [**list_namespaced_stateful_set**](docs/AppsV1beta1Api.md#list_namespaced_stateful_set) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | *AppsV1beta1Api* | [**list_stateful_set_for_all_namespaces**](docs/AppsV1beta1Api.md#list_stateful_set_for_all_namespaces) | **GET** /apis/apps/v1beta1/statefulsets | -*AppsV1beta1Api* | [**patch_namespaced_deployment**](docs/AppsV1beta1Api.md#patch_namespaced_deployment) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -*AppsV1beta1Api* | [**patch_namespaced_deployment_status**](docs/AppsV1beta1Api.md#patch_namespaced_deployment_status) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | -*AppsV1beta1Api* | [**patch_namespaced_scale_scale**](docs/AppsV1beta1Api.md#patch_namespaced_scale_scale) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | *AppsV1beta1Api* | [**patch_namespaced_stateful_set**](docs/AppsV1beta1Api.md#patch_namespaced_stateful_set) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | *AppsV1beta1Api* | [**patch_namespaced_stateful_set_status**](docs/AppsV1beta1Api.md#patch_namespaced_stateful_set_status) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | -*AppsV1beta1Api* | [**read_namespaced_deployment**](docs/AppsV1beta1Api.md#read_namespaced_deployment) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -*AppsV1beta1Api* | [**read_namespaced_deployment_status**](docs/AppsV1beta1Api.md#read_namespaced_deployment_status) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | -*AppsV1beta1Api* | [**read_namespaced_scale_scale**](docs/AppsV1beta1Api.md#read_namespaced_scale_scale) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | *AppsV1beta1Api* | [**read_namespaced_stateful_set**](docs/AppsV1beta1Api.md#read_namespaced_stateful_set) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | *AppsV1beta1Api* | [**read_namespaced_stateful_set_status**](docs/AppsV1beta1Api.md#read_namespaced_stateful_set_status) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | -*AppsV1beta1Api* | [**replace_namespaced_deployment**](docs/AppsV1beta1Api.md#replace_namespaced_deployment) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -*AppsV1beta1Api* | [**replace_namespaced_deployment_status**](docs/AppsV1beta1Api.md#replace_namespaced_deployment_status) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | -*AppsV1beta1Api* | [**replace_namespaced_scale_scale**](docs/AppsV1beta1Api.md#replace_namespaced_scale_scale) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | *AppsV1beta1Api* | [**replace_namespaced_stateful_set**](docs/AppsV1beta1Api.md#replace_namespaced_stateful_set) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | *AppsV1beta1Api* | [**replace_namespaced_stateful_set_status**](docs/AppsV1beta1Api.md#replace_namespaced_stateful_set_status) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | *AuthenticationApi* | [**get_api_group**](docs/AuthenticationApi.md#get_api_group) | **GET** /apis/authentication.k8s.io/ | -*AuthenticationV1Api* | [**create_token_review**](docs/AuthenticationV1Api.md#create_token_review) | **POST** /apis/authentication.k8s.io/v1/tokenreviews | -*AuthenticationV1Api* | [**get_api_resources**](docs/AuthenticationV1Api.md#get_api_resources) | **GET** /apis/authentication.k8s.io/v1/ | *AuthenticationV1beta1Api* | [**create_token_review**](docs/AuthenticationV1beta1Api.md#create_token_review) | **POST** /apis/authentication.k8s.io/v1beta1/tokenreviews | *AuthenticationV1beta1Api* | [**get_api_resources**](docs/AuthenticationV1beta1Api.md#get_api_resources) | **GET** /apis/authentication.k8s.io/v1beta1/ | -*AuthorizationApi* | [**get_api_group**](docs/AuthorizationApi.md#get_api_group) | **GET** /apis/authorization.k8s.io/ | -*AuthorizationV1Api* | [**create_namespaced_local_subject_access_review**](docs/AuthorizationV1Api.md#create_namespaced_local_subject_access_review) | **POST** /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews | -*AuthorizationV1Api* | [**create_self_subject_access_review**](docs/AuthorizationV1Api.md#create_self_subject_access_review) | **POST** /apis/authorization.k8s.io/v1/selfsubjectaccessreviews | -*AuthorizationV1Api* | [**create_subject_access_review**](docs/AuthorizationV1Api.md#create_subject_access_review) | **POST** /apis/authorization.k8s.io/v1/subjectaccessreviews | -*AuthorizationV1Api* | [**get_api_resources**](docs/AuthorizationV1Api.md#get_api_resources) | **GET** /apis/authorization.k8s.io/v1/ | -*AuthorizationV1beta1Api* | [**create_namespaced_local_subject_access_review**](docs/AuthorizationV1beta1Api.md#create_namespaced_local_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews | -*AuthorizationV1beta1Api* | [**create_self_subject_access_review**](docs/AuthorizationV1beta1Api.md#create_self_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews | -*AuthorizationV1beta1Api* | [**create_subject_access_review**](docs/AuthorizationV1beta1Api.md#create_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/subjectaccessreviews | -*AuthorizationV1beta1Api* | [**get_api_resources**](docs/AuthorizationV1beta1Api.md#get_api_resources) | **GET** /apis/authorization.k8s.io/v1beta1/ | *AutoscalingApi* | [**get_api_group**](docs/AutoscalingApi.md#get_api_group) | **GET** /apis/autoscaling/ | +*AutoscalingV1Api* | [**create_horizontal_pod_autoscaler_for_all_namespaces**](docs/AutoscalingV1Api.md#create_horizontal_pod_autoscaler_for_all_namespaces) | **POST** /apis/autoscaling/v1/horizontalpodautoscalers | *AutoscalingV1Api* | [**create_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#create_namespaced_horizontal_pod_autoscaler) | **POST** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | *AutoscalingV1Api* | [**delete_collection_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#delete_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | *AutoscalingV1Api* | [**delete_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#delete_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | @@ -128,19 +104,8 @@ Class | Method | HTTP request | Description *AutoscalingV1Api* | [**read_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV1Api.md#read_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *AutoscalingV1Api* | [**replace_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#replace_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | *AutoscalingV1Api* | [**replace_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV1Api.md#replace_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*AutoscalingV2alpha1Api* | [**create_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#create_namespaced_horizontal_pod_autoscaler) | **POST** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | -*AutoscalingV2alpha1Api* | [**delete_collection_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#delete_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | -*AutoscalingV2alpha1Api* | [**delete_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#delete_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2alpha1Api* | [**get_api_resources**](docs/AutoscalingV2alpha1Api.md#get_api_resources) | **GET** /apis/autoscaling/v2alpha1/ | -*AutoscalingV2alpha1Api* | [**list_horizontal_pod_autoscaler_for_all_namespaces**](docs/AutoscalingV2alpha1Api.md#list_horizontal_pod_autoscaler_for_all_namespaces) | **GET** /apis/autoscaling/v2alpha1/horizontalpodautoscalers | -*AutoscalingV2alpha1Api* | [**list_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#list_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | -*AutoscalingV2alpha1Api* | [**patch_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#patch_namespaced_horizontal_pod_autoscaler) | **PATCH** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2alpha1Api* | [**patch_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV2alpha1Api.md#patch_namespaced_horizontal_pod_autoscaler_status) | **PATCH** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*AutoscalingV2alpha1Api* | [**read_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#read_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2alpha1Api* | [**read_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV2alpha1Api.md#read_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*AutoscalingV2alpha1Api* | [**replace_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#replace_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2alpha1Api* | [**replace_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV2alpha1Api.md#replace_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *BatchApi* | [**get_api_group**](docs/BatchApi.md#get_api_group) | **GET** /apis/batch/ | +*BatchV1Api* | [**create_job_for_all_namespaces**](docs/BatchV1Api.md#create_job_for_all_namespaces) | **POST** /apis/batch/v1/jobs | *BatchV1Api* | [**create_namespaced_job**](docs/BatchV1Api.md#create_namespaced_job) | **POST** /apis/batch/v1/namespaces/{namespace}/jobs | *BatchV1Api* | [**delete_collection_namespaced_job**](docs/BatchV1Api.md#delete_collection_namespaced_job) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs | *BatchV1Api* | [**delete_namespaced_job**](docs/BatchV1Api.md#delete_namespaced_job) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | @@ -153,40 +118,54 @@ Class | Method | HTTP request | Description *BatchV1Api* | [**read_namespaced_job_status**](docs/BatchV1Api.md#read_namespaced_job_status) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | *BatchV1Api* | [**replace_namespaced_job**](docs/BatchV1Api.md#replace_namespaced_job) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | *BatchV1Api* | [**replace_namespaced_job_status**](docs/BatchV1Api.md#replace_namespaced_job_status) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | +*BatchV2alpha1Api* | [**create_cron_job_for_all_namespaces**](docs/BatchV2alpha1Api.md#create_cron_job_for_all_namespaces) | **POST** /apis/batch/v2alpha1/cronjobs | +*BatchV2alpha1Api* | [**create_job_for_all_namespaces**](docs/BatchV2alpha1Api.md#create_job_for_all_namespaces) | **POST** /apis/batch/v2alpha1/jobs | *BatchV2alpha1Api* | [**create_namespaced_cron_job**](docs/BatchV2alpha1Api.md#create_namespaced_cron_job) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | +*BatchV2alpha1Api* | [**create_namespaced_job**](docs/BatchV2alpha1Api.md#create_namespaced_job) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/jobs | *BatchV2alpha1Api* | [**create_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#create_namespaced_scheduled_job) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | +*BatchV2alpha1Api* | [**create_scheduled_job_for_all_namespaces**](docs/BatchV2alpha1Api.md#create_scheduled_job_for_all_namespaces) | **POST** /apis/batch/v2alpha1/scheduledjobs | *BatchV2alpha1Api* | [**delete_collection_namespaced_cron_job**](docs/BatchV2alpha1Api.md#delete_collection_namespaced_cron_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | +*BatchV2alpha1Api* | [**delete_collection_namespaced_job**](docs/BatchV2alpha1Api.md#delete_collection_namespaced_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/jobs | *BatchV2alpha1Api* | [**delete_collection_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#delete_collection_namespaced_scheduled_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | *BatchV2alpha1Api* | [**delete_namespaced_cron_job**](docs/BatchV2alpha1Api.md#delete_namespaced_cron_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | +*BatchV2alpha1Api* | [**delete_namespaced_job**](docs/BatchV2alpha1Api.md#delete_namespaced_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | *BatchV2alpha1Api* | [**delete_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#delete_namespaced_scheduled_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | *BatchV2alpha1Api* | [**get_api_resources**](docs/BatchV2alpha1Api.md#get_api_resources) | **GET** /apis/batch/v2alpha1/ | *BatchV2alpha1Api* | [**list_cron_job_for_all_namespaces**](docs/BatchV2alpha1Api.md#list_cron_job_for_all_namespaces) | **GET** /apis/batch/v2alpha1/cronjobs | +*BatchV2alpha1Api* | [**list_job_for_all_namespaces**](docs/BatchV2alpha1Api.md#list_job_for_all_namespaces) | **GET** /apis/batch/v2alpha1/jobs | *BatchV2alpha1Api* | [**list_namespaced_cron_job**](docs/BatchV2alpha1Api.md#list_namespaced_cron_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | +*BatchV2alpha1Api* | [**list_namespaced_job**](docs/BatchV2alpha1Api.md#list_namespaced_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/jobs | *BatchV2alpha1Api* | [**list_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#list_namespaced_scheduled_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | *BatchV2alpha1Api* | [**list_scheduled_job_for_all_namespaces**](docs/BatchV2alpha1Api.md#list_scheduled_job_for_all_namespaces) | **GET** /apis/batch/v2alpha1/scheduledjobs | *BatchV2alpha1Api* | [**patch_namespaced_cron_job**](docs/BatchV2alpha1Api.md#patch_namespaced_cron_job) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | *BatchV2alpha1Api* | [**patch_namespaced_cron_job_status**](docs/BatchV2alpha1Api.md#patch_namespaced_cron_job_status) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | +*BatchV2alpha1Api* | [**patch_namespaced_job**](docs/BatchV2alpha1Api.md#patch_namespaced_job) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | +*BatchV2alpha1Api* | [**patch_namespaced_job_status**](docs/BatchV2alpha1Api.md#patch_namespaced_job_status) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status | *BatchV2alpha1Api* | [**patch_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#patch_namespaced_scheduled_job) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | *BatchV2alpha1Api* | [**patch_namespaced_scheduled_job_status**](docs/BatchV2alpha1Api.md#patch_namespaced_scheduled_job_status) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | *BatchV2alpha1Api* | [**read_namespaced_cron_job**](docs/BatchV2alpha1Api.md#read_namespaced_cron_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | *BatchV2alpha1Api* | [**read_namespaced_cron_job_status**](docs/BatchV2alpha1Api.md#read_namespaced_cron_job_status) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | +*BatchV2alpha1Api* | [**read_namespaced_job**](docs/BatchV2alpha1Api.md#read_namespaced_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | +*BatchV2alpha1Api* | [**read_namespaced_job_status**](docs/BatchV2alpha1Api.md#read_namespaced_job_status) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status | *BatchV2alpha1Api* | [**read_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#read_namespaced_scheduled_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | *BatchV2alpha1Api* | [**read_namespaced_scheduled_job_status**](docs/BatchV2alpha1Api.md#read_namespaced_scheduled_job_status) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | *BatchV2alpha1Api* | [**replace_namespaced_cron_job**](docs/BatchV2alpha1Api.md#replace_namespaced_cron_job) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | *BatchV2alpha1Api* | [**replace_namespaced_cron_job_status**](docs/BatchV2alpha1Api.md#replace_namespaced_cron_job_status) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | +*BatchV2alpha1Api* | [**replace_namespaced_job**](docs/BatchV2alpha1Api.md#replace_namespaced_job) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | +*BatchV2alpha1Api* | [**replace_namespaced_job_status**](docs/BatchV2alpha1Api.md#replace_namespaced_job_status) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status | *BatchV2alpha1Api* | [**replace_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#replace_namespaced_scheduled_job) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | *BatchV2alpha1Api* | [**replace_namespaced_scheduled_job_status**](docs/BatchV2alpha1Api.md#replace_namespaced_scheduled_job_status) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | *CertificatesApi* | [**get_api_group**](docs/CertificatesApi.md#get_api_group) | **GET** /apis/certificates.k8s.io/ | -*CertificatesV1beta1Api* | [**create_certificate_signing_request**](docs/CertificatesV1beta1Api.md#create_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | -*CertificatesV1beta1Api* | [**delete_certificate_signing_request**](docs/CertificatesV1beta1Api.md#delete_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -*CertificatesV1beta1Api* | [**delete_collection_certificate_signing_request**](docs/CertificatesV1beta1Api.md#delete_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | -*CertificatesV1beta1Api* | [**get_api_resources**](docs/CertificatesV1beta1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1beta1/ | -*CertificatesV1beta1Api* | [**list_certificate_signing_request**](docs/CertificatesV1beta1Api.md#list_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | -*CertificatesV1beta1Api* | [**patch_certificate_signing_request**](docs/CertificatesV1beta1Api.md#patch_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -*CertificatesV1beta1Api* | [**read_certificate_signing_request**](docs/CertificatesV1beta1Api.md#read_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -*CertificatesV1beta1Api* | [**replace_certificate_signing_request**](docs/CertificatesV1beta1Api.md#replace_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -*CertificatesV1beta1Api* | [**replace_certificate_signing_request_approval**](docs/CertificatesV1beta1Api.md#replace_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval | -*CertificatesV1beta1Api* | [**replace_certificate_signing_request_status**](docs/CertificatesV1beta1Api.md#replace_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status | +*CertificatesV1alpha1Api* | [**create_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#create_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | +*CertificatesV1alpha1Api* | [**delete_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#delete_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +*CertificatesV1alpha1Api* | [**delete_collection_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#delete_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | +*CertificatesV1alpha1Api* | [**get_api_resources**](docs/CertificatesV1alpha1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | +*CertificatesV1alpha1Api* | [**list_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#list_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | +*CertificatesV1alpha1Api* | [**patch_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#patch_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +*CertificatesV1alpha1Api* | [**read_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#read_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +*CertificatesV1alpha1Api* | [**replace_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#replace_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +*CertificatesV1alpha1Api* | [**replace_certificate_signing_request_approval**](docs/CertificatesV1alpha1Api.md#replace_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/approval | +*CertificatesV1alpha1Api* | [**replace_certificate_signing_request_status**](docs/CertificatesV1alpha1Api.md#replace_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/status | *CoreApi* | [**get_api_versions**](docs/CoreApi.md#get_api_versions) | **GET** /api/ | *CoreV1Api* | [**connect_delete_namespaced_pod_proxy**](docs/CoreV1Api.md#connect_delete_namespaced_pod_proxy) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy | *CoreV1Api* | [**connect_delete_namespaced_pod_proxy_with_path**](docs/CoreV1Api.md#connect_delete_namespaced_pod_proxy_with_path) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | @@ -230,6 +209,11 @@ Class | Method | HTTP request | Description *CoreV1Api* | [**connect_put_namespaced_service_proxy_with_path**](docs/CoreV1Api.md#connect_put_namespaced_service_proxy_with_path) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | *CoreV1Api* | [**connect_put_node_proxy**](docs/CoreV1Api.md#connect_put_node_proxy) | **PUT** /api/v1/nodes/{name}/proxy | *CoreV1Api* | [**connect_put_node_proxy_with_path**](docs/CoreV1Api.md#connect_put_node_proxy_with_path) | **PUT** /api/v1/nodes/{name}/proxy/{path} | +*CoreV1Api* | [**create_binding_for_all_namespaces**](docs/CoreV1Api.md#create_binding_for_all_namespaces) | **POST** /api/v1/bindings | +*CoreV1Api* | [**create_config_map_for_all_namespaces**](docs/CoreV1Api.md#create_config_map_for_all_namespaces) | **POST** /api/v1/configmaps | +*CoreV1Api* | [**create_endpoints_for_all_namespaces**](docs/CoreV1Api.md#create_endpoints_for_all_namespaces) | **POST** /api/v1/endpoints | +*CoreV1Api* | [**create_event_for_all_namespaces**](docs/CoreV1Api.md#create_event_for_all_namespaces) | **POST** /api/v1/events | +*CoreV1Api* | [**create_limit_range_for_all_namespaces**](docs/CoreV1Api.md#create_limit_range_for_all_namespaces) | **POST** /api/v1/limitranges | *CoreV1Api* | [**create_namespace**](docs/CoreV1Api.md#create_namespace) | **POST** /api/v1/namespaces | *CoreV1Api* | [**create_namespaced_binding**](docs/CoreV1Api.md#create_namespaced_binding) | **POST** /api/v1/namespaces/{namespace}/bindings | *CoreV1Api* | [**create_namespaced_binding_binding**](docs/CoreV1Api.md#create_namespaced_binding_binding) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/binding | @@ -248,6 +232,15 @@ Class | Method | HTTP request | Description *CoreV1Api* | [**create_namespaced_service_account**](docs/CoreV1Api.md#create_namespaced_service_account) | **POST** /api/v1/namespaces/{namespace}/serviceaccounts | *CoreV1Api* | [**create_node**](docs/CoreV1Api.md#create_node) | **POST** /api/v1/nodes | *CoreV1Api* | [**create_persistent_volume**](docs/CoreV1Api.md#create_persistent_volume) | **POST** /api/v1/persistentvolumes | +*CoreV1Api* | [**create_persistent_volume_claim_for_all_namespaces**](docs/CoreV1Api.md#create_persistent_volume_claim_for_all_namespaces) | **POST** /api/v1/persistentvolumeclaims | +*CoreV1Api* | [**create_pod_for_all_namespaces**](docs/CoreV1Api.md#create_pod_for_all_namespaces) | **POST** /api/v1/pods | +*CoreV1Api* | [**create_pod_template_for_all_namespaces**](docs/CoreV1Api.md#create_pod_template_for_all_namespaces) | **POST** /api/v1/podtemplates | +*CoreV1Api* | [**create_replication_controller_for_all_namespaces**](docs/CoreV1Api.md#create_replication_controller_for_all_namespaces) | **POST** /api/v1/replicationcontrollers | +*CoreV1Api* | [**create_resource_quota_for_all_namespaces**](docs/CoreV1Api.md#create_resource_quota_for_all_namespaces) | **POST** /api/v1/resourcequotas | +*CoreV1Api* | [**create_secret_for_all_namespaces**](docs/CoreV1Api.md#create_secret_for_all_namespaces) | **POST** /api/v1/secrets | +*CoreV1Api* | [**create_security_context_constraints**](docs/CoreV1Api.md#create_security_context_constraints) | **POST** /api/v1/securitycontextconstraints | +*CoreV1Api* | [**create_service_account_for_all_namespaces**](docs/CoreV1Api.md#create_service_account_for_all_namespaces) | **POST** /api/v1/serviceaccounts | +*CoreV1Api* | [**create_service_for_all_namespaces**](docs/CoreV1Api.md#create_service_for_all_namespaces) | **POST** /api/v1/services | *CoreV1Api* | [**delete_collection_namespace**](docs/CoreV1Api.md#delete_collection_namespace) | **DELETE** /api/v1/namespaces | *CoreV1Api* | [**delete_collection_namespaced_config_map**](docs/CoreV1Api.md#delete_collection_namespaced_config_map) | **DELETE** /api/v1/namespaces/{namespace}/configmaps | *CoreV1Api* | [**delete_collection_namespaced_endpoints**](docs/CoreV1Api.md#delete_collection_namespaced_endpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints | @@ -262,6 +255,7 @@ Class | Method | HTTP request | Description *CoreV1Api* | [**delete_collection_namespaced_service_account**](docs/CoreV1Api.md#delete_collection_namespaced_service_account) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts | *CoreV1Api* | [**delete_collection_node**](docs/CoreV1Api.md#delete_collection_node) | **DELETE** /api/v1/nodes | *CoreV1Api* | [**delete_collection_persistent_volume**](docs/CoreV1Api.md#delete_collection_persistent_volume) | **DELETE** /api/v1/persistentvolumes | +*CoreV1Api* | [**delete_collection_security_context_constraints**](docs/CoreV1Api.md#delete_collection_security_context_constraints) | **DELETE** /api/v1/securitycontextconstraints | *CoreV1Api* | [**delete_namespace**](docs/CoreV1Api.md#delete_namespace) | **DELETE** /api/v1/namespaces/{name} | *CoreV1Api* | [**delete_namespaced_config_map**](docs/CoreV1Api.md#delete_namespaced_config_map) | **DELETE** /api/v1/namespaces/{namespace}/configmaps/{name} | *CoreV1Api* | [**delete_namespaced_endpoints**](docs/CoreV1Api.md#delete_namespaced_endpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints/{name} | @@ -277,6 +271,7 @@ Class | Method | HTTP request | Description *CoreV1Api* | [**delete_namespaced_service_account**](docs/CoreV1Api.md#delete_namespaced_service_account) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | *CoreV1Api* | [**delete_node**](docs/CoreV1Api.md#delete_node) | **DELETE** /api/v1/nodes/{name} | *CoreV1Api* | [**delete_persistent_volume**](docs/CoreV1Api.md#delete_persistent_volume) | **DELETE** /api/v1/persistentvolumes/{name} | +*CoreV1Api* | [**delete_security_context_constraints**](docs/CoreV1Api.md#delete_security_context_constraints) | **DELETE** /api/v1/securitycontextconstraints/{name} | *CoreV1Api* | [**get_api_resources**](docs/CoreV1Api.md#get_api_resources) | **GET** /api/v1/ | *CoreV1Api* | [**list_component_status**](docs/CoreV1Api.md#list_component_status) | **GET** /api/v1/componentstatuses | *CoreV1Api* | [**list_config_map_for_all_namespaces**](docs/CoreV1Api.md#list_config_map_for_all_namespaces) | **GET** /api/v1/configmaps | @@ -304,6 +299,7 @@ Class | Method | HTTP request | Description *CoreV1Api* | [**list_replication_controller_for_all_namespaces**](docs/CoreV1Api.md#list_replication_controller_for_all_namespaces) | **GET** /api/v1/replicationcontrollers | *CoreV1Api* | [**list_resource_quota_for_all_namespaces**](docs/CoreV1Api.md#list_resource_quota_for_all_namespaces) | **GET** /api/v1/resourcequotas | *CoreV1Api* | [**list_secret_for_all_namespaces**](docs/CoreV1Api.md#list_secret_for_all_namespaces) | **GET** /api/v1/secrets | +*CoreV1Api* | [**list_security_context_constraints**](docs/CoreV1Api.md#list_security_context_constraints) | **GET** /api/v1/securitycontextconstraints | *CoreV1Api* | [**list_service_account_for_all_namespaces**](docs/CoreV1Api.md#list_service_account_for_all_namespaces) | **GET** /api/v1/serviceaccounts | *CoreV1Api* | [**list_service_for_all_namespaces**](docs/CoreV1Api.md#list_service_for_all_namespaces) | **GET** /api/v1/services | *CoreV1Api* | [**patch_namespace**](docs/CoreV1Api.md#patch_namespace) | **PATCH** /api/v1/namespaces/{name} | @@ -330,6 +326,7 @@ Class | Method | HTTP request | Description *CoreV1Api* | [**patch_node_status**](docs/CoreV1Api.md#patch_node_status) | **PATCH** /api/v1/nodes/{name}/status | *CoreV1Api* | [**patch_persistent_volume**](docs/CoreV1Api.md#patch_persistent_volume) | **PATCH** /api/v1/persistentvolumes/{name} | *CoreV1Api* | [**patch_persistent_volume_status**](docs/CoreV1Api.md#patch_persistent_volume_status) | **PATCH** /api/v1/persistentvolumes/{name}/status | +*CoreV1Api* | [**patch_security_context_constraints**](docs/CoreV1Api.md#patch_security_context_constraints) | **PATCH** /api/v1/securitycontextconstraints/{name} | *CoreV1Api* | [**proxy_delete_namespaced_pod**](docs/CoreV1Api.md#proxy_delete_namespaced_pod) | **DELETE** /api/v1/proxy/namespaces/{namespace}/pods/{name} | *CoreV1Api* | [**proxy_delete_namespaced_pod_with_path**](docs/CoreV1Api.md#proxy_delete_namespaced_pod_with_path) | **DELETE** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | *CoreV1Api* | [**proxy_delete_namespaced_service**](docs/CoreV1Api.md#proxy_delete_namespaced_service) | **DELETE** /api/v1/proxy/namespaces/{namespace}/services/{name} | @@ -354,12 +351,6 @@ Class | Method | HTTP request | Description *CoreV1Api* | [**proxy_options_namespaced_service_with_path**](docs/CoreV1Api.md#proxy_options_namespaced_service_with_path) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | *CoreV1Api* | [**proxy_options_node**](docs/CoreV1Api.md#proxy_options_node) | **OPTIONS** /api/v1/proxy/nodes/{name} | *CoreV1Api* | [**proxy_options_node_with_path**](docs/CoreV1Api.md#proxy_options_node_with_path) | **OPTIONS** /api/v1/proxy/nodes/{name}/{path} | -*CoreV1Api* | [**proxy_patch_namespaced_pod**](docs/CoreV1Api.md#proxy_patch_namespaced_pod) | **PATCH** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -*CoreV1Api* | [**proxy_patch_namespaced_pod_with_path**](docs/CoreV1Api.md#proxy_patch_namespaced_pod_with_path) | **PATCH** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -*CoreV1Api* | [**proxy_patch_namespaced_service**](docs/CoreV1Api.md#proxy_patch_namespaced_service) | **PATCH** /api/v1/proxy/namespaces/{namespace}/services/{name} | -*CoreV1Api* | [**proxy_patch_namespaced_service_with_path**](docs/CoreV1Api.md#proxy_patch_namespaced_service_with_path) | **PATCH** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -*CoreV1Api* | [**proxy_patch_node**](docs/CoreV1Api.md#proxy_patch_node) | **PATCH** /api/v1/proxy/nodes/{name} | -*CoreV1Api* | [**proxy_patch_node_with_path**](docs/CoreV1Api.md#proxy_patch_node_with_path) | **PATCH** /api/v1/proxy/nodes/{name}/{path} | *CoreV1Api* | [**proxy_post_namespaced_pod**](docs/CoreV1Api.md#proxy_post_namespaced_pod) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name} | *CoreV1Api* | [**proxy_post_namespaced_pod_with_path**](docs/CoreV1Api.md#proxy_post_namespaced_pod_with_path) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | *CoreV1Api* | [**proxy_post_namespaced_service**](docs/CoreV1Api.md#proxy_post_namespaced_service) | **POST** /api/v1/proxy/namespaces/{namespace}/services/{name} | @@ -398,6 +389,7 @@ Class | Method | HTTP request | Description *CoreV1Api* | [**read_node_status**](docs/CoreV1Api.md#read_node_status) | **GET** /api/v1/nodes/{name}/status | *CoreV1Api* | [**read_persistent_volume**](docs/CoreV1Api.md#read_persistent_volume) | **GET** /api/v1/persistentvolumes/{name} | *CoreV1Api* | [**read_persistent_volume_status**](docs/CoreV1Api.md#read_persistent_volume_status) | **GET** /api/v1/persistentvolumes/{name}/status | +*CoreV1Api* | [**read_security_context_constraints**](docs/CoreV1Api.md#read_security_context_constraints) | **GET** /api/v1/securitycontextconstraints/{name} | *CoreV1Api* | [**replace_namespace**](docs/CoreV1Api.md#replace_namespace) | **PUT** /api/v1/namespaces/{name} | *CoreV1Api* | [**replace_namespace_finalize**](docs/CoreV1Api.md#replace_namespace_finalize) | **PUT** /api/v1/namespaces/{name}/finalize | *CoreV1Api* | [**replace_namespace_status**](docs/CoreV1Api.md#replace_namespace_status) | **PUT** /api/v1/namespaces/{name}/status | @@ -423,25 +415,42 @@ Class | Method | HTTP request | Description *CoreV1Api* | [**replace_node_status**](docs/CoreV1Api.md#replace_node_status) | **PUT** /api/v1/nodes/{name}/status | *CoreV1Api* | [**replace_persistent_volume**](docs/CoreV1Api.md#replace_persistent_volume) | **PUT** /api/v1/persistentvolumes/{name} | *CoreV1Api* | [**replace_persistent_volume_status**](docs/CoreV1Api.md#replace_persistent_volume_status) | **PUT** /api/v1/persistentvolumes/{name}/status | +*CoreV1Api* | [**replace_security_context_constraints**](docs/CoreV1Api.md#replace_security_context_constraints) | **PUT** /api/v1/securitycontextconstraints/{name} | +*DefaultApi* | [**create_namespaced_processed_template**](docs/DefaultApi.md#create_namespaced_processed_template) | **POST** /oapi/v1/namespaces/{namespace}/processedtemplates | +*DefaultApi* | [**create_processed_template_for_all_namespaces**](docs/DefaultApi.md#create_processed_template_for_all_namespaces) | **POST** /oapi/v1/processedtemplates | +*DefaultApi* | [**generate_namespaced_deployment_config**](docs/DefaultApi.md#generate_namespaced_deployment_config) | **GET** /oapi/v1/namespaces/{namespace}/generatedeploymentconfigs/{name} | *ExtensionsApi* | [**get_api_group**](docs/ExtensionsApi.md#get_api_group) | **GET** /apis/extensions/ | +*ExtensionsV1beta1Api* | [**create_daemon_set_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#create_daemon_set_for_all_namespaces) | **POST** /apis/extensions/v1beta1/daemonsets | +*ExtensionsV1beta1Api* | [**create_deployment_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#create_deployment_for_all_namespaces) | **POST** /apis/extensions/v1beta1/deployments | +*ExtensionsV1beta1Api* | [**create_horizontal_pod_autoscaler_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#create_horizontal_pod_autoscaler_for_all_namespaces) | **POST** /apis/extensions/v1beta1/horizontalpodautoscalers | +*ExtensionsV1beta1Api* | [**create_ingress_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#create_ingress_for_all_namespaces) | **POST** /apis/extensions/v1beta1/ingresses | +*ExtensionsV1beta1Api* | [**create_job_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#create_job_for_all_namespaces) | **POST** /apis/extensions/v1beta1/jobs | *ExtensionsV1beta1Api* | [**create_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#create_namespaced_daemon_set) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | *ExtensionsV1beta1Api* | [**create_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#create_namespaced_deployment) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | *ExtensionsV1beta1Api* | [**create_namespaced_deployment_rollback_rollback**](docs/ExtensionsV1beta1Api.md#create_namespaced_deployment_rollback_rollback) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | +*ExtensionsV1beta1Api* | [**create_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#create_namespaced_horizontal_pod_autoscaler) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | *ExtensionsV1beta1Api* | [**create_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#create_namespaced_ingress) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | +*ExtensionsV1beta1Api* | [**create_namespaced_job**](docs/ExtensionsV1beta1Api.md#create_namespaced_job) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | *ExtensionsV1beta1Api* | [**create_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#create_namespaced_network_policy) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | *ExtensionsV1beta1Api* | [**create_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#create_namespaced_replica_set) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | +*ExtensionsV1beta1Api* | [**create_network_policy_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#create_network_policy_for_all_namespaces) | **POST** /apis/extensions/v1beta1/networkpolicies | *ExtensionsV1beta1Api* | [**create_pod_security_policy**](docs/ExtensionsV1beta1Api.md#create_pod_security_policy) | **POST** /apis/extensions/v1beta1/podsecuritypolicies | +*ExtensionsV1beta1Api* | [**create_replica_set_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#create_replica_set_for_all_namespaces) | **POST** /apis/extensions/v1beta1/replicasets | *ExtensionsV1beta1Api* | [**create_third_party_resource**](docs/ExtensionsV1beta1Api.md#create_third_party_resource) | **POST** /apis/extensions/v1beta1/thirdpartyresources | *ExtensionsV1beta1Api* | [**delete_collection_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_daemon_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | *ExtensionsV1beta1Api* | [**delete_collection_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_deployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | +*ExtensionsV1beta1Api* | [**delete_collection_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | *ExtensionsV1beta1Api* | [**delete_collection_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_ingress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | +*ExtensionsV1beta1Api* | [**delete_collection_namespaced_job**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_job) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | *ExtensionsV1beta1Api* | [**delete_collection_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_network_policy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | *ExtensionsV1beta1Api* | [**delete_collection_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_replica_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | *ExtensionsV1beta1Api* | [**delete_collection_pod_security_policy**](docs/ExtensionsV1beta1Api.md#delete_collection_pod_security_policy) | **DELETE** /apis/extensions/v1beta1/podsecuritypolicies | *ExtensionsV1beta1Api* | [**delete_collection_third_party_resource**](docs/ExtensionsV1beta1Api.md#delete_collection_third_party_resource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources | *ExtensionsV1beta1Api* | [**delete_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#delete_namespaced_daemon_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | *ExtensionsV1beta1Api* | [**delete_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#delete_namespaced_deployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | +*ExtensionsV1beta1Api* | [**delete_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#delete_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | *ExtensionsV1beta1Api* | [**delete_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#delete_namespaced_ingress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | +*ExtensionsV1beta1Api* | [**delete_namespaced_job**](docs/ExtensionsV1beta1Api.md#delete_namespaced_job) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | *ExtensionsV1beta1Api* | [**delete_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#delete_namespaced_network_policy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | *ExtensionsV1beta1Api* | [**delete_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#delete_namespaced_replica_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | *ExtensionsV1beta1Api* | [**delete_pod_security_policy**](docs/ExtensionsV1beta1Api.md#delete_pod_security_policy) | **DELETE** /apis/extensions/v1beta1/podsecuritypolicies/{name} | @@ -449,10 +458,14 @@ Class | Method | HTTP request | Description *ExtensionsV1beta1Api* | [**get_api_resources**](docs/ExtensionsV1beta1Api.md#get_api_resources) | **GET** /apis/extensions/v1beta1/ | *ExtensionsV1beta1Api* | [**list_daemon_set_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_daemon_set_for_all_namespaces) | **GET** /apis/extensions/v1beta1/daemonsets | *ExtensionsV1beta1Api* | [**list_deployment_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_deployment_for_all_namespaces) | **GET** /apis/extensions/v1beta1/deployments | +*ExtensionsV1beta1Api* | [**list_horizontal_pod_autoscaler_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_horizontal_pod_autoscaler_for_all_namespaces) | **GET** /apis/extensions/v1beta1/horizontalpodautoscalers | *ExtensionsV1beta1Api* | [**list_ingress_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_ingress_for_all_namespaces) | **GET** /apis/extensions/v1beta1/ingresses | +*ExtensionsV1beta1Api* | [**list_job_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_job_for_all_namespaces) | **GET** /apis/extensions/v1beta1/jobs | *ExtensionsV1beta1Api* | [**list_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#list_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | *ExtensionsV1beta1Api* | [**list_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#list_namespaced_deployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | +*ExtensionsV1beta1Api* | [**list_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#list_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | *ExtensionsV1beta1Api* | [**list_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#list_namespaced_ingress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | +*ExtensionsV1beta1Api* | [**list_namespaced_job**](docs/ExtensionsV1beta1Api.md#list_namespaced_job) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | *ExtensionsV1beta1Api* | [**list_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#list_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | *ExtensionsV1beta1Api* | [**list_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#list_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | *ExtensionsV1beta1Api* | [**list_network_policy_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_network_policy_for_all_namespaces) | **GET** /apis/extensions/v1beta1/networkpolicies | @@ -464,8 +477,12 @@ Class | Method | HTTP request | Description *ExtensionsV1beta1Api* | [**patch_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#patch_namespaced_deployment) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | *ExtensionsV1beta1Api* | [**patch_namespaced_deployment_status**](docs/ExtensionsV1beta1Api.md#patch_namespaced_deployment_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | *ExtensionsV1beta1Api* | [**patch_namespaced_deployments_scale**](docs/ExtensionsV1beta1Api.md#patch_namespaced_deployments_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | +*ExtensionsV1beta1Api* | [**patch_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#patch_namespaced_horizontal_pod_autoscaler) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*ExtensionsV1beta1Api* | [**patch_namespaced_horizontal_pod_autoscaler_status**](docs/ExtensionsV1beta1Api.md#patch_namespaced_horizontal_pod_autoscaler_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *ExtensionsV1beta1Api* | [**patch_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#patch_namespaced_ingress) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | *ExtensionsV1beta1Api* | [**patch_namespaced_ingress_status**](docs/ExtensionsV1beta1Api.md#patch_namespaced_ingress_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | +*ExtensionsV1beta1Api* | [**patch_namespaced_job**](docs/ExtensionsV1beta1Api.md#patch_namespaced_job) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +*ExtensionsV1beta1Api* | [**patch_namespaced_job_status**](docs/ExtensionsV1beta1Api.md#patch_namespaced_job_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | *ExtensionsV1beta1Api* | [**patch_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#patch_namespaced_network_policy) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | *ExtensionsV1beta1Api* | [**patch_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#patch_namespaced_replica_set) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | *ExtensionsV1beta1Api* | [**patch_namespaced_replica_set_status**](docs/ExtensionsV1beta1Api.md#patch_namespaced_replica_set_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | @@ -478,8 +495,12 @@ Class | Method | HTTP request | Description *ExtensionsV1beta1Api* | [**read_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#read_namespaced_deployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | *ExtensionsV1beta1Api* | [**read_namespaced_deployment_status**](docs/ExtensionsV1beta1Api.md#read_namespaced_deployment_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | *ExtensionsV1beta1Api* | [**read_namespaced_deployments_scale**](docs/ExtensionsV1beta1Api.md#read_namespaced_deployments_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | +*ExtensionsV1beta1Api* | [**read_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#read_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*ExtensionsV1beta1Api* | [**read_namespaced_horizontal_pod_autoscaler_status**](docs/ExtensionsV1beta1Api.md#read_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *ExtensionsV1beta1Api* | [**read_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#read_namespaced_ingress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | *ExtensionsV1beta1Api* | [**read_namespaced_ingress_status**](docs/ExtensionsV1beta1Api.md#read_namespaced_ingress_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | +*ExtensionsV1beta1Api* | [**read_namespaced_job**](docs/ExtensionsV1beta1Api.md#read_namespaced_job) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +*ExtensionsV1beta1Api* | [**read_namespaced_job_status**](docs/ExtensionsV1beta1Api.md#read_namespaced_job_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | *ExtensionsV1beta1Api* | [**read_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#read_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | *ExtensionsV1beta1Api* | [**read_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#read_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | *ExtensionsV1beta1Api* | [**read_namespaced_replica_set_status**](docs/ExtensionsV1beta1Api.md#read_namespaced_replica_set_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | @@ -492,8 +513,12 @@ Class | Method | HTTP request | Description *ExtensionsV1beta1Api* | [**replace_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#replace_namespaced_deployment) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | *ExtensionsV1beta1Api* | [**replace_namespaced_deployment_status**](docs/ExtensionsV1beta1Api.md#replace_namespaced_deployment_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | *ExtensionsV1beta1Api* | [**replace_namespaced_deployments_scale**](docs/ExtensionsV1beta1Api.md#replace_namespaced_deployments_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | +*ExtensionsV1beta1Api* | [**replace_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#replace_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*ExtensionsV1beta1Api* | [**replace_namespaced_horizontal_pod_autoscaler_status**](docs/ExtensionsV1beta1Api.md#replace_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *ExtensionsV1beta1Api* | [**replace_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#replace_namespaced_ingress) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | *ExtensionsV1beta1Api* | [**replace_namespaced_ingress_status**](docs/ExtensionsV1beta1Api.md#replace_namespaced_ingress_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | +*ExtensionsV1beta1Api* | [**replace_namespaced_job**](docs/ExtensionsV1beta1Api.md#replace_namespaced_job) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +*ExtensionsV1beta1Api* | [**replace_namespaced_job_status**](docs/ExtensionsV1beta1Api.md#replace_namespaced_job_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | *ExtensionsV1beta1Api* | [**replace_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#replace_namespaced_network_policy) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | *ExtensionsV1beta1Api* | [**replace_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#replace_namespaced_replica_set) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | *ExtensionsV1beta1Api* | [**replace_namespaced_replica_set_status**](docs/ExtensionsV1beta1Api.md#replace_namespaced_replica_set_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | @@ -501,10 +526,299 @@ Class | Method | HTTP request | Description *ExtensionsV1beta1Api* | [**replace_namespaced_replicationcontrollers_scale**](docs/ExtensionsV1beta1Api.md#replace_namespaced_replicationcontrollers_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | *ExtensionsV1beta1Api* | [**replace_pod_security_policy**](docs/ExtensionsV1beta1Api.md#replace_pod_security_policy) | **PUT** /apis/extensions/v1beta1/podsecuritypolicies/{name} | *ExtensionsV1beta1Api* | [**replace_third_party_resource**](docs/ExtensionsV1beta1Api.md#replace_third_party_resource) | **PUT** /apis/extensions/v1beta1/thirdpartyresources/{name} | -*LogsApi* | [**log_file_handler**](docs/LogsApi.md#log_file_handler) | **GET** /logs/{logpath} | -*LogsApi* | [**log_file_list_handler**](docs/LogsApi.md#log_file_list_handler) | **GET** /logs/ | +*OapiApi* | [**connect_post_namespaced_binary_build_request_options_instantiatebinary**](docs/OapiApi.md#connect_post_namespaced_binary_build_request_options_instantiatebinary) | **POST** /oapi/v1/namespaces/{namespace}/buildconfigs/{name}/instantiatebinary | +*OapiApi* | [**connect_post_namespaced_status_webhooks**](docs/OapiApi.md#connect_post_namespaced_status_webhooks) | **POST** /oapi/v1/namespaces/{namespace}/buildconfigs/{name}/webhooks | +*OapiApi* | [**connect_post_namespaced_status_webhooks_with_path**](docs/OapiApi.md#connect_post_namespaced_status_webhooks_with_path) | **POST** /oapi/v1/namespaces/{namespace}/buildconfigs/{name}/webhooks/{path} | +*OapiApi* | [**create_build_config_for_all_namespaces**](docs/OapiApi.md#create_build_config_for_all_namespaces) | **POST** /oapi/v1/buildconfigs | +*OapiApi* | [**create_build_for_all_namespaces**](docs/OapiApi.md#create_build_for_all_namespaces) | **POST** /oapi/v1/builds | +*OapiApi* | [**create_cluster_network**](docs/OapiApi.md#create_cluster_network) | **POST** /oapi/v1/clusternetworks | +*OapiApi* | [**create_cluster_policy**](docs/OapiApi.md#create_cluster_policy) | **POST** /oapi/v1/clusterpolicies | +*OapiApi* | [**create_cluster_policy_binding**](docs/OapiApi.md#create_cluster_policy_binding) | **POST** /oapi/v1/clusterpolicybindings | +*OapiApi* | [**create_cluster_resource_quota**](docs/OapiApi.md#create_cluster_resource_quota) | **POST** /oapi/v1/clusterresourcequotas | +*OapiApi* | [**create_cluster_role**](docs/OapiApi.md#create_cluster_role) | **POST** /oapi/v1/clusterroles | +*OapiApi* | [**create_cluster_role_binding**](docs/OapiApi.md#create_cluster_role_binding) | **POST** /oapi/v1/clusterrolebindings | +*OapiApi* | [**create_deployment_config_for_all_namespaces**](docs/OapiApi.md#create_deployment_config_for_all_namespaces) | **POST** /oapi/v1/deploymentconfigs | +*OapiApi* | [**create_deployment_config_rollback_for_all_namespaces**](docs/OapiApi.md#create_deployment_config_rollback_for_all_namespaces) | **POST** /oapi/v1/deploymentconfigrollbacks | +*OapiApi* | [**create_egress_network_policy_for_all_namespaces**](docs/OapiApi.md#create_egress_network_policy_for_all_namespaces) | **POST** /oapi/v1/egressnetworkpolicies | +*OapiApi* | [**create_group**](docs/OapiApi.md#create_group) | **POST** /oapi/v1/groups | +*OapiApi* | [**create_host_subnet**](docs/OapiApi.md#create_host_subnet) | **POST** /oapi/v1/hostsubnets | +*OapiApi* | [**create_identity**](docs/OapiApi.md#create_identity) | **POST** /oapi/v1/identities | +*OapiApi* | [**create_image**](docs/OapiApi.md#create_image) | **POST** /oapi/v1/images | +*OapiApi* | [**create_image_signature**](docs/OapiApi.md#create_image_signature) | **POST** /oapi/v1/imagesignatures | +*OapiApi* | [**create_image_stream_for_all_namespaces**](docs/OapiApi.md#create_image_stream_for_all_namespaces) | **POST** /oapi/v1/imagestreams | +*OapiApi* | [**create_image_stream_import_for_all_namespaces**](docs/OapiApi.md#create_image_stream_import_for_all_namespaces) | **POST** /oapi/v1/imagestreamimports | +*OapiApi* | [**create_image_stream_mapping_for_all_namespaces**](docs/OapiApi.md#create_image_stream_mapping_for_all_namespaces) | **POST** /oapi/v1/imagestreammappings | +*OapiApi* | [**create_image_stream_tag_for_all_namespaces**](docs/OapiApi.md#create_image_stream_tag_for_all_namespaces) | **POST** /oapi/v1/imagestreamtags | +*OapiApi* | [**create_local_resource_access_review_for_all_namespaces**](docs/OapiApi.md#create_local_resource_access_review_for_all_namespaces) | **POST** /oapi/v1/localresourceaccessreviews | +*OapiApi* | [**create_local_subject_access_review_for_all_namespaces**](docs/OapiApi.md#create_local_subject_access_review_for_all_namespaces) | **POST** /oapi/v1/localsubjectaccessreviews | +*OapiApi* | [**create_namespaced_build**](docs/OapiApi.md#create_namespaced_build) | **POST** /oapi/v1/namespaces/{namespace}/builds | +*OapiApi* | [**create_namespaced_build_config**](docs/OapiApi.md#create_namespaced_build_config) | **POST** /oapi/v1/namespaces/{namespace}/buildconfigs | +*OapiApi* | [**create_namespaced_build_request_clone**](docs/OapiApi.md#create_namespaced_build_request_clone) | **POST** /oapi/v1/namespaces/{namespace}/builds/{name}/clone | +*OapiApi* | [**create_namespaced_build_request_instantiate**](docs/OapiApi.md#create_namespaced_build_request_instantiate) | **POST** /oapi/v1/namespaces/{namespace}/buildconfigs/{name}/instantiate | +*OapiApi* | [**create_namespaced_deployment_config**](docs/OapiApi.md#create_namespaced_deployment_config) | **POST** /oapi/v1/namespaces/{namespace}/deploymentconfigs | +*OapiApi* | [**create_namespaced_deployment_config_rollback**](docs/OapiApi.md#create_namespaced_deployment_config_rollback) | **POST** /oapi/v1/namespaces/{namespace}/deploymentconfigrollbacks | +*OapiApi* | [**create_namespaced_deployment_config_rollback_rollback**](docs/OapiApi.md#create_namespaced_deployment_config_rollback_rollback) | **POST** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/rollback | +*OapiApi* | [**create_namespaced_deployment_request_instantiate**](docs/OapiApi.md#create_namespaced_deployment_request_instantiate) | **POST** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/instantiate | +*OapiApi* | [**create_namespaced_egress_network_policy**](docs/OapiApi.md#create_namespaced_egress_network_policy) | **POST** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies | +*OapiApi* | [**create_namespaced_image_stream**](docs/OapiApi.md#create_namespaced_image_stream) | **POST** /oapi/v1/namespaces/{namespace}/imagestreams | +*OapiApi* | [**create_namespaced_image_stream_import**](docs/OapiApi.md#create_namespaced_image_stream_import) | **POST** /oapi/v1/namespaces/{namespace}/imagestreamimports | +*OapiApi* | [**create_namespaced_image_stream_mapping**](docs/OapiApi.md#create_namespaced_image_stream_mapping) | **POST** /oapi/v1/namespaces/{namespace}/imagestreammappings | +*OapiApi* | [**create_namespaced_image_stream_tag**](docs/OapiApi.md#create_namespaced_image_stream_tag) | **POST** /oapi/v1/namespaces/{namespace}/imagestreamtags | +*OapiApi* | [**create_namespaced_local_resource_access_review**](docs/OapiApi.md#create_namespaced_local_resource_access_review) | **POST** /oapi/v1/namespaces/{namespace}/localresourceaccessreviews | +*OapiApi* | [**create_namespaced_local_subject_access_review**](docs/OapiApi.md#create_namespaced_local_subject_access_review) | **POST** /oapi/v1/namespaces/{namespace}/localsubjectaccessreviews | +*OapiApi* | [**create_namespaced_pod_security_policy_review**](docs/OapiApi.md#create_namespaced_pod_security_policy_review) | **POST** /oapi/v1/namespaces/{namespace}/podsecuritypolicyreviews | +*OapiApi* | [**create_namespaced_pod_security_policy_self_subject_review**](docs/OapiApi.md#create_namespaced_pod_security_policy_self_subject_review) | **POST** /oapi/v1/namespaces/{namespace}/podsecuritypolicyselfsubjectreviews | +*OapiApi* | [**create_namespaced_pod_security_policy_subject_review**](docs/OapiApi.md#create_namespaced_pod_security_policy_subject_review) | **POST** /oapi/v1/namespaces/{namespace}/podsecuritypolicysubjectreviews | +*OapiApi* | [**create_namespaced_policy**](docs/OapiApi.md#create_namespaced_policy) | **POST** /oapi/v1/namespaces/{namespace}/policies | +*OapiApi* | [**create_namespaced_policy_binding**](docs/OapiApi.md#create_namespaced_policy_binding) | **POST** /oapi/v1/namespaces/{namespace}/policybindings | +*OapiApi* | [**create_namespaced_resource_access_review**](docs/OapiApi.md#create_namespaced_resource_access_review) | **POST** /oapi/v1/namespaces/{namespace}/resourceaccessreviews | +*OapiApi* | [**create_namespaced_role**](docs/OapiApi.md#create_namespaced_role) | **POST** /oapi/v1/namespaces/{namespace}/roles | +*OapiApi* | [**create_namespaced_role_binding**](docs/OapiApi.md#create_namespaced_role_binding) | **POST** /oapi/v1/namespaces/{namespace}/rolebindings | +*OapiApi* | [**create_namespaced_role_binding_restriction**](docs/OapiApi.md#create_namespaced_role_binding_restriction) | **POST** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions | +*OapiApi* | [**create_namespaced_route**](docs/OapiApi.md#create_namespaced_route) | **POST** /oapi/v1/namespaces/{namespace}/routes | +*OapiApi* | [**create_namespaced_self_subject_rules_review**](docs/OapiApi.md#create_namespaced_self_subject_rules_review) | **POST** /oapi/v1/namespaces/{namespace}/selfsubjectrulesreviews | +*OapiApi* | [**create_namespaced_subject_access_review**](docs/OapiApi.md#create_namespaced_subject_access_review) | **POST** /oapi/v1/namespaces/{namespace}/subjectaccessreviews | +*OapiApi* | [**create_namespaced_subject_rules_review**](docs/OapiApi.md#create_namespaced_subject_rules_review) | **POST** /oapi/v1/namespaces/{namespace}/subjectrulesreviews | +*OapiApi* | [**create_namespaced_template**](docs/OapiApi.md#create_namespaced_template) | **POST** /oapi/v1/namespaces/{namespace}/templates | +*OapiApi* | [**create_net_namespace**](docs/OapiApi.md#create_net_namespace) | **POST** /oapi/v1/netnamespaces | +*OapiApi* | [**create_o_auth_access_token**](docs/OapiApi.md#create_o_auth_access_token) | **POST** /oapi/v1/oauthaccesstokens | +*OapiApi* | [**create_o_auth_authorize_token**](docs/OapiApi.md#create_o_auth_authorize_token) | **POST** /oapi/v1/oauthauthorizetokens | +*OapiApi* | [**create_o_auth_client**](docs/OapiApi.md#create_o_auth_client) | **POST** /oapi/v1/oauthclients | +*OapiApi* | [**create_o_auth_client_authorization**](docs/OapiApi.md#create_o_auth_client_authorization) | **POST** /oapi/v1/oauthclientauthorizations | +*OapiApi* | [**create_pod_security_policy_review_for_all_namespaces**](docs/OapiApi.md#create_pod_security_policy_review_for_all_namespaces) | **POST** /oapi/v1/podsecuritypolicyreviews | +*OapiApi* | [**create_pod_security_policy_self_subject_review_for_all_namespaces**](docs/OapiApi.md#create_pod_security_policy_self_subject_review_for_all_namespaces) | **POST** /oapi/v1/podsecuritypolicyselfsubjectreviews | +*OapiApi* | [**create_pod_security_policy_subject_review_for_all_namespaces**](docs/OapiApi.md#create_pod_security_policy_subject_review_for_all_namespaces) | **POST** /oapi/v1/podsecuritypolicysubjectreviews | +*OapiApi* | [**create_policy_binding_for_all_namespaces**](docs/OapiApi.md#create_policy_binding_for_all_namespaces) | **POST** /oapi/v1/policybindings | +*OapiApi* | [**create_policy_for_all_namespaces**](docs/OapiApi.md#create_policy_for_all_namespaces) | **POST** /oapi/v1/policies | +*OapiApi* | [**create_project**](docs/OapiApi.md#create_project) | **POST** /oapi/v1/projects | +*OapiApi* | [**create_project_request**](docs/OapiApi.md#create_project_request) | **POST** /oapi/v1/projectrequests | +*OapiApi* | [**create_resource_access_review_for_all_namespaces**](docs/OapiApi.md#create_resource_access_review_for_all_namespaces) | **POST** /oapi/v1/resourceaccessreviews | +*OapiApi* | [**create_role_binding_for_all_namespaces**](docs/OapiApi.md#create_role_binding_for_all_namespaces) | **POST** /oapi/v1/rolebindings | +*OapiApi* | [**create_role_binding_restriction_for_all_namespaces**](docs/OapiApi.md#create_role_binding_restriction_for_all_namespaces) | **POST** /oapi/v1/rolebindingrestrictions | +*OapiApi* | [**create_role_for_all_namespaces**](docs/OapiApi.md#create_role_for_all_namespaces) | **POST** /oapi/v1/roles | +*OapiApi* | [**create_route_for_all_namespaces**](docs/OapiApi.md#create_route_for_all_namespaces) | **POST** /oapi/v1/routes | +*OapiApi* | [**create_self_subject_rules_review_for_all_namespaces**](docs/OapiApi.md#create_self_subject_rules_review_for_all_namespaces) | **POST** /oapi/v1/selfsubjectrulesreviews | +*OapiApi* | [**create_subject_access_review_for_all_namespaces**](docs/OapiApi.md#create_subject_access_review_for_all_namespaces) | **POST** /oapi/v1/subjectaccessreviews | +*OapiApi* | [**create_subject_rules_review_for_all_namespaces**](docs/OapiApi.md#create_subject_rules_review_for_all_namespaces) | **POST** /oapi/v1/subjectrulesreviews | +*OapiApi* | [**create_template_for_all_namespaces**](docs/OapiApi.md#create_template_for_all_namespaces) | **POST** /oapi/v1/templates | +*OapiApi* | [**create_user**](docs/OapiApi.md#create_user) | **POST** /oapi/v1/users | +*OapiApi* | [**create_user_identity_mapping**](docs/OapiApi.md#create_user_identity_mapping) | **POST** /oapi/v1/useridentitymappings | +*OapiApi* | [**delete_cluster_network**](docs/OapiApi.md#delete_cluster_network) | **DELETE** /oapi/v1/clusternetworks/{name} | +*OapiApi* | [**delete_cluster_policy**](docs/OapiApi.md#delete_cluster_policy) | **DELETE** /oapi/v1/clusterpolicies/{name} | +*OapiApi* | [**delete_cluster_policy_binding**](docs/OapiApi.md#delete_cluster_policy_binding) | **DELETE** /oapi/v1/clusterpolicybindings/{name} | +*OapiApi* | [**delete_cluster_resource_quota**](docs/OapiApi.md#delete_cluster_resource_quota) | **DELETE** /oapi/v1/clusterresourcequotas/{name} | +*OapiApi* | [**delete_cluster_role**](docs/OapiApi.md#delete_cluster_role) | **DELETE** /oapi/v1/clusterroles/{name} | +*OapiApi* | [**delete_cluster_role_binding**](docs/OapiApi.md#delete_cluster_role_binding) | **DELETE** /oapi/v1/clusterrolebindings/{name} | +*OapiApi* | [**delete_collection_cluster_network**](docs/OapiApi.md#delete_collection_cluster_network) | **DELETE** /oapi/v1/clusternetworks | +*OapiApi* | [**delete_collection_cluster_policy**](docs/OapiApi.md#delete_collection_cluster_policy) | **DELETE** /oapi/v1/clusterpolicies | +*OapiApi* | [**delete_collection_cluster_policy_binding**](docs/OapiApi.md#delete_collection_cluster_policy_binding) | **DELETE** /oapi/v1/clusterpolicybindings | +*OapiApi* | [**delete_collection_cluster_resource_quota**](docs/OapiApi.md#delete_collection_cluster_resource_quota) | **DELETE** /oapi/v1/clusterresourcequotas | +*OapiApi* | [**delete_collection_group**](docs/OapiApi.md#delete_collection_group) | **DELETE** /oapi/v1/groups | +*OapiApi* | [**delete_collection_host_subnet**](docs/OapiApi.md#delete_collection_host_subnet) | **DELETE** /oapi/v1/hostsubnets | +*OapiApi* | [**delete_collection_identity**](docs/OapiApi.md#delete_collection_identity) | **DELETE** /oapi/v1/identities | +*OapiApi* | [**delete_collection_image**](docs/OapiApi.md#delete_collection_image) | **DELETE** /oapi/v1/images | +*OapiApi* | [**delete_collection_namespaced_build**](docs/OapiApi.md#delete_collection_namespaced_build) | **DELETE** /oapi/v1/namespaces/{namespace}/builds | +*OapiApi* | [**delete_collection_namespaced_build_config**](docs/OapiApi.md#delete_collection_namespaced_build_config) | **DELETE** /oapi/v1/namespaces/{namespace}/buildconfigs | +*OapiApi* | [**delete_collection_namespaced_deployment_config**](docs/OapiApi.md#delete_collection_namespaced_deployment_config) | **DELETE** /oapi/v1/namespaces/{namespace}/deploymentconfigs | +*OapiApi* | [**delete_collection_namespaced_egress_network_policy**](docs/OapiApi.md#delete_collection_namespaced_egress_network_policy) | **DELETE** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies | +*OapiApi* | [**delete_collection_namespaced_image_stream**](docs/OapiApi.md#delete_collection_namespaced_image_stream) | **DELETE** /oapi/v1/namespaces/{namespace}/imagestreams | +*OapiApi* | [**delete_collection_namespaced_policy**](docs/OapiApi.md#delete_collection_namespaced_policy) | **DELETE** /oapi/v1/namespaces/{namespace}/policies | +*OapiApi* | [**delete_collection_namespaced_policy_binding**](docs/OapiApi.md#delete_collection_namespaced_policy_binding) | **DELETE** /oapi/v1/namespaces/{namespace}/policybindings | +*OapiApi* | [**delete_collection_namespaced_role_binding_restriction**](docs/OapiApi.md#delete_collection_namespaced_role_binding_restriction) | **DELETE** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions | +*OapiApi* | [**delete_collection_namespaced_route**](docs/OapiApi.md#delete_collection_namespaced_route) | **DELETE** /oapi/v1/namespaces/{namespace}/routes | +*OapiApi* | [**delete_collection_namespaced_template**](docs/OapiApi.md#delete_collection_namespaced_template) | **DELETE** /oapi/v1/namespaces/{namespace}/templates | +*OapiApi* | [**delete_collection_net_namespace**](docs/OapiApi.md#delete_collection_net_namespace) | **DELETE** /oapi/v1/netnamespaces | +*OapiApi* | [**delete_collection_o_auth_access_token**](docs/OapiApi.md#delete_collection_o_auth_access_token) | **DELETE** /oapi/v1/oauthaccesstokens | +*OapiApi* | [**delete_collection_o_auth_authorize_token**](docs/OapiApi.md#delete_collection_o_auth_authorize_token) | **DELETE** /oapi/v1/oauthauthorizetokens | +*OapiApi* | [**delete_collection_o_auth_client**](docs/OapiApi.md#delete_collection_o_auth_client) | **DELETE** /oapi/v1/oauthclients | +*OapiApi* | [**delete_collection_o_auth_client_authorization**](docs/OapiApi.md#delete_collection_o_auth_client_authorization) | **DELETE** /oapi/v1/oauthclientauthorizations | +*OapiApi* | [**delete_collection_user**](docs/OapiApi.md#delete_collection_user) | **DELETE** /oapi/v1/users | +*OapiApi* | [**delete_group**](docs/OapiApi.md#delete_group) | **DELETE** /oapi/v1/groups/{name} | +*OapiApi* | [**delete_host_subnet**](docs/OapiApi.md#delete_host_subnet) | **DELETE** /oapi/v1/hostsubnets/{name} | +*OapiApi* | [**delete_identity**](docs/OapiApi.md#delete_identity) | **DELETE** /oapi/v1/identities/{name} | +*OapiApi* | [**delete_image**](docs/OapiApi.md#delete_image) | **DELETE** /oapi/v1/images/{name} | +*OapiApi* | [**delete_image_signature**](docs/OapiApi.md#delete_image_signature) | **DELETE** /oapi/v1/imagesignatures/{name} | +*OapiApi* | [**delete_namespaced_build**](docs/OapiApi.md#delete_namespaced_build) | **DELETE** /oapi/v1/namespaces/{namespace}/builds/{name} | +*OapiApi* | [**delete_namespaced_build_config**](docs/OapiApi.md#delete_namespaced_build_config) | **DELETE** /oapi/v1/namespaces/{namespace}/buildconfigs/{name} | +*OapiApi* | [**delete_namespaced_deployment_config**](docs/OapiApi.md#delete_namespaced_deployment_config) | **DELETE** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name} | +*OapiApi* | [**delete_namespaced_egress_network_policy**](docs/OapiApi.md#delete_namespaced_egress_network_policy) | **DELETE** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name} | +*OapiApi* | [**delete_namespaced_image_stream**](docs/OapiApi.md#delete_namespaced_image_stream) | **DELETE** /oapi/v1/namespaces/{namespace}/imagestreams/{name} | +*OapiApi* | [**delete_namespaced_image_stream_tag**](docs/OapiApi.md#delete_namespaced_image_stream_tag) | **DELETE** /oapi/v1/namespaces/{namespace}/imagestreamtags/{name} | +*OapiApi* | [**delete_namespaced_policy**](docs/OapiApi.md#delete_namespaced_policy) | **DELETE** /oapi/v1/namespaces/{namespace}/policies/{name} | +*OapiApi* | [**delete_namespaced_policy_binding**](docs/OapiApi.md#delete_namespaced_policy_binding) | **DELETE** /oapi/v1/namespaces/{namespace}/policybindings/{name} | +*OapiApi* | [**delete_namespaced_role**](docs/OapiApi.md#delete_namespaced_role) | **DELETE** /oapi/v1/namespaces/{namespace}/roles/{name} | +*OapiApi* | [**delete_namespaced_role_binding**](docs/OapiApi.md#delete_namespaced_role_binding) | **DELETE** /oapi/v1/namespaces/{namespace}/rolebindings/{name} | +*OapiApi* | [**delete_namespaced_role_binding_restriction**](docs/OapiApi.md#delete_namespaced_role_binding_restriction) | **DELETE** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name} | +*OapiApi* | [**delete_namespaced_route**](docs/OapiApi.md#delete_namespaced_route) | **DELETE** /oapi/v1/namespaces/{namespace}/routes/{name} | +*OapiApi* | [**delete_namespaced_template**](docs/OapiApi.md#delete_namespaced_template) | **DELETE** /oapi/v1/namespaces/{namespace}/templates/{name} | +*OapiApi* | [**delete_net_namespace**](docs/OapiApi.md#delete_net_namespace) | **DELETE** /oapi/v1/netnamespaces/{name} | +*OapiApi* | [**delete_o_auth_access_token**](docs/OapiApi.md#delete_o_auth_access_token) | **DELETE** /oapi/v1/oauthaccesstokens/{name} | +*OapiApi* | [**delete_o_auth_authorize_token**](docs/OapiApi.md#delete_o_auth_authorize_token) | **DELETE** /oapi/v1/oauthauthorizetokens/{name} | +*OapiApi* | [**delete_o_auth_client**](docs/OapiApi.md#delete_o_auth_client) | **DELETE** /oapi/v1/oauthclients/{name} | +*OapiApi* | [**delete_o_auth_client_authorization**](docs/OapiApi.md#delete_o_auth_client_authorization) | **DELETE** /oapi/v1/oauthclientauthorizations/{name} | +*OapiApi* | [**delete_project**](docs/OapiApi.md#delete_project) | **DELETE** /oapi/v1/projects/{name} | +*OapiApi* | [**delete_user**](docs/OapiApi.md#delete_user) | **DELETE** /oapi/v1/users/{name} | +*OapiApi* | [**delete_user_identity_mapping**](docs/OapiApi.md#delete_user_identity_mapping) | **DELETE** /oapi/v1/useridentitymappings/{name} | +*OapiApi* | [**get_api_resources**](docs/OapiApi.md#get_api_resources) | **GET** /oapi/v1/ | +*OapiApi* | [**get_version**](docs/OapiApi.md#get_version) | **GET** /oapi/ | +*OapiApi* | [**list_applied_cluster_resource_quota_for_all_namespaces**](docs/OapiApi.md#list_applied_cluster_resource_quota_for_all_namespaces) | **GET** /oapi/v1/appliedclusterresourcequotas | +*OapiApi* | [**list_build_config_for_all_namespaces**](docs/OapiApi.md#list_build_config_for_all_namespaces) | **GET** /oapi/v1/buildconfigs | +*OapiApi* | [**list_build_for_all_namespaces**](docs/OapiApi.md#list_build_for_all_namespaces) | **GET** /oapi/v1/builds | +*OapiApi* | [**list_cluster_network**](docs/OapiApi.md#list_cluster_network) | **GET** /oapi/v1/clusternetworks | +*OapiApi* | [**list_cluster_policy**](docs/OapiApi.md#list_cluster_policy) | **GET** /oapi/v1/clusterpolicies | +*OapiApi* | [**list_cluster_policy_binding**](docs/OapiApi.md#list_cluster_policy_binding) | **GET** /oapi/v1/clusterpolicybindings | +*OapiApi* | [**list_cluster_resource_quota**](docs/OapiApi.md#list_cluster_resource_quota) | **GET** /oapi/v1/clusterresourcequotas | +*OapiApi* | [**list_cluster_role**](docs/OapiApi.md#list_cluster_role) | **GET** /oapi/v1/clusterroles | +*OapiApi* | [**list_cluster_role_binding**](docs/OapiApi.md#list_cluster_role_binding) | **GET** /oapi/v1/clusterrolebindings | +*OapiApi* | [**list_deployment_config_for_all_namespaces**](docs/OapiApi.md#list_deployment_config_for_all_namespaces) | **GET** /oapi/v1/deploymentconfigs | +*OapiApi* | [**list_egress_network_policy_for_all_namespaces**](docs/OapiApi.md#list_egress_network_policy_for_all_namespaces) | **GET** /oapi/v1/egressnetworkpolicies | +*OapiApi* | [**list_group**](docs/OapiApi.md#list_group) | **GET** /oapi/v1/groups | +*OapiApi* | [**list_host_subnet**](docs/OapiApi.md#list_host_subnet) | **GET** /oapi/v1/hostsubnets | +*OapiApi* | [**list_identity**](docs/OapiApi.md#list_identity) | **GET** /oapi/v1/identities | +*OapiApi* | [**list_image**](docs/OapiApi.md#list_image) | **GET** /oapi/v1/images | +*OapiApi* | [**list_image_stream_for_all_namespaces**](docs/OapiApi.md#list_image_stream_for_all_namespaces) | **GET** /oapi/v1/imagestreams | +*OapiApi* | [**list_image_stream_tag_for_all_namespaces**](docs/OapiApi.md#list_image_stream_tag_for_all_namespaces) | **GET** /oapi/v1/imagestreamtags | +*OapiApi* | [**list_namespaced_applied_cluster_resource_quota**](docs/OapiApi.md#list_namespaced_applied_cluster_resource_quota) | **GET** /oapi/v1/namespaces/{namespace}/appliedclusterresourcequotas | +*OapiApi* | [**list_namespaced_build**](docs/OapiApi.md#list_namespaced_build) | **GET** /oapi/v1/namespaces/{namespace}/builds | +*OapiApi* | [**list_namespaced_build_config**](docs/OapiApi.md#list_namespaced_build_config) | **GET** /oapi/v1/namespaces/{namespace}/buildconfigs | +*OapiApi* | [**list_namespaced_deployment_config**](docs/OapiApi.md#list_namespaced_deployment_config) | **GET** /oapi/v1/namespaces/{namespace}/deploymentconfigs | +*OapiApi* | [**list_namespaced_egress_network_policy**](docs/OapiApi.md#list_namespaced_egress_network_policy) | **GET** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies | +*OapiApi* | [**list_namespaced_image_stream**](docs/OapiApi.md#list_namespaced_image_stream) | **GET** /oapi/v1/namespaces/{namespace}/imagestreams | +*OapiApi* | [**list_namespaced_image_stream_tag**](docs/OapiApi.md#list_namespaced_image_stream_tag) | **GET** /oapi/v1/namespaces/{namespace}/imagestreamtags | +*OapiApi* | [**list_namespaced_policy**](docs/OapiApi.md#list_namespaced_policy) | **GET** /oapi/v1/namespaces/{namespace}/policies | +*OapiApi* | [**list_namespaced_policy_binding**](docs/OapiApi.md#list_namespaced_policy_binding) | **GET** /oapi/v1/namespaces/{namespace}/policybindings | +*OapiApi* | [**list_namespaced_role**](docs/OapiApi.md#list_namespaced_role) | **GET** /oapi/v1/namespaces/{namespace}/roles | +*OapiApi* | [**list_namespaced_role_binding**](docs/OapiApi.md#list_namespaced_role_binding) | **GET** /oapi/v1/namespaces/{namespace}/rolebindings | +*OapiApi* | [**list_namespaced_role_binding_restriction**](docs/OapiApi.md#list_namespaced_role_binding_restriction) | **GET** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions | +*OapiApi* | [**list_namespaced_route**](docs/OapiApi.md#list_namespaced_route) | **GET** /oapi/v1/namespaces/{namespace}/routes | +*OapiApi* | [**list_namespaced_template**](docs/OapiApi.md#list_namespaced_template) | **GET** /oapi/v1/namespaces/{namespace}/templates | +*OapiApi* | [**list_net_namespace**](docs/OapiApi.md#list_net_namespace) | **GET** /oapi/v1/netnamespaces | +*OapiApi* | [**list_o_auth_access_token**](docs/OapiApi.md#list_o_auth_access_token) | **GET** /oapi/v1/oauthaccesstokens | +*OapiApi* | [**list_o_auth_authorize_token**](docs/OapiApi.md#list_o_auth_authorize_token) | **GET** /oapi/v1/oauthauthorizetokens | +*OapiApi* | [**list_o_auth_client**](docs/OapiApi.md#list_o_auth_client) | **GET** /oapi/v1/oauthclients | +*OapiApi* | [**list_o_auth_client_authorization**](docs/OapiApi.md#list_o_auth_client_authorization) | **GET** /oapi/v1/oauthclientauthorizations | +*OapiApi* | [**list_policy_binding_for_all_namespaces**](docs/OapiApi.md#list_policy_binding_for_all_namespaces) | **GET** /oapi/v1/policybindings | +*OapiApi* | [**list_policy_for_all_namespaces**](docs/OapiApi.md#list_policy_for_all_namespaces) | **GET** /oapi/v1/policies | +*OapiApi* | [**list_project**](docs/OapiApi.md#list_project) | **GET** /oapi/v1/projects | +*OapiApi* | [**list_project_request**](docs/OapiApi.md#list_project_request) | **GET** /oapi/v1/projectrequests | +*OapiApi* | [**list_role_binding_for_all_namespaces**](docs/OapiApi.md#list_role_binding_for_all_namespaces) | **GET** /oapi/v1/rolebindings | +*OapiApi* | [**list_role_binding_restriction_for_all_namespaces**](docs/OapiApi.md#list_role_binding_restriction_for_all_namespaces) | **GET** /oapi/v1/rolebindingrestrictions | +*OapiApi* | [**list_role_for_all_namespaces**](docs/OapiApi.md#list_role_for_all_namespaces) | **GET** /oapi/v1/roles | +*OapiApi* | [**list_route_for_all_namespaces**](docs/OapiApi.md#list_route_for_all_namespaces) | **GET** /oapi/v1/routes | +*OapiApi* | [**list_template_for_all_namespaces**](docs/OapiApi.md#list_template_for_all_namespaces) | **GET** /oapi/v1/templates | +*OapiApi* | [**list_user**](docs/OapiApi.md#list_user) | **GET** /oapi/v1/users | +*OapiApi* | [**patch_cluster_network**](docs/OapiApi.md#patch_cluster_network) | **PATCH** /oapi/v1/clusternetworks/{name} | +*OapiApi* | [**patch_cluster_policy**](docs/OapiApi.md#patch_cluster_policy) | **PATCH** /oapi/v1/clusterpolicies/{name} | +*OapiApi* | [**patch_cluster_policy_binding**](docs/OapiApi.md#patch_cluster_policy_binding) | **PATCH** /oapi/v1/clusterpolicybindings/{name} | +*OapiApi* | [**patch_cluster_resource_quota**](docs/OapiApi.md#patch_cluster_resource_quota) | **PATCH** /oapi/v1/clusterresourcequotas/{name} | +*OapiApi* | [**patch_cluster_resource_quota_status**](docs/OapiApi.md#patch_cluster_resource_quota_status) | **PATCH** /oapi/v1/clusterresourcequotas/{name}/status | +*OapiApi* | [**patch_cluster_role**](docs/OapiApi.md#patch_cluster_role) | **PATCH** /oapi/v1/clusterroles/{name} | +*OapiApi* | [**patch_cluster_role_binding**](docs/OapiApi.md#patch_cluster_role_binding) | **PATCH** /oapi/v1/clusterrolebindings/{name} | +*OapiApi* | [**patch_group**](docs/OapiApi.md#patch_group) | **PATCH** /oapi/v1/groups/{name} | +*OapiApi* | [**patch_host_subnet**](docs/OapiApi.md#patch_host_subnet) | **PATCH** /oapi/v1/hostsubnets/{name} | +*OapiApi* | [**patch_identity**](docs/OapiApi.md#patch_identity) | **PATCH** /oapi/v1/identities/{name} | +*OapiApi* | [**patch_image**](docs/OapiApi.md#patch_image) | **PATCH** /oapi/v1/images/{name} | +*OapiApi* | [**patch_namespaced_build**](docs/OapiApi.md#patch_namespaced_build) | **PATCH** /oapi/v1/namespaces/{namespace}/builds/{name} | +*OapiApi* | [**patch_namespaced_build_config**](docs/OapiApi.md#patch_namespaced_build_config) | **PATCH** /oapi/v1/namespaces/{namespace}/buildconfigs/{name} | +*OapiApi* | [**patch_namespaced_deployment_config**](docs/OapiApi.md#patch_namespaced_deployment_config) | **PATCH** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name} | +*OapiApi* | [**patch_namespaced_egress_network_policy**](docs/OapiApi.md#patch_namespaced_egress_network_policy) | **PATCH** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name} | +*OapiApi* | [**patch_namespaced_image_stream**](docs/OapiApi.md#patch_namespaced_image_stream) | **PATCH** /oapi/v1/namespaces/{namespace}/imagestreams/{name} | +*OapiApi* | [**patch_namespaced_image_stream_tag**](docs/OapiApi.md#patch_namespaced_image_stream_tag) | **PATCH** /oapi/v1/namespaces/{namespace}/imagestreamtags/{name} | +*OapiApi* | [**patch_namespaced_policy**](docs/OapiApi.md#patch_namespaced_policy) | **PATCH** /oapi/v1/namespaces/{namespace}/policies/{name} | +*OapiApi* | [**patch_namespaced_policy_binding**](docs/OapiApi.md#patch_namespaced_policy_binding) | **PATCH** /oapi/v1/namespaces/{namespace}/policybindings/{name} | +*OapiApi* | [**patch_namespaced_role**](docs/OapiApi.md#patch_namespaced_role) | **PATCH** /oapi/v1/namespaces/{namespace}/roles/{name} | +*OapiApi* | [**patch_namespaced_role_binding**](docs/OapiApi.md#patch_namespaced_role_binding) | **PATCH** /oapi/v1/namespaces/{namespace}/rolebindings/{name} | +*OapiApi* | [**patch_namespaced_role_binding_restriction**](docs/OapiApi.md#patch_namespaced_role_binding_restriction) | **PATCH** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name} | +*OapiApi* | [**patch_namespaced_route**](docs/OapiApi.md#patch_namespaced_route) | **PATCH** /oapi/v1/namespaces/{namespace}/routes/{name} | +*OapiApi* | [**patch_namespaced_scale_scale**](docs/OapiApi.md#patch_namespaced_scale_scale) | **PATCH** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale | +*OapiApi* | [**patch_namespaced_template**](docs/OapiApi.md#patch_namespaced_template) | **PATCH** /oapi/v1/namespaces/{namespace}/templates/{name} | +*OapiApi* | [**patch_net_namespace**](docs/OapiApi.md#patch_net_namespace) | **PATCH** /oapi/v1/netnamespaces/{name} | +*OapiApi* | [**patch_o_auth_access_token**](docs/OapiApi.md#patch_o_auth_access_token) | **PATCH** /oapi/v1/oauthaccesstokens/{name} | +*OapiApi* | [**patch_o_auth_authorize_token**](docs/OapiApi.md#patch_o_auth_authorize_token) | **PATCH** /oapi/v1/oauthauthorizetokens/{name} | +*OapiApi* | [**patch_o_auth_client**](docs/OapiApi.md#patch_o_auth_client) | **PATCH** /oapi/v1/oauthclients/{name} | +*OapiApi* | [**patch_o_auth_client_authorization**](docs/OapiApi.md#patch_o_auth_client_authorization) | **PATCH** /oapi/v1/oauthclientauthorizations/{name} | +*OapiApi* | [**patch_project**](docs/OapiApi.md#patch_project) | **PATCH** /oapi/v1/projects/{name} | +*OapiApi* | [**patch_user**](docs/OapiApi.md#patch_user) | **PATCH** /oapi/v1/users/{name} | +*OapiApi* | [**patch_user_identity_mapping**](docs/OapiApi.md#patch_user_identity_mapping) | **PATCH** /oapi/v1/useridentitymappings/{name} | +*OapiApi* | [**read_cluster_network**](docs/OapiApi.md#read_cluster_network) | **GET** /oapi/v1/clusternetworks/{name} | +*OapiApi* | [**read_cluster_policy**](docs/OapiApi.md#read_cluster_policy) | **GET** /oapi/v1/clusterpolicies/{name} | +*OapiApi* | [**read_cluster_policy_binding**](docs/OapiApi.md#read_cluster_policy_binding) | **GET** /oapi/v1/clusterpolicybindings/{name} | +*OapiApi* | [**read_cluster_resource_quota**](docs/OapiApi.md#read_cluster_resource_quota) | **GET** /oapi/v1/clusterresourcequotas/{name} | +*OapiApi* | [**read_cluster_resource_quota_status**](docs/OapiApi.md#read_cluster_resource_quota_status) | **GET** /oapi/v1/clusterresourcequotas/{name}/status | +*OapiApi* | [**read_cluster_role**](docs/OapiApi.md#read_cluster_role) | **GET** /oapi/v1/clusterroles/{name} | +*OapiApi* | [**read_cluster_role_binding**](docs/OapiApi.md#read_cluster_role_binding) | **GET** /oapi/v1/clusterrolebindings/{name} | +*OapiApi* | [**read_group**](docs/OapiApi.md#read_group) | **GET** /oapi/v1/groups/{name} | +*OapiApi* | [**read_host_subnet**](docs/OapiApi.md#read_host_subnet) | **GET** /oapi/v1/hostsubnets/{name} | +*OapiApi* | [**read_identity**](docs/OapiApi.md#read_identity) | **GET** /oapi/v1/identities/{name} | +*OapiApi* | [**read_image**](docs/OapiApi.md#read_image) | **GET** /oapi/v1/images/{name} | +*OapiApi* | [**read_namespaced_applied_cluster_resource_quota**](docs/OapiApi.md#read_namespaced_applied_cluster_resource_quota) | **GET** /oapi/v1/namespaces/{namespace}/appliedclusterresourcequotas/{name} | +*OapiApi* | [**read_namespaced_build**](docs/OapiApi.md#read_namespaced_build) | **GET** /oapi/v1/namespaces/{namespace}/builds/{name} | +*OapiApi* | [**read_namespaced_build_config**](docs/OapiApi.md#read_namespaced_build_config) | **GET** /oapi/v1/namespaces/{namespace}/buildconfigs/{name} | +*OapiApi* | [**read_namespaced_build_log_log**](docs/OapiApi.md#read_namespaced_build_log_log) | **GET** /oapi/v1/namespaces/{namespace}/builds/{name}/log | +*OapiApi* | [**read_namespaced_deployment_config**](docs/OapiApi.md#read_namespaced_deployment_config) | **GET** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name} | +*OapiApi* | [**read_namespaced_deployment_log_log**](docs/OapiApi.md#read_namespaced_deployment_log_log) | **GET** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/log | +*OapiApi* | [**read_namespaced_egress_network_policy**](docs/OapiApi.md#read_namespaced_egress_network_policy) | **GET** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name} | +*OapiApi* | [**read_namespaced_image_stream**](docs/OapiApi.md#read_namespaced_image_stream) | **GET** /oapi/v1/namespaces/{namespace}/imagestreams/{name} | +*OapiApi* | [**read_namespaced_image_stream_image**](docs/OapiApi.md#read_namespaced_image_stream_image) | **GET** /oapi/v1/namespaces/{namespace}/imagestreamimages/{name} | +*OapiApi* | [**read_namespaced_image_stream_tag**](docs/OapiApi.md#read_namespaced_image_stream_tag) | **GET** /oapi/v1/namespaces/{namespace}/imagestreamtags/{name} | +*OapiApi* | [**read_namespaced_policy**](docs/OapiApi.md#read_namespaced_policy) | **GET** /oapi/v1/namespaces/{namespace}/policies/{name} | +*OapiApi* | [**read_namespaced_policy_binding**](docs/OapiApi.md#read_namespaced_policy_binding) | **GET** /oapi/v1/namespaces/{namespace}/policybindings/{name} | +*OapiApi* | [**read_namespaced_role**](docs/OapiApi.md#read_namespaced_role) | **GET** /oapi/v1/namespaces/{namespace}/roles/{name} | +*OapiApi* | [**read_namespaced_role_binding**](docs/OapiApi.md#read_namespaced_role_binding) | **GET** /oapi/v1/namespaces/{namespace}/rolebindings/{name} | +*OapiApi* | [**read_namespaced_role_binding_restriction**](docs/OapiApi.md#read_namespaced_role_binding_restriction) | **GET** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name} | +*OapiApi* | [**read_namespaced_route**](docs/OapiApi.md#read_namespaced_route) | **GET** /oapi/v1/namespaces/{namespace}/routes/{name} | +*OapiApi* | [**read_namespaced_scale_scale**](docs/OapiApi.md#read_namespaced_scale_scale) | **GET** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale | +*OapiApi* | [**read_namespaced_secret_list_secrets**](docs/OapiApi.md#read_namespaced_secret_list_secrets) | **GET** /oapi/v1/namespaces/{namespace}/imagestreams/{name}/secrets | +*OapiApi* | [**read_namespaced_template**](docs/OapiApi.md#read_namespaced_template) | **GET** /oapi/v1/namespaces/{namespace}/templates/{name} | +*OapiApi* | [**read_net_namespace**](docs/OapiApi.md#read_net_namespace) | **GET** /oapi/v1/netnamespaces/{name} | +*OapiApi* | [**read_o_auth_access_token**](docs/OapiApi.md#read_o_auth_access_token) | **GET** /oapi/v1/oauthaccesstokens/{name} | +*OapiApi* | [**read_o_auth_authorize_token**](docs/OapiApi.md#read_o_auth_authorize_token) | **GET** /oapi/v1/oauthauthorizetokens/{name} | +*OapiApi* | [**read_o_auth_client**](docs/OapiApi.md#read_o_auth_client) | **GET** /oapi/v1/oauthclients/{name} | +*OapiApi* | [**read_o_auth_client_authorization**](docs/OapiApi.md#read_o_auth_client_authorization) | **GET** /oapi/v1/oauthclientauthorizations/{name} | +*OapiApi* | [**read_project**](docs/OapiApi.md#read_project) | **GET** /oapi/v1/projects/{name} | +*OapiApi* | [**read_user**](docs/OapiApi.md#read_user) | **GET** /oapi/v1/users/{name} | +*OapiApi* | [**read_user_identity_mapping**](docs/OapiApi.md#read_user_identity_mapping) | **GET** /oapi/v1/useridentitymappings/{name} | +*OapiApi* | [**replace_cluster_network**](docs/OapiApi.md#replace_cluster_network) | **PUT** /oapi/v1/clusternetworks/{name} | +*OapiApi* | [**replace_cluster_policy**](docs/OapiApi.md#replace_cluster_policy) | **PUT** /oapi/v1/clusterpolicies/{name} | +*OapiApi* | [**replace_cluster_policy_binding**](docs/OapiApi.md#replace_cluster_policy_binding) | **PUT** /oapi/v1/clusterpolicybindings/{name} | +*OapiApi* | [**replace_cluster_resource_quota**](docs/OapiApi.md#replace_cluster_resource_quota) | **PUT** /oapi/v1/clusterresourcequotas/{name} | +*OapiApi* | [**replace_cluster_resource_quota_status**](docs/OapiApi.md#replace_cluster_resource_quota_status) | **PUT** /oapi/v1/clusterresourcequotas/{name}/status | +*OapiApi* | [**replace_cluster_role**](docs/OapiApi.md#replace_cluster_role) | **PUT** /oapi/v1/clusterroles/{name} | +*OapiApi* | [**replace_cluster_role_binding**](docs/OapiApi.md#replace_cluster_role_binding) | **PUT** /oapi/v1/clusterrolebindings/{name} | +*OapiApi* | [**replace_group**](docs/OapiApi.md#replace_group) | **PUT** /oapi/v1/groups/{name} | +*OapiApi* | [**replace_host_subnet**](docs/OapiApi.md#replace_host_subnet) | **PUT** /oapi/v1/hostsubnets/{name} | +*OapiApi* | [**replace_identity**](docs/OapiApi.md#replace_identity) | **PUT** /oapi/v1/identities/{name} | +*OapiApi* | [**replace_image**](docs/OapiApi.md#replace_image) | **PUT** /oapi/v1/images/{name} | +*OapiApi* | [**replace_namespaced_build**](docs/OapiApi.md#replace_namespaced_build) | **PUT** /oapi/v1/namespaces/{namespace}/builds/{name} | +*OapiApi* | [**replace_namespaced_build_config**](docs/OapiApi.md#replace_namespaced_build_config) | **PUT** /oapi/v1/namespaces/{namespace}/buildconfigs/{name} | +*OapiApi* | [**replace_namespaced_build_details**](docs/OapiApi.md#replace_namespaced_build_details) | **PUT** /oapi/v1/namespaces/{namespace}/builds/{name}/details | +*OapiApi* | [**replace_namespaced_deployment_config**](docs/OapiApi.md#replace_namespaced_deployment_config) | **PUT** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name} | +*OapiApi* | [**replace_namespaced_deployment_config_status**](docs/OapiApi.md#replace_namespaced_deployment_config_status) | **PUT** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/status | +*OapiApi* | [**replace_namespaced_egress_network_policy**](docs/OapiApi.md#replace_namespaced_egress_network_policy) | **PUT** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name} | +*OapiApi* | [**replace_namespaced_image_stream**](docs/OapiApi.md#replace_namespaced_image_stream) | **PUT** /oapi/v1/namespaces/{namespace}/imagestreams/{name} | +*OapiApi* | [**replace_namespaced_image_stream_status**](docs/OapiApi.md#replace_namespaced_image_stream_status) | **PUT** /oapi/v1/namespaces/{namespace}/imagestreams/{name}/status | +*OapiApi* | [**replace_namespaced_image_stream_tag**](docs/OapiApi.md#replace_namespaced_image_stream_tag) | **PUT** /oapi/v1/namespaces/{namespace}/imagestreamtags/{name} | +*OapiApi* | [**replace_namespaced_policy**](docs/OapiApi.md#replace_namespaced_policy) | **PUT** /oapi/v1/namespaces/{namespace}/policies/{name} | +*OapiApi* | [**replace_namespaced_policy_binding**](docs/OapiApi.md#replace_namespaced_policy_binding) | **PUT** /oapi/v1/namespaces/{namespace}/policybindings/{name} | +*OapiApi* | [**replace_namespaced_role**](docs/OapiApi.md#replace_namespaced_role) | **PUT** /oapi/v1/namespaces/{namespace}/roles/{name} | +*OapiApi* | [**replace_namespaced_role_binding**](docs/OapiApi.md#replace_namespaced_role_binding) | **PUT** /oapi/v1/namespaces/{namespace}/rolebindings/{name} | +*OapiApi* | [**replace_namespaced_role_binding_restriction**](docs/OapiApi.md#replace_namespaced_role_binding_restriction) | **PUT** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name} | +*OapiApi* | [**replace_namespaced_route**](docs/OapiApi.md#replace_namespaced_route) | **PUT** /oapi/v1/namespaces/{namespace}/routes/{name} | +*OapiApi* | [**replace_namespaced_route_status**](docs/OapiApi.md#replace_namespaced_route_status) | **PUT** /oapi/v1/namespaces/{namespace}/routes/{name}/status | +*OapiApi* | [**replace_namespaced_scale_scale**](docs/OapiApi.md#replace_namespaced_scale_scale) | **PUT** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale | +*OapiApi* | [**replace_namespaced_template**](docs/OapiApi.md#replace_namespaced_template) | **PUT** /oapi/v1/namespaces/{namespace}/templates/{name} | +*OapiApi* | [**replace_net_namespace**](docs/OapiApi.md#replace_net_namespace) | **PUT** /oapi/v1/netnamespaces/{name} | +*OapiApi* | [**replace_o_auth_access_token**](docs/OapiApi.md#replace_o_auth_access_token) | **PUT** /oapi/v1/oauthaccesstokens/{name} | +*OapiApi* | [**replace_o_auth_authorize_token**](docs/OapiApi.md#replace_o_auth_authorize_token) | **PUT** /oapi/v1/oauthauthorizetokens/{name} | +*OapiApi* | [**replace_o_auth_client**](docs/OapiApi.md#replace_o_auth_client) | **PUT** /oapi/v1/oauthclients/{name} | +*OapiApi* | [**replace_o_auth_client_authorization**](docs/OapiApi.md#replace_o_auth_client_authorization) | **PUT** /oapi/v1/oauthclientauthorizations/{name} | +*OapiApi* | [**replace_project**](docs/OapiApi.md#replace_project) | **PUT** /oapi/v1/projects/{name} | +*OapiApi* | [**replace_user**](docs/OapiApi.md#replace_user) | **PUT** /oapi/v1/users/{name} | +*OapiApi* | [**replace_user_identity_mapping**](docs/OapiApi.md#replace_user_identity_mapping) | **PUT** /oapi/v1/useridentitymappings/{name} | +*OsapiApi* | [**get_version**](docs/OsapiApi.md#get_version) | **GET** /osapi/ | *PolicyApi* | [**get_api_group**](docs/PolicyApi.md#get_api_group) | **GET** /apis/policy/ | *PolicyV1beta1Api* | [**create_namespaced_pod_disruption_budget**](docs/PolicyV1beta1Api.md#create_namespaced_pod_disruption_budget) | **POST** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | +*PolicyV1beta1Api* | [**create_pod_disruption_budget_for_all_namespaces**](docs/PolicyV1beta1Api.md#create_pod_disruption_budget_for_all_namespaces) | **POST** /apis/policy/v1beta1/poddisruptionbudgets | *PolicyV1beta1Api* | [**delete_collection_namespaced_pod_disruption_budget**](docs/PolicyV1beta1Api.md#delete_collection_namespaced_pod_disruption_budget) | **DELETE** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | *PolicyV1beta1Api* | [**delete_namespaced_pod_disruption_budget**](docs/PolicyV1beta1Api.md#delete_namespaced_pod_disruption_budget) | **DELETE** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | *PolicyV1beta1Api* | [**get_api_resources**](docs/PolicyV1beta1Api.md#get_api_resources) | **GET** /apis/policy/v1beta1/ | @@ -516,88 +830,7 @@ Class | Method | HTTP request | Description *PolicyV1beta1Api* | [**read_namespaced_pod_disruption_budget_status**](docs/PolicyV1beta1Api.md#read_namespaced_pod_disruption_budget_status) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | *PolicyV1beta1Api* | [**replace_namespaced_pod_disruption_budget**](docs/PolicyV1beta1Api.md#replace_namespaced_pod_disruption_budget) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | *PolicyV1beta1Api* | [**replace_namespaced_pod_disruption_budget_status**](docs/PolicyV1beta1Api.md#replace_namespaced_pod_disruption_budget_status) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -*RbacAuthorizationApi* | [**get_api_group**](docs/RbacAuthorizationApi.md#get_api_group) | **GET** /apis/rbac.authorization.k8s.io/ | -*RbacAuthorizationV1alpha1Api* | [**create_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#create_cluster_role) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | -*RbacAuthorizationV1alpha1Api* | [**create_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#create_cluster_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | -*RbacAuthorizationV1alpha1Api* | [**create_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#create_namespaced_role) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | -*RbacAuthorizationV1alpha1Api* | [**create_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#create_namespaced_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | -*RbacAuthorizationV1alpha1Api* | [**delete_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#delete_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -*RbacAuthorizationV1alpha1Api* | [**delete_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#delete_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -*RbacAuthorizationV1alpha1Api* | [**delete_collection_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#delete_collection_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | -*RbacAuthorizationV1alpha1Api* | [**delete_collection_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#delete_collection_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | -*RbacAuthorizationV1alpha1Api* | [**delete_collection_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#delete_collection_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | -*RbacAuthorizationV1alpha1Api* | [**delete_collection_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#delete_collection_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | -*RbacAuthorizationV1alpha1Api* | [**delete_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#delete_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -*RbacAuthorizationV1alpha1Api* | [**delete_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#delete_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -*RbacAuthorizationV1alpha1Api* | [**get_api_resources**](docs/RbacAuthorizationV1alpha1Api.md#get_api_resources) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/ | -*RbacAuthorizationV1alpha1Api* | [**list_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#list_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | -*RbacAuthorizationV1alpha1Api* | [**list_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#list_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | -*RbacAuthorizationV1alpha1Api* | [**list_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#list_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | -*RbacAuthorizationV1alpha1Api* | [**list_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#list_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | -*RbacAuthorizationV1alpha1Api* | [**list_role_binding_for_all_namespaces**](docs/RbacAuthorizationV1alpha1Api.md#list_role_binding_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/rolebindings | -*RbacAuthorizationV1alpha1Api* | [**list_role_for_all_namespaces**](docs/RbacAuthorizationV1alpha1Api.md#list_role_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/roles | -*RbacAuthorizationV1alpha1Api* | [**patch_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#patch_cluster_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -*RbacAuthorizationV1alpha1Api* | [**patch_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#patch_cluster_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -*RbacAuthorizationV1alpha1Api* | [**patch_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#patch_namespaced_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -*RbacAuthorizationV1alpha1Api* | [**patch_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#patch_namespaced_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -*RbacAuthorizationV1alpha1Api* | [**read_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#read_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -*RbacAuthorizationV1alpha1Api* | [**read_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#read_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -*RbacAuthorizationV1alpha1Api* | [**read_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#read_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -*RbacAuthorizationV1alpha1Api* | [**read_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#read_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -*RbacAuthorizationV1alpha1Api* | [**replace_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#replace_cluster_role) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -*RbacAuthorizationV1alpha1Api* | [**replace_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#replace_cluster_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -*RbacAuthorizationV1alpha1Api* | [**replace_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#replace_namespaced_role) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -*RbacAuthorizationV1alpha1Api* | [**replace_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#replace_namespaced_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -*RbacAuthorizationV1beta1Api* | [**create_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#create_cluster_role) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | -*RbacAuthorizationV1beta1Api* | [**create_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#create_cluster_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | -*RbacAuthorizationV1beta1Api* | [**create_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#create_namespaced_role) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | -*RbacAuthorizationV1beta1Api* | [**create_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#create_namespaced_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | -*RbacAuthorizationV1beta1Api* | [**delete_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#delete_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -*RbacAuthorizationV1beta1Api* | [**delete_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#delete_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -*RbacAuthorizationV1beta1Api* | [**delete_collection_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#delete_collection_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | -*RbacAuthorizationV1beta1Api* | [**delete_collection_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#delete_collection_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | -*RbacAuthorizationV1beta1Api* | [**delete_collection_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#delete_collection_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | -*RbacAuthorizationV1beta1Api* | [**delete_collection_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#delete_collection_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | -*RbacAuthorizationV1beta1Api* | [**delete_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#delete_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -*RbacAuthorizationV1beta1Api* | [**delete_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#delete_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -*RbacAuthorizationV1beta1Api* | [**get_api_resources**](docs/RbacAuthorizationV1beta1Api.md#get_api_resources) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/ | -*RbacAuthorizationV1beta1Api* | [**list_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#list_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | -*RbacAuthorizationV1beta1Api* | [**list_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#list_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | -*RbacAuthorizationV1beta1Api* | [**list_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#list_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | -*RbacAuthorizationV1beta1Api* | [**list_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#list_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | -*RbacAuthorizationV1beta1Api* | [**list_role_binding_for_all_namespaces**](docs/RbacAuthorizationV1beta1Api.md#list_role_binding_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/rolebindings | -*RbacAuthorizationV1beta1Api* | [**list_role_for_all_namespaces**](docs/RbacAuthorizationV1beta1Api.md#list_role_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/roles | -*RbacAuthorizationV1beta1Api* | [**patch_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#patch_cluster_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -*RbacAuthorizationV1beta1Api* | [**patch_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#patch_cluster_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -*RbacAuthorizationV1beta1Api* | [**patch_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#patch_namespaced_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -*RbacAuthorizationV1beta1Api* | [**patch_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#patch_namespaced_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -*RbacAuthorizationV1beta1Api* | [**read_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#read_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -*RbacAuthorizationV1beta1Api* | [**read_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#read_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -*RbacAuthorizationV1beta1Api* | [**read_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#read_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -*RbacAuthorizationV1beta1Api* | [**read_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#read_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -*RbacAuthorizationV1beta1Api* | [**replace_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#replace_cluster_role) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -*RbacAuthorizationV1beta1Api* | [**replace_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#replace_cluster_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -*RbacAuthorizationV1beta1Api* | [**replace_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#replace_namespaced_role) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -*RbacAuthorizationV1beta1Api* | [**replace_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#replace_namespaced_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -*SettingsApi* | [**get_api_group**](docs/SettingsApi.md#get_api_group) | **GET** /apis/settings.k8s.io/ | -*SettingsV1alpha1Api* | [**create_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#create_namespaced_pod_preset) | **POST** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | -*SettingsV1alpha1Api* | [**delete_collection_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#delete_collection_namespaced_pod_preset) | **DELETE** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | -*SettingsV1alpha1Api* | [**delete_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#delete_namespaced_pod_preset) | **DELETE** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -*SettingsV1alpha1Api* | [**get_api_resources**](docs/SettingsV1alpha1Api.md#get_api_resources) | **GET** /apis/settings.k8s.io/v1alpha1/ | -*SettingsV1alpha1Api* | [**list_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#list_namespaced_pod_preset) | **GET** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | -*SettingsV1alpha1Api* | [**list_pod_preset_for_all_namespaces**](docs/SettingsV1alpha1Api.md#list_pod_preset_for_all_namespaces) | **GET** /apis/settings.k8s.io/v1alpha1/podpresets | -*SettingsV1alpha1Api* | [**patch_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#patch_namespaced_pod_preset) | **PATCH** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -*SettingsV1alpha1Api* | [**read_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#read_namespaced_pod_preset) | **GET** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -*SettingsV1alpha1Api* | [**replace_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#replace_namespaced_pod_preset) | **PUT** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | *StorageApi* | [**get_api_group**](docs/StorageApi.md#get_api_group) | **GET** /apis/storage.k8s.io/ | -*StorageV1Api* | [**create_storage_class**](docs/StorageV1Api.md#create_storage_class) | **POST** /apis/storage.k8s.io/v1/storageclasses | -*StorageV1Api* | [**delete_collection_storage_class**](docs/StorageV1Api.md#delete_collection_storage_class) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | -*StorageV1Api* | [**delete_storage_class**](docs/StorageV1Api.md#delete_storage_class) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | -*StorageV1Api* | [**get_api_resources**](docs/StorageV1Api.md#get_api_resources) | **GET** /apis/storage.k8s.io/v1/ | -*StorageV1Api* | [**list_storage_class**](docs/StorageV1Api.md#list_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses | -*StorageV1Api* | [**patch_storage_class**](docs/StorageV1Api.md#patch_storage_class) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | -*StorageV1Api* | [**read_storage_class**](docs/StorageV1Api.md#read_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | -*StorageV1Api* | [**replace_storage_class**](docs/StorageV1Api.md#replace_storage_class) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | *StorageV1beta1Api* | [**create_storage_class**](docs/StorageV1beta1Api.md#create_storage_class) | **POST** /apis/storage.k8s.io/v1beta1/storageclasses | *StorageV1beta1Api* | [**delete_collection_storage_class**](docs/StorageV1beta1Api.md#delete_collection_storage_class) | **DELETE** /apis/storage.k8s.io/v1beta1/storageclasses | *StorageV1beta1Api* | [**delete_storage_class**](docs/StorageV1beta1Api.md#delete_storage_class) | **DELETE** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | @@ -616,53 +849,71 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [AppsV1beta1Deployment](docs/AppsV1beta1Deployment.md) - - [AppsV1beta1DeploymentCondition](docs/AppsV1beta1DeploymentCondition.md) - - [AppsV1beta1DeploymentList](docs/AppsV1beta1DeploymentList.md) - - [AppsV1beta1DeploymentRollback](docs/AppsV1beta1DeploymentRollback.md) - - [AppsV1beta1DeploymentSpec](docs/AppsV1beta1DeploymentSpec.md) - - [AppsV1beta1DeploymentStatus](docs/AppsV1beta1DeploymentStatus.md) - - [AppsV1beta1DeploymentStrategy](docs/AppsV1beta1DeploymentStrategy.md) - - [AppsV1beta1RollbackConfig](docs/AppsV1beta1RollbackConfig.md) - - [AppsV1beta1RollingUpdateDeployment](docs/AppsV1beta1RollingUpdateDeployment.md) - - [AppsV1beta1Scale](docs/AppsV1beta1Scale.md) - - [AppsV1beta1ScaleSpec](docs/AppsV1beta1ScaleSpec.md) - - [AppsV1beta1ScaleStatus](docs/AppsV1beta1ScaleStatus.md) - - [ExtensionsV1beta1Deployment](docs/ExtensionsV1beta1Deployment.md) - - [ExtensionsV1beta1DeploymentCondition](docs/ExtensionsV1beta1DeploymentCondition.md) - - [ExtensionsV1beta1DeploymentList](docs/ExtensionsV1beta1DeploymentList.md) - - [ExtensionsV1beta1DeploymentRollback](docs/ExtensionsV1beta1DeploymentRollback.md) - - [ExtensionsV1beta1DeploymentSpec](docs/ExtensionsV1beta1DeploymentSpec.md) - - [ExtensionsV1beta1DeploymentStatus](docs/ExtensionsV1beta1DeploymentStatus.md) - - [ExtensionsV1beta1DeploymentStrategy](docs/ExtensionsV1beta1DeploymentStrategy.md) - - [ExtensionsV1beta1RollbackConfig](docs/ExtensionsV1beta1RollbackConfig.md) - - [ExtensionsV1beta1RollingUpdateDeployment](docs/ExtensionsV1beta1RollingUpdateDeployment.md) - - [ExtensionsV1beta1Scale](docs/ExtensionsV1beta1Scale.md) - - [ExtensionsV1beta1ScaleSpec](docs/ExtensionsV1beta1ScaleSpec.md) - - [ExtensionsV1beta1ScaleStatus](docs/ExtensionsV1beta1ScaleStatus.md) - [RuntimeRawExtension](docs/RuntimeRawExtension.md) - - [V1APIGroup](docs/V1APIGroup.md) - - [V1APIGroupList](docs/V1APIGroupList.md) - - [V1APIResource](docs/V1APIResource.md) - - [V1APIResourceList](docs/V1APIResourceList.md) - - [V1APIVersions](docs/V1APIVersions.md) + - [UnversionedAPIGroup](docs/UnversionedAPIGroup.md) + - [UnversionedAPIGroupList](docs/UnversionedAPIGroupList.md) + - [UnversionedAPIResource](docs/UnversionedAPIResource.md) + - [UnversionedAPIResourceList](docs/UnversionedAPIResourceList.md) + - [UnversionedAPIVersions](docs/UnversionedAPIVersions.md) + - [UnversionedGroupVersionForDiscovery](docs/UnversionedGroupVersionForDiscovery.md) + - [UnversionedLabelSelector](docs/UnversionedLabelSelector.md) + - [UnversionedLabelSelectorRequirement](docs/UnversionedLabelSelectorRequirement.md) + - [UnversionedListMeta](docs/UnversionedListMeta.md) + - [UnversionedServerAddressByClientCIDR](docs/UnversionedServerAddressByClientCIDR.md) + - [UnversionedStatus](docs/UnversionedStatus.md) + - [UnversionedStatusCause](docs/UnversionedStatusCause.md) + - [UnversionedStatusDetails](docs/UnversionedStatusDetails.md) - [V1AWSElasticBlockStoreVolumeSource](docs/V1AWSElasticBlockStoreVolumeSource.md) - - [V1Affinity](docs/V1Affinity.md) + - [V1AppliedClusterResourceQuota](docs/V1AppliedClusterResourceQuota.md) + - [V1AppliedClusterResourceQuotaList](docs/V1AppliedClusterResourceQuotaList.md) - [V1AttachedVolume](docs/V1AttachedVolume.md) - [V1AzureDiskVolumeSource](docs/V1AzureDiskVolumeSource.md) - [V1AzureFileVolumeSource](docs/V1AzureFileVolumeSource.md) + - [V1BinaryBuildSource](docs/V1BinaryBuildSource.md) - [V1Binding](docs/V1Binding.md) + - [V1Build](docs/V1Build.md) + - [V1BuildConfig](docs/V1BuildConfig.md) + - [V1BuildConfigList](docs/V1BuildConfigList.md) + - [V1BuildConfigSpec](docs/V1BuildConfigSpec.md) + - [V1BuildConfigStatus](docs/V1BuildConfigStatus.md) + - [V1BuildList](docs/V1BuildList.md) + - [V1BuildLog](docs/V1BuildLog.md) + - [V1BuildOutput](docs/V1BuildOutput.md) + - [V1BuildPostCommitSpec](docs/V1BuildPostCommitSpec.md) + - [V1BuildRequest](docs/V1BuildRequest.md) + - [V1BuildSource](docs/V1BuildSource.md) + - [V1BuildSpec](docs/V1BuildSpec.md) + - [V1BuildStatus](docs/V1BuildStatus.md) + - [V1BuildStatusOutput](docs/V1BuildStatusOutput.md) + - [V1BuildStatusOutputTo](docs/V1BuildStatusOutputTo.md) + - [V1BuildStrategy](docs/V1BuildStrategy.md) + - [V1BuildTriggerCause](docs/V1BuildTriggerCause.md) + - [V1BuildTriggerPolicy](docs/V1BuildTriggerPolicy.md) - [V1Capabilities](docs/V1Capabilities.md) - [V1CephFSVolumeSource](docs/V1CephFSVolumeSource.md) - [V1CinderVolumeSource](docs/V1CinderVolumeSource.md) + - [V1ClusterNetwork](docs/V1ClusterNetwork.md) + - [V1ClusterNetworkList](docs/V1ClusterNetworkList.md) + - [V1ClusterPolicy](docs/V1ClusterPolicy.md) + - [V1ClusterPolicyBinding](docs/V1ClusterPolicyBinding.md) + - [V1ClusterPolicyBindingList](docs/V1ClusterPolicyBindingList.md) + - [V1ClusterPolicyList](docs/V1ClusterPolicyList.md) + - [V1ClusterResourceQuota](docs/V1ClusterResourceQuota.md) + - [V1ClusterResourceQuotaList](docs/V1ClusterResourceQuotaList.md) + - [V1ClusterResourceQuotaSelector](docs/V1ClusterResourceQuotaSelector.md) + - [V1ClusterResourceQuotaSpec](docs/V1ClusterResourceQuotaSpec.md) + - [V1ClusterResourceQuotaStatus](docs/V1ClusterResourceQuotaStatus.md) + - [V1ClusterRole](docs/V1ClusterRole.md) + - [V1ClusterRoleBinding](docs/V1ClusterRoleBinding.md) + - [V1ClusterRoleBindingList](docs/V1ClusterRoleBindingList.md) + - [V1ClusterRoleList](docs/V1ClusterRoleList.md) + - [V1ClusterRoleScopeRestriction](docs/V1ClusterRoleScopeRestriction.md) - [V1ComponentCondition](docs/V1ComponentCondition.md) - [V1ComponentStatus](docs/V1ComponentStatus.md) - [V1ComponentStatusList](docs/V1ComponentStatusList.md) - [V1ConfigMap](docs/V1ConfigMap.md) - - [V1ConfigMapEnvSource](docs/V1ConfigMapEnvSource.md) - [V1ConfigMapKeySelector](docs/V1ConfigMapKeySelector.md) - [V1ConfigMapList](docs/V1ConfigMapList.md) - - [V1ConfigMapProjection](docs/V1ConfigMapProjection.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1Container](docs/V1Container.md) - [V1ContainerImage](docs/V1ContainerImage.md) @@ -673,31 +924,62 @@ Class | Method | HTTP request | Description - [V1ContainerStateWaiting](docs/V1ContainerStateWaiting.md) - [V1ContainerStatus](docs/V1ContainerStatus.md) - [V1CrossVersionObjectReference](docs/V1CrossVersionObjectReference.md) + - [V1CustomBuildStrategy](docs/V1CustomBuildStrategy.md) + - [V1CustomDeploymentStrategyParams](docs/V1CustomDeploymentStrategyParams.md) - [V1DaemonEndpoint](docs/V1DaemonEndpoint.md) - [V1DeleteOptions](docs/V1DeleteOptions.md) - - [V1DownwardAPIProjection](docs/V1DownwardAPIProjection.md) + - [V1DeploymentCause](docs/V1DeploymentCause.md) + - [V1DeploymentCauseImageTrigger](docs/V1DeploymentCauseImageTrigger.md) + - [V1DeploymentCondition](docs/V1DeploymentCondition.md) + - [V1DeploymentConfig](docs/V1DeploymentConfig.md) + - [V1DeploymentConfigList](docs/V1DeploymentConfigList.md) + - [V1DeploymentConfigRollback](docs/V1DeploymentConfigRollback.md) + - [V1DeploymentConfigRollbackSpec](docs/V1DeploymentConfigRollbackSpec.md) + - [V1DeploymentConfigSpec](docs/V1DeploymentConfigSpec.md) + - [V1DeploymentConfigStatus](docs/V1DeploymentConfigStatus.md) + - [V1DeploymentDetails](docs/V1DeploymentDetails.md) + - [V1DeploymentLog](docs/V1DeploymentLog.md) + - [V1DeploymentRequest](docs/V1DeploymentRequest.md) + - [V1DeploymentStrategy](docs/V1DeploymentStrategy.md) + - [V1DeploymentTriggerImageChangeParams](docs/V1DeploymentTriggerImageChangeParams.md) + - [V1DeploymentTriggerPolicy](docs/V1DeploymentTriggerPolicy.md) + - [V1DeprecatedDownwardAPIVolumeFile](docs/V1DeprecatedDownwardAPIVolumeFile.md) + - [V1DeprecatedDownwardAPIVolumeSource](docs/V1DeprecatedDownwardAPIVolumeSource.md) + - [V1DockerBuildStrategy](docs/V1DockerBuildStrategy.md) - [V1DownwardAPIVolumeFile](docs/V1DownwardAPIVolumeFile.md) - [V1DownwardAPIVolumeSource](docs/V1DownwardAPIVolumeSource.md) + - [V1EgressNetworkPolicy](docs/V1EgressNetworkPolicy.md) + - [V1EgressNetworkPolicyList](docs/V1EgressNetworkPolicyList.md) + - [V1EgressNetworkPolicyPeer](docs/V1EgressNetworkPolicyPeer.md) + - [V1EgressNetworkPolicyRule](docs/V1EgressNetworkPolicyRule.md) + - [V1EgressNetworkPolicySpec](docs/V1EgressNetworkPolicySpec.md) - [V1EmptyDirVolumeSource](docs/V1EmptyDirVolumeSource.md) - [V1EndpointAddress](docs/V1EndpointAddress.md) - [V1EndpointPort](docs/V1EndpointPort.md) - [V1EndpointSubset](docs/V1EndpointSubset.md) - [V1Endpoints](docs/V1Endpoints.md) - [V1EndpointsList](docs/V1EndpointsList.md) - - [V1EnvFromSource](docs/V1EnvFromSource.md) - [V1EnvVar](docs/V1EnvVar.md) - [V1EnvVarSource](docs/V1EnvVarSource.md) - [V1Event](docs/V1Event.md) - [V1EventList](docs/V1EventList.md) - [V1EventSource](docs/V1EventSource.md) - [V1ExecAction](docs/V1ExecAction.md) + - [V1ExecNewPodHook](docs/V1ExecNewPodHook.md) - [V1FCVolumeSource](docs/V1FCVolumeSource.md) + - [V1FSGroupStrategyOptions](docs/V1FSGroupStrategyOptions.md) - [V1FlexVolumeSource](docs/V1FlexVolumeSource.md) - [V1FlockerVolumeSource](docs/V1FlockerVolumeSource.md) - [V1GCEPersistentDiskVolumeSource](docs/V1GCEPersistentDiskVolumeSource.md) + - [V1GenericWebHookCause](docs/V1GenericWebHookCause.md) + - [V1GitBuildSource](docs/V1GitBuildSource.md) + - [V1GitHubWebHookCause](docs/V1GitHubWebHookCause.md) - [V1GitRepoVolumeSource](docs/V1GitRepoVolumeSource.md) + - [V1GitSourceRevision](docs/V1GitSourceRevision.md) - [V1GlusterfsVolumeSource](docs/V1GlusterfsVolumeSource.md) - - [V1GroupVersionForDiscovery](docs/V1GroupVersionForDiscovery.md) + - [V1Group](docs/V1Group.md) + - [V1GroupList](docs/V1GroupList.md) + - [V1GroupRestriction](docs/V1GroupRestriction.md) - [V1HTTPGetAction](docs/V1HTTPGetAction.md) - [V1HTTPHeader](docs/V1HTTPHeader.md) - [V1Handler](docs/V1Handler.md) @@ -706,47 +988,85 @@ Class | Method | HTTP request | Description - [V1HorizontalPodAutoscalerSpec](docs/V1HorizontalPodAutoscalerSpec.md) - [V1HorizontalPodAutoscalerStatus](docs/V1HorizontalPodAutoscalerStatus.md) - [V1HostPathVolumeSource](docs/V1HostPathVolumeSource.md) + - [V1HostSubnet](docs/V1HostSubnet.md) + - [V1HostSubnetList](docs/V1HostSubnetList.md) + - [V1IDRange](docs/V1IDRange.md) - [V1ISCSIVolumeSource](docs/V1ISCSIVolumeSource.md) + - [V1Identity](docs/V1Identity.md) + - [V1IdentityList](docs/V1IdentityList.md) + - [V1Image](docs/V1Image.md) + - [V1ImageChangeCause](docs/V1ImageChangeCause.md) + - [V1ImageChangeTrigger](docs/V1ImageChangeTrigger.md) + - [V1ImageImportSpec](docs/V1ImageImportSpec.md) + - [V1ImageImportStatus](docs/V1ImageImportStatus.md) + - [V1ImageLabel](docs/V1ImageLabel.md) + - [V1ImageLayer](docs/V1ImageLayer.md) + - [V1ImageList](docs/V1ImageList.md) + - [V1ImageSignature](docs/V1ImageSignature.md) + - [V1ImageSource](docs/V1ImageSource.md) + - [V1ImageSourcePath](docs/V1ImageSourcePath.md) + - [V1ImageStream](docs/V1ImageStream.md) + - [V1ImageStreamImage](docs/V1ImageStreamImage.md) + - [V1ImageStreamImport](docs/V1ImageStreamImport.md) + - [V1ImageStreamImportSpec](docs/V1ImageStreamImportSpec.md) + - [V1ImageStreamImportStatus](docs/V1ImageStreamImportStatus.md) + - [V1ImageStreamList](docs/V1ImageStreamList.md) + - [V1ImageStreamMapping](docs/V1ImageStreamMapping.md) + - [V1ImageStreamSpec](docs/V1ImageStreamSpec.md) + - [V1ImageStreamStatus](docs/V1ImageStreamStatus.md) + - [V1ImageStreamTag](docs/V1ImageStreamTag.md) + - [V1ImageStreamTagList](docs/V1ImageStreamTagList.md) + - [V1JenkinsPipelineBuildStrategy](docs/V1JenkinsPipelineBuildStrategy.md) - [V1Job](docs/V1Job.md) - [V1JobCondition](docs/V1JobCondition.md) - [V1JobList](docs/V1JobList.md) - [V1JobSpec](docs/V1JobSpec.md) - [V1JobStatus](docs/V1JobStatus.md) - [V1KeyToPath](docs/V1KeyToPath.md) - - [V1LabelSelector](docs/V1LabelSelector.md) - - [V1LabelSelectorRequirement](docs/V1LabelSelectorRequirement.md) - [V1Lifecycle](docs/V1Lifecycle.md) + - [V1LifecycleHook](docs/V1LifecycleHook.md) - [V1LimitRange](docs/V1LimitRange.md) - [V1LimitRangeItem](docs/V1LimitRangeItem.md) - [V1LimitRangeList](docs/V1LimitRangeList.md) - [V1LimitRangeSpec](docs/V1LimitRangeSpec.md) - - [V1ListMeta](docs/V1ListMeta.md) - [V1LoadBalancerIngress](docs/V1LoadBalancerIngress.md) - [V1LoadBalancerStatus](docs/V1LoadBalancerStatus.md) - [V1LocalObjectReference](docs/V1LocalObjectReference.md) + - [V1LocalResourceAccessReview](docs/V1LocalResourceAccessReview.md) - [V1LocalSubjectAccessReview](docs/V1LocalSubjectAccessReview.md) - [V1NFSVolumeSource](docs/V1NFSVolumeSource.md) + - [V1NamedClusterRole](docs/V1NamedClusterRole.md) + - [V1NamedClusterRoleBinding](docs/V1NamedClusterRoleBinding.md) + - [V1NamedRole](docs/V1NamedRole.md) + - [V1NamedRoleBinding](docs/V1NamedRoleBinding.md) + - [V1NamedTagEventList](docs/V1NamedTagEventList.md) - [V1Namespace](docs/V1Namespace.md) - [V1NamespaceList](docs/V1NamespaceList.md) - [V1NamespaceSpec](docs/V1NamespaceSpec.md) - [V1NamespaceStatus](docs/V1NamespaceStatus.md) + - [V1NetNamespace](docs/V1NetNamespace.md) + - [V1NetNamespaceList](docs/V1NetNamespaceList.md) - [V1Node](docs/V1Node.md) - [V1NodeAddress](docs/V1NodeAddress.md) - - [V1NodeAffinity](docs/V1NodeAffinity.md) - [V1NodeCondition](docs/V1NodeCondition.md) - [V1NodeDaemonEndpoints](docs/V1NodeDaemonEndpoints.md) - [V1NodeList](docs/V1NodeList.md) - - [V1NodeSelector](docs/V1NodeSelector.md) - - [V1NodeSelectorRequirement](docs/V1NodeSelectorRequirement.md) - - [V1NodeSelectorTerm](docs/V1NodeSelectorTerm.md) - [V1NodeSpec](docs/V1NodeSpec.md) - [V1NodeStatus](docs/V1NodeStatus.md) - [V1NodeSystemInfo](docs/V1NodeSystemInfo.md) - - [V1NonResourceAttributes](docs/V1NonResourceAttributes.md) + - [V1OAuthAccessToken](docs/V1OAuthAccessToken.md) + - [V1OAuthAccessTokenList](docs/V1OAuthAccessTokenList.md) + - [V1OAuthAuthorizeToken](docs/V1OAuthAuthorizeToken.md) + - [V1OAuthAuthorizeTokenList](docs/V1OAuthAuthorizeTokenList.md) + - [V1OAuthClient](docs/V1OAuthClient.md) + - [V1OAuthClientAuthorization](docs/V1OAuthClientAuthorization.md) + - [V1OAuthClientAuthorizationList](docs/V1OAuthClientAuthorizationList.md) + - [V1OAuthClientList](docs/V1OAuthClientList.md) - [V1ObjectFieldSelector](docs/V1ObjectFieldSelector.md) - [V1ObjectMeta](docs/V1ObjectMeta.md) - [V1ObjectReference](docs/V1ObjectReference.md) - [V1OwnerReference](docs/V1OwnerReference.md) + - [V1Parameter](docs/V1Parameter.md) - [V1PersistentVolume](docs/V1PersistentVolume.md) - [V1PersistentVolumeClaim](docs/V1PersistentVolumeClaim.md) - [V1PersistentVolumeClaimList](docs/V1PersistentVolumeClaimList.md) @@ -758,112 +1078,151 @@ Class | Method | HTTP request | Description - [V1PersistentVolumeStatus](docs/V1PersistentVolumeStatus.md) - [V1PhotonPersistentDiskVolumeSource](docs/V1PhotonPersistentDiskVolumeSource.md) - [V1Pod](docs/V1Pod.md) - - [V1PodAffinity](docs/V1PodAffinity.md) - - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) - - [V1PodAntiAffinity](docs/V1PodAntiAffinity.md) - [V1PodCondition](docs/V1PodCondition.md) - [V1PodList](docs/V1PodList.md) - [V1PodSecurityContext](docs/V1PodSecurityContext.md) + - [V1PodSecurityPolicyReview](docs/V1PodSecurityPolicyReview.md) + - [V1PodSecurityPolicyReviewSpec](docs/V1PodSecurityPolicyReviewSpec.md) + - [V1PodSecurityPolicyReviewStatus](docs/V1PodSecurityPolicyReviewStatus.md) + - [V1PodSecurityPolicySelfSubjectReview](docs/V1PodSecurityPolicySelfSubjectReview.md) + - [V1PodSecurityPolicySelfSubjectReviewSpec](docs/V1PodSecurityPolicySelfSubjectReviewSpec.md) + - [V1PodSecurityPolicySubjectReview](docs/V1PodSecurityPolicySubjectReview.md) + - [V1PodSecurityPolicySubjectReviewSpec](docs/V1PodSecurityPolicySubjectReviewSpec.md) + - [V1PodSecurityPolicySubjectReviewStatus](docs/V1PodSecurityPolicySubjectReviewStatus.md) - [V1PodSpec](docs/V1PodSpec.md) - [V1PodStatus](docs/V1PodStatus.md) - [V1PodTemplate](docs/V1PodTemplate.md) - [V1PodTemplateList](docs/V1PodTemplateList.md) - [V1PodTemplateSpec](docs/V1PodTemplateSpec.md) - - [V1PortworxVolumeSource](docs/V1PortworxVolumeSource.md) + - [V1Policy](docs/V1Policy.md) + - [V1PolicyBinding](docs/V1PolicyBinding.md) + - [V1PolicyBindingList](docs/V1PolicyBindingList.md) + - [V1PolicyList](docs/V1PolicyList.md) + - [V1PolicyRule](docs/V1PolicyRule.md) - [V1Preconditions](docs/V1Preconditions.md) - - [V1PreferredSchedulingTerm](docs/V1PreferredSchedulingTerm.md) - [V1Probe](docs/V1Probe.md) - - [V1ProjectedVolumeSource](docs/V1ProjectedVolumeSource.md) + - [V1Project](docs/V1Project.md) + - [V1ProjectList](docs/V1ProjectList.md) + - [V1ProjectRequest](docs/V1ProjectRequest.md) + - [V1ProjectSpec](docs/V1ProjectSpec.md) + - [V1ProjectStatus](docs/V1ProjectStatus.md) - [V1QuobyteVolumeSource](docs/V1QuobyteVolumeSource.md) - [V1RBDVolumeSource](docs/V1RBDVolumeSource.md) + - [V1RecreateDeploymentStrategyParams](docs/V1RecreateDeploymentStrategyParams.md) - [V1ReplicationController](docs/V1ReplicationController.md) - [V1ReplicationControllerCondition](docs/V1ReplicationControllerCondition.md) - [V1ReplicationControllerList](docs/V1ReplicationControllerList.md) - [V1ReplicationControllerSpec](docs/V1ReplicationControllerSpec.md) - [V1ReplicationControllerStatus](docs/V1ReplicationControllerStatus.md) - - [V1ResourceAttributes](docs/V1ResourceAttributes.md) + - [V1RepositoryImportSpec](docs/V1RepositoryImportSpec.md) + - [V1RepositoryImportStatus](docs/V1RepositoryImportStatus.md) + - [V1ResourceAccessReview](docs/V1ResourceAccessReview.md) - [V1ResourceFieldSelector](docs/V1ResourceFieldSelector.md) - [V1ResourceQuota](docs/V1ResourceQuota.md) - [V1ResourceQuotaList](docs/V1ResourceQuotaList.md) - [V1ResourceQuotaSpec](docs/V1ResourceQuotaSpec.md) - [V1ResourceQuotaStatus](docs/V1ResourceQuotaStatus.md) + - [V1ResourceQuotaStatusByNamespace](docs/V1ResourceQuotaStatusByNamespace.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) + - [V1Role](docs/V1Role.md) + - [V1RoleBinding](docs/V1RoleBinding.md) + - [V1RoleBindingList](docs/V1RoleBindingList.md) + - [V1RoleBindingRestriction](docs/V1RoleBindingRestriction.md) + - [V1RoleBindingRestrictionList](docs/V1RoleBindingRestrictionList.md) + - [V1RoleBindingRestrictionSpec](docs/V1RoleBindingRestrictionSpec.md) + - [V1RoleList](docs/V1RoleList.md) + - [V1RollingDeploymentStrategyParams](docs/V1RollingDeploymentStrategyParams.md) + - [V1Route](docs/V1Route.md) + - [V1RouteIngress](docs/V1RouteIngress.md) + - [V1RouteIngressCondition](docs/V1RouteIngressCondition.md) + - [V1RouteList](docs/V1RouteList.md) + - [V1RoutePort](docs/V1RoutePort.md) + - [V1RouteSpec](docs/V1RouteSpec.md) + - [V1RouteStatus](docs/V1RouteStatus.md) + - [V1RouteTargetReference](docs/V1RouteTargetReference.md) + - [V1RunAsUserStrategyOptions](docs/V1RunAsUserStrategyOptions.md) + - [V1SELinuxContextStrategyOptions](docs/V1SELinuxContextStrategyOptions.md) - [V1SELinuxOptions](docs/V1SELinuxOptions.md) - [V1Scale](docs/V1Scale.md) - - [V1ScaleIOVolumeSource](docs/V1ScaleIOVolumeSource.md) - [V1ScaleSpec](docs/V1ScaleSpec.md) - [V1ScaleStatus](docs/V1ScaleStatus.md) + - [V1ScopeRestriction](docs/V1ScopeRestriction.md) - [V1Secret](docs/V1Secret.md) - - [V1SecretEnvSource](docs/V1SecretEnvSource.md) + - [V1SecretBuildSource](docs/V1SecretBuildSource.md) - [V1SecretKeySelector](docs/V1SecretKeySelector.md) - [V1SecretList](docs/V1SecretList.md) - - [V1SecretProjection](docs/V1SecretProjection.md) + - [V1SecretSpec](docs/V1SecretSpec.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1SecurityContext](docs/V1SecurityContext.md) - - [V1SelfSubjectAccessReview](docs/V1SelfSubjectAccessReview.md) - - [V1SelfSubjectAccessReviewSpec](docs/V1SelfSubjectAccessReviewSpec.md) - - [V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) + - [V1SecurityContextConstraints](docs/V1SecurityContextConstraints.md) + - [V1SecurityContextConstraintsList](docs/V1SecurityContextConstraintsList.md) + - [V1SelfSubjectRulesReview](docs/V1SelfSubjectRulesReview.md) + - [V1SelfSubjectRulesReviewSpec](docs/V1SelfSubjectRulesReviewSpec.md) - [V1Service](docs/V1Service.md) - [V1ServiceAccount](docs/V1ServiceAccount.md) - [V1ServiceAccountList](docs/V1ServiceAccountList.md) + - [V1ServiceAccountPodSecurityPolicyReviewStatus](docs/V1ServiceAccountPodSecurityPolicyReviewStatus.md) + - [V1ServiceAccountReference](docs/V1ServiceAccountReference.md) + - [V1ServiceAccountRestriction](docs/V1ServiceAccountRestriction.md) - [V1ServiceList](docs/V1ServiceList.md) - [V1ServicePort](docs/V1ServicePort.md) - [V1ServiceSpec](docs/V1ServiceSpec.md) - [V1ServiceStatus](docs/V1ServiceStatus.md) - - [V1Status](docs/V1Status.md) - - [V1StatusCause](docs/V1StatusCause.md) - - [V1StatusDetails](docs/V1StatusDetails.md) - - [V1StorageClass](docs/V1StorageClass.md) - - [V1StorageClassList](docs/V1StorageClassList.md) + - [V1SignatureCondition](docs/V1SignatureCondition.md) + - [V1SignatureIssuer](docs/V1SignatureIssuer.md) + - [V1SignatureSubject](docs/V1SignatureSubject.md) + - [V1SourceBuildStrategy](docs/V1SourceBuildStrategy.md) + - [V1SourceControlUser](docs/V1SourceControlUser.md) + - [V1SourceRevision](docs/V1SourceRevision.md) - [V1SubjectAccessReview](docs/V1SubjectAccessReview.md) - - [V1SubjectAccessReviewSpec](docs/V1SubjectAccessReviewSpec.md) - - [V1SubjectAccessReviewStatus](docs/V1SubjectAccessReviewStatus.md) + - [V1SubjectRulesReview](docs/V1SubjectRulesReview.md) + - [V1SubjectRulesReviewSpec](docs/V1SubjectRulesReviewSpec.md) + - [V1SubjectRulesReviewStatus](docs/V1SubjectRulesReviewStatus.md) + - [V1SupplementalGroupsStrategyOptions](docs/V1SupplementalGroupsStrategyOptions.md) - [V1TCPSocketAction](docs/V1TCPSocketAction.md) - - [V1Taint](docs/V1Taint.md) - - [V1TokenReview](docs/V1TokenReview.md) - - [V1TokenReviewSpec](docs/V1TokenReviewSpec.md) - - [V1TokenReviewStatus](docs/V1TokenReviewStatus.md) - - [V1Toleration](docs/V1Toleration.md) - - [V1UserInfo](docs/V1UserInfo.md) + - [V1TLSConfig](docs/V1TLSConfig.md) + - [V1TagEvent](docs/V1TagEvent.md) + - [V1TagEventCondition](docs/V1TagEventCondition.md) + - [V1TagImageHook](docs/V1TagImageHook.md) + - [V1TagImportPolicy](docs/V1TagImportPolicy.md) + - [V1TagReference](docs/V1TagReference.md) + - [V1TagReferencePolicy](docs/V1TagReferencePolicy.md) + - [V1Template](docs/V1Template.md) + - [V1TemplateList](docs/V1TemplateList.md) + - [V1User](docs/V1User.md) + - [V1UserIdentityMapping](docs/V1UserIdentityMapping.md) + - [V1UserList](docs/V1UserList.md) + - [V1UserRestriction](docs/V1UserRestriction.md) - [V1Volume](docs/V1Volume.md) - [V1VolumeMount](docs/V1VolumeMount.md) - - [V1VolumeProjection](docs/V1VolumeProjection.md) - [V1VsphereVirtualDiskVolumeSource](docs/V1VsphereVirtualDiskVolumeSource.md) - - [V1WatchEvent](docs/V1WatchEvent.md) - - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) - - [V1alpha1ClusterRole](docs/V1alpha1ClusterRole.md) - - [V1alpha1ClusterRoleBinding](docs/V1alpha1ClusterRoleBinding.md) - - [V1alpha1ClusterRoleBindingList](docs/V1alpha1ClusterRoleBindingList.md) - - [V1alpha1ClusterRoleList](docs/V1alpha1ClusterRoleList.md) - - [V1alpha1PodPreset](docs/V1alpha1PodPreset.md) - - [V1alpha1PodPresetList](docs/V1alpha1PodPresetList.md) - - [V1alpha1PodPresetSpec](docs/V1alpha1PodPresetSpec.md) - - [V1alpha1PolicyRule](docs/V1alpha1PolicyRule.md) - - [V1alpha1Role](docs/V1alpha1Role.md) - - [V1alpha1RoleBinding](docs/V1alpha1RoleBinding.md) - - [V1alpha1RoleBindingList](docs/V1alpha1RoleBindingList.md) - - [V1alpha1RoleList](docs/V1alpha1RoleList.md) - - [V1alpha1RoleRef](docs/V1alpha1RoleRef.md) - - [V1alpha1Subject](docs/V1alpha1Subject.md) + - [V1WebHookTrigger](docs/V1WebHookTrigger.md) + - [V1alpha1CertificateSigningRequest](docs/V1alpha1CertificateSigningRequest.md) + - [V1alpha1CertificateSigningRequestCondition](docs/V1alpha1CertificateSigningRequestCondition.md) + - [V1alpha1CertificateSigningRequestList](docs/V1alpha1CertificateSigningRequestList.md) + - [V1alpha1CertificateSigningRequestSpec](docs/V1alpha1CertificateSigningRequestSpec.md) + - [V1alpha1CertificateSigningRequestStatus](docs/V1alpha1CertificateSigningRequestStatus.md) - [V1beta1APIVersion](docs/V1beta1APIVersion.md) - - [V1beta1CertificateSigningRequest](docs/V1beta1CertificateSigningRequest.md) - - [V1beta1CertificateSigningRequestCondition](docs/V1beta1CertificateSigningRequestCondition.md) - - [V1beta1CertificateSigningRequestList](docs/V1beta1CertificateSigningRequestList.md) - - [V1beta1CertificateSigningRequestSpec](docs/V1beta1CertificateSigningRequestSpec.md) - - [V1beta1CertificateSigningRequestStatus](docs/V1beta1CertificateSigningRequestStatus.md) - - [V1beta1ClusterRole](docs/V1beta1ClusterRole.md) - - [V1beta1ClusterRoleBinding](docs/V1beta1ClusterRoleBinding.md) - - [V1beta1ClusterRoleBindingList](docs/V1beta1ClusterRoleBindingList.md) - - [V1beta1ClusterRoleList](docs/V1beta1ClusterRoleList.md) + - [V1beta1CPUTargetUtilization](docs/V1beta1CPUTargetUtilization.md) - [V1beta1DaemonSet](docs/V1beta1DaemonSet.md) - [V1beta1DaemonSetList](docs/V1beta1DaemonSetList.md) - [V1beta1DaemonSetSpec](docs/V1beta1DaemonSetSpec.md) - [V1beta1DaemonSetStatus](docs/V1beta1DaemonSetStatus.md) - - [V1beta1DaemonSetUpdateStrategy](docs/V1beta1DaemonSetUpdateStrategy.md) + - [V1beta1Deployment](docs/V1beta1Deployment.md) + - [V1beta1DeploymentCondition](docs/V1beta1DeploymentCondition.md) + - [V1beta1DeploymentList](docs/V1beta1DeploymentList.md) + - [V1beta1DeploymentRollback](docs/V1beta1DeploymentRollback.md) + - [V1beta1DeploymentSpec](docs/V1beta1DeploymentSpec.md) + - [V1beta1DeploymentStatus](docs/V1beta1DeploymentStatus.md) + - [V1beta1DeploymentStrategy](docs/V1beta1DeploymentStrategy.md) - [V1beta1Eviction](docs/V1beta1Eviction.md) - [V1beta1FSGroupStrategyOptions](docs/V1beta1FSGroupStrategyOptions.md) - [V1beta1HTTPIngressPath](docs/V1beta1HTTPIngressPath.md) - [V1beta1HTTPIngressRuleValue](docs/V1beta1HTTPIngressRuleValue.md) + - [V1beta1HorizontalPodAutoscaler](docs/V1beta1HorizontalPodAutoscaler.md) + - [V1beta1HorizontalPodAutoscalerList](docs/V1beta1HorizontalPodAutoscalerList.md) + - [V1beta1HorizontalPodAutoscalerSpec](docs/V1beta1HorizontalPodAutoscalerSpec.md) + - [V1beta1HorizontalPodAutoscalerStatus](docs/V1beta1HorizontalPodAutoscalerStatus.md) - [V1beta1HostPortRange](docs/V1beta1HostPortRange.md) - [V1beta1IDRange](docs/V1beta1IDRange.md) - [V1beta1Ingress](docs/V1beta1Ingress.md) @@ -873,14 +1232,17 @@ Class | Method | HTTP request | Description - [V1beta1IngressSpec](docs/V1beta1IngressSpec.md) - [V1beta1IngressStatus](docs/V1beta1IngressStatus.md) - [V1beta1IngressTLS](docs/V1beta1IngressTLS.md) - - [V1beta1LocalSubjectAccessReview](docs/V1beta1LocalSubjectAccessReview.md) + - [V1beta1Job](docs/V1beta1Job.md) + - [V1beta1JobCondition](docs/V1beta1JobCondition.md) + - [V1beta1JobList](docs/V1beta1JobList.md) + - [V1beta1JobSpec](docs/V1beta1JobSpec.md) + - [V1beta1JobStatus](docs/V1beta1JobStatus.md) - [V1beta1NetworkPolicy](docs/V1beta1NetworkPolicy.md) - [V1beta1NetworkPolicyIngressRule](docs/V1beta1NetworkPolicyIngressRule.md) - [V1beta1NetworkPolicyList](docs/V1beta1NetworkPolicyList.md) - [V1beta1NetworkPolicyPeer](docs/V1beta1NetworkPolicyPeer.md) - [V1beta1NetworkPolicyPort](docs/V1beta1NetworkPolicyPort.md) - [V1beta1NetworkPolicySpec](docs/V1beta1NetworkPolicySpec.md) - - [V1beta1NonResourceAttributes](docs/V1beta1NonResourceAttributes.md) - [V1beta1PodDisruptionBudget](docs/V1beta1PodDisruptionBudget.md) - [V1beta1PodDisruptionBudgetList](docs/V1beta1PodDisruptionBudgetList.md) - [V1beta1PodDisruptionBudgetSpec](docs/V1beta1PodDisruptionBudgetSpec.md) @@ -888,33 +1250,25 @@ Class | Method | HTTP request | Description - [V1beta1PodSecurityPolicy](docs/V1beta1PodSecurityPolicy.md) - [V1beta1PodSecurityPolicyList](docs/V1beta1PodSecurityPolicyList.md) - [V1beta1PodSecurityPolicySpec](docs/V1beta1PodSecurityPolicySpec.md) - - [V1beta1PolicyRule](docs/V1beta1PolicyRule.md) - [V1beta1ReplicaSet](docs/V1beta1ReplicaSet.md) - [V1beta1ReplicaSetCondition](docs/V1beta1ReplicaSetCondition.md) - [V1beta1ReplicaSetList](docs/V1beta1ReplicaSetList.md) - [V1beta1ReplicaSetSpec](docs/V1beta1ReplicaSetSpec.md) - [V1beta1ReplicaSetStatus](docs/V1beta1ReplicaSetStatus.md) - - [V1beta1ResourceAttributes](docs/V1beta1ResourceAttributes.md) - - [V1beta1Role](docs/V1beta1Role.md) - - [V1beta1RoleBinding](docs/V1beta1RoleBinding.md) - - [V1beta1RoleBindingList](docs/V1beta1RoleBindingList.md) - - [V1beta1RoleList](docs/V1beta1RoleList.md) - - [V1beta1RoleRef](docs/V1beta1RoleRef.md) - - [V1beta1RollingUpdateDaemonSet](docs/V1beta1RollingUpdateDaemonSet.md) + - [V1beta1RollbackConfig](docs/V1beta1RollbackConfig.md) + - [V1beta1RollingUpdateDeployment](docs/V1beta1RollingUpdateDeployment.md) - [V1beta1RunAsUserStrategyOptions](docs/V1beta1RunAsUserStrategyOptions.md) - [V1beta1SELinuxStrategyOptions](docs/V1beta1SELinuxStrategyOptions.md) - - [V1beta1SelfSubjectAccessReview](docs/V1beta1SelfSubjectAccessReview.md) - - [V1beta1SelfSubjectAccessReviewSpec](docs/V1beta1SelfSubjectAccessReviewSpec.md) + - [V1beta1Scale](docs/V1beta1Scale.md) + - [V1beta1ScaleSpec](docs/V1beta1ScaleSpec.md) + - [V1beta1ScaleStatus](docs/V1beta1ScaleStatus.md) - [V1beta1StatefulSet](docs/V1beta1StatefulSet.md) - [V1beta1StatefulSetList](docs/V1beta1StatefulSetList.md) - [V1beta1StatefulSetSpec](docs/V1beta1StatefulSetSpec.md) - [V1beta1StatefulSetStatus](docs/V1beta1StatefulSetStatus.md) - [V1beta1StorageClass](docs/V1beta1StorageClass.md) - [V1beta1StorageClassList](docs/V1beta1StorageClassList.md) - - [V1beta1Subject](docs/V1beta1Subject.md) - - [V1beta1SubjectAccessReview](docs/V1beta1SubjectAccessReview.md) - - [V1beta1SubjectAccessReviewSpec](docs/V1beta1SubjectAccessReviewSpec.md) - - [V1beta1SubjectAccessReviewStatus](docs/V1beta1SubjectAccessReviewStatus.md) + - [V1beta1SubresourceReference](docs/V1beta1SubresourceReference.md) - [V1beta1SupplementalGroupsStrategyOptions](docs/V1beta1SupplementalGroupsStrategyOptions.md) - [V1beta1ThirdPartyResource](docs/V1beta1ThirdPartyResource.md) - [V1beta1ThirdPartyResourceList](docs/V1beta1ThirdPartyResourceList.md) @@ -926,21 +1280,14 @@ Class | Method | HTTP request | Description - [V2alpha1CronJobList](docs/V2alpha1CronJobList.md) - [V2alpha1CronJobSpec](docs/V2alpha1CronJobSpec.md) - [V2alpha1CronJobStatus](docs/V2alpha1CronJobStatus.md) - - [V2alpha1CrossVersionObjectReference](docs/V2alpha1CrossVersionObjectReference.md) - - [V2alpha1HorizontalPodAutoscaler](docs/V2alpha1HorizontalPodAutoscaler.md) - - [V2alpha1HorizontalPodAutoscalerList](docs/V2alpha1HorizontalPodAutoscalerList.md) - - [V2alpha1HorizontalPodAutoscalerSpec](docs/V2alpha1HorizontalPodAutoscalerSpec.md) - - [V2alpha1HorizontalPodAutoscalerStatus](docs/V2alpha1HorizontalPodAutoscalerStatus.md) + - [V2alpha1Job](docs/V2alpha1Job.md) + - [V2alpha1JobCondition](docs/V2alpha1JobCondition.md) + - [V2alpha1JobList](docs/V2alpha1JobList.md) + - [V2alpha1JobSpec](docs/V2alpha1JobSpec.md) + - [V2alpha1JobStatus](docs/V2alpha1JobStatus.md) - [V2alpha1JobTemplateSpec](docs/V2alpha1JobTemplateSpec.md) - - [V2alpha1MetricSpec](docs/V2alpha1MetricSpec.md) - - [V2alpha1MetricStatus](docs/V2alpha1MetricStatus.md) - - [V2alpha1ObjectMetricSource](docs/V2alpha1ObjectMetricSource.md) - - [V2alpha1ObjectMetricStatus](docs/V2alpha1ObjectMetricStatus.md) - - [V2alpha1PodsMetricSource](docs/V2alpha1PodsMetricSource.md) - - [V2alpha1PodsMetricStatus](docs/V2alpha1PodsMetricStatus.md) - - [V2alpha1ResourceMetricSource](docs/V2alpha1ResourceMetricSource.md) - - [V2alpha1ResourceMetricStatus](docs/V2alpha1ResourceMetricStatus.md) - [VersionInfo](docs/VersionInfo.md) + - [VersionedEvent](docs/VersionedEvent.md) ## Documentation For Authorization diff --git a/kubernetes/client/__init__.py b/kubernetes/client/__init__.py index e6e922fd8e..dde1ae6321 100644 --- a/kubernetes/client/__init__.py +++ b/kubernetes/client/__init__.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -14,53 +14,71 @@ from __future__ import absolute_import # import models into sdk package -from .models.apps_v1beta1_deployment import AppsV1beta1Deployment -from .models.apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition -from .models.apps_v1beta1_deployment_list import AppsV1beta1DeploymentList -from .models.apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback -from .models.apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec -from .models.apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus -from .models.apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy -from .models.apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig -from .models.apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment -from .models.apps_v1beta1_scale import AppsV1beta1Scale -from .models.apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec -from .models.apps_v1beta1_scale_status import AppsV1beta1ScaleStatus -from .models.extensions_v1beta1_deployment import ExtensionsV1beta1Deployment -from .models.extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition -from .models.extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList -from .models.extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback -from .models.extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec -from .models.extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus -from .models.extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy -from .models.extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig -from .models.extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment -from .models.extensions_v1beta1_scale import ExtensionsV1beta1Scale -from .models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec -from .models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus from .models.runtime_raw_extension import RuntimeRawExtension -from .models.v1_api_group import V1APIGroup -from .models.v1_api_group_list import V1APIGroupList -from .models.v1_api_resource import V1APIResource -from .models.v1_api_resource_list import V1APIResourceList -from .models.v1_api_versions import V1APIVersions +from .models.unversioned_api_group import UnversionedAPIGroup +from .models.unversioned_api_group_list import UnversionedAPIGroupList +from .models.unversioned_api_resource import UnversionedAPIResource +from .models.unversioned_api_resource_list import UnversionedAPIResourceList +from .models.unversioned_api_versions import UnversionedAPIVersions +from .models.unversioned_group_version_for_discovery import UnversionedGroupVersionForDiscovery +from .models.unversioned_label_selector import UnversionedLabelSelector +from .models.unversioned_label_selector_requirement import UnversionedLabelSelectorRequirement +from .models.unversioned_list_meta import UnversionedListMeta +from .models.unversioned_server_address_by_client_cidr import UnversionedServerAddressByClientCIDR +from .models.unversioned_status import UnversionedStatus +from .models.unversioned_status_cause import UnversionedStatusCause +from .models.unversioned_status_details import UnversionedStatusDetails from .models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource -from .models.v1_affinity import V1Affinity +from .models.v1_applied_cluster_resource_quota import V1AppliedClusterResourceQuota +from .models.v1_applied_cluster_resource_quota_list import V1AppliedClusterResourceQuotaList from .models.v1_attached_volume import V1AttachedVolume from .models.v1_azure_disk_volume_source import V1AzureDiskVolumeSource from .models.v1_azure_file_volume_source import V1AzureFileVolumeSource +from .models.v1_binary_build_source import V1BinaryBuildSource from .models.v1_binding import V1Binding +from .models.v1_build import V1Build +from .models.v1_build_config import V1BuildConfig +from .models.v1_build_config_list import V1BuildConfigList +from .models.v1_build_config_spec import V1BuildConfigSpec +from .models.v1_build_config_status import V1BuildConfigStatus +from .models.v1_build_list import V1BuildList +from .models.v1_build_log import V1BuildLog +from .models.v1_build_output import V1BuildOutput +from .models.v1_build_post_commit_spec import V1BuildPostCommitSpec +from .models.v1_build_request import V1BuildRequest +from .models.v1_build_source import V1BuildSource +from .models.v1_build_spec import V1BuildSpec +from .models.v1_build_status import V1BuildStatus +from .models.v1_build_status_output import V1BuildStatusOutput +from .models.v1_build_status_output_to import V1BuildStatusOutputTo +from .models.v1_build_strategy import V1BuildStrategy +from .models.v1_build_trigger_cause import V1BuildTriggerCause +from .models.v1_build_trigger_policy import V1BuildTriggerPolicy from .models.v1_capabilities import V1Capabilities from .models.v1_ceph_fs_volume_source import V1CephFSVolumeSource from .models.v1_cinder_volume_source import V1CinderVolumeSource +from .models.v1_cluster_network import V1ClusterNetwork +from .models.v1_cluster_network_list import V1ClusterNetworkList +from .models.v1_cluster_policy import V1ClusterPolicy +from .models.v1_cluster_policy_binding import V1ClusterPolicyBinding +from .models.v1_cluster_policy_binding_list import V1ClusterPolicyBindingList +from .models.v1_cluster_policy_list import V1ClusterPolicyList +from .models.v1_cluster_resource_quota import V1ClusterResourceQuota +from .models.v1_cluster_resource_quota_list import V1ClusterResourceQuotaList +from .models.v1_cluster_resource_quota_selector import V1ClusterResourceQuotaSelector +from .models.v1_cluster_resource_quota_spec import V1ClusterResourceQuotaSpec +from .models.v1_cluster_resource_quota_status import V1ClusterResourceQuotaStatus +from .models.v1_cluster_role import V1ClusterRole +from .models.v1_cluster_role_binding import V1ClusterRoleBinding +from .models.v1_cluster_role_binding_list import V1ClusterRoleBindingList +from .models.v1_cluster_role_list import V1ClusterRoleList +from .models.v1_cluster_role_scope_restriction import V1ClusterRoleScopeRestriction from .models.v1_component_condition import V1ComponentCondition from .models.v1_component_status import V1ComponentStatus from .models.v1_component_status_list import V1ComponentStatusList from .models.v1_config_map import V1ConfigMap -from .models.v1_config_map_env_source import V1ConfigMapEnvSource from .models.v1_config_map_key_selector import V1ConfigMapKeySelector from .models.v1_config_map_list import V1ConfigMapList -from .models.v1_config_map_projection import V1ConfigMapProjection from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container import V1Container from .models.v1_container_image import V1ContainerImage @@ -71,31 +89,62 @@ from .models.v1_container_state_waiting import V1ContainerStateWaiting from .models.v1_container_status import V1ContainerStatus from .models.v1_cross_version_object_reference import V1CrossVersionObjectReference +from .models.v1_custom_build_strategy import V1CustomBuildStrategy +from .models.v1_custom_deployment_strategy_params import V1CustomDeploymentStrategyParams from .models.v1_daemon_endpoint import V1DaemonEndpoint from .models.v1_delete_options import V1DeleteOptions -from .models.v1_downward_api_projection import V1DownwardAPIProjection +from .models.v1_deployment_cause import V1DeploymentCause +from .models.v1_deployment_cause_image_trigger import V1DeploymentCauseImageTrigger +from .models.v1_deployment_condition import V1DeploymentCondition +from .models.v1_deployment_config import V1DeploymentConfig +from .models.v1_deployment_config_list import V1DeploymentConfigList +from .models.v1_deployment_config_rollback import V1DeploymentConfigRollback +from .models.v1_deployment_config_rollback_spec import V1DeploymentConfigRollbackSpec +from .models.v1_deployment_config_spec import V1DeploymentConfigSpec +from .models.v1_deployment_config_status import V1DeploymentConfigStatus +from .models.v1_deployment_details import V1DeploymentDetails +from .models.v1_deployment_log import V1DeploymentLog +from .models.v1_deployment_request import V1DeploymentRequest +from .models.v1_deployment_strategy import V1DeploymentStrategy +from .models.v1_deployment_trigger_image_change_params import V1DeploymentTriggerImageChangeParams +from .models.v1_deployment_trigger_policy import V1DeploymentTriggerPolicy +from .models.v1_deprecated_downward_api_volume_file import V1DeprecatedDownwardAPIVolumeFile +from .models.v1_deprecated_downward_api_volume_source import V1DeprecatedDownwardAPIVolumeSource +from .models.v1_docker_build_strategy import V1DockerBuildStrategy from .models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile from .models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource +from .models.v1_egress_network_policy import V1EgressNetworkPolicy +from .models.v1_egress_network_policy_list import V1EgressNetworkPolicyList +from .models.v1_egress_network_policy_peer import V1EgressNetworkPolicyPeer +from .models.v1_egress_network_policy_rule import V1EgressNetworkPolicyRule +from .models.v1_egress_network_policy_spec import V1EgressNetworkPolicySpec from .models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource from .models.v1_endpoint_address import V1EndpointAddress from .models.v1_endpoint_port import V1EndpointPort from .models.v1_endpoint_subset import V1EndpointSubset from .models.v1_endpoints import V1Endpoints from .models.v1_endpoints_list import V1EndpointsList -from .models.v1_env_from_source import V1EnvFromSource from .models.v1_env_var import V1EnvVar from .models.v1_env_var_source import V1EnvVarSource from .models.v1_event import V1Event from .models.v1_event_list import V1EventList from .models.v1_event_source import V1EventSource from .models.v1_exec_action import V1ExecAction +from .models.v1_exec_new_pod_hook import V1ExecNewPodHook from .models.v1_fc_volume_source import V1FCVolumeSource +from .models.v1_fs_group_strategy_options import V1FSGroupStrategyOptions from .models.v1_flex_volume_source import V1FlexVolumeSource from .models.v1_flocker_volume_source import V1FlockerVolumeSource from .models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource +from .models.v1_generic_web_hook_cause import V1GenericWebHookCause +from .models.v1_git_build_source import V1GitBuildSource +from .models.v1_git_hub_web_hook_cause import V1GitHubWebHookCause from .models.v1_git_repo_volume_source import V1GitRepoVolumeSource +from .models.v1_git_source_revision import V1GitSourceRevision from .models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource -from .models.v1_group_version_for_discovery import V1GroupVersionForDiscovery +from .models.v1_group import V1Group +from .models.v1_group_list import V1GroupList +from .models.v1_group_restriction import V1GroupRestriction from .models.v1_http_get_action import V1HTTPGetAction from .models.v1_http_header import V1HTTPHeader from .models.v1_handler import V1Handler @@ -104,47 +153,85 @@ from .models.v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec from .models.v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus from .models.v1_host_path_volume_source import V1HostPathVolumeSource +from .models.v1_host_subnet import V1HostSubnet +from .models.v1_host_subnet_list import V1HostSubnetList +from .models.v1_id_range import V1IDRange from .models.v1_iscsi_volume_source import V1ISCSIVolumeSource +from .models.v1_identity import V1Identity +from .models.v1_identity_list import V1IdentityList +from .models.v1_image import V1Image +from .models.v1_image_change_cause import V1ImageChangeCause +from .models.v1_image_change_trigger import V1ImageChangeTrigger +from .models.v1_image_import_spec import V1ImageImportSpec +from .models.v1_image_import_status import V1ImageImportStatus +from .models.v1_image_label import V1ImageLabel +from .models.v1_image_layer import V1ImageLayer +from .models.v1_image_list import V1ImageList +from .models.v1_image_signature import V1ImageSignature +from .models.v1_image_source import V1ImageSource +from .models.v1_image_source_path import V1ImageSourcePath +from .models.v1_image_stream import V1ImageStream +from .models.v1_image_stream_image import V1ImageStreamImage +from .models.v1_image_stream_import import V1ImageStreamImport +from .models.v1_image_stream_import_spec import V1ImageStreamImportSpec +from .models.v1_image_stream_import_status import V1ImageStreamImportStatus +from .models.v1_image_stream_list import V1ImageStreamList +from .models.v1_image_stream_mapping import V1ImageStreamMapping +from .models.v1_image_stream_spec import V1ImageStreamSpec +from .models.v1_image_stream_status import V1ImageStreamStatus +from .models.v1_image_stream_tag import V1ImageStreamTag +from .models.v1_image_stream_tag_list import V1ImageStreamTagList +from .models.v1_jenkins_pipeline_build_strategy import V1JenkinsPipelineBuildStrategy from .models.v1_job import V1Job from .models.v1_job_condition import V1JobCondition from .models.v1_job_list import V1JobList from .models.v1_job_spec import V1JobSpec from .models.v1_job_status import V1JobStatus from .models.v1_key_to_path import V1KeyToPath -from .models.v1_label_selector import V1LabelSelector -from .models.v1_label_selector_requirement import V1LabelSelectorRequirement from .models.v1_lifecycle import V1Lifecycle +from .models.v1_lifecycle_hook import V1LifecycleHook from .models.v1_limit_range import V1LimitRange from .models.v1_limit_range_item import V1LimitRangeItem from .models.v1_limit_range_list import V1LimitRangeList from .models.v1_limit_range_spec import V1LimitRangeSpec -from .models.v1_list_meta import V1ListMeta from .models.v1_load_balancer_ingress import V1LoadBalancerIngress from .models.v1_load_balancer_status import V1LoadBalancerStatus from .models.v1_local_object_reference import V1LocalObjectReference +from .models.v1_local_resource_access_review import V1LocalResourceAccessReview from .models.v1_local_subject_access_review import V1LocalSubjectAccessReview from .models.v1_nfs_volume_source import V1NFSVolumeSource +from .models.v1_named_cluster_role import V1NamedClusterRole +from .models.v1_named_cluster_role_binding import V1NamedClusterRoleBinding +from .models.v1_named_role import V1NamedRole +from .models.v1_named_role_binding import V1NamedRoleBinding +from .models.v1_named_tag_event_list import V1NamedTagEventList from .models.v1_namespace import V1Namespace from .models.v1_namespace_list import V1NamespaceList from .models.v1_namespace_spec import V1NamespaceSpec from .models.v1_namespace_status import V1NamespaceStatus +from .models.v1_net_namespace import V1NetNamespace +from .models.v1_net_namespace_list import V1NetNamespaceList from .models.v1_node import V1Node from .models.v1_node_address import V1NodeAddress -from .models.v1_node_affinity import V1NodeAffinity from .models.v1_node_condition import V1NodeCondition from .models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints from .models.v1_node_list import V1NodeList -from .models.v1_node_selector import V1NodeSelector -from .models.v1_node_selector_requirement import V1NodeSelectorRequirement -from .models.v1_node_selector_term import V1NodeSelectorTerm from .models.v1_node_spec import V1NodeSpec from .models.v1_node_status import V1NodeStatus from .models.v1_node_system_info import V1NodeSystemInfo -from .models.v1_non_resource_attributes import V1NonResourceAttributes +from .models.v1_o_auth_access_token import V1OAuthAccessToken +from .models.v1_o_auth_access_token_list import V1OAuthAccessTokenList +from .models.v1_o_auth_authorize_token import V1OAuthAuthorizeToken +from .models.v1_o_auth_authorize_token_list import V1OAuthAuthorizeTokenList +from .models.v1_o_auth_client import V1OAuthClient +from .models.v1_o_auth_client_authorization import V1OAuthClientAuthorization +from .models.v1_o_auth_client_authorization_list import V1OAuthClientAuthorizationList +from .models.v1_o_auth_client_list import V1OAuthClientList from .models.v1_object_field_selector import V1ObjectFieldSelector from .models.v1_object_meta import V1ObjectMeta from .models.v1_object_reference import V1ObjectReference from .models.v1_owner_reference import V1OwnerReference +from .models.v1_parameter import V1Parameter from .models.v1_persistent_volume import V1PersistentVolume from .models.v1_persistent_volume_claim import V1PersistentVolumeClaim from .models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList @@ -156,112 +243,151 @@ from .models.v1_persistent_volume_status import V1PersistentVolumeStatus from .models.v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource from .models.v1_pod import V1Pod -from .models.v1_pod_affinity import V1PodAffinity -from .models.v1_pod_affinity_term import V1PodAffinityTerm -from .models.v1_pod_anti_affinity import V1PodAntiAffinity from .models.v1_pod_condition import V1PodCondition from .models.v1_pod_list import V1PodList from .models.v1_pod_security_context import V1PodSecurityContext +from .models.v1_pod_security_policy_review import V1PodSecurityPolicyReview +from .models.v1_pod_security_policy_review_spec import V1PodSecurityPolicyReviewSpec +from .models.v1_pod_security_policy_review_status import V1PodSecurityPolicyReviewStatus +from .models.v1_pod_security_policy_self_subject_review import V1PodSecurityPolicySelfSubjectReview +from .models.v1_pod_security_policy_self_subject_review_spec import V1PodSecurityPolicySelfSubjectReviewSpec +from .models.v1_pod_security_policy_subject_review import V1PodSecurityPolicySubjectReview +from .models.v1_pod_security_policy_subject_review_spec import V1PodSecurityPolicySubjectReviewSpec +from .models.v1_pod_security_policy_subject_review_status import V1PodSecurityPolicySubjectReviewStatus from .models.v1_pod_spec import V1PodSpec from .models.v1_pod_status import V1PodStatus from .models.v1_pod_template import V1PodTemplate from .models.v1_pod_template_list import V1PodTemplateList from .models.v1_pod_template_spec import V1PodTemplateSpec -from .models.v1_portworx_volume_source import V1PortworxVolumeSource +from .models.v1_policy import V1Policy +from .models.v1_policy_binding import V1PolicyBinding +from .models.v1_policy_binding_list import V1PolicyBindingList +from .models.v1_policy_list import V1PolicyList +from .models.v1_policy_rule import V1PolicyRule from .models.v1_preconditions import V1Preconditions -from .models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm from .models.v1_probe import V1Probe -from .models.v1_projected_volume_source import V1ProjectedVolumeSource +from .models.v1_project import V1Project +from .models.v1_project_list import V1ProjectList +from .models.v1_project_request import V1ProjectRequest +from .models.v1_project_spec import V1ProjectSpec +from .models.v1_project_status import V1ProjectStatus from .models.v1_quobyte_volume_source import V1QuobyteVolumeSource from .models.v1_rbd_volume_source import V1RBDVolumeSource +from .models.v1_recreate_deployment_strategy_params import V1RecreateDeploymentStrategyParams from .models.v1_replication_controller import V1ReplicationController from .models.v1_replication_controller_condition import V1ReplicationControllerCondition from .models.v1_replication_controller_list import V1ReplicationControllerList from .models.v1_replication_controller_spec import V1ReplicationControllerSpec from .models.v1_replication_controller_status import V1ReplicationControllerStatus -from .models.v1_resource_attributes import V1ResourceAttributes +from .models.v1_repository_import_spec import V1RepositoryImportSpec +from .models.v1_repository_import_status import V1RepositoryImportStatus +from .models.v1_resource_access_review import V1ResourceAccessReview from .models.v1_resource_field_selector import V1ResourceFieldSelector from .models.v1_resource_quota import V1ResourceQuota from .models.v1_resource_quota_list import V1ResourceQuotaList from .models.v1_resource_quota_spec import V1ResourceQuotaSpec from .models.v1_resource_quota_status import V1ResourceQuotaStatus +from .models.v1_resource_quota_status_by_namespace import V1ResourceQuotaStatusByNamespace from .models.v1_resource_requirements import V1ResourceRequirements +from .models.v1_role import V1Role +from .models.v1_role_binding import V1RoleBinding +from .models.v1_role_binding_list import V1RoleBindingList +from .models.v1_role_binding_restriction import V1RoleBindingRestriction +from .models.v1_role_binding_restriction_list import V1RoleBindingRestrictionList +from .models.v1_role_binding_restriction_spec import V1RoleBindingRestrictionSpec +from .models.v1_role_list import V1RoleList +from .models.v1_rolling_deployment_strategy_params import V1RollingDeploymentStrategyParams +from .models.v1_route import V1Route +from .models.v1_route_ingress import V1RouteIngress +from .models.v1_route_ingress_condition import V1RouteIngressCondition +from .models.v1_route_list import V1RouteList +from .models.v1_route_port import V1RoutePort +from .models.v1_route_spec import V1RouteSpec +from .models.v1_route_status import V1RouteStatus +from .models.v1_route_target_reference import V1RouteTargetReference +from .models.v1_run_as_user_strategy_options import V1RunAsUserStrategyOptions +from .models.v1_se_linux_context_strategy_options import V1SELinuxContextStrategyOptions from .models.v1_se_linux_options import V1SELinuxOptions from .models.v1_scale import V1Scale -from .models.v1_scale_io_volume_source import V1ScaleIOVolumeSource from .models.v1_scale_spec import V1ScaleSpec from .models.v1_scale_status import V1ScaleStatus +from .models.v1_scope_restriction import V1ScopeRestriction from .models.v1_secret import V1Secret -from .models.v1_secret_env_source import V1SecretEnvSource +from .models.v1_secret_build_source import V1SecretBuildSource from .models.v1_secret_key_selector import V1SecretKeySelector from .models.v1_secret_list import V1SecretList -from .models.v1_secret_projection import V1SecretProjection +from .models.v1_secret_spec import V1SecretSpec from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_security_context import V1SecurityContext -from .models.v1_self_subject_access_review import V1SelfSubjectAccessReview -from .models.v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec -from .models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR +from .models.v1_security_context_constraints import V1SecurityContextConstraints +from .models.v1_security_context_constraints_list import V1SecurityContextConstraintsList +from .models.v1_self_subject_rules_review import V1SelfSubjectRulesReview +from .models.v1_self_subject_rules_review_spec import V1SelfSubjectRulesReviewSpec from .models.v1_service import V1Service from .models.v1_service_account import V1ServiceAccount from .models.v1_service_account_list import V1ServiceAccountList +from .models.v1_service_account_pod_security_policy_review_status import V1ServiceAccountPodSecurityPolicyReviewStatus +from .models.v1_service_account_reference import V1ServiceAccountReference +from .models.v1_service_account_restriction import V1ServiceAccountRestriction from .models.v1_service_list import V1ServiceList from .models.v1_service_port import V1ServicePort from .models.v1_service_spec import V1ServiceSpec from .models.v1_service_status import V1ServiceStatus -from .models.v1_status import V1Status -from .models.v1_status_cause import V1StatusCause -from .models.v1_status_details import V1StatusDetails -from .models.v1_storage_class import V1StorageClass -from .models.v1_storage_class_list import V1StorageClassList +from .models.v1_signature_condition import V1SignatureCondition +from .models.v1_signature_issuer import V1SignatureIssuer +from .models.v1_signature_subject import V1SignatureSubject +from .models.v1_source_build_strategy import V1SourceBuildStrategy +from .models.v1_source_control_user import V1SourceControlUser +from .models.v1_source_revision import V1SourceRevision from .models.v1_subject_access_review import V1SubjectAccessReview -from .models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec -from .models.v1_subject_access_review_status import V1SubjectAccessReviewStatus +from .models.v1_subject_rules_review import V1SubjectRulesReview +from .models.v1_subject_rules_review_spec import V1SubjectRulesReviewSpec +from .models.v1_subject_rules_review_status import V1SubjectRulesReviewStatus +from .models.v1_supplemental_groups_strategy_options import V1SupplementalGroupsStrategyOptions from .models.v1_tcp_socket_action import V1TCPSocketAction -from .models.v1_taint import V1Taint -from .models.v1_token_review import V1TokenReview -from .models.v1_token_review_spec import V1TokenReviewSpec -from .models.v1_token_review_status import V1TokenReviewStatus -from .models.v1_toleration import V1Toleration -from .models.v1_user_info import V1UserInfo +from .models.v1_tls_config import V1TLSConfig +from .models.v1_tag_event import V1TagEvent +from .models.v1_tag_event_condition import V1TagEventCondition +from .models.v1_tag_image_hook import V1TagImageHook +from .models.v1_tag_import_policy import V1TagImportPolicy +from .models.v1_tag_reference import V1TagReference +from .models.v1_tag_reference_policy import V1TagReferencePolicy +from .models.v1_template import V1Template +from .models.v1_template_list import V1TemplateList +from .models.v1_user import V1User +from .models.v1_user_identity_mapping import V1UserIdentityMapping +from .models.v1_user_list import V1UserList +from .models.v1_user_restriction import V1UserRestriction from .models.v1_volume import V1Volume from .models.v1_volume_mount import V1VolumeMount -from .models.v1_volume_projection import V1VolumeProjection from .models.v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource -from .models.v1_watch_event import V1WatchEvent -from .models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm -from .models.v1alpha1_cluster_role import V1alpha1ClusterRole -from .models.v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding -from .models.v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList -from .models.v1alpha1_cluster_role_list import V1alpha1ClusterRoleList -from .models.v1alpha1_pod_preset import V1alpha1PodPreset -from .models.v1alpha1_pod_preset_list import V1alpha1PodPresetList -from .models.v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec -from .models.v1alpha1_policy_rule import V1alpha1PolicyRule -from .models.v1alpha1_role import V1alpha1Role -from .models.v1alpha1_role_binding import V1alpha1RoleBinding -from .models.v1alpha1_role_binding_list import V1alpha1RoleBindingList -from .models.v1alpha1_role_list import V1alpha1RoleList -from .models.v1alpha1_role_ref import V1alpha1RoleRef -from .models.v1alpha1_subject import V1alpha1Subject +from .models.v1_web_hook_trigger import V1WebHookTrigger +from .models.v1alpha1_certificate_signing_request import V1alpha1CertificateSigningRequest +from .models.v1alpha1_certificate_signing_request_condition import V1alpha1CertificateSigningRequestCondition +from .models.v1alpha1_certificate_signing_request_list import V1alpha1CertificateSigningRequestList +from .models.v1alpha1_certificate_signing_request_spec import V1alpha1CertificateSigningRequestSpec +from .models.v1alpha1_certificate_signing_request_status import V1alpha1CertificateSigningRequestStatus from .models.v1beta1_api_version import V1beta1APIVersion -from .models.v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest -from .models.v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition -from .models.v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList -from .models.v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec -from .models.v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus -from .models.v1beta1_cluster_role import V1beta1ClusterRole -from .models.v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding -from .models.v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList -from .models.v1beta1_cluster_role_list import V1beta1ClusterRoleList +from .models.v1beta1_cpu_target_utilization import V1beta1CPUTargetUtilization from .models.v1beta1_daemon_set import V1beta1DaemonSet from .models.v1beta1_daemon_set_list import V1beta1DaemonSetList from .models.v1beta1_daemon_set_spec import V1beta1DaemonSetSpec from .models.v1beta1_daemon_set_status import V1beta1DaemonSetStatus -from .models.v1beta1_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy +from .models.v1beta1_deployment import V1beta1Deployment +from .models.v1beta1_deployment_condition import V1beta1DeploymentCondition +from .models.v1beta1_deployment_list import V1beta1DeploymentList +from .models.v1beta1_deployment_rollback import V1beta1DeploymentRollback +from .models.v1beta1_deployment_spec import V1beta1DeploymentSpec +from .models.v1beta1_deployment_status import V1beta1DeploymentStatus +from .models.v1beta1_deployment_strategy import V1beta1DeploymentStrategy from .models.v1beta1_eviction import V1beta1Eviction from .models.v1beta1_fs_group_strategy_options import V1beta1FSGroupStrategyOptions from .models.v1beta1_http_ingress_path import V1beta1HTTPIngressPath from .models.v1beta1_http_ingress_rule_value import V1beta1HTTPIngressRuleValue +from .models.v1beta1_horizontal_pod_autoscaler import V1beta1HorizontalPodAutoscaler +from .models.v1beta1_horizontal_pod_autoscaler_list import V1beta1HorizontalPodAutoscalerList +from .models.v1beta1_horizontal_pod_autoscaler_spec import V1beta1HorizontalPodAutoscalerSpec +from .models.v1beta1_horizontal_pod_autoscaler_status import V1beta1HorizontalPodAutoscalerStatus from .models.v1beta1_host_port_range import V1beta1HostPortRange from .models.v1beta1_id_range import V1beta1IDRange from .models.v1beta1_ingress import V1beta1Ingress @@ -271,14 +397,17 @@ from .models.v1beta1_ingress_spec import V1beta1IngressSpec from .models.v1beta1_ingress_status import V1beta1IngressStatus from .models.v1beta1_ingress_tls import V1beta1IngressTLS -from .models.v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview +from .models.v1beta1_job import V1beta1Job +from .models.v1beta1_job_condition import V1beta1JobCondition +from .models.v1beta1_job_list import V1beta1JobList +from .models.v1beta1_job_spec import V1beta1JobSpec +from .models.v1beta1_job_status import V1beta1JobStatus from .models.v1beta1_network_policy import V1beta1NetworkPolicy from .models.v1beta1_network_policy_ingress_rule import V1beta1NetworkPolicyIngressRule from .models.v1beta1_network_policy_list import V1beta1NetworkPolicyList from .models.v1beta1_network_policy_peer import V1beta1NetworkPolicyPeer from .models.v1beta1_network_policy_port import V1beta1NetworkPolicyPort from .models.v1beta1_network_policy_spec import V1beta1NetworkPolicySpec -from .models.v1beta1_non_resource_attributes import V1beta1NonResourceAttributes from .models.v1beta1_pod_disruption_budget import V1beta1PodDisruptionBudget from .models.v1beta1_pod_disruption_budget_list import V1beta1PodDisruptionBudgetList from .models.v1beta1_pod_disruption_budget_spec import V1beta1PodDisruptionBudgetSpec @@ -286,33 +415,25 @@ from .models.v1beta1_pod_security_policy import V1beta1PodSecurityPolicy from .models.v1beta1_pod_security_policy_list import V1beta1PodSecurityPolicyList from .models.v1beta1_pod_security_policy_spec import V1beta1PodSecurityPolicySpec -from .models.v1beta1_policy_rule import V1beta1PolicyRule from .models.v1beta1_replica_set import V1beta1ReplicaSet from .models.v1beta1_replica_set_condition import V1beta1ReplicaSetCondition from .models.v1beta1_replica_set_list import V1beta1ReplicaSetList from .models.v1beta1_replica_set_spec import V1beta1ReplicaSetSpec from .models.v1beta1_replica_set_status import V1beta1ReplicaSetStatus -from .models.v1beta1_resource_attributes import V1beta1ResourceAttributes -from .models.v1beta1_role import V1beta1Role -from .models.v1beta1_role_binding import V1beta1RoleBinding -from .models.v1beta1_role_binding_list import V1beta1RoleBindingList -from .models.v1beta1_role_list import V1beta1RoleList -from .models.v1beta1_role_ref import V1beta1RoleRef -from .models.v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet +from .models.v1beta1_rollback_config import V1beta1RollbackConfig +from .models.v1beta1_rolling_update_deployment import V1beta1RollingUpdateDeployment from .models.v1beta1_run_as_user_strategy_options import V1beta1RunAsUserStrategyOptions from .models.v1beta1_se_linux_strategy_options import V1beta1SELinuxStrategyOptions -from .models.v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview -from .models.v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec +from .models.v1beta1_scale import V1beta1Scale +from .models.v1beta1_scale_spec import V1beta1ScaleSpec +from .models.v1beta1_scale_status import V1beta1ScaleStatus from .models.v1beta1_stateful_set import V1beta1StatefulSet from .models.v1beta1_stateful_set_list import V1beta1StatefulSetList from .models.v1beta1_stateful_set_spec import V1beta1StatefulSetSpec from .models.v1beta1_stateful_set_status import V1beta1StatefulSetStatus from .models.v1beta1_storage_class import V1beta1StorageClass from .models.v1beta1_storage_class_list import V1beta1StorageClassList -from .models.v1beta1_subject import V1beta1Subject -from .models.v1beta1_subject_access_review import V1beta1SubjectAccessReview -from .models.v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec -from .models.v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus +from .models.v1beta1_subresource_reference import V1beta1SubresourceReference from .models.v1beta1_supplemental_groups_strategy_options import V1beta1SupplementalGroupsStrategyOptions from .models.v1beta1_third_party_resource import V1beta1ThirdPartyResource from .models.v1beta1_third_party_resource_list import V1beta1ThirdPartyResourceList @@ -324,54 +445,38 @@ from .models.v2alpha1_cron_job_list import V2alpha1CronJobList from .models.v2alpha1_cron_job_spec import V2alpha1CronJobSpec from .models.v2alpha1_cron_job_status import V2alpha1CronJobStatus -from .models.v2alpha1_cross_version_object_reference import V2alpha1CrossVersionObjectReference -from .models.v2alpha1_horizontal_pod_autoscaler import V2alpha1HorizontalPodAutoscaler -from .models.v2alpha1_horizontal_pod_autoscaler_list import V2alpha1HorizontalPodAutoscalerList -from .models.v2alpha1_horizontal_pod_autoscaler_spec import V2alpha1HorizontalPodAutoscalerSpec -from .models.v2alpha1_horizontal_pod_autoscaler_status import V2alpha1HorizontalPodAutoscalerStatus +from .models.v2alpha1_job import V2alpha1Job +from .models.v2alpha1_job_condition import V2alpha1JobCondition +from .models.v2alpha1_job_list import V2alpha1JobList +from .models.v2alpha1_job_spec import V2alpha1JobSpec +from .models.v2alpha1_job_status import V2alpha1JobStatus from .models.v2alpha1_job_template_spec import V2alpha1JobTemplateSpec -from .models.v2alpha1_metric_spec import V2alpha1MetricSpec -from .models.v2alpha1_metric_status import V2alpha1MetricStatus -from .models.v2alpha1_object_metric_source import V2alpha1ObjectMetricSource -from .models.v2alpha1_object_metric_status import V2alpha1ObjectMetricStatus -from .models.v2alpha1_pods_metric_source import V2alpha1PodsMetricSource -from .models.v2alpha1_pods_metric_status import V2alpha1PodsMetricStatus -from .models.v2alpha1_resource_metric_source import V2alpha1ResourceMetricSource -from .models.v2alpha1_resource_metric_status import V2alpha1ResourceMetricStatus from .models.version_info import VersionInfo +from .models.versioned_event import VersionedEvent # import apis into sdk package from .apis.apis_api import ApisApi from .apis.apps_api import AppsApi from .apis.apps_v1beta1_api import AppsV1beta1Api from .apis.authentication_api import AuthenticationApi -from .apis.authentication_v1_api import AuthenticationV1Api from .apis.authentication_v1beta1_api import AuthenticationV1beta1Api -from .apis.authorization_api import AuthorizationApi -from .apis.authorization_v1_api import AuthorizationV1Api -from .apis.authorization_v1beta1_api import AuthorizationV1beta1Api from .apis.autoscaling_api import AutoscalingApi from .apis.autoscaling_v1_api import AutoscalingV1Api -from .apis.autoscaling_v2alpha1_api import AutoscalingV2alpha1Api from .apis.batch_api import BatchApi from .apis.batch_v1_api import BatchV1Api from .apis.batch_v2alpha1_api import BatchV2alpha1Api from .apis.certificates_api import CertificatesApi -from .apis.certificates_v1beta1_api import CertificatesV1beta1Api +from .apis.certificates_v1alpha1_api import CertificatesV1alpha1Api from .apis.core_api import CoreApi from .apis.core_v1_api import CoreV1Api +from .apis.default_api import DefaultApi from .apis.extensions_api import ExtensionsApi from .apis.extensions_v1beta1_api import ExtensionsV1beta1Api -from .apis.logs_api import LogsApi +from .apis.oapi_api import OapiApi +from .apis.osapi_api import OsapiApi from .apis.policy_api import PolicyApi from .apis.policy_v1beta1_api import PolicyV1beta1Api -from .apis.rbac_authorization_api import RbacAuthorizationApi -from .apis.rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api -from .apis.rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api -from .apis.settings_api import SettingsApi -from .apis.settings_v1alpha1_api import SettingsV1alpha1Api from .apis.storage_api import StorageApi -from .apis.storage_v1_api import StorageV1Api from .apis.storage_v1beta1_api import StorageV1beta1Api from .apis.third_party_resources_api import ThirdPartyResourcesApi from .apis.version_api import VersionApi diff --git a/kubernetes/client/apis/__init__.py b/kubernetes/client/apis/__init__.py index b666fd8d79..f9d5919f98 100644 --- a/kubernetes/client/apis/__init__.py +++ b/kubernetes/client/apis/__init__.py @@ -5,33 +5,24 @@ from .apps_api import AppsApi from .apps_v1beta1_api import AppsV1beta1Api from .authentication_api import AuthenticationApi -from .authentication_v1_api import AuthenticationV1Api from .authentication_v1beta1_api import AuthenticationV1beta1Api -from .authorization_api import AuthorizationApi -from .authorization_v1_api import AuthorizationV1Api -from .authorization_v1beta1_api import AuthorizationV1beta1Api from .autoscaling_api import AutoscalingApi from .autoscaling_v1_api import AutoscalingV1Api -from .autoscaling_v2alpha1_api import AutoscalingV2alpha1Api from .batch_api import BatchApi from .batch_v1_api import BatchV1Api from .batch_v2alpha1_api import BatchV2alpha1Api from .certificates_api import CertificatesApi -from .certificates_v1beta1_api import CertificatesV1beta1Api +from .certificates_v1alpha1_api import CertificatesV1alpha1Api from .core_api import CoreApi from .core_v1_api import CoreV1Api +from .default_api import DefaultApi from .extensions_api import ExtensionsApi from .extensions_v1beta1_api import ExtensionsV1beta1Api -from .logs_api import LogsApi +from .oapi_api import OapiApi +from .osapi_api import OsapiApi from .policy_api import PolicyApi from .policy_v1beta1_api import PolicyV1beta1Api -from .rbac_authorization_api import RbacAuthorizationApi -from .rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api -from .rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api -from .settings_api import SettingsApi -from .settings_v1alpha1_api import SettingsV1alpha1Api from .storage_api import StorageApi -from .storage_v1_api import StorageV1Api from .storage_v1beta1_api import StorageV1beta1Api from .third_party_resources_api import ThirdPartyResourcesApi from .version_api import VersionApi diff --git a/kubernetes/client/apis/apis_api.py b/kubernetes/client/apis/apis_api.py index 8df5f63bc6..2c5f6023fe 100644 --- a/kubernetes/client/apis/apis_api.py +++ b/kubernetes/client/apis/apis_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_versions(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroupList + :return: UnversionedAPIGroupList If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_versions_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroupList + :return: UnversionedAPIGroupList If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_versions_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroupList', + response_type='UnversionedAPIGroupList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/apps_api.py b/kubernetes/client/apis/apps_api.py index 0c541622cb..6b370d3edb 100644 --- a/kubernetes/client/apis/apps_api.py +++ b/kubernetes/client/apis/apps_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='UnversionedAPIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/apps_v1beta1_api.py b/kubernetes/client/apis/apps_v1beta1_api.py index 943d25b7e8..be97fb1ea5 100644 --- a/kubernetes/client/apis/apps_v1beta1_api.py +++ b/kubernetes/client/apis/apps_v1beta1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -40,245 +40,6 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def create_namespaced_deployment(self, namespace, body, **kwargs): - """ - create a Deployment - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_deployment(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param AppsV1beta1Deployment body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) - else: - (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) - return data - - def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): - """ - create a Deployment - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_deployment_with_http_info(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param AppsV1beta1Deployment body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_namespaced_deployment" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Deployment', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_deployment_rollback_rollback(self, name, namespace, body, **kwargs): - """ - create rollback of a DeploymentRollback - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_deployment_rollback_rollback(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the DeploymentRollback (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param AppsV1beta1DeploymentRollback body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1DeploymentRollback - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_namespaced_deployment_rollback_rollback_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.create_namespaced_deployment_rollback_rollback_with_http_info(name, namespace, body, **kwargs) - return data - - def create_namespaced_deployment_rollback_rollback_with_http_info(self, name, namespace, body, **kwargs): - """ - create rollback of a DeploymentRollback - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_deployment_rollback_rollback_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the DeploymentRollback (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param AppsV1beta1DeploymentRollback body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1DeploymentRollback - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_namespaced_deployment_rollback_rollback" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback_rollback`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback_rollback`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback_rollback`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1DeploymentRollback', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def create_namespaced_stateful_set(self, namespace, body, **kwargs): """ create a StatefulSet @@ -395,63 +156,53 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_deployment(self, namespace, **kwargs): + def create_stateful_set_for_all_namespaces(self, body, **kwargs): """ - delete collection of Deployment + create a StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_deployment(namespace, callback=callback_function) + >>> thread = api.create_stateful_set_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + return self.create_stateful_set_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + (data) = self.create_stateful_set_for_all_namespaces_with_http_info(body, **kwargs) return data - def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): + def create_stateful_set_for_all_namespaces_with_http_info(self, body, **kwargs): """ - delete collection of Deployment + create a StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_stateful_set_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -462,35 +213,23 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_deployment" % key + " to method create_stateful_set_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_stateful_set_for_all_namespaces`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/statefulsets'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -498,6 +237,8 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -509,14 +250,14 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1beta1StatefulSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -541,10 +282,10 @@ def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -572,10 +313,10 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -645,7 +386,7 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -653,63 +394,61 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_deployment(self, name, namespace, body, **kwargs): + def delete_namespaced_stateful_set(self, name, namespace, body, **kwargs): """ - delete a Deployment + delete a StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_deployment(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_stateful_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): """ - delete a Deployment + delete a StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_stateful_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -720,24 +459,24 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_deployment" % key + " to method delete_namespaced_stateful_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_deployment`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_stateful_set`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -751,8 +490,6 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **k query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -761,1480 +498,7 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **k body_params = None if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_stateful_set(self, name, namespace, body, **kwargs): - """ - delete a StatefulSet - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_stateful_set(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StatefulSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) - return data - - def delete_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): - """ - delete a StatefulSet - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_stateful_set_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StatefulSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_stateful_set" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_stateful_set`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) - else: - (data) = self.get_api_resources_with_http_info(**kwargs) - return data - - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_deployment_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Deployment - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_deployment_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: AppsV1beta1DeploymentList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) - return data - - def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Deployment - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_deployment_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: AppsV1beta1DeploymentList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_deployment_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/deployments'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1DeploymentList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_deployment(self, namespace, **kwargs): - """ - list or watch objects of kind Deployment - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_deployment(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: AppsV1beta1DeploymentList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) - else: - (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) - return data - - def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Deployment - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_deployment_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: AppsV1beta1DeploymentList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_namespaced_deployment" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1DeploymentList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_stateful_set(self, namespace, **kwargs): - """ - list or watch objects of kind StatefulSet - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_stateful_set(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1StatefulSetList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) - else: - (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) - return data - - def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind StatefulSet - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_stateful_set_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1StatefulSetList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_namespaced_stateful_set" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSetList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_stateful_set_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind StatefulSet - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_stateful_set_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1StatefulSetList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) - return data - - def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind StatefulSet - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_stateful_set_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1StatefulSetList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_stateful_set_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/statefulsets'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSetList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment(self, name, namespace, body, **kwargs): - """ - partially update the specified Deployment - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_deployment(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Deployment - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_deployment" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Deployment', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Deployment - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_deployment_status(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Deployment - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_deployment_status_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_deployment_status" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Deployment', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_scale_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified Scale - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_scale_scale(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Scale (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Scale - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_scale_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified Scale - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_scale_scale_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Scale (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Scale - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_scale_scale" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scale_scale`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scale_scale`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scale_scale`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Scale', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): - """ - partially update the specified StatefulSet - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_stateful_set(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StatefulSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1StatefulSet - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified StatefulSet - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_stateful_set_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StatefulSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1StatefulSet - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_stateful_set" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSet', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified StatefulSet - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_stateful_set_status(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StatefulSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1StatefulSet - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified StatefulSet - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StatefulSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1StatefulSet - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_stateful_set_status" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSet', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment(self, name, namespace, **kwargs): - """ - read the specified Deployment - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_deployment(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: AppsV1beta1Deployment - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) - return data - - def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Deployment - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_deployment_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: AppsV1beta1Deployment - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_namespaced_deployment" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -2246,14 +510,14 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='AppsV1beta1Deployment', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2261,55 +525,49 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_deployment_status(self, name, namespace, **kwargs): + def get_api_resources(self, **kwargs): """ - read status of the specified Deployment + get available resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_deployment_status(name, namespace, callback=callback_function) + >>> thread = api.get_api_resources(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + return self.get_api_resources_with_http_info(**kwargs) else: - (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) return data - def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): + def get_api_resources_with_http_info(self, **kwargs): """ - read status of the specified Deployment + get available resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.get_api_resources_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2320,30 +578,17 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_deployment_status" % key + " to method get_api_resources" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") - collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] header_params = {} @@ -2357,7 +602,7 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # Authentication setting auth_settings = ['BearerToken'] @@ -2369,7 +614,7 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='AppsV1beta1Deployment', + response_type='UnversionedAPIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2377,55 +622,63 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_scale_scale(self, name, namespace, **kwargs): + def list_namespaced_stateful_set(self, namespace, **kwargs): """ - read scale of the specified Scale + list or watch objects of kind StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_scale_scale(name, namespace, callback=callback_function) + >>> thread = api.list_namespaced_stateful_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Scale + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1StatefulSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_scale_scale_with_http_info(name, namespace, **kwargs) + return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) else: - (data) = self.read_namespaced_scale_scale_with_http_info(name, namespace, **kwargs) + (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) return data - def read_namespaced_scale_scale_with_http_info(self, name, namespace, **kwargs): + def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): """ - read scale of the specified Scale + list or watch objects of kind StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_scale_scale_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.list_namespaced_stateful_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Scale + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1StatefulSetList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2436,30 +689,35 @@ def read_namespaced_scale_scale_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_scale_scale" % key + " to method list_namespaced_stateful_set" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scale_scale`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scale_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -2469,7 +727,7 @@ def read_namespaced_scale_scale_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -2485,7 +743,7 @@ def read_namespaced_scale_scale_with_http_info(self, name, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='AppsV1beta1Scale', + response_type='V1beta1StatefulSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2493,59 +751,61 @@ def read_namespaced_scale_scale_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_stateful_set(self, name, namespace, **kwargs): + def list_stateful_set_for_all_namespaces(self, **kwargs): """ - read the specified StatefulSet + list or watch objects of kind StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_stateful_set(name, namespace, callback=callback_function) + >>> thread = api.list_stateful_set_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the StatefulSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1StatefulSet + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1StatefulSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) return data - def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): + def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): """ - read the specified StatefulSet + list or watch objects of kind StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_stateful_set_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.list_stateful_set_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the StatefulSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1StatefulSet + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1StatefulSetList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2556,34 +816,30 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_stateful_set" % key + " to method list_stateful_set_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/statefulsets'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -2593,7 +849,7 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -2609,7 +865,7 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1StatefulSet', + response_type='V1beta1StatefulSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2617,21 +873,22 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): + def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): """ - read status of the specified StatefulSet + partially update the specified StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_stateful_set_status(name, namespace, callback=callback_function) + >>> thread = api.patch_namespaced_stateful_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1StatefulSet If the method is called asynchronously, @@ -2639,33 +896,34 @@ def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) + return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): + def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): """ - read status of the specified StatefulSet + partially update the specified StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_stateful_set_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.patch_namespaced_stateful_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2676,21 +934,24 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_stateful_set_status" % key + " to method patch_namespaced_stateful_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -2707,18 +968,20 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, @@ -2733,52 +996,52 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_deployment(self, name, namespace, body, **kwargs): + def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): """ - replace the specified Deployment + partially update status of the specified StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_deployment(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_stateful_set_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param AppsV1beta1Deployment body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment + :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): """ - replace the specified Deployment + partially update status of the specified StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param AppsV1beta1Deployment body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment + :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ @@ -2794,24 +1057,24 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_deployment" % key + " to method patch_namespaced_stateful_set_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -2836,19 +1099,19 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='AppsV1beta1Deployment', + response_type='V1beta1StatefulSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2856,57 +1119,59 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): + def read_namespaced_stateful_set(self, name, namespace, **kwargs): """ - replace status of the specified Deployment + read the specified StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_deployment_status(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_stateful_set(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param AppsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): """ - replace status of the specified Deployment + read the specified StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_deployment_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_stateful_set_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param AppsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2917,24 +1182,21 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_deployment_status" % key + " to method read_namespaced_stateful_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -2944,6 +1206,10 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] header_params = {} @@ -2951,8 +1217,6 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -2964,14 +1228,14 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='AppsV1beta1Deployment', + response_type='V1beta1StatefulSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2979,57 +1243,55 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_scale_scale(self, name, namespace, body, **kwargs): + def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): """ - replace scale of the specified Scale + read status of the specified StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_scale_scale(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_stateful_set_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param AppsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Scale + :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_scale_scale_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): """ - replace scale of the specified Scale + read status of the specified StatefulSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_scale_scale_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_stateful_set_status_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param AppsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Scale + :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3040,24 +1302,21 @@ def replace_namespaced_scale_scale_with_http_info(self, name, namespace, body, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_scale_scale" % key + " to method read_namespaced_stateful_set_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_scale_scale`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_scale_scale`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_scale_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -3074,8 +1333,6 @@ def replace_namespaced_scale_scale_with_http_info(self, name, namespace, body, * local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -3087,14 +1344,14 @@ def replace_namespaced_scale_scale_with_http_info(self, name, namespace, body, * # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='AppsV1beta1Scale', + response_type='V1beta1StatefulSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/authentication_api.py b/kubernetes/client/apis/authentication_api.py index 11c8989afb..fd5833d103 100644 --- a/kubernetes/client/apis/authentication_api.py +++ b/kubernetes/client/apis/authentication_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='UnversionedAPIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/authentication_v1_api.py b/kubernetes/client/apis/authentication_v1_api.py deleted file mode 100644 index 57b89b6e46..0000000000 --- a/kubernetes/client/apis/authentication_v1_api.py +++ /dev/null @@ -1,247 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class AuthenticationV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def create_token_review(self, body, **kwargs): - """ - create a TokenReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_token_review(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1TokenReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1TokenReview - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_token_review_with_http_info(body, **kwargs) - else: - (data) = self.create_token_review_with_http_info(body, **kwargs) - return data - - def create_token_review_with_http_info(self, body, **kwargs): - """ - create a TokenReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_token_review_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1TokenReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1TokenReview - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_token_review" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_token_review`") - - - collection_formats = {} - - resource_path = '/apis/authentication.k8s.io/v1/tokenreviews'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1TokenReview', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) - else: - (data) = self.get_api_resources_with_http_info(**kwargs) - return data - - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/authentication.k8s.io/v1/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/authentication_v1beta1_api.py b/kubernetes/client/apis/authentication_v1beta1_api.py index 2d8a9f445d..23a5b160dc 100644 --- a/kubernetes/client/apis/authentication_v1beta1_api.py +++ b/kubernetes/client/apis/authentication_v1beta1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -162,7 +162,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ @@ -186,7 +186,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ @@ -238,7 +238,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='UnversionedAPIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/authorization_api.py b/kubernetes/client/apis/authorization_api.py deleted file mode 100644 index 24a6dbd658..0000000000 --- a/kubernetes/client/apis/authorization_api.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class AuthorizationApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_group(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_group_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/authorization.k8s.io/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/authorization_v1_api.py b/kubernetes/client/apis/authorization_v1_api.py deleted file mode 100644 index 16d8059667..0000000000 --- a/kubernetes/client/apis/authorization_v1_api.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class AuthorizationV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def create_namespaced_local_subject_access_review(self, namespace, body, **kwargs): - """ - create a LocalSubjectAccessReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_local_subject_access_review(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1LocalSubjectAccessReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1LocalSubjectAccessReview - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) - else: - (data) = self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) - return data - - def create_namespaced_local_subject_access_review_with_http_info(self, namespace, body, **kwargs): - """ - create a LocalSubjectAccessReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_local_subject_access_review_with_http_info(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1LocalSubjectAccessReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1LocalSubjectAccessReview - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_namespaced_local_subject_access_review" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") - - - collection_formats = {} - - resource_path = '/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1LocalSubjectAccessReview', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_self_subject_access_review(self, body, **kwargs): - """ - create a SelfSubjectAccessReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_self_subject_access_review(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1SelfSubjectAccessReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1SelfSubjectAccessReview - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_self_subject_access_review_with_http_info(body, **kwargs) - else: - (data) = self.create_self_subject_access_review_with_http_info(body, **kwargs) - return data - - def create_self_subject_access_review_with_http_info(self, body, **kwargs): - """ - create a SelfSubjectAccessReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_self_subject_access_review_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1SelfSubjectAccessReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1SelfSubjectAccessReview - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_self_subject_access_review" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_self_subject_access_review`") - - - collection_formats = {} - - resource_path = '/apis/authorization.k8s.io/v1/selfsubjectaccessreviews'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1SelfSubjectAccessReview', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_subject_access_review(self, body, **kwargs): - """ - create a SubjectAccessReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_subject_access_review(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1SubjectAccessReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1SubjectAccessReview - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_subject_access_review_with_http_info(body, **kwargs) - else: - (data) = self.create_subject_access_review_with_http_info(body, **kwargs) - return data - - def create_subject_access_review_with_http_info(self, body, **kwargs): - """ - create a SubjectAccessReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_subject_access_review_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1SubjectAccessReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1SubjectAccessReview - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_subject_access_review" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_subject_access_review`") - - - collection_formats = {} - - resource_path = '/apis/authorization.k8s.io/v1/subjectaccessreviews'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1SubjectAccessReview', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) - else: - (data) = self.get_api_resources_with_http_info(**kwargs) - return data - - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/authorization.k8s.io/v1/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/authorization_v1beta1_api.py b/kubernetes/client/apis/authorization_v1beta1_api.py deleted file mode 100644 index f35b3bcf43..0000000000 --- a/kubernetes/client/apis/authorization_v1beta1_api.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class AuthorizationV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def create_namespaced_local_subject_access_review(self, namespace, body, **kwargs): - """ - create a LocalSubjectAccessReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_local_subject_access_review(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1LocalSubjectAccessReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1LocalSubjectAccessReview - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) - else: - (data) = self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) - return data - - def create_namespaced_local_subject_access_review_with_http_info(self, namespace, body, **kwargs): - """ - create a LocalSubjectAccessReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_local_subject_access_review_with_http_info(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1LocalSubjectAccessReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1LocalSubjectAccessReview - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_namespaced_local_subject_access_review" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") - - - collection_formats = {} - - resource_path = '/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1LocalSubjectAccessReview', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_self_subject_access_review(self, body, **kwargs): - """ - create a SelfSubjectAccessReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_self_subject_access_review(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1beta1SelfSubjectAccessReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1SelfSubjectAccessReview - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_self_subject_access_review_with_http_info(body, **kwargs) - else: - (data) = self.create_self_subject_access_review_with_http_info(body, **kwargs) - return data - - def create_self_subject_access_review_with_http_info(self, body, **kwargs): - """ - create a SelfSubjectAccessReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_self_subject_access_review_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1beta1SelfSubjectAccessReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1SelfSubjectAccessReview - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_self_subject_access_review" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_self_subject_access_review`") - - - collection_formats = {} - - resource_path = '/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1SelfSubjectAccessReview', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_subject_access_review(self, body, **kwargs): - """ - create a SubjectAccessReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_subject_access_review(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1beta1SubjectAccessReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1SubjectAccessReview - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_subject_access_review_with_http_info(body, **kwargs) - else: - (data) = self.create_subject_access_review_with_http_info(body, **kwargs) - return data - - def create_subject_access_review_with_http_info(self, body, **kwargs): - """ - create a SubjectAccessReview - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_subject_access_review_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1beta1SubjectAccessReview body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1SubjectAccessReview - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_subject_access_review" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_subject_access_review`") - - - collection_formats = {} - - resource_path = '/apis/authorization.k8s.io/v1beta1/subjectaccessreviews'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1SubjectAccessReview', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) - else: - (data) = self.get_api_resources_with_http_info(**kwargs) - return data - - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/authorization.k8s.io/v1beta1/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/autoscaling_api.py b/kubernetes/client/apis/autoscaling_api.py index 07aaba247f..b6dcb7f8a0 100644 --- a/kubernetes/client/apis/autoscaling_api.py +++ b/kubernetes/client/apis/autoscaling_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='UnversionedAPIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/autoscaling_v1_api.py b/kubernetes/client/apis/autoscaling_v1_api.py index eb173f7afb..7be46acc7f 100644 --- a/kubernetes/client/apis/autoscaling_v1_api.py +++ b/kubernetes/client/apis/autoscaling_v1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -40,6 +40,115 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client + def create_horizontal_pod_autoscaler_for_all_namespaces(self, body, **kwargs): + """ + create a HorizontalPodAutoscaler + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_horizontal_pod_autoscaler_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a HorizontalPodAutoscaler + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_horizontal_pod_autoscaler_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_horizontal_pod_autoscaler_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v1/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs): """ create a HorizontalPodAutoscaler @@ -173,10 +282,10 @@ def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kw :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -204,10 +313,10 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -277,7 +386,7 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -303,9 +412,8 @@ def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **k :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -334,14 +442,13 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -383,8 +490,6 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -412,7 +517,7 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -433,7 +538,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ @@ -457,7 +562,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ @@ -509,7 +614,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='UnversionedAPIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -530,10 +635,10 @@ def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1HorizontalPodAutoscalerList @@ -560,10 +665,10 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1HorizontalPodAutoscalerList @@ -571,7 +676,7 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -594,12 +699,12 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa path_params = {} query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -656,7 +761,7 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1HorizontalPodAutoscalerList @@ -687,7 +792,7 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1HorizontalPodAutoscalerList @@ -1030,7 +1135,7 @@ def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, @@ -1059,7 +1164,7 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, diff --git a/kubernetes/client/apis/autoscaling_v2alpha1_api.py b/kubernetes/client/apis/autoscaling_v2alpha1_api.py deleted file mode 100644 index 9ef05d6fba..0000000000 --- a/kubernetes/client/apis/autoscaling_v2alpha1_api.py +++ /dev/null @@ -1,1501 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class AutoscalingV2alpha1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs): - """ - create a HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_horizontal_pod_autoscaler(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1HorizontalPodAutoscaler body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) - else: - (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) - return data - - def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): - """ - create a HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1HorizontalPodAutoscaler body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_namespaced_horizontal_pod_autoscaler" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1HorizontalPodAutoscaler', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): - """ - delete collection of HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) - else: - (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) - return data - - def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): - """ - delete collection of HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_horizontal_pod_autoscaler" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): - """ - delete a HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) - return data - - def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): - """ - delete a HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_horizontal_pod_autoscaler" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_horizontal_pod_autoscaler`") - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) - else: - (data) = self.get_api_resources_with_http_info(**kwargs) - return data - - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/autoscaling/v2alpha1/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1HorizontalPodAutoscalerList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) - return data - - def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1HorizontalPodAutoscalerList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_horizontal_pod_autoscaler_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v2alpha1/horizontalpodautoscalers'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1HorizontalPodAutoscalerList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_horizontal_pod_autoscaler(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1HorizontalPodAutoscalerList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) - else: - (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) - return data - - def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1HorizontalPodAutoscalerList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_namespaced_horizontal_pod_autoscaler" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1HorizontalPodAutoscalerList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): - """ - partially update the specified HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_horizontal_pod_autoscaler" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1HorizontalPodAutoscaler', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_horizontal_pod_autoscaler_status" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1HorizontalPodAutoscaler', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): - """ - read the specified HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_horizontal_pod_autoscaler(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) - return data - - def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): - """ - read the specified HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_namespaced_horizontal_pod_autoscaler" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1HorizontalPodAutoscaler', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kwargs): - """ - read status of the specified HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) - return data - - def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_namespaced_horizontal_pod_autoscaler_status" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1HorizontalPodAutoscaler', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): - """ - replace the specified HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1HorizontalPodAutoscaler body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) - return data - - def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1HorizontalPodAutoscaler body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_horizontal_pod_autoscaler" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1HorizontalPodAutoscaler', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1HorizontalPodAutoscaler body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) - return data - - def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified HorizontalPodAutoscaler - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1HorizontalPodAutoscaler body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1HorizontalPodAutoscaler - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_horizontal_pod_autoscaler_status" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1HorizontalPodAutoscaler', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/batch_api.py b/kubernetes/client/apis/batch_api.py index c99bcdadee..d58fe169da 100644 --- a/kubernetes/client/apis/batch_api.py +++ b/kubernetes/client/apis/batch_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='UnversionedAPIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/batch_v1_api.py b/kubernetes/client/apis/batch_v1_api.py index 10105da72e..8b053776ac 100644 --- a/kubernetes/client/apis/batch_v1_api.py +++ b/kubernetes/client/apis/batch_v1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -40,6 +40,115 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client + def create_job_for_all_namespaces(self, body, **kwargs): + """ + create a Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_job_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_job_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_job_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_job_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_job_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Job body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_job_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_job_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/apis/batch/v1/jobs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_job(self, namespace, body, **kwargs): """ create a Job @@ -173,10 +282,10 @@ def delete_collection_namespaced_job(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -204,10 +313,10 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -277,7 +386,7 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -303,9 +412,8 @@ def delete_namespaced_job(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -334,14 +442,13 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -383,8 +490,6 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -412,7 +517,7 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -433,7 +538,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ @@ -457,7 +562,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ @@ -509,7 +614,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='UnversionedAPIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -530,10 +635,10 @@ def list_job_for_all_namespaces(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1JobList @@ -560,10 +665,10 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1JobList @@ -571,7 +676,7 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -594,12 +699,12 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): path_params = {} query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -656,7 +761,7 @@ def list_namespaced_job(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1JobList @@ -687,7 +792,7 @@ def list_namespaced_job_with_http_info(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1JobList @@ -1030,7 +1135,7 @@ def read_namespaced_job(self, name, namespace, **kwargs): :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Job If the method is called asynchronously, @@ -1059,7 +1164,7 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Job If the method is called asynchronously, diff --git a/kubernetes/client/apis/batch_v2alpha1_api.py b/kubernetes/client/apis/batch_v2alpha1_api.py index f55f76bd4b..8a9ea7889c 100644 --- a/kubernetes/client/apis/batch_v2alpha1_api.py +++ b/kubernetes/client/apis/batch_v2alpha1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -40,7 +40,7 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def create_namespaced_cron_job(self, namespace, body, **kwargs): + def create_cron_job_for_all_namespaces(self, body, **kwargs): """ create a CronJob This method makes a synchronous HTTP request by default. To make an @@ -49,11 +49,10 @@ def create_namespaced_cron_job(self, namespace, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_cron_job(namespace, body, callback=callback_function) + >>> thread = api.create_cron_job_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob @@ -62,12 +61,12 @@ def create_namespaced_cron_job(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) + return self.create_cron_job_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) + (data) = self.create_cron_job_for_all_namespaces_with_http_info(body, **kwargs) return data - def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): + def create_cron_job_for_all_namespaces_with_http_info(self, body, **kwargs): """ create a CronJob This method makes a synchronous HTTP request by default. To make an @@ -76,11 +75,10 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_cron_job_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_cron_job_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob @@ -88,7 +86,7 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -99,24 +97,19 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_cron_job" % key + " to method create_cron_job_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_cron_job`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_cron_job`") + raise ValueError("Missing the required parameter `body` when calling `create_cron_job_for_all_namespaces`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/cronjobs'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -156,55 +149,53 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_scheduled_job(self, namespace, body, **kwargs): + def create_job_for_all_namespaces(self, body, **kwargs): """ - create a ScheduledJob + create a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_scheduled_job(namespace, body, callback=callback_function) + >>> thread = api.create_job_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1CronJob body: (required) + :param V2alpha1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :return: V2alpha1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_scheduled_job_with_http_info(namespace, body, **kwargs) + return self.create_job_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_scheduled_job_with_http_info(namespace, body, **kwargs) + (data) = self.create_job_for_all_namespaces_with_http_info(body, **kwargs) return data - def create_namespaced_scheduled_job_with_http_info(self, namespace, body, **kwargs): + def create_job_for_all_namespaces_with_http_info(self, body, **kwargs): """ - create a ScheduledJob + create a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_scheduled_job_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_job_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1CronJob body: (required) + :param V2alpha1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :return: V2alpha1Job If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -215,24 +206,19 @@ def create_namespaced_scheduled_job_with_http_info(self, namespace, body, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_scheduled_job" % key + " to method create_job_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_scheduled_job`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_scheduled_job`") + raise ValueError("Missing the required parameter `body` when calling `create_job_for_all_namespaces`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/jobs'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -264,7 +250,7 @@ def create_namespaced_scheduled_job_with_http_info(self, namespace, body, **kwar body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1CronJob', + response_type='V2alpha1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -272,63 +258,55 @@ def create_namespaced_scheduled_job_with_http_info(self, namespace, body, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_cron_job(self, namespace, **kwargs): + def create_namespaced_cron_job(self, namespace, body, **kwargs): """ - delete collection of CronJob + create a CronJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_cron_job(namespace, callback=callback_function) + >>> thread = api.create_namespaced_cron_job(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) + return self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) else: - (data) = self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) + (data) = self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) return data - def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwargs): + def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): """ - delete collection of CronJob + create a CronJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_cron_job_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_namespaced_cron_job_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -339,13 +317,16 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_cron_job" % key + " to method create_namespaced_cron_job" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_cron_job`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_cron_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_cron_job`") collection_formats = {} @@ -358,16 +339,6 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -375,6 +346,8 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -386,14 +359,14 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V2alpha1CronJob', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -401,63 +374,55 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_scheduled_job(self, namespace, **kwargs): + def create_namespaced_job(self, namespace, body, **kwargs): """ - delete collection of ScheduledJob + create a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_scheduled_job(namespace, callback=callback_function) + >>> thread = api.create_namespaced_job(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V2alpha1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V2alpha1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_scheduled_job_with_http_info(namespace, **kwargs) + return self.create_namespaced_job_with_http_info(namespace, body, **kwargs) else: - (data) = self.delete_collection_namespaced_scheduled_job_with_http_info(namespace, **kwargs) + (data) = self.create_namespaced_job_with_http_info(namespace, body, **kwargs) return data - def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, **kwargs): + def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): """ - delete collection of ScheduledJob + create a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_scheduled_job_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_namespaced_job_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V2alpha1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V2alpha1Job If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -468,18 +433,21 @@ def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_scheduled_job" % key + " to method create_namespaced_job" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_scheduled_job`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -487,16 +455,6 @@ def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, * query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -504,6 +462,8 @@ def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, * local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -515,14 +475,14 @@ def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, * # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V2alpha1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -530,63 +490,55 @@ def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_cron_job(self, name, namespace, body, **kwargs): + def create_namespaced_scheduled_job(self, namespace, body, **kwargs): """ - delete a CronJob + create a ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_cron_job(name, namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_scheduled_job(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + return self.create_namespaced_scheduled_job_with_http_info(namespace, body, **kwargs) else: - (data) = self.delete_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.create_namespaced_scheduled_job_with_http_info(namespace, body, **kwargs) return data - def delete_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): + def create_namespaced_scheduled_job_with_http_info(self, namespace, body, **kwargs): """ - delete a CronJob + create a ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_cron_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_scheduled_job_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -597,39 +549,28 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_cron_job" % key + " to method create_namespaced_scheduled_job" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_cron_job`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_cron_job`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_scheduled_job`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_cron_job`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_scheduled_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -650,14 +591,14 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwa # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V2alpha1CronJob', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -665,63 +606,53 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_scheduled_job(self, name, namespace, body, **kwargs): + def create_scheduled_job_for_all_namespaces(self, body, **kwargs): """ - delete a ScheduledJob + create a ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_scheduled_job(name, namespace, body, callback=callback_function) + >>> thread = api.create_scheduled_job_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) + return self.create_scheduled_job_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.delete_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.create_scheduled_job_for_all_namespaces_with_http_info(body, **kwargs) return data - def delete_namespaced_scheduled_job_with_http_info(self, name, namespace, body, **kwargs): + def create_scheduled_job_for_all_namespaces_with_http_info(self, body, **kwargs): """ - delete a ScheduledJob + create a ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_scheduled_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.create_scheduled_job_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -732,39 +663,23 @@ def delete_namespaced_scheduled_job_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_scheduled_job" % key + " to method create_scheduled_job_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_scheduled_job`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_scheduled_job`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_scheduled_job`") + raise ValueError("Missing the required parameter `body` when calling `create_scheduled_job_for_all_namespaces`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/scheduledjobs'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -785,14 +700,14 @@ def delete_namespaced_scheduled_job_with_http_info(self, name, namespace, body, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V2alpha1CronJob', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -800,49 +715,63 @@ def delete_namespaced_scheduled_job_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources(self, **kwargs): + def delete_collection_namespaced_cron_job(self, namespace, **kwargs): """ - get available resources + delete collection of CronJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources(callback=callback_function) + >>> thread = api.delete_collection_namespaced_cron_job(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) + return self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) return data - def get_api_resources_with_http_info(self, **kwargs): + def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwargs): """ - get available resources + delete collection of CronJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_cron_job_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -853,17 +782,35 @@ def get_api_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key + " to method delete_collection_namespaced_cron_job" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_cron_job`") + collection_formats = {} - resource_path = '/apis/batch/v2alpha1/'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs'.replace('{format}', 'json') path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -877,19 +824,19 @@ def get_api_resources_with_http_info(self, **kwargs): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -897,61 +844,63 @@ def get_api_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_cron_job_for_all_namespaces(self, **kwargs): + def delete_collection_namespaced_job(self, namespace, **kwargs): """ - list or watch objects of kind CronJob + delete collection of Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_cron_job_for_all_namespaces(callback=callback_function) + >>> thread = api.delete_collection_namespaced_job(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1CronJobList + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) + return self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) else: - (data) = self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) return data - def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): + def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind CronJob + delete collection of Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_cron_job_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_job_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1CronJobList + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -962,24 +911,29 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_cron_job_for_all_namespaces" % key + " to method delete_collection_namespaced_job" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/cronjobs'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs'.replace('{format}', 'json') path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -995,7 +949,7 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -1004,14 +958,14 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1CronJobList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1019,16 +973,16 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_cron_job(self, namespace, **kwargs): + def delete_collection_namespaced_scheduled_job(self, namespace, **kwargs): """ - list or watch objects of kind CronJob + delete collection of ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_cron_job(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_scheduled_job(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1036,30 +990,30 @@ def list_namespaced_cron_job(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1CronJobList + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_scheduled_job_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_scheduled_job_with_http_info(namespace, **kwargs) return data - def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): + def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind CronJob + delete collection of ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_cron_job_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_scheduled_job_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1067,10 +1021,10 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1CronJobList + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -1086,18 +1040,18 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_cron_job" % key + " to method delete_collection_namespaced_scheduled_job" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_cron_job`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_scheduled_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -1124,7 +1078,7 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -1133,14 +1087,14 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1CronJobList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1148,63 +1102,61 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_scheduled_job(self, namespace, **kwargs): + def delete_namespaced_cron_job(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ScheduledJob + delete a CronJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_scheduled_job(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_cron_job(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1CronJobList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_scheduled_job_with_http_info(namespace, **kwargs) + return self.delete_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_namespaced_scheduled_job_with_http_info(namespace, **kwargs) + (data) = self.delete_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) return data - def list_namespaced_scheduled_job_with_http_info(self, namespace, **kwargs): + def delete_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ScheduledJob + delete a CronJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_scheduled_job_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_cron_job_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1CronJobList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1215,35 +1167,37 @@ def list_namespaced_scheduled_job_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_scheduled_job" % key + " to method delete_namespaced_cron_job" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_cron_job`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_scheduled_job`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_cron_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_cron_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -1251,9 +1205,11 @@ def list_namespaced_scheduled_job_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -1262,14 +1218,14 @@ def list_namespaced_scheduled_job_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1CronJobList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1277,61 +1233,61 @@ def list_namespaced_scheduled_job_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_scheduled_job_for_all_namespaces(self, **kwargs): + def delete_namespaced_job(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ScheduledJob + delete a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_scheduled_job_for_all_namespaces(callback=callback_function) + >>> thread = api.delete_namespaced_job(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1CronJobList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_scheduled_job_for_all_namespaces_with_http_info(**kwargs) + return self.delete_namespaced_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_scheduled_job_for_all_namespaces_with_http_info(**kwargs) + (data) = self.delete_namespaced_job_with_http_info(name, namespace, body, **kwargs) return data - def list_scheduled_job_for_all_namespaces_with_http_info(self, **kwargs): + def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ScheduledJob + delete a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_scheduled_job_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.delete_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1CronJobList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1342,30 +1298,37 @@ def list_scheduled_job_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_scheduled_job_for_all_namespaces" % key + " to method delete_namespaced_job" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/scheduledjobs'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -1373,9 +1336,11 @@ def list_scheduled_job_for_all_namespaces_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -1384,14 +1349,14 @@ def list_scheduled_job_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1CronJobList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1399,57 +1364,61 @@ def list_scheduled_job_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): + def delete_namespaced_scheduled_job(self, name, namespace, body, **kwargs): """ - partially update the specified CronJob + delete a ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_cron_job(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_scheduled_job(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_scheduled_job_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified CronJob + delete a ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_cron_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_scheduled_job_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1460,24 +1429,24 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_cron_job" % key + " to method delete_namespaced_scheduled_job" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_scheduled_job`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_scheduled_job`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_scheduled_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -1487,6 +1456,10 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -1502,19 +1475,19 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1CronJob', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1522,20 +1495,1513 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): + def get_api_resources(self, **kwargs): + """ + get available resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_with_http_info(**kwargs) + return data + + def get_api_resources_with_http_info(self, **kwargs): + """ + get available resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/'.replace('{format}', 'json') + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cron_job_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind CronJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cron_job_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1CronJobList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind CronJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cron_job_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1CronJobList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_cron_job_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/cronjobs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJobList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_job_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_job_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1JobList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_job_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_job_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_job_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_job_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1JobList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_job_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/jobs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1JobList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_cron_job(self, namespace, **kwargs): + """ + list or watch objects of kind CronJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_cron_job(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1CronJobList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind CronJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_cron_job_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1CronJobList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_cron_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_cron_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJobList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_job(self, namespace, **kwargs): + """ + list or watch objects of kind Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_job(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1JobList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_job_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_job_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_job_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_job_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1JobList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1JobList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_scheduled_job(self, namespace, **kwargs): + """ + list or watch objects of kind ScheduledJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_scheduled_job(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1CronJobList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_scheduled_job_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_scheduled_job_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_scheduled_job_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind ScheduledJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_scheduled_job_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1CronJobList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_scheduled_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_scheduled_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJobList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_scheduled_job_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind ScheduledJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_scheduled_job_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1CronJobList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_scheduled_job_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_scheduled_job_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_scheduled_job_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind ScheduledJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_scheduled_job_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1CronJobList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_scheduled_job_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/scheduledjobs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJobList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): + """ + partially update the specified CronJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_cron_job(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CronJob (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1CronJob + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified CronJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_cron_job_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CronJob (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1CronJob + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_cron_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJob', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): + """ + partially update status of the specified CronJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_cron_job_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CronJob (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1CronJob + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update status of the specified CronJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CronJob (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1CronJob + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_cron_job_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job_status`") + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJob', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_job(self, name, namespace, body, **kwargs): + """ + partially update the specified Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_job(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_job_status(self, name, namespace, body, **kwargs): + """ + partially update status of the specified Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_job_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1Job + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update status of the specified Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_job_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1Job + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_job_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_job_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_job_status`") + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1Job', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_scheduled_job(self, name, namespace, body, **kwargs): + """ + partially update the specified ScheduledJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_scheduled_job(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ScheduledJob (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1CronJob + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_scheduled_job_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified ScheduledJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_scheduled_job_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ScheduledJob (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1CronJob + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_scheduled_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scheduled_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scheduled_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scheduled_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJob', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_scheduled_job_status(self, name, namespace, body, **kwargs): + """ + partially update status of the specified ScheduledJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_scheduled_job_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ScheduledJob (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1CronJob + If the method is called asynchronously, + returns the request thread. """ - partially update status of the specified CronJob + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_scheduled_job_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_scheduled_job_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_scheduled_job_status_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update status of the specified ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_cron_job_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_scheduled_job_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1543,36 +3009,133 @@ def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): If the method is called asynchronously, returns the request thread. """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_scheduled_job_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scheduled_job_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scheduled_job_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scheduled_job_status`") + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJob', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_cron_job(self, name, namespace, **kwargs): + """ + read the specified CronJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_cron_job(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CronJob (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V2alpha1CronJob + If the method is called asynchronously, + returns the request thread. + """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): """ - partially update status of the specified CronJob + read the specified CronJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_cron_job_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1583,19 +3146,136 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_cron_job_status" % key + " to method read_namespaced_cron_job" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job_status`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job_status`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job`") + + + collection_formats = {} + + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJob', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_cron_job_status(self, name, namespace, **kwargs): + """ + read status of the specified CronJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_cron_job_status(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CronJob (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1CronJob + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwargs): + """ + read status of the specified CronJob + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_cron_job_status_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CronJob (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1CronJob + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_cron_job_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job_status`") collection_formats = {} @@ -1617,20 +3297,18 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, @@ -1645,57 +3323,59 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_scheduled_job(self, name, namespace, body, **kwargs): + def read_namespaced_job(self, name, namespace, **kwargs): """ - partially update the specified ScheduledJob + read the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_scheduled_job(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_job(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V2alpha1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_job_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_job_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_scheduled_job_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): """ - partially update the specified ScheduledJob + read the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_scheduled_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_job_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V2alpha1Job If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1706,24 +3386,21 @@ def patch_namespaced_scheduled_job_with_http_info(self, name, namespace, body, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_scheduled_job" % key + " to method read_namespaced_job" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scheduled_job`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_job`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scheduled_job`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scheduled_job`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -1733,6 +3410,10 @@ def patch_namespaced_scheduled_job_with_http_info(self, name, namespace, body, * query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] header_params = {} @@ -1740,27 +3421,25 @@ def patch_namespaced_scheduled_job_with_http_info(self, name, namespace, body, * local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1CronJob', + response_type='V2alpha1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1768,57 +3447,55 @@ def patch_namespaced_scheduled_job_with_http_info(self, name, namespace, body, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_scheduled_job_status(self, name, namespace, body, **kwargs): + def read_namespaced_job_status(self, name, namespace, **kwargs): """ - partially update status of the specified ScheduledJob + read status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_scheduled_job_status(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_job_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :return: V2alpha1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_scheduled_job_status_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_scheduled_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_scheduled_job_status_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): """ - partially update status of the specified ScheduledJob + read status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_scheduled_job_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_job_status_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :return: V2alpha1Job If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1829,24 +3506,21 @@ def patch_namespaced_scheduled_job_status_with_http_info(self, name, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_scheduled_job_status" % key + " to method read_namespaced_job_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scheduled_job_status`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_job_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scheduled_job_status`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scheduled_job_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_job_status`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -1863,27 +3537,25 @@ def patch_namespaced_scheduled_job_status_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1CronJob', + response_type='V2alpha1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1891,23 +3563,23 @@ def patch_namespaced_scheduled_job_status_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_cron_job(self, name, namespace, **kwargs): + def read_namespaced_scheduled_job(self, name, namespace, **kwargs): """ - read the specified CronJob + read the specified ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_cron_job(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_scheduled_job(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V2alpha1CronJob If the method is called asynchronously, @@ -1915,28 +3587,28 @@ def read_namespaced_cron_job(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_scheduled_job_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_scheduled_job_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_scheduled_job_with_http_info(self, name, namespace, **kwargs): """ - read the specified CronJob + read the specified ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_cron_job_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_scheduled_job_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V2alpha1CronJob If the method is called asynchronously, @@ -1954,21 +3626,21 @@ def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_cron_job" % key + " to method read_namespaced_scheduled_job" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scheduled_job`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scheduled_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -2015,20 +3687,20 @@ def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_cron_job_status(self, name, namespace, **kwargs): + def read_namespaced_scheduled_job_status(self, name, namespace, **kwargs): """ - read status of the specified CronJob + read status of the specified ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_cron_job_status(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_scheduled_job_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob @@ -2037,25 +3709,25 @@ def read_namespaced_cron_job_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_scheduled_job_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_scheduled_job_status_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_scheduled_job_status_with_http_info(self, name, namespace, **kwargs): """ - read status of the specified CronJob + read status of the specified ScheduledJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_cron_job_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_scheduled_job_status_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob @@ -2074,21 +3746,21 @@ def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_cron_job_status" % key + " to method read_namespaced_scheduled_job_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job_status`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scheduled_job_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scheduled_job_status`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -2131,59 +3803,57 @@ def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_scheduled_job(self, name, namespace, **kwargs): + def replace_namespaced_cron_job(self, name, namespace, body, **kwargs): """ - read the specified ScheduledJob + replace the specified CronJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_scheduled_job(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_cron_job(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) + :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_scheduled_job_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_scheduled_job_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_scheduled_job_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): """ - read the specified ScheduledJob + replace the specified CronJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_scheduled_job_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_cron_job_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) + :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2194,21 +3864,24 @@ def read_namespaced_scheduled_job_with_http_info(self, name, namespace, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_scheduled_job" % key + " to method replace_namespaced_cron_job" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scheduled_job`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scheduled_job`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -2218,10 +3891,6 @@ def read_namespaced_scheduled_job_with_http_info(self, name, namespace, **kwargs query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] header_params = {} @@ -2229,6 +3898,8 @@ def read_namespaced_scheduled_job_with_http_info(self, name, namespace, **kwargs local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -2240,7 +3911,7 @@ def read_namespaced_scheduled_job_with_http_info(self, name, namespace, **kwargs # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, @@ -2255,21 +3926,22 @@ def read_namespaced_scheduled_job_with_http_info(self, name, namespace, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_scheduled_job_status(self, name, namespace, **kwargs): + def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): """ - read status of the specified ScheduledJob + replace status of the specified CronJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_scheduled_job_status(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_cron_job_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) + :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, @@ -2277,33 +3949,34 @@ def read_namespaced_scheduled_job_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_scheduled_job_status_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_scheduled_job_status_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_scheduled_job_status_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): """ - read status of the specified ScheduledJob + replace status of the specified CronJob This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_scheduled_job_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) + :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2314,21 +3987,24 @@ def read_namespaced_scheduled_job_status_with_http_info(self, name, namespace, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_scheduled_job_status" % key + " to method replace_namespaced_cron_job_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scheduled_job_status`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scheduled_job_status`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job_status`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -2345,6 +4021,8 @@ def read_namespaced_scheduled_job_status_with_http_info(self, name, namespace, * local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -2356,7 +4034,7 @@ def read_namespaced_scheduled_job_status_with_http_info(self, name, namespace, * # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, @@ -2371,52 +4049,52 @@ def read_namespaced_scheduled_job_status_with_http_info(self, name, namespace, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_cron_job(self, name, namespace, body, **kwargs): + def replace_namespaced_job(self, name, namespace, body, **kwargs): """ - replace the specified CronJob + replace the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_cron_job(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_job(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1CronJob body: (required) + :param V2alpha1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :return: V2alpha1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): """ - replace the specified CronJob + replace the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_cron_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1CronJob body: (required) + :param V2alpha1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :return: V2alpha1Job If the method is called asynchronously, returns the request thread. """ @@ -2432,24 +4110,24 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_cron_job" % key + " to method replace_namespaced_job" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -2486,7 +4164,7 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1CronJob', + response_type='V2alpha1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2494,52 +4172,52 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): + def replace_namespaced_job_status(self, name, namespace, body, **kwargs): """ - replace status of the specified CronJob + replace status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_cron_job_status(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_job_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1CronJob body: (required) + :param V2alpha1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :return: V2alpha1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): """ - replace status of the specified CronJob + replace status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_job_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1CronJob body: (required) + :param V2alpha1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :return: V2alpha1Job If the method is called asynchronously, returns the request thread. """ @@ -2555,24 +4233,24 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_cron_job_status" % key + " to method replace_namespaced_job_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job_status`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job_status`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job_status`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job_status`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job_status`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -2609,7 +4287,7 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1CronJob', + response_type='V2alpha1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/certificates_api.py b/kubernetes/client/apis/certificates_api.py index e9a5e261c7..b2fce7d92c 100644 --- a/kubernetes/client/apis/certificates_api.py +++ b/kubernetes/client/apis/certificates_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='UnversionedAPIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/certificates_v1alpha1_api.py b/kubernetes/client/apis/certificates_v1alpha1_api.py new file mode 100644 index 0000000000..02d553c8a4 --- /dev/null +++ b/kubernetes/client/apis/certificates_v1alpha1_api.py @@ -0,0 +1,1196 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class CertificatesV1alpha1Api(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_certificate_signing_request(self, body, **kwargs): + """ + create a CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_certificate_signing_request(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1CertificateSigningRequest body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_certificate_signing_request_with_http_info(body, **kwargs) + else: + (data) = self.create_certificate_signing_request_with_http_info(body, **kwargs) + return data + + def create_certificate_signing_request_with_http_info(self, body, **kwargs): + """ + create a CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_certificate_signing_request_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1CertificateSigningRequest body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_certificate_signing_request`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_certificate_signing_request(self, name, body, **kwargs): + """ + delete a CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_certificate_signing_request(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_certificate_signing_request_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_certificate_signing_request_with_http_info(name, body, **kwargs) + return data + + def delete_certificate_signing_request_with_http_info(self, name, body, **kwargs): + """ + delete a CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_certificate_signing_request_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_certificate_signing_request`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_certificate_signing_request`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_certificate_signing_request(self, **kwargs): + """ + delete collection of CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_certificate_signing_request(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_certificate_signing_request_with_http_info(**kwargs) + else: + (data) = self.delete_collection_certificate_signing_request_with_http_info(**kwargs) + return data + + def delete_collection_certificate_signing_request_with_http_info(self, **kwargs): + """ + delete collection of CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_certificate_signing_request_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): + """ + get available resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_with_http_info(**kwargs) + return data + + def get_api_resources_with_http_info(self, **kwargs): + """ + get available resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/'.replace('{format}', 'json') + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_certificate_signing_request(self, **kwargs): + """ + list or watch objects of kind CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_certificate_signing_request(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1CertificateSigningRequestList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_certificate_signing_request_with_http_info(**kwargs) + else: + (data) = self.list_certificate_signing_request_with_http_info(**kwargs) + return data + + def list_certificate_signing_request_with_http_info(self, **kwargs): + """ + list or watch objects of kind CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_certificate_signing_request_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1CertificateSigningRequestList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequestList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_certificate_signing_request(self, name, body, **kwargs): + """ + partially update the specified CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_certificate_signing_request(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_certificate_signing_request_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_certificate_signing_request_with_http_info(name, body, **kwargs) + return data + + def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs): + """ + partially update the specified CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_certificate_signing_request_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_certificate_signing_request`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_certificate_signing_request`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_certificate_signing_request(self, name, **kwargs): + """ + read the specified CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_certificate_signing_request(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_certificate_signing_request_with_http_info(name, **kwargs) + else: + (data) = self.read_certificate_signing_request_with_http_info(name, **kwargs) + return data + + def read_certificate_signing_request_with_http_info(self, name, **kwargs): + """ + read the specified CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_certificate_signing_request_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_certificate_signing_request`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_certificate_signing_request(self, name, body, **kwargs): + """ + replace the specified CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_certificate_signing_request(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param V1alpha1CertificateSigningRequest body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_certificate_signing_request_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_certificate_signing_request_with_http_info(name, body, **kwargs) + return data + + def replace_certificate_signing_request_with_http_info(self, name, body, **kwargs): + """ + replace the specified CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_certificate_signing_request_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the CertificateSigningRequest (required) + :param V1alpha1CertificateSigningRequest body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_certificate_signing_request" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_certificate_signing_request_approval(self, body, name, **kwargs): + """ + replace approval of the specified CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_certificate_signing_request_approval(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1CertificateSigningRequest body: (required) + :param str name: name of the CertificateSigningRequest (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_certificate_signing_request_approval_with_http_info(body, name, **kwargs) + else: + (data) = self.replace_certificate_signing_request_approval_with_http_info(body, name, **kwargs) + return data + + def replace_certificate_signing_request_approval_with_http_info(self, body, name, **kwargs): + """ + replace approval of the specified CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_certificate_signing_request_approval_with_http_info(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1CertificateSigningRequest body: (required) + :param str name: name of the CertificateSigningRequest (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_certificate_signing_request_approval" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request_approval`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request_approval`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/approval'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_certificate_signing_request_status(self, body, name, **kwargs): + """ + replace status of the specified CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_certificate_signing_request_status(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1CertificateSigningRequest body: (required) + :param str name: name of the CertificateSigningRequest (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_certificate_signing_request_status_with_http_info(body, name, **kwargs) + else: + (data) = self.replace_certificate_signing_request_status_with_http_info(body, name, **kwargs) + return data + + def replace_certificate_signing_request_status_with_http_info(self, body, name, **kwargs): + """ + replace status of the specified CertificateSigningRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_certificate_signing_request_status_with_http_info(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1CertificateSigningRequest body: (required) + :param str name: name of the CertificateSigningRequest (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1CertificateSigningRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_certificate_signing_request_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request_status`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request_status`") + + + collection_formats = {} + + resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1CertificateSigningRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/certificates_v1beta1_api.py b/kubernetes/client/apis/certificates_v1beta1_api.py deleted file mode 100644 index 088552a4ee..0000000000 --- a/kubernetes/client/apis/certificates_v1beta1_api.py +++ /dev/null @@ -1,1200 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class CertificatesV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def create_certificate_signing_request(self, body, **kwargs): - """ - create a CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_certificate_signing_request(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1beta1CertificateSigningRequest body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CertificateSigningRequest - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_certificate_signing_request_with_http_info(body, **kwargs) - else: - (data) = self.create_certificate_signing_request_with_http_info(body, **kwargs) - return data - - def create_certificate_signing_request_with_http_info(self, body, **kwargs): - """ - create a CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_certificate_signing_request_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1beta1CertificateSigningRequest body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CertificateSigningRequest - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_certificate_signing_request" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_certificate_signing_request`") - - - collection_formats = {} - - resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_certificate_signing_request(self, name, body, **kwargs): - """ - delete a CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_certificate_signing_request(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_certificate_signing_request_with_http_info(name, body, **kwargs) - else: - (data) = self.delete_certificate_signing_request_with_http_info(name, body, **kwargs) - return data - - def delete_certificate_signing_request_with_http_info(self, name, body, **kwargs): - """ - delete a CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_certificate_signing_request_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_certificate_signing_request" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_certificate_signing_request`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_certificate_signing_request`") - - - collection_formats = {} - - resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_certificate_signing_request(self, **kwargs): - """ - delete collection of CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_certificate_signing_request(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_collection_certificate_signing_request_with_http_info(**kwargs) - else: - (data) = self.delete_collection_certificate_signing_request_with_http_info(**kwargs) - return data - - def delete_collection_certificate_signing_request_with_http_info(self, **kwargs): - """ - delete collection of CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_certificate_signing_request_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_certificate_signing_request" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) - else: - (data) = self.get_api_resources_with_http_info(**kwargs) - return data - - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/certificates.k8s.io/v1beta1/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_certificate_signing_request(self, **kwargs): - """ - list or watch objects of kind CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_certificate_signing_request(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1CertificateSigningRequestList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_certificate_signing_request_with_http_info(**kwargs) - else: - (data) = self.list_certificate_signing_request_with_http_info(**kwargs) - return data - - def list_certificate_signing_request_with_http_info(self, **kwargs): - """ - list or watch objects of kind CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_certificate_signing_request_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1CertificateSigningRequestList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_certificate_signing_request" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequestList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_certificate_signing_request(self, name, body, **kwargs): - """ - partially update the specified CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_certificate_signing_request(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CertificateSigningRequest - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_certificate_signing_request_with_http_info(name, body, **kwargs) - else: - (data) = self.patch_certificate_signing_request_with_http_info(name, body, **kwargs) - return data - - def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs): - """ - partially update the specified CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_certificate_signing_request_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CertificateSigningRequest - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_certificate_signing_request" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_certificate_signing_request`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_certificate_signing_request`") - - - collection_formats = {} - - resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_certificate_signing_request(self, name, **kwargs): - """ - read the specified CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_certificate_signing_request(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1CertificateSigningRequest - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_certificate_signing_request_with_http_info(name, **kwargs) - else: - (data) = self.read_certificate_signing_request_with_http_info(name, **kwargs) - return data - - def read_certificate_signing_request_with_http_info(self, name, **kwargs): - """ - read the specified CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_certificate_signing_request_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1CertificateSigningRequest - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'pretty', 'exact', 'export'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_certificate_signing_request" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_certificate_signing_request`") - - - collection_formats = {} - - resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_certificate_signing_request(self, name, body, **kwargs): - """ - replace the specified CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_certificate_signing_request(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param V1beta1CertificateSigningRequest body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CertificateSigningRequest - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_certificate_signing_request_with_http_info(name, body, **kwargs) - else: - (data) = self.replace_certificate_signing_request_with_http_info(name, body, **kwargs) - return data - - def replace_certificate_signing_request_with_http_info(self, name, body, **kwargs): - """ - replace the specified CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_certificate_signing_request_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param V1beta1CertificateSigningRequest body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CertificateSigningRequest - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_certificate_signing_request" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request`") - - - collection_formats = {} - - resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_certificate_signing_request_approval(self, name, body, **kwargs): - """ - replace approval of the specified CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_certificate_signing_request_approval(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param V1beta1CertificateSigningRequest body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CertificateSigningRequest - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_certificate_signing_request_approval_with_http_info(name, body, **kwargs) - else: - (data) = self.replace_certificate_signing_request_approval_with_http_info(name, body, **kwargs) - return data - - def replace_certificate_signing_request_approval_with_http_info(self, name, body, **kwargs): - """ - replace approval of the specified CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_certificate_signing_request_approval_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param V1beta1CertificateSigningRequest body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CertificateSigningRequest - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_certificate_signing_request_approval" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request_approval`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request_approval`") - - - collection_formats = {} - - resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_certificate_signing_request_status(self, name, body, **kwargs): - """ - replace status of the specified CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_certificate_signing_request_status(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param V1beta1CertificateSigningRequest body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CertificateSigningRequest - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_certificate_signing_request_status_with_http_info(name, body, **kwargs) - else: - (data) = self.replace_certificate_signing_request_status_with_http_info(name, body, **kwargs) - return data - - def replace_certificate_signing_request_status_with_http_info(self, name, body, **kwargs): - """ - replace status of the specified CertificateSigningRequest - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_certificate_signing_request_status_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param V1beta1CertificateSigningRequest body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CertificateSigningRequest - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_certificate_signing_request_status" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request_status`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request_status`") - - - collection_formats = {} - - resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/core_api.py b/kubernetes/client/apis/core_api.py index fef3b51c35..50c489acdb 100644 --- a/kubernetes/client/apis/core_api.py +++ b/kubernetes/client/apis/core_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_versions(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIVersions + :return: UnversionedAPIVersions If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_versions_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIVersions + :return: UnversionedAPIVersions If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_versions_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIVersions', + response_type='UnversionedAPIVersions', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/core_v1_api.py b/kubernetes/client/apis/core_v1_api.py index ff6552e3bd..32ff0bb556 100644 --- a/kubernetes/client/apis/core_v1_api.py +++ b/kubernetes/client/apis/core_v1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -1026,7 +1026,6 @@ def connect_get_namespaced_pod_portforward(self, name, namespace, **kwargs): for asynchronous request. (optional) :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param int ports: List of ports to forward Required when using WebSockets :return: str If the method is called asynchronously, returns the request thread. @@ -1053,13 +1052,12 @@ def connect_get_namespaced_pod_portforward_with_http_info(self, name, namespace, for asynchronous request. (optional) :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param int ports: List of ports to forward Required when using WebSockets :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'ports'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1092,8 +1090,6 @@ def connect_get_namespaced_pod_portforward_with_http_info(self, name, namespace, path_params['namespace'] = params['namespace'] query_params = {} - if 'ports' in params: - query_params['ports'] = params['ports'] header_params = {} @@ -3519,7 +3515,6 @@ def connect_post_namespaced_pod_portforward(self, name, namespace, **kwargs): for asynchronous request. (optional) :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param int ports: List of ports to forward Required when using WebSockets :return: str If the method is called asynchronously, returns the request thread. @@ -3546,13 +3541,12 @@ def connect_post_namespaced_pod_portforward_with_http_info(self, name, namespace for asynchronous request. (optional) :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param int ports: List of ports to forward Required when using WebSockets :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'ports'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3585,8 +3579,6 @@ def connect_post_namespaced_pod_portforward_with_http_info(self, name, namespace path_params['namespace'] = params['namespace'] query_params = {} - if 'ports' in params: - query_params['ports'] = params['ports'] header_params = {} @@ -5026,48 +5018,48 @@ def connect_put_node_proxy_with_path_with_http_info(self, name, path, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespace(self, body, **kwargs): + def create_binding_for_all_namespaces(self, body, **kwargs): """ - create a Namespace + create a Binding This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespace(body, callback=callback_function) + >>> thread = api.create_binding_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Namespace body: (required) + :param V1Binding body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Namespace + :return: V1Binding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespace_with_http_info(body, **kwargs) + return self.create_binding_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.create_namespace_with_http_info(body, **kwargs) + (data) = self.create_binding_for_all_namespaces_with_http_info(body, **kwargs) return data - def create_namespace_with_http_info(self, body, **kwargs): + def create_binding_for_all_namespaces_with_http_info(self, body, **kwargs): """ - create a Namespace + create a Binding This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespace_with_http_info(body, callback=callback_function) + >>> thread = api.create_binding_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Namespace body: (required) + :param V1Binding body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Namespace + :return: V1Binding If the method is called asynchronously, returns the request thread. """ @@ -5083,18 +5075,18 @@ def create_namespace_with_http_info(self, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespace" % key + " to method create_binding_for_all_namespaces" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespace`") + raise ValueError("Missing the required parameter `body` when calling `create_binding_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/namespaces'.replace('{format}', 'json') + resource_path = '/api/v1/bindings'.replace('{format}', 'json') path_params = {} query_params = {} @@ -5127,7 +5119,7 @@ def create_namespace_with_http_info(self, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Namespace', + response_type='V1Binding', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5135,55 +5127,53 @@ def create_namespace_with_http_info(self, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_binding(self, namespace, body, **kwargs): + def create_config_map_for_all_namespaces(self, body, **kwargs): """ - create a Binding + create a ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_binding(namespace, body, callback=callback_function) + >>> thread = api.create_config_map_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Binding body: (required) + :param V1ConfigMap body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Binding + :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_binding_with_http_info(namespace, body, **kwargs) + return self.create_config_map_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_binding_with_http_info(namespace, body, **kwargs) + (data) = self.create_config_map_for_all_namespaces_with_http_info(body, **kwargs) return data - def create_namespaced_binding_with_http_info(self, namespace, body, **kwargs): + def create_config_map_for_all_namespaces_with_http_info(self, body, **kwargs): """ - create a Binding + create a ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_binding_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_config_map_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Binding body: (required) + :param V1ConfigMap body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Binding + :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5194,24 +5184,19 @@ def create_namespaced_binding_with_http_info(self, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_binding" % key + " to method create_config_map_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_binding`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_binding`") + raise ValueError("Missing the required parameter `body` when calling `create_config_map_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/bindings'.replace('{format}', 'json') + resource_path = '/api/v1/configmaps'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -5243,7 +5228,7 @@ def create_namespaced_binding_with_http_info(self, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Binding', + response_type='V1ConfigMap', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5251,57 +5236,53 @@ def create_namespaced_binding_with_http_info(self, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_binding_binding(self, name, namespace, body, **kwargs): + def create_endpoints_for_all_namespaces(self, body, **kwargs): """ - create binding of a Binding + create Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_binding_binding(name, namespace, body, callback=callback_function) + >>> thread = api.create_endpoints_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Binding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Binding body: (required) + :param V1Endpoints body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Binding + :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_binding_binding_with_http_info(name, namespace, body, **kwargs) + return self.create_endpoints_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_binding_binding_with_http_info(name, namespace, body, **kwargs) + (data) = self.create_endpoints_for_all_namespaces_with_http_info(body, **kwargs) return data - def create_namespaced_binding_binding_with_http_info(self, name, namespace, body, **kwargs): + def create_endpoints_for_all_namespaces_with_http_info(self, body, **kwargs): """ - create binding of a Binding + create Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_binding_binding_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.create_endpoints_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Binding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Binding body: (required) + :param V1Endpoints body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Binding + :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5312,29 +5293,19 @@ def create_namespaced_binding_binding_with_http_info(self, name, namespace, body if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_binding_binding" % key + " to method create_endpoints_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_binding_binding`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_binding_binding`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_binding_binding`") + raise ValueError("Missing the required parameter `body` when calling `create_endpoints_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/binding'.replace('{format}', 'json') + resource_path = '/api/v1/endpoints'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -5366,7 +5337,7 @@ def create_namespaced_binding_binding_with_http_info(self, name, namespace, body body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Binding', + response_type='V1Endpoints', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5374,55 +5345,53 @@ def create_namespaced_binding_binding_with_http_info(self, name, namespace, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_config_map(self, namespace, body, **kwargs): + def create_event_for_all_namespaces(self, body, **kwargs): """ - create a ConfigMap + create an Event This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_config_map(namespace, body, callback=callback_function) + >>> thread = api.create_event_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1ConfigMap body: (required) + :param V1Event body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ConfigMap + :return: V1Event If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_config_map_with_http_info(namespace, body, **kwargs) + return self.create_event_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_config_map_with_http_info(namespace, body, **kwargs) + (data) = self.create_event_for_all_namespaces_with_http_info(body, **kwargs) return data - def create_namespaced_config_map_with_http_info(self, namespace, body, **kwargs): + def create_event_for_all_namespaces_with_http_info(self, body, **kwargs): """ - create a ConfigMap + create an Event This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_config_map_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_event_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1ConfigMap body: (required) + :param V1Event body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ConfigMap + :return: V1Event If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5433,24 +5402,19 @@ def create_namespaced_config_map_with_http_info(self, namespace, body, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_config_map" % key + " to method create_event_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_config_map`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_config_map`") + raise ValueError("Missing the required parameter `body` when calling `create_event_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') + resource_path = '/api/v1/events'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -5482,7 +5446,7 @@ def create_namespaced_config_map_with_http_info(self, namespace, body, **kwargs) body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ConfigMap', + response_type='V1Event', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5490,55 +5454,53 @@ def create_namespaced_config_map_with_http_info(self, namespace, body, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_endpoints(self, namespace, body, **kwargs): + def create_limit_range_for_all_namespaces(self, body, **kwargs): """ - create Endpoints + create a LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_endpoints(namespace, body, callback=callback_function) + >>> thread = api.create_limit_range_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Endpoints body: (required) + :param V1LimitRange body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Endpoints + :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_endpoints_with_http_info(namespace, body, **kwargs) + return self.create_limit_range_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_endpoints_with_http_info(namespace, body, **kwargs) + (data) = self.create_limit_range_for_all_namespaces_with_http_info(body, **kwargs) return data - def create_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): + def create_limit_range_for_all_namespaces_with_http_info(self, body, **kwargs): """ - create Endpoints + create a LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_endpoints_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_limit_range_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Endpoints body: (required) + :param V1LimitRange body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Endpoints + :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5549,24 +5511,19 @@ def create_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_endpoints" % key + " to method create_limit_range_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_endpoints`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_endpoints`") + raise ValueError("Missing the required parameter `body` when calling `create_limit_range_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') + resource_path = '/api/v1/limitranges'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -5598,7 +5555,7 @@ def create_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Endpoints', + response_type='V1LimitRange', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5606,55 +5563,53 @@ def create_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_event(self, namespace, body, **kwargs): + def create_namespace(self, body, **kwargs): """ - create an Event + create a Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_event(namespace, body, callback=callback_function) + >>> thread = api.create_namespace(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Event body: (required) + :param V1Namespace body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Event + :return: V1Namespace If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_event_with_http_info(namespace, body, **kwargs) + return self.create_namespace_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_event_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespace_with_http_info(body, **kwargs) return data - def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): + def create_namespace_with_http_info(self, body, **kwargs): """ - create an Event + create a Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_event_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_namespace_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Event body: (required) + :param V1Namespace body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Event + :return: V1Namespace If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5665,24 +5620,19 @@ def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_event" % key + " to method create_namespace" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_event`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_event`") + raise ValueError("Missing the required parameter `body` when calling `create_namespace`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -5714,7 +5664,7 @@ def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Event', + response_type='V1Namespace', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5722,57 +5672,55 @@ def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_eviction_eviction(self, name, namespace, body, **kwargs): + def create_namespaced_binding(self, body, namespace, **kwargs): """ - create eviction of an Eviction + create a Binding This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_eviction_eviction(name, namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_binding(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Eviction (required) + :param V1Binding body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Eviction body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Eviction + :return: V1Binding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_eviction_eviction_with_http_info(name, namespace, body, **kwargs) + return self.create_namespaced_binding_with_http_info(body, namespace, **kwargs) else: - (data) = self.create_namespaced_eviction_eviction_with_http_info(name, namespace, body, **kwargs) + (data) = self.create_namespaced_binding_with_http_info(body, namespace, **kwargs) return data - def create_namespaced_eviction_eviction_with_http_info(self, name, namespace, body, **kwargs): + def create_namespaced_binding_with_http_info(self, body, namespace, **kwargs): """ - create eviction of an Eviction + create a Binding This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_eviction_eviction_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_binding_with_http_info(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Eviction (required) + :param V1Binding body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Eviction body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Eviction + :return: V1Binding If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5783,27 +5731,22 @@ def create_namespaced_eviction_eviction_with_http_info(self, name, namespace, bo if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_eviction_eviction" % key + " to method create_namespaced_binding" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_eviction_eviction`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_eviction_eviction`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_eviction_eviction`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_binding`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/eviction'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/bindings'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -5837,7 +5780,7 @@ def create_namespaced_eviction_eviction_with_http_info(self, name, namespace, bo body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Eviction', + response_type='V1Binding', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5845,55 +5788,57 @@ def create_namespaced_eviction_eviction_with_http_info(self, name, namespace, bo _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_limit_range(self, namespace, body, **kwargs): + def create_namespaced_binding_binding(self, body, name, namespace, **kwargs): """ - create a LimitRange + create binding of a Binding This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_limit_range(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_binding_binding(body, name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1Binding body: (required) + :param str name: name of the Binding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1LimitRange body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1LimitRange + :return: V1Binding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_limit_range_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_binding_binding_with_http_info(body, name, namespace, **kwargs) else: - (data) = self.create_namespaced_limit_range_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_binding_binding_with_http_info(body, name, namespace, **kwargs) return data - def create_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs): + def create_namespaced_binding_binding_with_http_info(self, body, name, namespace, **kwargs): """ - create a LimitRange + create binding of a Binding This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_limit_range_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_binding_binding_with_http_info(body, name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1Binding body: (required) + :param str name: name of the Binding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1LimitRange body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1LimitRange + :return: V1Binding If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5904,22 +5849,27 @@ def create_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_limit_range" % key + " to method create_namespaced_binding_binding" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_limit_range`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_limit_range`") - - + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_binding_binding`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_namespaced_binding_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_binding_binding`") + + collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/binding'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -5953,7 +5903,7 @@ def create_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs body=body_params, post_params=form_params, files=local_var_files, - response_type='V1LimitRange', + response_type='V1Binding', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5961,50 +5911,50 @@ def create_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_persistent_volume_claim(self, namespace, body, **kwargs): + def create_namespaced_config_map(self, namespace, body, **kwargs): """ - create a PersistentVolumeClaim + create a ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_persistent_volume_claim(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_config_map(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1PersistentVolumeClaim body: (required) + :param V1ConfigMap body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolumeClaim + :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_config_map_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_config_map_with_http_info(namespace, body, **kwargs) return data - def create_namespaced_persistent_volume_claim_with_http_info(self, namespace, body, **kwargs): + def create_namespaced_config_map_with_http_info(self, namespace, body, **kwargs): """ - create a PersistentVolumeClaim + create a ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_config_map_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1PersistentVolumeClaim body: (required) + :param V1ConfigMap body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolumeClaim + :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ @@ -6020,21 +5970,21 @@ def create_namespaced_persistent_volume_claim_with_http_info(self, namespace, bo if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_persistent_volume_claim" % key + " to method create_namespaced_config_map" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_persistent_volume_claim`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_config_map`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_persistent_volume_claim`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_config_map`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -6069,7 +6019,7 @@ def create_namespaced_persistent_volume_claim_with_http_info(self, namespace, bo body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PersistentVolumeClaim', + response_type='V1ConfigMap', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6077,50 +6027,50 @@ def create_namespaced_persistent_volume_claim_with_http_info(self, namespace, bo _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_pod(self, namespace, body, **kwargs): + def create_namespaced_endpoints(self, namespace, body, **kwargs): """ - create a Pod + create Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_pod(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_endpoints(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Pod body: (required) + :param V1Endpoints body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Pod + :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_pod_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_endpoints_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_namespaced_pod_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_endpoints_with_http_info(namespace, body, **kwargs) return data - def create_namespaced_pod_with_http_info(self, namespace, body, **kwargs): + def create_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): """ - create a Pod + create Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_pod_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_endpoints_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Pod body: (required) + :param V1Endpoints body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Pod + :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ @@ -6136,21 +6086,21 @@ def create_namespaced_pod_with_http_info(self, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_pod" % key + " to method create_namespaced_endpoints" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_endpoints`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_endpoints`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -6185,7 +6135,7 @@ def create_namespaced_pod_with_http_info(self, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Pod', + response_type='V1Endpoints', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6193,50 +6143,50 @@ def create_namespaced_pod_with_http_info(self, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_pod_template(self, namespace, body, **kwargs): + def create_namespaced_event(self, namespace, body, **kwargs): """ - create a PodTemplate + create an Event This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_pod_template(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_event(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1PodTemplate body: (required) + :param V1Event body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PodTemplate + :return: V1Event If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_pod_template_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_event_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_namespaced_pod_template_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_event_with_http_info(namespace, body, **kwargs) return data - def create_namespaced_pod_template_with_http_info(self, namespace, body, **kwargs): + def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): """ - create a PodTemplate + create an Event This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_pod_template_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_event_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1PodTemplate body: (required) + :param V1Event body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PodTemplate + :return: V1Event If the method is called asynchronously, returns the request thread. """ @@ -6252,21 +6202,21 @@ def create_namespaced_pod_template_with_http_info(self, namespace, body, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_pod_template" % key + " to method create_namespaced_event" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_template`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_event`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_template`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_event`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -6301,7 +6251,7 @@ def create_namespaced_pod_template_with_http_info(self, namespace, body, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PodTemplate', + response_type='V1Event', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6309,55 +6259,57 @@ def create_namespaced_pod_template_with_http_info(self, namespace, body, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_replication_controller(self, namespace, body, **kwargs): + def create_namespaced_eviction_eviction(self, body, name, namespace, **kwargs): """ - create a ReplicationController + create eviction of an Eviction This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_replication_controller(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_eviction_eviction(body, name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1beta1Eviction body: (required) + :param str name: name of the Eviction (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1ReplicationController body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ReplicationController + :return: V1beta1Eviction If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_eviction_eviction_with_http_info(body, name, namespace, **kwargs) else: - (data) = self.create_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_eviction_eviction_with_http_info(body, name, namespace, **kwargs) return data - def create_namespaced_replication_controller_with_http_info(self, namespace, body, **kwargs): + def create_namespaced_eviction_eviction_with_http_info(self, body, name, namespace, **kwargs): """ - create a ReplicationController + create eviction of an Eviction This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_replication_controller_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_eviction_eviction_with_http_info(body, name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1beta1Eviction body: (required) + :param str name: name of the Eviction (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1ReplicationController body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ReplicationController + :return: V1beta1Eviction If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6368,22 +6320,27 @@ def create_namespaced_replication_controller_with_http_info(self, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_replication_controller" % key + " to method create_namespaced_eviction_eviction" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replication_controller`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replication_controller`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_eviction_eviction`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_namespaced_eviction_eviction`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_eviction_eviction`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/eviction'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -6417,7 +6374,7 @@ def create_namespaced_replication_controller_with_http_info(self, namespace, bod body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ReplicationController', + response_type='V1beta1Eviction', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6425,50 +6382,50 @@ def create_namespaced_replication_controller_with_http_info(self, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_resource_quota(self, namespace, body, **kwargs): + def create_namespaced_limit_range(self, namespace, body, **kwargs): """ - create a ResourceQuota + create a LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_resource_quota(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_limit_range(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1ResourceQuota body: (required) + :param V1LimitRange body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ResourceQuota + :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_limit_range_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_limit_range_with_http_info(namespace, body, **kwargs) return data - def create_namespaced_resource_quota_with_http_info(self, namespace, body, **kwargs): + def create_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs): """ - create a ResourceQuota + create a LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_resource_quota_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_limit_range_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1ResourceQuota body: (required) + :param V1LimitRange body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ResourceQuota + :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ @@ -6484,21 +6441,21 @@ def create_namespaced_resource_quota_with_http_info(self, namespace, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_resource_quota" % key + " to method create_namespaced_limit_range" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_quota`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_limit_range`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_resource_quota`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_limit_range`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -6533,7 +6490,7 @@ def create_namespaced_resource_quota_with_http_info(self, namespace, body, **kwa body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ResourceQuota', + response_type='V1LimitRange', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6541,50 +6498,50 @@ def create_namespaced_resource_quota_with_http_info(self, namespace, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_secret(self, namespace, body, **kwargs): + def create_namespaced_persistent_volume_claim(self, namespace, body, **kwargs): """ - create a Secret + create a PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_secret(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_persistent_volume_claim(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Secret body: (required) + :param V1PersistentVolumeClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Secret + :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_secret_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_namespaced_secret_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) return data - def create_namespaced_secret_with_http_info(self, namespace, body, **kwargs): + def create_namespaced_persistent_volume_claim_with_http_info(self, namespace, body, **kwargs): """ - create a Secret + create a PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_secret_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Secret body: (required) + :param V1PersistentVolumeClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Secret + :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ @@ -6600,21 +6557,21 @@ def create_namespaced_secret_with_http_info(self, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_secret" % key + " to method create_namespaced_persistent_volume_claim" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_secret`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_persistent_volume_claim`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_secret`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_persistent_volume_claim`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -6649,7 +6606,7 @@ def create_namespaced_secret_with_http_info(self, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Secret', + response_type='V1PersistentVolumeClaim', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6657,50 +6614,50 @@ def create_namespaced_secret_with_http_info(self, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_service(self, namespace, body, **kwargs): + def create_namespaced_pod(self, namespace, body, **kwargs): """ - create a Service + create a Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_service(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_pod(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Service body: (required) + :param V1Pod body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Service + :return: V1Pod If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_service_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_pod_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_namespaced_service_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_pod_with_http_info(namespace, body, **kwargs) return data - def create_namespaced_service_with_http_info(self, namespace, body, **kwargs): + def create_namespaced_pod_with_http_info(self, namespace, body, **kwargs): """ - create a Service + create a Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_service_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_pod_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Service body: (required) + :param V1Pod body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Service + :return: V1Pod If the method is called asynchronously, returns the request thread. """ @@ -6716,21 +6673,21 @@ def create_namespaced_service_with_http_info(self, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_service" % key + " to method create_namespaced_pod" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/services'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -6765,7 +6722,7 @@ def create_namespaced_service_with_http_info(self, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Service', + response_type='V1Pod', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6773,50 +6730,50 @@ def create_namespaced_service_with_http_info(self, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_service_account(self, namespace, body, **kwargs): + def create_namespaced_pod_template(self, namespace, body, **kwargs): """ - create a ServiceAccount + create a PodTemplate This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_service_account(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_pod_template(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1ServiceAccount body: (required) + :param V1PodTemplate body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ServiceAccount + :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_service_account_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_pod_template_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_namespaced_service_account_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_pod_template_with_http_info(namespace, body, **kwargs) return data - def create_namespaced_service_account_with_http_info(self, namespace, body, **kwargs): + def create_namespaced_pod_template_with_http_info(self, namespace, body, **kwargs): """ - create a ServiceAccount + create a PodTemplate This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_service_account_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_pod_template_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1ServiceAccount body: (required) + :param V1PodTemplate body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ServiceAccount + :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ @@ -6832,21 +6789,21 @@ def create_namespaced_service_account_with_http_info(self, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_service_account" % key + " to method create_namespaced_pod_template" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service_account`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_template`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service_account`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_template`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -6881,7 +6838,7 @@ def create_namespaced_service_account_with_http_info(self, namespace, body, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ServiceAccount', + response_type='V1PodTemplate', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6889,53 +6846,55 @@ def create_namespaced_service_account_with_http_info(self, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_node(self, body, **kwargs): + def create_namespaced_replication_controller(self, namespace, body, **kwargs): """ - create a Node + create a ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_node(body, callback=callback_function) + >>> thread = api.create_namespaced_replication_controller(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Node body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ReplicationController body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Node + :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_node_with_http_info(body, **kwargs) + return self.create_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_node_with_http_info(body, **kwargs) + (data) = self.create_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) return data - def create_node_with_http_info(self, body, **kwargs): + def create_namespaced_replication_controller_with_http_info(self, namespace, body, **kwargs): """ - create a Node + create a ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_node_with_http_info(body, callback=callback_function) + >>> thread = api.create_namespaced_replication_controller_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Node body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ReplicationController body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Node + :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'pretty'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6946,19 +6905,24 @@ def create_node_with_http_info(self, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_node" % key + " to method create_namespaced_replication_controller" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replication_controller`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_node`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replication_controller`") collection_formats = {} - resource_path = '/api/v1/nodes'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -6990,7 +6954,7 @@ def create_node_with_http_info(self, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Node', + response_type='V1ReplicationController', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6998,53 +6962,55 @@ def create_node_with_http_info(self, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_persistent_volume(self, body, **kwargs): + def create_namespaced_resource_quota(self, namespace, body, **kwargs): """ - create a PersistentVolume + create a ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_persistent_volume(body, callback=callback_function) + >>> thread = api.create_namespaced_resource_quota(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1PersistentVolume body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceQuota body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolume + :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_persistent_volume_with_http_info(body, **kwargs) + return self.create_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_persistent_volume_with_http_info(body, **kwargs) + (data) = self.create_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) return data - def create_persistent_volume_with_http_info(self, body, **kwargs): + def create_namespaced_resource_quota_with_http_info(self, namespace, body, **kwargs): """ - create a PersistentVolume + create a ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_persistent_volume_with_http_info(body, callback=callback_function) + >>> thread = api.create_namespaced_resource_quota_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1PersistentVolume body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceQuota body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolume + :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'pretty'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7055,19 +7021,24 @@ def create_persistent_volume_with_http_info(self, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_persistent_volume" % key + " to method create_namespaced_resource_quota" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_quota`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_persistent_volume`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_resource_quota`") collection_formats = {} - resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -7099,7 +7070,7 @@ def create_persistent_volume_with_http_info(self, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PersistentVolume', + response_type='V1ResourceQuota', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7107,61 +7078,55 @@ def create_persistent_volume_with_http_info(self, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespace(self, **kwargs): + def create_namespaced_secret(self, namespace, body, **kwargs): """ - delete collection of Namespace + create a Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespace(callback=callback_function) + >>> thread = api.create_namespaced_secret(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Secret body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1Secret If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespace_with_http_info(**kwargs) + return self.create_namespaced_secret_with_http_info(namespace, body, **kwargs) else: - (data) = self.delete_collection_namespace_with_http_info(**kwargs) + (data) = self.create_namespaced_secret_with_http_info(namespace, body, **kwargs) return data - def delete_collection_namespace_with_http_info(self, **kwargs): + def create_namespaced_secret_with_http_info(self, namespace, body, **kwargs): """ - delete collection of Namespace + create a Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespace_with_http_info(callback=callback_function) + >>> thread = api.create_namespaced_secret_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Secret body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1Secret If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7172,30 +7137,28 @@ def delete_collection_namespace_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespace" % key + " to method create_namespaced_secret" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_secret`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_secret`") collection_formats = {} - resource_path = '/api/v1/namespaces'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -7203,6 +7166,8 @@ def delete_collection_namespace_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -7214,14 +7179,14 @@ def delete_collection_namespace_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1Secret', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7229,63 +7194,55 @@ def delete_collection_namespace_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_config_map(self, namespace, **kwargs): + def create_namespaced_service(self, namespace, body, **kwargs): """ - delete collection of ConfigMap + create a Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_config_map(namespace, callback=callback_function) + >>> thread = api.create_namespaced_service(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Service body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1Service If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_config_map_with_http_info(namespace, **kwargs) + return self.create_namespaced_service_with_http_info(namespace, body, **kwargs) else: - (data) = self.delete_collection_namespaced_config_map_with_http_info(namespace, **kwargs) + (data) = self.create_namespaced_service_with_http_info(namespace, body, **kwargs) return data - def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kwargs): + def create_namespaced_service_with_http_info(self, namespace, body, **kwargs): """ - delete collection of ConfigMap + create a Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_config_map_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_namespaced_service_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Service body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1Service If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7296,18 +7253,21 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_config_map" % key + " to method create_namespaced_service" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_config_map`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/services'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -7315,16 +7275,6 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -7332,6 +7282,8 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -7343,14 +7295,14 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1Service', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7358,63 +7310,55 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_endpoints(self, namespace, **kwargs): + def create_namespaced_service_account(self, namespace, body, **kwargs): """ - delete collection of Endpoints + create a ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_endpoints(namespace, callback=callback_function) + >>> thread = api.create_namespaced_service_account(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ServiceAccount body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) + return self.create_namespaced_service_account_with_http_info(namespace, body, **kwargs) else: - (data) = self.delete_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) + (data) = self.create_namespaced_service_account_with_http_info(namespace, body, **kwargs) return data - def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwargs): + def create_namespaced_service_account_with_http_info(self, namespace, body, **kwargs): """ - delete collection of Endpoints + create a ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_endpoints_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_namespaced_service_account_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ServiceAccount body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7425,18 +7369,21 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_endpoints" % key + " to method create_namespaced_service_account" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_endpoints`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service_account`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service_account`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -7444,16 +7391,6 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -7461,6 +7398,8 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -7472,14 +7411,14 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1ServiceAccount', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7487,63 +7426,53 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_event(self, namespace, **kwargs): + def create_node(self, body, **kwargs): """ - delete collection of Event + create a Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_event(namespace, callback=callback_function) + >>> thread = api.create_node(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Node body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1Node If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) + return self.create_node_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) + (data) = self.create_node_with_http_info(body, **kwargs) return data - def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs): + def create_node_with_http_info(self, body, **kwargs): """ - delete collection of Event + create a Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_event_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_node_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Node body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1Node If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7554,35 +7483,23 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_event" % key + " to method create_node" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_event`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_node`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') + resource_path = '/api/v1/nodes'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -7590,6 +7507,8 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -7601,14 +7520,14 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1Node', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7616,63 +7535,53 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_limit_range(self, namespace, **kwargs): + def create_persistent_volume(self, body, **kwargs): """ - delete collection of LimitRange + create a PersistentVolume This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_limit_range(namespace, callback=callback_function) + >>> thread = api.create_persistent_volume(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PersistentVolume body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) + return self.create_persistent_volume_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) + (data) = self.create_persistent_volume_with_http_info(body, **kwargs) return data - def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **kwargs): + def create_persistent_volume_with_http_info(self, body, **kwargs): """ - delete collection of LimitRange + create a PersistentVolume This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_limit_range_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_persistent_volume_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PersistentVolume body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7683,35 +7592,23 @@ def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_limit_range" % key + " to method create_persistent_volume" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_limit_range`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_persistent_volume`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') + resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -7719,6 +7616,8 @@ def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **k local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -7730,14 +7629,14 @@ def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **k # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1PersistentVolume', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7745,63 +7644,53 @@ def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_persistent_volume_claim(self, namespace, **kwargs): + def create_persistent_volume_claim_for_all_namespaces(self, body, **kwargs): """ - delete collection of PersistentVolumeClaim + create a PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_persistent_volume_claim(namespace, callback=callback_function) + >>> thread = api.create_persistent_volume_claim_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PersistentVolumeClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) + return self.create_persistent_volume_claim_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) + (data) = self.create_persistent_volume_claim_for_all_namespaces_with_http_info(body, **kwargs) return data - def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kwargs): + def create_persistent_volume_claim_for_all_namespaces_with_http_info(self, body, **kwargs): """ - delete collection of PersistentVolumeClaim + create a PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_persistent_volume_claim_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PersistentVolumeClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7812,35 +7701,23 @@ def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_persistent_volume_claim" % key + " to method create_persistent_volume_claim_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_persistent_volume_claim`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_persistent_volume_claim_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') + resource_path = '/api/v1/persistentvolumeclaims'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -7848,6 +7725,8 @@ def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, na local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -7859,14 +7738,14 @@ def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, na # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1PersistentVolumeClaim', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7874,63 +7753,53 @@ def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_pod(self, namespace, **kwargs): + def create_pod_for_all_namespaces(self, body, **kwargs): """ - delete collection of Pod + create a Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_pod(namespace, callback=callback_function) + >>> thread = api.create_pod_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Pod body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1Pod If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_pod_with_http_info(namespace, **kwargs) + return self.create_pod_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_namespaced_pod_with_http_info(namespace, **kwargs) + (data) = self.create_pod_for_all_namespaces_with_http_info(body, **kwargs) return data - def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): + def create_pod_for_all_namespaces_with_http_info(self, body, **kwargs): """ - delete collection of Pod + create a Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_pod_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_pod_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Pod body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1Pod If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7941,35 +7810,23 @@ def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_pod" % key + " to method create_pod_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_pod_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') + resource_path = '/api/v1/pods'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -7977,6 +7834,8 @@ def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -7988,14 +7847,14 @@ def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1Pod', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8003,63 +7862,53 @@ def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_pod_template(self, namespace, **kwargs): + def create_pod_template_for_all_namespaces(self, body, **kwargs): """ - delete collection of PodTemplate + create a PodTemplate This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_pod_template(namespace, callback=callback_function) + >>> thread = api.create_pod_template_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PodTemplate body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) + return self.create_pod_template_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) + (data) = self.create_pod_template_for_all_namespaces_with_http_info(body, **kwargs) return data - def delete_collection_namespaced_pod_template_with_http_info(self, namespace, **kwargs): + def create_pod_template_for_all_namespaces_with_http_info(self, body, **kwargs): """ - delete collection of PodTemplate + create a PodTemplate This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_pod_template_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_pod_template_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PodTemplate body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8070,35 +7919,23 @@ def delete_collection_namespaced_pod_template_with_http_info(self, namespace, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_pod_template" % key + " to method create_pod_template_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_template`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_pod_template_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') + resource_path = '/api/v1/podtemplates'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -8106,6 +7943,8 @@ def delete_collection_namespaced_pod_template_with_http_info(self, namespace, ** local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -8117,14 +7956,14 @@ def delete_collection_namespaced_pod_template_with_http_info(self, namespace, ** # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1PodTemplate', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8132,63 +7971,53 @@ def delete_collection_namespaced_pod_template_with_http_info(self, namespace, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_replication_controller(self, namespace, **kwargs): + def create_replication_controller_for_all_namespaces(self, body, **kwargs): """ - delete collection of ReplicationController + create a ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_replication_controller(namespace, callback=callback_function) + >>> thread = api.create_replication_controller_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ReplicationController body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) + return self.create_replication_controller_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) + (data) = self.create_replication_controller_for_all_namespaces_with_http_info(body, **kwargs) return data - def delete_collection_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): + def create_replication_controller_for_all_namespaces_with_http_info(self, body, **kwargs): """ - delete collection of ReplicationController + create a ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_replication_controller_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_replication_controller_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ReplicationController body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8199,35 +8028,23 @@ def delete_collection_namespaced_replication_controller_with_http_info(self, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_replication_controller" % key + " to method create_replication_controller_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replication_controller`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_replication_controller_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') + resource_path = '/api/v1/replicationcontrollers'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -8235,6 +8052,8 @@ def delete_collection_namespaced_replication_controller_with_http_info(self, nam local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -8246,14 +8065,14 @@ def delete_collection_namespaced_replication_controller_with_http_info(self, nam # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1ReplicationController', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8261,63 +8080,53 @@ def delete_collection_namespaced_replication_controller_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_resource_quota(self, namespace, **kwargs): + def create_resource_quota_for_all_namespaces(self, body, **kwargs): """ - delete collection of ResourceQuota + create a ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_resource_quota(namespace, callback=callback_function) + >>> thread = api.create_resource_quota_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceQuota body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) + return self.create_resource_quota_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) + (data) = self.create_resource_quota_for_all_namespaces_with_http_info(body, **kwargs) return data - def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): + def create_resource_quota_for_all_namespaces_with_http_info(self, body, **kwargs): """ - delete collection of ResourceQuota + create a ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_resource_quota_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_resource_quota_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ResourceQuota body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8328,35 +8137,23 @@ def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_resource_quota" % key + " to method create_resource_quota_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_quota`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_resource_quota_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') + resource_path = '/api/v1/resourcequotas'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -8364,6 +8161,8 @@ def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -8375,14 +8174,14 @@ def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1ResourceQuota', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8390,63 +8189,53 @@ def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_secret(self, namespace, **kwargs): + def create_secret_for_all_namespaces(self, body, **kwargs): """ - delete collection of Secret + create a Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_secret(namespace, callback=callback_function) + >>> thread = api.create_secret_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Secret body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1Secret If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_secret_with_http_info(namespace, **kwargs) + return self.create_secret_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_namespaced_secret_with_http_info(namespace, **kwargs) + (data) = self.create_secret_for_all_namespaces_with_http_info(body, **kwargs) return data - def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs): + def create_secret_for_all_namespaces_with_http_info(self, body, **kwargs): """ - delete collection of Secret + create a Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_secret_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_secret_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Secret body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1Secret If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8457,35 +8246,23 @@ def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_secret" % key + " to method create_secret_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_secret`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_secret_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') + resource_path = '/api/v1/secrets'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -8493,6 +8270,8 @@ def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -8504,14 +8283,14 @@ def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1Secret', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8519,63 +8298,53 @@ def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_service_account(self, namespace, **kwargs): + def create_security_context_constraints(self, body, **kwargs): """ - delete collection of ServiceAccount + create SecurityContextConstraints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_service_account(namespace, callback=callback_function) + >>> thread = api.create_security_context_constraints(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1SecurityContextConstraints body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1SecurityContextConstraints If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_service_account_with_http_info(namespace, **kwargs) + return self.create_security_context_constraints_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_namespaced_service_account_with_http_info(namespace, **kwargs) + (data) = self.create_security_context_constraints_with_http_info(body, **kwargs) return data - def delete_collection_namespaced_service_account_with_http_info(self, namespace, **kwargs): + def create_security_context_constraints_with_http_info(self, body, **kwargs): """ - delete collection of ServiceAccount + create SecurityContextConstraints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_service_account_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_security_context_constraints_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1SecurityContextConstraints body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1SecurityContextConstraints If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8586,35 +8355,23 @@ def delete_collection_namespaced_service_account_with_http_info(self, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_service_account" % key + " to method create_security_context_constraints" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_service_account`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_security_context_constraints`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') + resource_path = '/api/v1/securitycontextconstraints'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -8622,6 +8379,8 @@ def delete_collection_namespaced_service_account_with_http_info(self, namespace, local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -8633,14 +8392,14 @@ def delete_collection_namespaced_service_account_with_http_info(self, namespace, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1SecurityContextConstraints', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8648,61 +8407,53 @@ def delete_collection_namespaced_service_account_with_http_info(self, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_node(self, **kwargs): + def create_service_account_for_all_namespaces(self, body, **kwargs): """ - delete collection of Node + create a ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_node(callback=callback_function) + >>> thread = api.create_service_account_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1ServiceAccount body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_node_with_http_info(**kwargs) + return self.create_service_account_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_node_with_http_info(**kwargs) + (data) = self.create_service_account_for_all_namespaces_with_http_info(body, **kwargs) return data - def delete_collection_node_with_http_info(self, **kwargs): + def create_service_account_for_all_namespaces_with_http_info(self, body, **kwargs): """ - delete collection of Node + create a ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_node_with_http_info(callback=callback_function) + >>> thread = api.create_service_account_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1ServiceAccount body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8713,30 +8464,23 @@ def delete_collection_node_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_node" % key + " to method create_service_account_for_all_namespaces" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_service_account_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/nodes'.replace('{format}', 'json') + resource_path = '/api/v1/serviceaccounts'.replace('{format}', 'json') path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -8744,6 +8488,8 @@ def delete_collection_node_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -8755,14 +8501,14 @@ def delete_collection_node_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1ServiceAccount', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8770,61 +8516,53 @@ def delete_collection_node_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_persistent_volume(self, **kwargs): + def create_service_for_all_namespaces(self, body, **kwargs): """ - delete collection of PersistentVolume + create a Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_persistent_volume(callback=callback_function) + >>> thread = api.create_service_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1Service body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1Service If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_persistent_volume_with_http_info(**kwargs) + return self.create_service_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_persistent_volume_with_http_info(**kwargs) + (data) = self.create_service_for_all_namespaces_with_http_info(body, **kwargs) return data - def delete_collection_persistent_volume_with_http_info(self, **kwargs): + def create_service_for_all_namespaces_with_http_info(self, body, **kwargs): """ - delete collection of PersistentVolume + create a Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_persistent_volume_with_http_info(callback=callback_function) + >>> thread = api.create_service_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1Service body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1Service If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8835,30 +8573,23 @@ def delete_collection_persistent_volume_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_persistent_volume" % key + " to method create_service_for_all_namespaces" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_service_for_all_namespaces`") collection_formats = {} - resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') + resource_path = '/api/v1/services'.replace('{format}', 'json') path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -8866,6 +8597,8 @@ def delete_collection_persistent_volume_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -8877,14 +8610,14 @@ def delete_collection_persistent_volume_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1Service', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8892,61 +8625,61 @@ def delete_collection_persistent_volume_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespace(self, name, body, **kwargs): + def delete_collection_namespace(self, **kwargs): """ - delete a Namespace + delete collection of Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespace(name, body, callback=callback_function) + >>> thread = api.delete_collection_namespace(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Namespace (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespace_with_http_info(name, body, **kwargs) + return self.delete_collection_namespace_with_http_info(**kwargs) else: - (data) = self.delete_namespace_with_http_info(name, body, **kwargs) + (data) = self.delete_collection_namespace_with_http_info(**kwargs) return data - def delete_namespace_with_http_info(self, name, body, **kwargs): + def delete_collection_namespace_with_http_info(self, **kwargs): """ - delete a Namespace + delete collection of Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespace_with_http_info(name, body, callback=callback_function) + >>> thread = api.delete_collection_namespace_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Namespace (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8957,34 +8690,30 @@ def delete_namespace_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespace" % key + " to method delete_collection_namespace" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespace`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespace`") collection_formats = {} - resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -8992,8 +8721,6 @@ def delete_namespace_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -9012,7 +8739,7 @@ def delete_namespace_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9020,63 +8747,63 @@ def delete_namespace_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_config_map(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_config_map(self, namespace, **kwargs): """ - delete a ConfigMap + delete collection of ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_config_map(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_config_map(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_config_map_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_config_map_with_http_info(namespace, **kwargs) return data - def delete_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kwargs): """ - delete a ConfigMap + delete collection of ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_config_map_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_config_map_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9087,39 +8814,35 @@ def delete_namespaced_config_map_with_http_info(self, name, namespace, body, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_config_map" % key + " to method delete_collection_namespaced_config_map" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_config_map`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_config_map`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_config_map`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_config_map`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -9127,8 +8850,6 @@ def delete_namespaced_config_map_with_http_info(self, name, namespace, body, **k local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -9147,7 +8868,7 @@ def delete_namespaced_config_map_with_http_info(self, name, namespace, body, **k body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9155,63 +8876,63 @@ def delete_namespaced_config_map_with_http_info(self, name, namespace, body, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_endpoints(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_endpoints(self, namespace, **kwargs): """ - delete Endpoints + delete collection of Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_endpoints(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_endpoints(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) return data - def delete_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwargs): """ - delete Endpoints + delete collection of Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_endpoints_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_endpoints_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9222,39 +8943,35 @@ def delete_namespaced_endpoints_with_http_info(self, name, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_endpoints" % key + " to method delete_collection_namespaced_endpoints" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_endpoints`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_endpoints`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_endpoints`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_endpoints`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -9262,8 +8979,6 @@ def delete_namespaced_endpoints_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -9282,7 +8997,7 @@ def delete_namespaced_endpoints_with_http_info(self, name, namespace, body, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9290,63 +9005,63 @@ def delete_namespaced_endpoints_with_http_info(self, name, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_event(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_event(self, namespace, **kwargs): """ - delete an Event + delete collection of Event This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_event(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_event(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_event_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_event_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) return data - def delete_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs): """ - delete an Event + delete collection of Event This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_event_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_event_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9357,39 +9072,35 @@ def delete_namespaced_event_with_http_info(self, name, namespace, body, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_event" % key + " to method delete_collection_namespaced_event" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_event`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_event`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -9397,8 +9108,6 @@ def delete_namespaced_event_with_http_info(self, name, namespace, body, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -9417,7 +9126,7 @@ def delete_namespaced_event_with_http_info(self, name, namespace, body, **kwargs body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9425,63 +9134,63 @@ def delete_namespaced_event_with_http_info(self, name, namespace, body, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_limit_range(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_limit_range(self, namespace, **kwargs): """ - delete a LimitRange + delete collection of LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_limit_range(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_limit_range(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) return data - def delete_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **kwargs): """ - delete a LimitRange + delete collection of LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_limit_range_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_limit_range_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9492,39 +9201,35 @@ def delete_namespaced_limit_range_with_http_info(self, name, namespace, body, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_limit_range" % key + " to method delete_collection_namespaced_limit_range" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_limit_range`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_limit_range`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_limit_range`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_limit_range`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -9532,8 +9237,6 @@ def delete_namespaced_limit_range_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -9552,7 +9255,7 @@ def delete_namespaced_limit_range_with_http_info(self, name, namespace, body, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9560,63 +9263,63 @@ def delete_namespaced_limit_range_with_http_info(self, name, namespace, body, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_persistent_volume_claim(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_persistent_volume_claim(self, namespace, **kwargs): """ - delete a PersistentVolumeClaim + delete collection of PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_persistent_volume_claim(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_persistent_volume_claim(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) return data - def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kwargs): """ - delete a PersistentVolumeClaim + delete collection of PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9627,39 +9330,35 @@ def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_persistent_volume_claim" % key + " to method delete_collection_namespaced_persistent_volume_claim" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_persistent_volume_claim`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_persistent_volume_claim`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_persistent_volume_claim`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_persistent_volume_claim`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -9667,8 +9366,6 @@ def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -9687,7 +9384,7 @@ def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespa body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9695,63 +9392,63 @@ def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_pod(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_pod(self, namespace, **kwargs): """ - delete a Pod + delete collection of Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_pod(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_pod(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_pod_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_pod_with_http_info(namespace, **kwargs) return data - def delete_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): """ - delete a Pod + delete collection of Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_pod_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_pod_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9762,39 +9459,35 @@ def delete_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_pod" % key + " to method delete_collection_namespaced_pod" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_pod`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -9802,8 +9495,6 @@ def delete_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -9822,7 +9513,7 @@ def delete_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9830,63 +9521,63 @@ def delete_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_pod_template(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_pod_template(self, namespace, **kwargs): """ - delete a PodTemplate + delete collection of PodTemplate This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_pod_template(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_pod_template(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) return data - def delete_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_pod_template_with_http_info(self, namespace, **kwargs): """ - delete a PodTemplate + delete collection of PodTemplate This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_pod_template_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_pod_template_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9897,39 +9588,35 @@ def delete_namespaced_pod_template_with_http_info(self, name, namespace, body, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_pod_template" % key + " to method delete_collection_namespaced_pod_template" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_template`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_template`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_pod_template`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_template`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -9937,8 +9624,6 @@ def delete_namespaced_pod_template_with_http_info(self, name, namespace, body, * local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -9957,7 +9642,7 @@ def delete_namespaced_pod_template_with_http_info(self, name, namespace, body, * body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9965,63 +9650,63 @@ def delete_namespaced_pod_template_with_http_info(self, name, namespace, body, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_replication_controller(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_replication_controller(self, namespace, **kwargs): """ - delete a ReplicationController + delete collection of ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_replication_controller(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_replication_controller(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) return data - def delete_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): """ - delete a ReplicationController + delete collection of ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_replication_controller_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_replication_controller_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10032,39 +9717,35 @@ def delete_namespaced_replication_controller_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_replication_controller" % key + " to method delete_collection_namespaced_replication_controller" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replication_controller`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replication_controller`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_replication_controller`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replication_controller`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -10072,8 +9753,6 @@ def delete_namespaced_replication_controller_with_http_info(self, name, namespac local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -10092,7 +9771,7 @@ def delete_namespaced_replication_controller_with_http_info(self, name, namespac body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10100,63 +9779,63 @@ def delete_namespaced_replication_controller_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_resource_quota(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_resource_quota(self, namespace, **kwargs): """ - delete a ResourceQuota + delete collection of ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_resource_quota(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_resource_quota(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) return data - def delete_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): """ - delete a ResourceQuota + delete collection of ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_resource_quota_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_resource_quota_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10167,39 +9846,35 @@ def delete_namespaced_resource_quota_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_resource_quota" % key + " to method delete_collection_namespaced_resource_quota" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_quota`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_quota`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_resource_quota`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_quota`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -10207,8 +9882,6 @@ def delete_namespaced_resource_quota_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -10227,7 +9900,7 @@ def delete_namespaced_resource_quota_with_http_info(self, name, namespace, body, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10235,63 +9908,63 @@ def delete_namespaced_resource_quota_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_secret(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_secret(self, namespace, **kwargs): """ - delete a Secret + delete collection of Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_secret(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_secret(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_secret_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_secret_with_http_info(namespace, **kwargs) return data - def delete_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs): """ - delete a Secret + delete collection of Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_secret_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_secret_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10302,39 +9975,35 @@ def delete_namespaced_secret_with_http_info(self, name, namespace, body, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_secret" % key + " to method delete_collection_namespaced_secret" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_secret`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_secret`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_secret`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_secret`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -10342,8 +10011,6 @@ def delete_namespaced_secret_with_http_info(self, name, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -10362,7 +10029,7 @@ def delete_namespaced_secret_with_http_info(self, name, namespace, body, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10370,55 +10037,63 @@ def delete_namespaced_secret_with_http_info(self, name, namespace, body, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_service(self, name, namespace, **kwargs): + def delete_collection_namespaced_service_account(self, namespace, **kwargs): """ - delete a Service + delete collection of ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_service(name, namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_service_account(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_service_with_http_info(name, namespace, **kwargs) + return self.delete_collection_namespaced_service_account_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_service_with_http_info(name, namespace, **kwargs) + (data) = self.delete_collection_namespaced_service_account_with_http_info(namespace, **kwargs) return data - def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): + def delete_collection_namespaced_service_account_with_http_info(self, namespace, **kwargs): """ - delete a Service + delete collection of ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_service_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_service_account_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10429,30 +10104,35 @@ def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_service" % key + " to method delete_collection_namespaced_service_account" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_service_account`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -10478,7 +10158,7 @@ def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10486,63 +10166,61 @@ def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_service_account(self, name, namespace, body, **kwargs): + def delete_collection_node(self, **kwargs): """ - delete a ServiceAccount + delete collection of Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_service_account(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_node(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ServiceAccount (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_node_with_http_info(**kwargs) else: - (data) = self.delete_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_node_with_http_info(**kwargs) return data - def delete_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_node_with_http_info(self, **kwargs): """ - delete a ServiceAccount + delete collection of Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_service_account_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_node_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ServiceAccount (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10553,39 +10231,30 @@ def delete_namespaced_service_account_with_http_info(self, name, namespace, body if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_service_account" % key + " to method delete_collection_node" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service_account`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service_account`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_service_account`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/nodes'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -10593,8 +10262,6 @@ def delete_namespaced_service_account_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -10613,7 +10280,7 @@ def delete_namespaced_service_account_with_http_info(self, name, namespace, body body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10621,61 +10288,61 @@ def delete_namespaced_service_account_with_http_info(self, name, namespace, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_node(self, name, body, **kwargs): + def delete_collection_persistent_volume(self, **kwargs): """ - delete a Node + delete collection of PersistentVolume This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_node(name, body, callback=callback_function) + >>> thread = api.delete_collection_persistent_volume(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Node (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_node_with_http_info(name, body, **kwargs) + return self.delete_collection_persistent_volume_with_http_info(**kwargs) else: - (data) = self.delete_node_with_http_info(name, body, **kwargs) + (data) = self.delete_collection_persistent_volume_with_http_info(**kwargs) return data - def delete_node_with_http_info(self, name, body, **kwargs): + def delete_collection_persistent_volume_with_http_info(self, **kwargs): """ - delete a Node + delete collection of PersistentVolume This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_node_with_http_info(name, body, callback=callback_function) + >>> thread = api.delete_collection_persistent_volume_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Node (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10686,34 +10353,30 @@ def delete_node_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_node" % key + " to method delete_collection_persistent_volume" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_node`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_node`") collection_formats = {} - resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -10721,8 +10384,6 @@ def delete_node_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -10741,7 +10402,7 @@ def delete_node_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10749,61 +10410,61 @@ def delete_node_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_persistent_volume(self, name, body, **kwargs): + def delete_collection_security_context_constraints(self, **kwargs): """ - delete a PersistentVolume + delete collection of SecurityContextConstraints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_persistent_volume(name, body, callback=callback_function) + >>> thread = api.delete_collection_security_context_constraints(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PersistentVolume (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_persistent_volume_with_http_info(name, body, **kwargs) + return self.delete_collection_security_context_constraints_with_http_info(**kwargs) else: - (data) = self.delete_persistent_volume_with_http_info(name, body, **kwargs) + (data) = self.delete_collection_security_context_constraints_with_http_info(**kwargs) return data - def delete_persistent_volume_with_http_info(self, name, body, **kwargs): + def delete_collection_security_context_constraints_with_http_info(self, **kwargs): """ - delete a PersistentVolume + delete collection of SecurityContextConstraints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_persistent_volume_with_http_info(name, body, callback=callback_function) + >>> thread = api.delete_collection_security_context_constraints_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PersistentVolume (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10814,34 +10475,30 @@ def delete_persistent_volume_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_persistent_volume" % key + " to method delete_collection_security_context_constraints" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_persistent_volume`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_persistent_volume`") collection_formats = {} - resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/securitycontextconstraints'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -10849,8 +10506,6 @@ def delete_persistent_volume_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -10869,7 +10524,7 @@ def delete_persistent_volume_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10877,49 +10532,59 @@ def delete_persistent_volume_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources(self, **kwargs): + def delete_namespace(self, name, body, **kwargs): """ - get available resources + delete a Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources(callback=callback_function) + >>> thread = api.delete_namespace(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :param str name: name of the Namespace (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) + return self.delete_namespace_with_http_info(name, body, **kwargs) else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.delete_namespace_with_http_info(name, body, **kwargs) return data - def get_api_resources_with_http_info(self, **kwargs): + def delete_namespace_with_http_info(self, name, body, **kwargs): """ - get available resources + delete a Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) + >>> thread = api.delete_namespace_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :param str name: name of the Namespace (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10930,17 +10595,32 @@ def get_api_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key + " to method delete_namespace" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespace`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespace`") + collection_formats = {} - resource_path = '/api/v1/'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -10948,25 +10628,27 @@ def get_api_resources_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10974,61 +10656,1487 @@ def get_api_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_component_status(self, **kwargs): + def delete_namespaced_config_map(self, name, namespace, body, **kwargs): """ - list objects of kind ComponentStatus + delete a ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_component_status(callback=callback_function) + >>> thread = api.delete_namespaced_config_map(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ComponentStatusList + :param str name: name of the ConfigMap (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a ConfigMap + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_config_map_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ConfigMap (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_config_map" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_config_map`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_config_map`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_config_map`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_endpoints(self, name, namespace, body, **kwargs): + """ + delete Endpoints + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_endpoints(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Endpoints (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): + """ + delete Endpoints + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_endpoints_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Endpoints (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_endpoints`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_endpoints`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_endpoints`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_event(self, name, namespace, body, **kwargs): + """ + delete an Event + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_event(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Event (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_event_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_event_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): + """ + delete an Event + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_event_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Event (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_event`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_limit_range(self, name, namespace, body, **kwargs): + """ + delete a LimitRange + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_limit_range(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the LimitRange (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a LimitRange + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_limit_range_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the LimitRange (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_limit_range`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_limit_range`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_limit_range`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_persistent_volume_claim(self, name, namespace, body, **kwargs): + """ + delete a PersistentVolumeClaim + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_persistent_volume_claim(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a PersistentVolumeClaim + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolumeClaim (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_persistent_volume_claim`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_persistent_volume_claim`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_persistent_volume_claim`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_pod(self, name, namespace, body, **kwargs): + """ + delete a Pod + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_pod(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a Pod + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_pod_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Pod (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_pod`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_pod_template(self, name, namespace, body, **kwargs): + """ + delete a PodTemplate + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_pod_template(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a PodTemplate + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_pod_template_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodTemplate (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_template`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_template`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_pod_template`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_replication_controller(self, name, namespace, body, **kwargs): + """ + delete a ReplicationController + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_replication_controller(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a ReplicationController + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_replication_controller_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicationController (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replication_controller`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replication_controller`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_replication_controller`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_resource_quota(self, name, namespace, body, **kwargs): + """ + delete a ResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_resource_quota(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a ResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_resource_quota_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_quota`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_quota`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_resource_quota`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_secret(self, name, namespace, body, **kwargs): + """ + delete a Secret + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_secret(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a Secret + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_secret_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_secret`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_secret`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_secret`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_service(self, name, namespace, **kwargs): + """ + delete a Service + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_service(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_service_with_http_info(name, namespace, **kwargs) + else: + (data) = self.delete_namespaced_service_with_http_info(name, namespace, **kwargs) + return data + + def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): + """ + delete a Service + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_service_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service`") + + + collection_formats = {} + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_service_account(self, name, namespace, body, **kwargs): + """ + delete a ServiceAccount + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_service_account(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_component_status_with_http_info(**kwargs) + return self.delete_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_component_status_with_http_info(**kwargs) + (data) = self.delete_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) return data - def list_component_status_with_http_info(self, **kwargs): + def delete_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): """ - list objects of kind ComponentStatus + delete a ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_component_status_with_http_info(callback=callback_function) + >>> thread = api.delete_namespaced_service_account_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ComponentStatusList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11039,30 +12147,37 @@ def list_component_status_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_component_status" % key + " to method delete_namespaced_service_account" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service_account`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service_account`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_service_account`") collection_formats = {} - resource_path = '/api/v1/componentstatuses'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -11070,9 +12185,11 @@ def list_component_status_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -11081,14 +12198,14 @@ def list_component_status_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ComponentStatusList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11096,61 +12213,183 @@ def list_component_status_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_config_map_for_all_namespaces(self, **kwargs): + def delete_node(self, name, body, **kwargs): """ - list or watch objects of kind ConfigMap + delete a Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_config_map_for_all_namespaces(callback=callback_function) + >>> thread = api.delete_node(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str name: name of the Node (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_node_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_node_with_http_info(name, body, **kwargs) + return data + + def delete_node_with_http_info(self, name, body, **kwargs): + """ + delete a Node + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_node_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_node" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_node`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_node`") + + + collection_formats = {} + + resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_persistent_volume(self, name, body, **kwargs): + """ + delete a PersistentVolume + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_persistent_volume(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ConfigMapList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_config_map_for_all_namespaces_with_http_info(**kwargs) + return self.delete_persistent_volume_with_http_info(name, body, **kwargs) else: - (data) = self.list_config_map_for_all_namespaces_with_http_info(**kwargs) + (data) = self.delete_persistent_volume_with_http_info(name, body, **kwargs) return data - def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): + def delete_persistent_volume_with_http_info(self, name, body, **kwargs): """ - list or watch objects of kind ConfigMap + delete a PersistentVolume This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_config_map_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.delete_persistent_volume_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str name: name of the PersistentVolume (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ConfigMapList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11161,30 +12400,32 @@ def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_config_map_for_all_namespaces" % key + " to method delete_persistent_volume" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_persistent_volume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_persistent_volume`") collection_formats = {} - resource_path = '/api/v1/configmaps'.replace('{format}', 'json') + resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -11192,9 +12433,11 @@ def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -11203,14 +12446,14 @@ def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ConfigMapList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11218,61 +12461,59 @@ def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_endpoints_for_all_namespaces(self, **kwargs): + def delete_security_context_constraints(self, name, body, **kwargs): """ - list or watch objects of kind Endpoints + delete SecurityContextConstraints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_endpoints_for_all_namespaces(callback=callback_function) + >>> thread = api.delete_security_context_constraints(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str name: name of the SecurityContextConstraints (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1EndpointsList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_endpoints_for_all_namespaces_with_http_info(**kwargs) + return self.delete_security_context_constraints_with_http_info(name, body, **kwargs) else: - (data) = self.list_endpoints_for_all_namespaces_with_http_info(**kwargs) + (data) = self.delete_security_context_constraints_with_http_info(name, body, **kwargs) return data - def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): + def delete_security_context_constraints_with_http_info(self, name, body, **kwargs): """ - list or watch objects of kind Endpoints + delete SecurityContextConstraints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_endpoints_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.delete_security_context_constraints_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str name: name of the SecurityContextConstraints (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1EndpointsList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11283,30 +12524,32 @@ def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_endpoints_for_all_namespaces" % key + " to method delete_security_context_constraints" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_security_context_constraints`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_security_context_constraints`") collection_formats = {} - resource_path = '/api/v1/endpoints'.replace('{format}', 'json') + resource_path = '/api/v1/securitycontextconstraints/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -11314,9 +12557,11 @@ def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -11325,14 +12570,14 @@ def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1EndpointsList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11340,61 +12585,49 @@ def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_event_for_all_namespaces(self, **kwargs): + def get_api_resources(self, **kwargs): """ - list or watch objects of kind Event + get available resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_event_for_all_namespaces(callback=callback_function) + >>> thread = api.get_api_resources(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1EventList + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_event_for_all_namespaces_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) else: - (data) = self.list_event_for_all_namespaces_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) return data - def list_event_for_all_namespaces_with_http_info(self, **kwargs): + def get_api_resources_with_http_info(self, **kwargs): """ - list or watch objects of kind Event + get available resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_event_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1EventList + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11405,30 +12638,17 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_event_for_all_namespaces" % key + " to method get_api_resources" % key ) params[key] = val del params['kwargs'] - collection_formats = {} - resource_path = '/api/v1/events'.replace('{format}', 'json') + resource_path = '/api/v1/'.replace('{format}', 'json') path_params = {} query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -11438,11 +12658,11 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # Authentication setting auth_settings = ['BearerToken'] @@ -11454,7 +12674,7 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1EventList', + response_type='UnversionedAPIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11462,56 +12682,56 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_limit_range_for_all_namespaces(self, **kwargs): + def list_component_status(self, **kwargs): """ - list or watch objects of kind LimitRange + list objects of kind ComponentStatus This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_limit_range_for_all_namespaces(callback=callback_function) + >>> thread = api.list_component_status(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1LimitRangeList + :return: V1ComponentStatusList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_limit_range_for_all_namespaces_with_http_info(**kwargs) + return self.list_component_status_with_http_info(**kwargs) else: - (data) = self.list_limit_range_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_component_status_with_http_info(**kwargs) return data - def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): + def list_component_status_with_http_info(self, **kwargs): """ - list or watch objects of kind LimitRange + list objects of kind ComponentStatus This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_limit_range_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_component_status_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1LimitRangeList + :return: V1ComponentStatusList If the method is called asynchronously, returns the request thread. """ @@ -11527,7 +12747,7 @@ def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_limit_range_for_all_namespaces" % key + " to method list_component_status" % key ) params[key] = val del params['kwargs'] @@ -11535,7 +12755,7 @@ def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v1/limitranges'.replace('{format}', 'json') + resource_path = '/api/v1/componentstatuses'.replace('{format}', 'json') path_params = {} query_params = {} @@ -11576,7 +12796,7 @@ def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1LimitRangeList', + response_type='V1ComponentStatusList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11584,56 +12804,56 @@ def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespace(self, **kwargs): + def list_config_map_for_all_namespaces(self, **kwargs): """ - list or watch objects of kind Namespace + list or watch objects of kind ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespace(callback=callback_function) + >>> thread = api.list_config_map_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1NamespaceList + :return: V1ConfigMapList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespace_with_http_info(**kwargs) + return self.list_config_map_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_namespace_with_http_info(**kwargs) + (data) = self.list_config_map_for_all_namespaces_with_http_info(**kwargs) return data - def list_namespace_with_http_info(self, **kwargs): + def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): """ - list or watch objects of kind Namespace + list or watch objects of kind ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespace_with_http_info(callback=callback_function) + >>> thread = api.list_config_map_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1NamespaceList + :return: V1ConfigMapList If the method is called asynchronously, returns the request thread. """ @@ -11649,7 +12869,7 @@ def list_namespace_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespace" % key + " to method list_config_map_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -11657,7 +12877,7 @@ def list_namespace_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v1/namespaces'.replace('{format}', 'json') + resource_path = '/api/v1/configmaps'.replace('{format}', 'json') path_params = {} query_params = {} @@ -11698,7 +12918,7 @@ def list_namespace_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1NamespaceList', + response_type='V1ConfigMapList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11706,63 +12926,61 @@ def list_namespace_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_config_map(self, namespace, **kwargs): + def list_endpoints_for_all_namespaces(self, **kwargs): """ - list or watch objects of kind ConfigMap + list or watch objects of kind Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_config_map(namespace, callback=callback_function) + >>> thread = api.list_endpoints_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ConfigMapList + :return: V1EndpointsList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_config_map_with_http_info(namespace, **kwargs) + return self.list_endpoints_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_namespaced_config_map_with_http_info(namespace, **kwargs) + (data) = self.list_endpoints_for_all_namespaces_with_http_info(**kwargs) return data - def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): + def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): """ - list or watch objects of kind ConfigMap + list or watch objects of kind Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_config_map_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_endpoints_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ConfigMapList + :return: V1EndpointsList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11773,21 +12991,16 @@ def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_config_map" % key + " to method list_endpoints_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_config_map`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') + resource_path = '/api/v1/endpoints'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -11827,7 +13040,7 @@ def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ConfigMapList', + response_type='V1EndpointsList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11835,63 +13048,61 @@ def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_endpoints(self, namespace, **kwargs): + def list_event_for_all_namespaces(self, **kwargs): """ - list or watch objects of kind Endpoints + list or watch objects of kind Event This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_endpoints(namespace, callback=callback_function) + >>> thread = api.list_event_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1EndpointsList + :return: V1EventList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_endpoints_with_http_info(namespace, **kwargs) + return self.list_event_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_namespaced_endpoints_with_http_info(namespace, **kwargs) + (data) = self.list_event_for_all_namespaces_with_http_info(**kwargs) return data - def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): + def list_event_for_all_namespaces_with_http_info(self, **kwargs): """ - list or watch objects of kind Endpoints + list or watch objects of kind Event This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_endpoints_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_event_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1EndpointsList + :return: V1EventList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11902,21 +13113,16 @@ def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_endpoints" % key + " to method list_event_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_endpoints`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') + resource_path = '/api/v1/events'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -11956,7 +13162,7 @@ def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1EndpointsList', + response_type='V1EventList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11964,63 +13170,61 @@ def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_event(self, namespace, **kwargs): + def list_limit_range_for_all_namespaces(self, **kwargs): """ - list or watch objects of kind Event + list or watch objects of kind LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_event(namespace, callback=callback_function) + >>> thread = api.list_limit_range_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1EventList + :return: V1LimitRangeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_event_with_http_info(namespace, **kwargs) + return self.list_limit_range_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_namespaced_event_with_http_info(namespace, **kwargs) + (data) = self.list_limit_range_for_all_namespaces_with_http_info(**kwargs) return data - def list_namespaced_event_with_http_info(self, namespace, **kwargs): + def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): """ - list or watch objects of kind Event + list or watch objects of kind LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_event_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_limit_range_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1EventList + :return: V1LimitRangeList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12031,21 +13235,16 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_event" % key + " to method list_limit_range_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') + resource_path = '/api/v1/limitranges'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -12085,7 +13284,7 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1EventList', + response_type='V1LimitRangeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12093,63 +13292,61 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_limit_range(self, namespace, **kwargs): + def list_namespace(self, **kwargs): """ - list or watch objects of kind LimitRange + list or watch objects of kind Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_limit_range(namespace, callback=callback_function) + >>> thread = api.list_namespace(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1LimitRangeList + :return: V1NamespaceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_limit_range_with_http_info(namespace, **kwargs) + return self.list_namespace_with_http_info(**kwargs) else: - (data) = self.list_namespaced_limit_range_with_http_info(namespace, **kwargs) + (data) = self.list_namespace_with_http_info(**kwargs) return data - def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): + def list_namespace_with_http_info(self, **kwargs): """ - list or watch objects of kind LimitRange + list or watch objects of kind Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_limit_range_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespace_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1LimitRangeList + :return: V1NamespaceList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12160,21 +13357,16 @@ def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_limit_range" % key + " to method list_namespace" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_limit_range`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -12214,7 +13406,7 @@ def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1LimitRangeList', + response_type='V1NamespaceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12222,16 +13414,16 @@ def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_persistent_volume_claim(self, namespace, **kwargs): + def list_namespaced_config_map(self, namespace, **kwargs): """ - list or watch objects of kind PersistentVolumeClaim + list or watch objects of kind ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_persistent_volume_claim(namespace, callback=callback_function) + >>> thread = api.list_namespaced_config_map(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12239,30 +13431,30 @@ def list_namespaced_persistent_volume_claim(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PersistentVolumeClaimList + :return: V1ConfigMapList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) + return self.list_namespaced_config_map_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_config_map_with_http_info(namespace, **kwargs) return data - def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kwargs): + def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind PersistentVolumeClaim + list or watch objects of kind ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_persistent_volume_claim_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_config_map_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12270,10 +13462,10 @@ def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kw :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PersistentVolumeClaimList + :return: V1ConfigMapList If the method is called asynchronously, returns the request thread. """ @@ -12289,18 +13481,18 @@ def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_persistent_volume_claim" % key + " to method list_namespaced_config_map" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_persistent_volume_claim`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_config_map`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -12343,7 +13535,7 @@ def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PersistentVolumeClaimList', + response_type='V1ConfigMapList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12351,16 +13543,16 @@ def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_pod(self, namespace, **kwargs): + def list_namespaced_endpoints(self, namespace, **kwargs): """ - list or watch objects of kind Pod + list or watch objects of kind Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_pod(namespace, callback=callback_function) + >>> thread = api.list_namespaced_endpoints(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12368,30 +13560,30 @@ def list_namespaced_pod(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PodList + :return: V1EndpointsList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_pod_with_http_info(namespace, **kwargs) + return self.list_namespaced_endpoints_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_pod_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_endpoints_with_http_info(namespace, **kwargs) return data - def list_namespaced_pod_with_http_info(self, namespace, **kwargs): + def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind Pod + list or watch objects of kind Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_pod_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_endpoints_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12399,10 +13591,10 @@ def list_namespaced_pod_with_http_info(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PodList + :return: V1EndpointsList If the method is called asynchronously, returns the request thread. """ @@ -12418,18 +13610,18 @@ def list_namespaced_pod_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_pod" % key + " to method list_namespaced_endpoints" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_endpoints`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -12472,7 +13664,7 @@ def list_namespaced_pod_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PodList', + response_type='V1EndpointsList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12480,16 +13672,16 @@ def list_namespaced_pod_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_pod_template(self, namespace, **kwargs): + def list_namespaced_event(self, namespace, **kwargs): """ - list or watch objects of kind PodTemplate + list or watch objects of kind Event This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_pod_template(namespace, callback=callback_function) + >>> thread = api.list_namespaced_event(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12497,30 +13689,30 @@ def list_namespaced_pod_template(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PodTemplateList + :return: V1EventList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_pod_template_with_http_info(namespace, **kwargs) + return self.list_namespaced_event_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_pod_template_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_event_with_http_info(namespace, **kwargs) return data - def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): + def list_namespaced_event_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind PodTemplate + list or watch objects of kind Event This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_pod_template_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_event_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12528,10 +13720,10 @@ def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PodTemplateList + :return: V1EventList If the method is called asynchronously, returns the request thread. """ @@ -12547,18 +13739,18 @@ def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_pod_template" % key + " to method list_namespaced_event" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_template`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -12601,7 +13793,7 @@ def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PodTemplateList', + response_type='V1EventList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12609,16 +13801,16 @@ def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_replication_controller(self, namespace, **kwargs): + def list_namespaced_limit_range(self, namespace, **kwargs): """ - list or watch objects of kind ReplicationController + list or watch objects of kind LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_replication_controller(namespace, callback=callback_function) + >>> thread = api.list_namespaced_limit_range(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12626,30 +13818,30 @@ def list_namespaced_replication_controller(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ReplicationControllerList + :return: V1LimitRangeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_replication_controller_with_http_info(namespace, **kwargs) + return self.list_namespaced_limit_range_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_replication_controller_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_limit_range_with_http_info(namespace, **kwargs) return data - def list_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): + def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind ReplicationController + list or watch objects of kind LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_replication_controller_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_limit_range_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12657,10 +13849,10 @@ def list_namespaced_replication_controller_with_http_info(self, namespace, **kwa :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ReplicationControllerList + :return: V1LimitRangeList If the method is called asynchronously, returns the request thread. """ @@ -12676,18 +13868,18 @@ def list_namespaced_replication_controller_with_http_info(self, namespace, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_replication_controller" % key + " to method list_namespaced_limit_range" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replication_controller`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_limit_range`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -12730,7 +13922,7 @@ def list_namespaced_replication_controller_with_http_info(self, namespace, **kwa body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ReplicationControllerList', + response_type='V1LimitRangeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12738,16 +13930,16 @@ def list_namespaced_replication_controller_with_http_info(self, namespace, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_resource_quota(self, namespace, **kwargs): + def list_namespaced_persistent_volume_claim(self, namespace, **kwargs): """ - list or watch objects of kind ResourceQuota + list or watch objects of kind PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_resource_quota(namespace, callback=callback_function) + >>> thread = api.list_namespaced_persistent_volume_claim(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12755,30 +13947,30 @@ def list_namespaced_resource_quota(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ResourceQuotaList + :return: V1PersistentVolumeClaimList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_resource_quota_with_http_info(namespace, **kwargs) + return self.list_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_resource_quota_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) return data - def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): + def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind ResourceQuota + list or watch objects of kind PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_resource_quota_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_persistent_volume_claim_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12786,10 +13978,10 @@ def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ResourceQuotaList + :return: V1PersistentVolumeClaimList If the method is called asynchronously, returns the request thread. """ @@ -12805,18 +13997,18 @@ def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_resource_quota" % key + " to method list_namespaced_persistent_volume_claim" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_quota`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_persistent_volume_claim`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -12859,7 +14051,7 @@ def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ResourceQuotaList', + response_type='V1PersistentVolumeClaimList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12867,16 +14059,16 @@ def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_secret(self, namespace, **kwargs): + def list_namespaced_pod(self, namespace, **kwargs): """ - list or watch objects of kind Secret + list or watch objects of kind Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_secret(namespace, callback=callback_function) + >>> thread = api.list_namespaced_pod(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12884,30 +14076,30 @@ def list_namespaced_secret(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1SecretList + :return: V1PodList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_secret_with_http_info(namespace, **kwargs) + return self.list_namespaced_pod_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_secret_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_pod_with_http_info(namespace, **kwargs) return data - def list_namespaced_secret_with_http_info(self, namespace, **kwargs): + def list_namespaced_pod_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind Secret + list or watch objects of kind Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_secret_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_pod_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12915,10 +14107,10 @@ def list_namespaced_secret_with_http_info(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1SecretList + :return: V1PodList If the method is called asynchronously, returns the request thread. """ @@ -12934,18 +14126,18 @@ def list_namespaced_secret_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_secret" % key + " to method list_namespaced_pod" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_secret`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -12988,7 +14180,7 @@ def list_namespaced_secret_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1SecretList', + response_type='V1PodList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12996,16 +14188,16 @@ def list_namespaced_secret_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_service(self, namespace, **kwargs): + def list_namespaced_pod_template(self, namespace, **kwargs): """ - list or watch objects of kind Service + list or watch objects of kind PodTemplate This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_service(namespace, callback=callback_function) + >>> thread = api.list_namespaced_pod_template(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -13013,30 +14205,30 @@ def list_namespaced_service(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ServiceList + :return: V1PodTemplateList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_service_with_http_info(namespace, **kwargs) + return self.list_namespaced_pod_template_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_service_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_pod_template_with_http_info(namespace, **kwargs) return data - def list_namespaced_service_with_http_info(self, namespace, **kwargs): + def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind Service + list or watch objects of kind PodTemplate This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_service_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_pod_template_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -13044,10 +14236,10 @@ def list_namespaced_service_with_http_info(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ServiceList + :return: V1PodTemplateList If the method is called asynchronously, returns the request thread. """ @@ -13063,18 +14255,18 @@ def list_namespaced_service_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_service" % key + " to method list_namespaced_pod_template" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_template`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/services'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -13117,7 +14309,7 @@ def list_namespaced_service_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ServiceList', + response_type='V1PodTemplateList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13125,16 +14317,16 @@ def list_namespaced_service_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_service_account(self, namespace, **kwargs): + def list_namespaced_replication_controller(self, namespace, **kwargs): """ - list or watch objects of kind ServiceAccount + list or watch objects of kind ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_service_account(namespace, callback=callback_function) + >>> thread = api.list_namespaced_replication_controller(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -13142,30 +14334,30 @@ def list_namespaced_service_account(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ServiceAccountList + :return: V1ReplicationControllerList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_service_account_with_http_info(namespace, **kwargs) + return self.list_namespaced_replication_controller_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_service_account_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_replication_controller_with_http_info(namespace, **kwargs) return data - def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): + def list_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind ServiceAccount + list or watch objects of kind ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_service_account_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_replication_controller_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -13173,10 +14365,10 @@ def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ServiceAccountList + :return: V1ReplicationControllerList If the method is called asynchronously, returns the request thread. """ @@ -13192,18 +14384,18 @@ def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_service_account" % key + " to method list_namespaced_replication_controller" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service_account`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replication_controller`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -13246,7 +14438,7 @@ def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ServiceAccountList', + response_type='V1ReplicationControllerList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13254,61 +14446,63 @@ def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_node(self, **kwargs): + def list_namespaced_resource_quota(self, namespace, **kwargs): """ - list or watch objects of kind Node + list or watch objects of kind ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_node(callback=callback_function) + >>> thread = api.list_namespaced_resource_quota(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1NodeList + :return: V1ResourceQuotaList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_node_with_http_info(**kwargs) + return self.list_namespaced_resource_quota_with_http_info(namespace, **kwargs) else: - (data) = self.list_node_with_http_info(**kwargs) + (data) = self.list_namespaced_resource_quota_with_http_info(namespace, **kwargs) return data - def list_node_with_http_info(self, **kwargs): + def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind Node + list or watch objects of kind ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_node_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_resource_quota_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1NodeList + :return: V1ResourceQuotaList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13319,16 +14513,21 @@ def list_node_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_node" % key + " to method list_namespaced_resource_quota" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_quota`") collection_formats = {} - resource_path = '/api/v1/nodes'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -13368,7 +14567,7 @@ def list_node_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1NodeList', + response_type='V1ResourceQuotaList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13376,61 +14575,63 @@ def list_node_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_persistent_volume(self, **kwargs): + def list_namespaced_secret(self, namespace, **kwargs): """ - list or watch objects of kind PersistentVolume + list or watch objects of kind Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_persistent_volume(callback=callback_function) + >>> thread = api.list_namespaced_secret(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PersistentVolumeList + :return: V1SecretList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_persistent_volume_with_http_info(**kwargs) + return self.list_namespaced_secret_with_http_info(namespace, **kwargs) else: - (data) = self.list_persistent_volume_with_http_info(**kwargs) + (data) = self.list_namespaced_secret_with_http_info(namespace, **kwargs) return data - def list_persistent_volume_with_http_info(self, **kwargs): + def list_namespaced_secret_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind PersistentVolume + list or watch objects of kind Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_persistent_volume_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_secret_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PersistentVolumeList + :return: V1SecretList If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13441,16 +14642,21 @@ def list_persistent_volume_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_persistent_volume" % key + " to method list_namespaced_secret" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_secret`") collection_formats = {} - resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -13490,7 +14696,7 @@ def list_persistent_volume_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PersistentVolumeList', + response_type='V1SecretList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13498,61 +14704,63 @@ def list_persistent_volume_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_persistent_volume_claim_for_all_namespaces(self, **kwargs): + def list_namespaced_service(self, namespace, **kwargs): """ - list or watch objects of kind PersistentVolumeClaim + list or watch objects of kind Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_persistent_volume_claim_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_service(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PersistentVolumeClaimList + :return: V1ServiceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_service_with_http_info(namespace, **kwargs) else: - (data) = self.list_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_service_with_http_info(namespace, **kwargs) return data - def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_service_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind PersistentVolumeClaim + list or watch objects of kind Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_persistent_volume_claim_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_service_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PersistentVolumeClaimList + :return: V1ServiceList If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13563,24 +14771,29 @@ def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_persistent_volume_claim_for_all_namespaces" % key + " to method list_namespaced_service" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service`") collection_formats = {} - resource_path = '/api/v1/persistentvolumeclaims'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/services'.replace('{format}', 'json') path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -13612,7 +14825,7 @@ def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PersistentVolumeClaimList', + response_type='V1ServiceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13620,61 +14833,63 @@ def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_pod_for_all_namespaces(self, **kwargs): + def list_namespaced_service_account(self, namespace, **kwargs): """ - list or watch objects of kind Pod + list or watch objects of kind ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_pod_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_service_account(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PodList + :return: V1ServiceAccountList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_pod_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_service_account_with_http_info(namespace, **kwargs) else: - (data) = self.list_pod_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_service_account_with_http_info(namespace, **kwargs) return data - def list_pod_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind Pod + list or watch objects of kind ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_pod_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_service_account_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PodList + :return: V1ServiceAccountList If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13685,24 +14900,29 @@ def list_pod_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_pod_for_all_namespaces" % key + " to method list_namespaced_service_account" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service_account`") collection_formats = {} - resource_path = '/api/v1/pods'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -13734,7 +14954,7 @@ def list_pod_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PodList', + response_type='V1ServiceAccountList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13742,61 +14962,61 @@ def list_pod_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_pod_template_for_all_namespaces(self, **kwargs): + def list_node(self, **kwargs): """ - list or watch objects of kind PodTemplate + list or watch objects of kind Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_pod_template_for_all_namespaces(callback=callback_function) + >>> thread = api.list_node(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PodTemplateList + :return: V1NodeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_pod_template_for_all_namespaces_with_http_info(**kwargs) + return self.list_node_with_http_info(**kwargs) else: - (data) = self.list_pod_template_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_node_with_http_info(**kwargs) return data - def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): + def list_node_with_http_info(self, **kwargs): """ - list or watch objects of kind PodTemplate + list or watch objects of kind Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_pod_template_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_node_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PodTemplateList + :return: V1NodeList If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13807,7 +15027,7 @@ def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_pod_template_for_all_namespaces" % key + " to method list_node" % key ) params[key] = val del params['kwargs'] @@ -13815,16 +15035,16 @@ def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v1/podtemplates'.replace('{format}', 'json') + resource_path = '/api/v1/nodes'.replace('{format}', 'json') path_params = {} query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -13856,7 +15076,7 @@ def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PodTemplateList', + response_type='V1NodeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13864,61 +15084,61 @@ def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_replication_controller_for_all_namespaces(self, **kwargs): + def list_persistent_volume(self, **kwargs): """ - list or watch objects of kind ReplicationController + list or watch objects of kind PersistentVolume This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_replication_controller_for_all_namespaces(callback=callback_function) + >>> thread = api.list_persistent_volume(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ReplicationControllerList + :return: V1PersistentVolumeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_replication_controller_for_all_namespaces_with_http_info(**kwargs) + return self.list_persistent_volume_with_http_info(**kwargs) else: - (data) = self.list_replication_controller_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_persistent_volume_with_http_info(**kwargs) return data - def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs): + def list_persistent_volume_with_http_info(self, **kwargs): """ - list or watch objects of kind ReplicationController + list or watch objects of kind PersistentVolume This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_replication_controller_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_persistent_volume_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ReplicationControllerList + :return: V1PersistentVolumeList If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13929,7 +15149,7 @@ def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_replication_controller_for_all_namespaces" % key + " to method list_persistent_volume" % key ) params[key] = val del params['kwargs'] @@ -13937,16 +15157,16 @@ def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs collection_formats = {} - resource_path = '/api/v1/replicationcontrollers'.replace('{format}', 'json') + resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') path_params = {} query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -13978,7 +15198,7 @@ def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ReplicationControllerList', + response_type='V1PersistentVolumeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13986,61 +15206,61 @@ def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_resource_quota_for_all_namespaces(self, **kwargs): + def list_persistent_volume_claim_for_all_namespaces(self, **kwargs): """ - list or watch objects of kind ResourceQuota + list or watch objects of kind PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_resource_quota_for_all_namespaces(callback=callback_function) + >>> thread = api.list_persistent_volume_claim_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ResourceQuotaList + :return: V1PersistentVolumeClaimList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_resource_quota_for_all_namespaces_with_http_info(**kwargs) + return self.list_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_resource_quota_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) return data - def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): + def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwargs): """ - list or watch objects of kind ResourceQuota + list or watch objects of kind PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_resource_quota_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_persistent_volume_claim_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ResourceQuotaList + :return: V1PersistentVolumeClaimList If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14051,7 +15271,7 @@ def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_resource_quota_for_all_namespaces" % key + " to method list_persistent_volume_claim_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -14059,16 +15279,16 @@ def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v1/resourcequotas'.replace('{format}', 'json') + resource_path = '/api/v1/persistentvolumeclaims'.replace('{format}', 'json') path_params = {} query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -14100,7 +15320,7 @@ def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ResourceQuotaList', + response_type='V1PersistentVolumeClaimList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14108,61 +15328,61 @@ def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_secret_for_all_namespaces(self, **kwargs): + def list_pod_for_all_namespaces(self, **kwargs): """ - list or watch objects of kind Secret + list or watch objects of kind Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_secret_for_all_namespaces(callback=callback_function) + >>> thread = api.list_pod_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1SecretList + :return: V1PodList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_secret_for_all_namespaces_with_http_info(**kwargs) + return self.list_pod_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_secret_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_pod_for_all_namespaces_with_http_info(**kwargs) return data - def list_secret_for_all_namespaces_with_http_info(self, **kwargs): + def list_pod_for_all_namespaces_with_http_info(self, **kwargs): """ - list or watch objects of kind Secret + list or watch objects of kind Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_secret_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_pod_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1SecretList + :return: V1PodList If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14173,7 +15393,7 @@ def list_secret_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_secret_for_all_namespaces" % key + " to method list_pod_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -14181,16 +15401,16 @@ def list_secret_for_all_namespaces_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v1/secrets'.replace('{format}', 'json') + resource_path = '/api/v1/pods'.replace('{format}', 'json') path_params = {} query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -14222,7 +15442,7 @@ def list_secret_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1SecretList', + response_type='V1PodList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14230,61 +15450,61 @@ def list_secret_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_service_account_for_all_namespaces(self, **kwargs): + def list_pod_template_for_all_namespaces(self, **kwargs): """ - list or watch objects of kind ServiceAccount + list or watch objects of kind PodTemplate This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_service_account_for_all_namespaces(callback=callback_function) + >>> thread = api.list_pod_template_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ServiceAccountList + :return: V1PodTemplateList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_service_account_for_all_namespaces_with_http_info(**kwargs) + return self.list_pod_template_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_service_account_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_pod_template_for_all_namespaces_with_http_info(**kwargs) return data - def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): + def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): """ - list or watch objects of kind ServiceAccount + list or watch objects of kind PodTemplate This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_service_account_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_pod_template_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ServiceAccountList + :return: V1PodTemplateList If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14295,7 +15515,7 @@ def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_service_account_for_all_namespaces" % key + " to method list_pod_template_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -14303,16 +15523,16 @@ def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v1/serviceaccounts'.replace('{format}', 'json') + resource_path = '/api/v1/podtemplates'.replace('{format}', 'json') path_params = {} query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -14344,7 +15564,7 @@ def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ServiceAccountList', + response_type='V1PodTemplateList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14352,61 +15572,61 @@ def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_service_for_all_namespaces(self, **kwargs): + def list_replication_controller_for_all_namespaces(self, **kwargs): """ - list or watch objects of kind Service + list or watch objects of kind ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_service_for_all_namespaces(callback=callback_function) + >>> thread = api.list_replication_controller_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ServiceList + :return: V1ReplicationControllerList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_service_for_all_namespaces_with_http_info(**kwargs) + return self.list_replication_controller_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_service_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_replication_controller_for_all_namespaces_with_http_info(**kwargs) return data - def list_service_for_all_namespaces_with_http_info(self, **kwargs): + def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs): """ - list or watch objects of kind Service + list or watch objects of kind ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_service_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_replication_controller_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ServiceList + :return: V1ReplicationControllerList If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14417,7 +15637,7 @@ def list_service_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_service_for_all_namespaces" % key + " to method list_replication_controller_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -14425,16 +15645,16 @@ def list_service_for_all_namespaces_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/api/v1/services'.replace('{format}', 'json') + resource_path = '/api/v1/replicationcontrollers'.replace('{format}', 'json') path_params = {} query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -14466,7 +15686,7 @@ def list_service_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ServiceList', + response_type='V1ReplicationControllerList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14474,55 +15694,61 @@ def list_service_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespace(self, name, body, **kwargs): + def list_resource_quota_for_all_namespaces(self, **kwargs): """ - partially update the specified Namespace + list or watch objects of kind ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespace(name, body, callback=callback_function) + >>> thread = api.list_resource_quota_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Namespace (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Namespace + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ResourceQuotaList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespace_with_http_info(name, body, **kwargs) + return self.list_resource_quota_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.patch_namespace_with_http_info(name, body, **kwargs) + (data) = self.list_resource_quota_for_all_namespaces_with_http_info(**kwargs) return data - def patch_namespace_with_http_info(self, name, body, **kwargs): + def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): """ - partially update the specified Namespace + list or watch objects of kind ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespace_with_http_info(name, body, callback=callback_function) + >>> thread = api.list_resource_quota_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Namespace (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Namespace + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ResourceQuotaList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14533,28 +15759,30 @@ def patch_namespace_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespace" % key + " to method list_resource_quota_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespace`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespace`") collection_formats = {} - resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/resourcequotas'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -14562,27 +15790,25 @@ def patch_namespace_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Namespace', + response_type='V1ResourceQuotaList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14590,55 +15816,61 @@ def patch_namespace_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespace_status(self, name, body, **kwargs): + def list_secret_for_all_namespaces(self, **kwargs): """ - partially update status of the specified Namespace + list or watch objects of kind Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespace_status(name, body, callback=callback_function) + >>> thread = api.list_secret_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Namespace (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Namespace + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1SecretList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespace_status_with_http_info(name, body, **kwargs) + return self.list_secret_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.patch_namespace_status_with_http_info(name, body, **kwargs) + (data) = self.list_secret_for_all_namespaces_with_http_info(**kwargs) return data - def patch_namespace_status_with_http_info(self, name, body, **kwargs): + def list_secret_for_all_namespaces_with_http_info(self, **kwargs): """ - partially update status of the specified Namespace + list or watch objects of kind Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespace_status_with_http_info(name, body, callback=callback_function) + >>> thread = api.list_secret_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Namespace (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Namespace + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1SecretList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14649,28 +15881,30 @@ def patch_namespace_status_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespace_status" % key + " to method list_secret_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespace_status`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespace_status`") collection_formats = {} - resource_path = '/api/v1/namespaces/{name}/status'.replace('{format}', 'json') + resource_path = '/api/v1/secrets'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -14678,27 +15912,25 @@ def patch_namespace_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Namespace', + response_type='V1SecretList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14706,57 +15938,61 @@ def patch_namespace_status_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_config_map(self, name, namespace, body, **kwargs): + def list_security_context_constraints(self, **kwargs): """ - partially update the specified ConfigMap + list or watch objects of kind SecurityContextConstraints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_config_map(name, namespace, body, callback=callback_function) + >>> thread = api.list_security_context_constraints(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ConfigMap (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ConfigMap + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1SecurityContextConstraintsList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + return self.list_security_context_constraints_with_http_info(**kwargs) else: - (data) = self.patch_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + (data) = self.list_security_context_constraints_with_http_info(**kwargs) return data - def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): + def list_security_context_constraints_with_http_info(self, **kwargs): """ - partially update the specified ConfigMap + list or watch objects of kind SecurityContextConstraints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_config_map_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.list_security_context_constraints_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ConfigMap (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ConfigMap + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1SecurityContextConstraintsList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14767,33 +16003,30 @@ def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_config_map" % key + " to method list_security_context_constraints" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_config_map`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_config_map`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_config_map`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/securitycontextconstraints'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -14801,27 +16034,25 @@ def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ConfigMap', + response_type='V1SecurityContextConstraintsList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14829,57 +16060,61 @@ def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_endpoints(self, name, namespace, body, **kwargs): + def list_service_account_for_all_namespaces(self, **kwargs): """ - partially update the specified Endpoints + list or watch objects of kind ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_endpoints(name, namespace, body, callback=callback_function) + >>> thread = api.list_service_account_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Endpoints (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Endpoints + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ServiceAccountList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + return self.list_service_account_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.patch_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + (data) = self.list_service_account_for_all_namespaces_with_http_info(**kwargs) return data - def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): + def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): """ - partially update the specified Endpoints + list or watch objects of kind ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_endpoints_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.list_service_account_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Endpoints (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Endpoints + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ServiceAccountList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14890,33 +16125,30 @@ def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_endpoints" % key + " to method list_service_account_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_endpoints`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_endpoints`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_endpoints`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/serviceaccounts'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -14924,27 +16156,25 @@ def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Endpoints', + response_type='V1ServiceAccountList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14952,57 +16182,61 @@ def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_event(self, name, namespace, body, **kwargs): + def list_service_for_all_namespaces(self, **kwargs): """ - partially update the specified Event + list or watch objects of kind Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_event(name, namespace, body, callback=callback_function) + >>> thread = api.list_service_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Event (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Event + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ServiceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) + return self.list_service_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) + (data) = self.list_service_for_all_namespaces_with_http_info(**kwargs) return data - def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): + def list_service_for_all_namespaces_with_http_info(self, **kwargs): """ - partially update the specified Event + list or watch objects of kind Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_event_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.list_service_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Event (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Event + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ServiceList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -15013,61 +16247,56 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_event" % key + " to method list_service_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_event`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_event`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_event`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/services'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} form_params = [] local_var_files = {} - body_params = None - if 'body' in params: - body_params = params['body'] + body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Event', + response_type='V1ServiceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15075,57 +16304,55 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_limit_range(self, name, namespace, body, **kwargs): + def patch_namespace(self, name, body, **kwargs): """ - partially update the specified LimitRange + partially update the specified Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_limit_range(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespace(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the LimitRange (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Namespace (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1LimitRange + :return: V1Namespace If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespace_with_http_info(name, body, **kwargs) else: - (data) = self.patch_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespace_with_http_info(name, body, **kwargs) return data - def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespace_with_http_info(self, name, body, **kwargs): """ - partially update the specified LimitRange + partially update the specified Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_limit_range_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespace_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the LimitRange (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Namespace (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1LimitRange + :return: V1Namespace If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -15136,29 +16363,24 @@ def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_limit_range" % key + " to method patch_namespace" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_limit_range`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_limit_range`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespace`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_limit_range`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespace`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -15190,7 +16412,7 @@ def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **k body=body_params, post_params=form_params, files=local_var_files, - response_type='V1LimitRange', + response_type='V1Namespace', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15198,57 +16420,55 @@ def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_persistent_volume_claim(self, name, namespace, body, **kwargs): + def patch_namespace_status(self, name, body, **kwargs): """ - partially update the specified PersistentVolumeClaim + partially update status of the specified Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_persistent_volume_claim(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespace_status(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PersistentVolumeClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Namespace (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolumeClaim + :return: V1Namespace If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespace_status_with_http_info(name, body, **kwargs) else: - (data) = self.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespace_status_with_http_info(name, body, **kwargs) return data - def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespace_status_with_http_info(self, name, body, **kwargs): """ - partially update the specified PersistentVolumeClaim + partially update status of the specified Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespace_status_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PersistentVolumeClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Namespace (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolumeClaim + :return: V1Namespace If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -15259,29 +16479,24 @@ def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_persistent_volume_claim" % key + " to method patch_namespace_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespace_status`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespace_status`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -15313,7 +16528,7 @@ def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespac body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PersistentVolumeClaim', + response_type='V1Namespace', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15321,52 +16536,52 @@ def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_persistent_volume_claim_status(self, name, namespace, body, **kwargs): + def patch_namespaced_config_map(self, name, namespace, body, **kwargs): """ - partially update status of the specified PersistentVolumeClaim + partially update the specified ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_persistent_volume_claim_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_config_map(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PersistentVolumeClaim (required) + :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolumeClaim + :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified PersistentVolumeClaim + partially update the specified ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_config_map_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PersistentVolumeClaim (required) + :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolumeClaim + :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ @@ -15382,24 +16597,24 @@ def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_persistent_volume_claim_status" % key + " to method patch_namespaced_config_map" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_config_map`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_config_map`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_config_map`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -15436,7 +16651,7 @@ def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, n body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PersistentVolumeClaim', + response_type='V1ConfigMap', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15444,52 +16659,52 @@ def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_pod(self, name, namespace, body, **kwargs): + def patch_namespaced_endpoints(self, name, namespace, body, **kwargs): """ - partially update the specified Pod + partially update the specified Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_pod(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_endpoints(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Pod (required) + :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Pod + :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified Pod + partially update the specified Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_pod_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_endpoints_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Pod (required) + :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Pod + :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ @@ -15505,24 +16720,24 @@ def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_pod" % key + " to method patch_namespaced_endpoints" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_endpoints`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_endpoints`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_endpoints`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -15559,7 +16774,7 @@ def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Pod', + response_type='V1Endpoints', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15567,52 +16782,52 @@ def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_pod_status(self, name, namespace, body, **kwargs): + def patch_namespaced_event(self, name, namespace, body, **kwargs): """ - partially update status of the specified Pod + partially update the specified Event This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_pod_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_event(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Pod (required) + :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Pod + :return: V1Event If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified Pod + partially update the specified Event This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_pod_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_event_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Pod (required) + :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Pod + :return: V1Event If the method is called asynchronously, returns the request thread. """ @@ -15628,24 +16843,24 @@ def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_pod_status" % key + " to method patch_namespaced_event" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_event`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_event`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_event`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/status'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -15682,7 +16897,7 @@ def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Pod', + response_type='V1Event', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15690,52 +16905,52 @@ def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_pod_template(self, name, namespace, body, **kwargs): + def patch_namespaced_limit_range(self, name, namespace, body, **kwargs): """ - partially update the specified PodTemplate + partially update the specified LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_pod_template(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_limit_range(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PodTemplate (required) + :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PodTemplate + :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified PodTemplate + partially update the specified LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_pod_template_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_limit_range_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PodTemplate (required) + :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PodTemplate + :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ @@ -15751,24 +16966,24 @@ def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_pod_template" % key + " to method patch_namespaced_limit_range" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_template`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_limit_range`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_template`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_limit_range`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_template`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_limit_range`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -15805,7 +17020,7 @@ def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PodTemplate', + response_type='V1LimitRange', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15813,52 +17028,52 @@ def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_replication_controller(self, name, namespace, body, **kwargs): + def patch_namespaced_persistent_volume_claim(self, name, namespace, body, **kwargs): """ - partially update the specified ReplicationController + partially update the specified PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_replication_controller(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_persistent_volume_claim(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicationController (required) + :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ReplicationController + :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified ReplicationController + partially update the specified PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_replication_controller_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicationController (required) + :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ReplicationController + :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ @@ -15874,24 +17089,24 @@ def patch_namespaced_replication_controller_with_http_info(self, name, namespace if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_replication_controller" % key + " to method patch_namespaced_persistent_volume_claim" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -15928,7 +17143,7 @@ def patch_namespaced_replication_controller_with_http_info(self, name, namespace body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ReplicationController', + response_type='V1PersistentVolumeClaim', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15936,52 +17151,52 @@ def patch_namespaced_replication_controller_with_http_info(self, name, namespace _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_replication_controller_status(self, name, namespace, body, **kwargs): + def patch_namespaced_persistent_volume_claim_status(self, name, namespace, body, **kwargs): """ - partially update status of the specified ReplicationController + partially update status of the specified PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_replication_controller_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_persistent_volume_claim_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicationController (required) + :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ReplicationController + :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_replication_controller_status_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified ReplicationController + partially update status of the specified PersistentVolumeClaim This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicationController (required) + :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ReplicationController + :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ @@ -15997,24 +17212,24 @@ def patch_namespaced_replication_controller_status_with_http_info(self, name, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_replication_controller_status" % key + " to method patch_namespaced_persistent_volume_claim_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim_status`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim_status`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -16051,7 +17266,7 @@ def patch_namespaced_replication_controller_status_with_http_info(self, name, na body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ReplicationController', + response_type='V1PersistentVolumeClaim', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16059,52 +17274,52 @@ def patch_namespaced_replication_controller_status_with_http_info(self, name, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_resource_quota(self, name, namespace, body, **kwargs): + def patch_namespaced_pod(self, name, namespace, body, **kwargs): """ - partially update the specified ResourceQuota + partially update the specified Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_resource_quota(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_pod(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ResourceQuota (required) + :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ResourceQuota + :return: V1Pod If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_pod_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_pod_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified ResourceQuota + partially update the specified Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_resource_quota_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_pod_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ResourceQuota (required) + :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ResourceQuota + :return: V1Pod If the method is called asynchronously, returns the request thread. """ @@ -16120,24 +17335,24 @@ def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_resource_quota" % key + " to method patch_namespaced_pod" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -16174,7 +17389,7 @@ def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ResourceQuota', + response_type='V1Pod', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16182,52 +17397,52 @@ def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_resource_quota_status(self, name, namespace, body, **kwargs): + def patch_namespaced_pod_status(self, name, namespace, body, **kwargs): """ - partially update status of the specified ResourceQuota + partially update status of the specified Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_resource_quota_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_pod_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ResourceQuota (required) + :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ResourceQuota + :return: V1Pod If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified ResourceQuota + partially update status of the specified Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_pod_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ResourceQuota (required) + :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ResourceQuota + :return: V1Pod If the method is called asynchronously, returns the request thread. """ @@ -16243,24 +17458,24 @@ def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_resource_quota_status" % key + " to method patch_namespaced_pod_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_status`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_status`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -16297,7 +17512,7 @@ def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ResourceQuota', + response_type='V1Pod', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16305,52 +17520,52 @@ def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_scale_scale(self, name, namespace, body, **kwargs): + def patch_namespaced_pod_template(self, name, namespace, body, **kwargs): """ - partially update scale of the specified Scale + partially update the specified PodTemplate This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_scale_scale(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_pod_template(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Scale + :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_scale_scale_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): """ - partially update scale of the specified Scale + partially update the specified PodTemplate This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_scale_scale_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_pod_template_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Scale + :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ @@ -16366,24 +17581,24 @@ def patch_namespaced_scale_scale_with_http_info(self, name, namespace, body, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_scale_scale" % key + " to method patch_namespaced_pod_template" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scale_scale`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_template`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scale_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_template`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scale_scale`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_template`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -16420,7 +17635,7 @@ def patch_namespaced_scale_scale_with_http_info(self, name, namespace, body, **k body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Scale', + response_type='V1PodTemplate', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16428,52 +17643,52 @@ def patch_namespaced_scale_scale_with_http_info(self, name, namespace, body, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_secret(self, name, namespace, body, **kwargs): + def patch_namespaced_replication_controller(self, name, namespace, body, **kwargs): """ - partially update the specified Secret + partially update the specified ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_secret(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_replication_controller(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Secret (required) + :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Secret + :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified Secret + partially update the specified ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_secret_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_replication_controller_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Secret (required) + :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Secret + :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ @@ -16489,24 +17704,24 @@ def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_secret" % key + " to method patch_namespaced_replication_controller" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_secret`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_secret`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_secret`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -16543,7 +17758,7 @@ def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Secret', + response_type='V1ReplicationController', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16551,52 +17766,52 @@ def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_service(self, name, namespace, body, **kwargs): + def patch_namespaced_replication_controller_status(self, name, namespace, body, **kwargs): """ - partially update the specified Service + partially update status of the specified ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_service(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_replication_controller_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Service (required) + :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Service + :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_service_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_service_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_replication_controller_status_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified Service + partially update status of the specified ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_service_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Service (required) + :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Service + :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ @@ -16612,24 +17827,24 @@ def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_service" % key + " to method patch_namespaced_replication_controller_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_status`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_status`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -16666,7 +17881,7 @@ def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Service', + response_type='V1ReplicationController', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16674,52 +17889,52 @@ def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_service_account(self, name, namespace, body, **kwargs): + def patch_namespaced_resource_quota(self, name, namespace, body, **kwargs): """ - partially update the specified ServiceAccount + partially update the specified ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_service_account(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_resource_quota(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ServiceAccount (required) + :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ServiceAccount + :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified ServiceAccount + partially update the specified ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_service_account_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_resource_quota_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ServiceAccount (required) + :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ServiceAccount + :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ @@ -16735,24 +17950,24 @@ def patch_namespaced_service_account_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_service_account" % key + " to method patch_namespaced_resource_quota" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service_account`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_account`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service_account`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -16789,7 +18004,7 @@ def patch_namespaced_service_account_with_http_info(self, name, namespace, body, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1ServiceAccount', + response_type='V1ResourceQuota', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16797,52 +18012,52 @@ def patch_namespaced_service_account_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_service_status(self, name, namespace, body, **kwargs): + def patch_namespaced_resource_quota_status(self, name, namespace, body, **kwargs): """ - partially update status of the specified Service + partially update status of the specified ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_service_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_resource_quota_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Service (required) + :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Service + :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_service_status_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified Service + partially update status of the specified ResourceQuota This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_service_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Service (required) + :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Service + :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ @@ -16858,24 +18073,24 @@ def patch_namespaced_service_status_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_service_status" % key + " to method patch_namespaced_resource_quota_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota_status`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota_status`") collection_formats = {} - resource_path = '/api/v1/namespaces/{namespace}/services/{name}/status'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -16912,7 +18127,7 @@ def patch_namespaced_service_status_with_http_info(self, name, namespace, body, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Service', + response_type='V1ResourceQuota', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16920,55 +18135,57 @@ def patch_namespaced_service_status_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_node(self, name, body, **kwargs): + def patch_namespaced_scale_scale(self, name, namespace, body, **kwargs): """ - partially update the specified Node + partially update scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_node(name, body, callback=callback_function) + >>> thread = api.patch_namespaced_scale_scale(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Node (required) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Node + :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_node_with_http_info(name, body, **kwargs) + return self.patch_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_node_with_http_info(name, body, **kwargs) + (data) = self.patch_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) return data - def patch_node_with_http_info(self, name, body, **kwargs): + def patch_namespaced_scale_scale_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified Node + partially update scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_node_with_http_info(name, body, callback=callback_function) + >>> thread = api.patch_namespaced_scale_scale_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Node (required) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Node + :return: V1Scale If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -16979,24 +18196,29 @@ def patch_node_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_node" % key + " to method patch_namespaced_scale_scale" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_node`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scale_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scale_scale`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_node`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scale_scale`") collection_formats = {} - resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -17028,7 +18250,7 @@ def patch_node_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Node', + response_type='V1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17036,55 +18258,57 @@ def patch_node_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_node_status(self, name, body, **kwargs): + def patch_namespaced_secret(self, name, namespace, body, **kwargs): """ - partially update status of the specified Node + partially update the specified Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_node_status(name, body, callback=callback_function) + >>> thread = api.patch_namespaced_secret(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Node (required) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Node + :return: V1Secret If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_node_status_with_http_info(name, body, **kwargs) + return self.patch_namespaced_secret_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_node_status_with_http_info(name, body, **kwargs) + (data) = self.patch_namespaced_secret_with_http_info(name, namespace, body, **kwargs) return data - def patch_node_status_with_http_info(self, name, body, **kwargs): + def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified Node + partially update the specified Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_node_status_with_http_info(name, body, callback=callback_function) + >>> thread = api.patch_namespaced_secret_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Node (required) + :param str name: name of the Secret (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Node + :return: V1Secret If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -17095,24 +18319,29 @@ def patch_node_status_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_node_status" % key + " to method patch_namespaced_secret" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_node_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_secret`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_secret`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_node_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_secret`") collection_formats = {} - resource_path = '/api/v1/nodes/{name}/status'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -17144,7 +18373,7 @@ def patch_node_status_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Node', + response_type='V1Secret', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17152,55 +18381,57 @@ def patch_node_status_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_persistent_volume(self, name, body, **kwargs): + def patch_namespaced_service(self, name, namespace, body, **kwargs): """ - partially update the specified PersistentVolume + partially update the specified Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_persistent_volume(name, body, callback=callback_function) + >>> thread = api.patch_namespaced_service(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PersistentVolume (required) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolume + :return: V1Service If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_persistent_volume_with_http_info(name, body, **kwargs) + return self.patch_namespaced_service_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_persistent_volume_with_http_info(name, body, **kwargs) + (data) = self.patch_namespaced_service_with_http_info(name, namespace, body, **kwargs) return data - def patch_persistent_volume_with_http_info(self, name, body, **kwargs): + def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified PersistentVolume + partially update the specified Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_persistent_volume_with_http_info(name, body, callback=callback_function) + >>> thread = api.patch_namespaced_service_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PersistentVolume (required) + :param str name: name of the Service (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolume + :return: V1Service If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -17211,24 +18442,29 @@ def patch_persistent_volume_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_persistent_volume" % key + " to method patch_namespaced_service" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_persistent_volume`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_persistent_volume`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service`") collection_formats = {} - resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -17260,7 +18496,7 @@ def patch_persistent_volume_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PersistentVolume', + response_type='V1Service', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17268,55 +18504,57 @@ def patch_persistent_volume_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_persistent_volume_status(self, name, body, **kwargs): + def patch_namespaced_service_account(self, name, namespace, body, **kwargs): """ - partially update status of the specified PersistentVolume + partially update the specified ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_persistent_volume_status(name, body, callback=callback_function) + >>> thread = api.patch_namespaced_service_account(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PersistentVolume (required) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolume + :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_persistent_volume_status_with_http_info(name, body, **kwargs) + return self.patch_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_persistent_volume_status_with_http_info(name, body, **kwargs) + (data) = self.patch_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) return data - def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): + def patch_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified PersistentVolume + partially update the specified ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_persistent_volume_status_with_http_info(name, body, callback=callback_function) + >>> thread = api.patch_namespaced_service_account_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PersistentVolume (required) + :param str name: name of the ServiceAccount (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolume + :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -17327,24 +18565,29 @@ def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_persistent_volume_status" % key + " to method patch_namespaced_service_account" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_persistent_volume_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service_account`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_account`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_persistent_volume_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service_account`") collection_formats = {} - resource_path = '/api/v1/persistentvolumes/{name}/status'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -17376,7 +18619,7 @@ def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1PersistentVolume', + response_type='V1ServiceAccount', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17384,53 +18627,57 @@ def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_delete_namespaced_pod(self, name, namespace, **kwargs): + def patch_namespaced_service_status(self, name, namespace, body, **kwargs): """ - proxy DELETE requests to Pod + partially update status of the specified Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_delete_namespaced_pod(name, namespace, callback=callback_function) + >>> thread = api.patch_namespaced_service_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Pod (required) + :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :return: str + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_delete_namespaced_pod_with_http_info(name, namespace, **kwargs) + return self.patch_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.proxy_delete_namespaced_pod_with_http_info(name, namespace, **kwargs) + (data) = self.patch_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) return data - def proxy_delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + def patch_namespaced_service_status_with_http_info(self, name, namespace, body, **kwargs): """ - proxy DELETE requests to Pod + partially update status of the specified Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_delete_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.patch_namespaced_service_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Pod (required) + :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :return: str + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -17441,21 +18688,24 @@ def proxy_delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_delete_namespaced_pod" % key + " to method patch_namespaced_service_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_pod`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_pod`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service_status`") collection_formats = {} - resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/namespaces/{namespace}/services/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -17463,6 +18713,8 @@ def proxy_delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = params['namespace'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] header_params = {} @@ -17470,25 +18722,27 @@ def proxy_delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1Service', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17496,55 +18750,55 @@ def proxy_delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_delete_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + def patch_node(self, name, body, **kwargs): """ - proxy DELETE requests to Pod + partially update the specified Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_delete_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.patch_node(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Pod (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str path: path to the resource (required) - :return: str + :param str name: name of the Node (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_delete_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return self.patch_node_with_http_info(name, body, **kwargs) else: - (data) = self.proxy_delete_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.patch_node_with_http_info(name, body, **kwargs) return data - def proxy_delete_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + def patch_node_with_http_info(self, name, body, **kwargs): """ - proxy DELETE requests to Pod + partially update the specified Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_delete_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.patch_node_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Pod (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str path: path to the resource (required) - :return: str + :param str name: name of the Node (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -17555,33 +18809,28 @@ def proxy_delete_namespaced_pod_with_path_with_http_info(self, name, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_delete_namespaced_pod_with_path" % key + " to method patch_node" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_pod_with_path`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_pod_with_path`") - # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_delete_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `name` when calling `patch_node`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_node`") collection_formats = {} - resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') + resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] header_params = {} @@ -17589,25 +18838,27 @@ def proxy_delete_namespaced_pod_with_path_with_http_info(self, name, namespace, local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1Node', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17615,53 +18866,55 @@ def proxy_delete_namespaced_pod_with_path_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_delete_namespaced_service(self, name, namespace, **kwargs): + def patch_node_status(self, name, body, **kwargs): """ - proxy DELETE requests to Service + partially update status of the specified Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_delete_namespaced_service(name, namespace, callback=callback_function) + >>> thread = api.patch_node_status(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Service (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :return: str + :param str name: name of the Node (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_delete_namespaced_service_with_http_info(name, namespace, **kwargs) + return self.patch_node_status_with_http_info(name, body, **kwargs) else: - (data) = self.proxy_delete_namespaced_service_with_http_info(name, namespace, **kwargs) + (data) = self.patch_node_status_with_http_info(name, body, **kwargs) return data - def proxy_delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): + def patch_node_status_with_http_info(self, name, body, **kwargs): """ - proxy DELETE requests to Service + partially update status of the specified Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_delete_namespaced_service_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.patch_node_status_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Service (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :return: str + :param str name: name of the Node (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -17672,28 +18925,28 @@ def proxy_delete_namespaced_service_with_http_info(self, name, namespace, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_delete_namespaced_service" % key + " to method patch_node_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_service`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_service`") + raise ValueError("Missing the required parameter `name` when calling `patch_node_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_node_status`") collection_formats = {} - resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/nodes/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] header_params = {} @@ -17701,25 +18954,27 @@ def proxy_delete_namespaced_service_with_http_info(self, name, namespace, **kwar local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1Node', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17727,55 +18982,55 @@ def proxy_delete_namespaced_service_with_http_info(self, name, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_delete_namespaced_service_with_path(self, name, namespace, path, **kwargs): + def patch_persistent_volume(self, name, body, **kwargs): """ - proxy DELETE requests to Service + partially update the specified PersistentVolume This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_delete_namespaced_service_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.patch_persistent_volume(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Service (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str path: path to the resource (required) - :return: str + :param str name: name of the PersistentVolume (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_delete_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return self.patch_persistent_volume_with_http_info(name, body, **kwargs) else: - (data) = self.proxy_delete_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.patch_persistent_volume_with_http_info(name, body, **kwargs) return data - def proxy_delete_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + def patch_persistent_volume_with_http_info(self, name, body, **kwargs): """ - proxy DELETE requests to Service + partially update the specified PersistentVolume This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_delete_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.patch_persistent_volume_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Service (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str path: path to the resource (required) - :return: str + :param str name: name of the PersistentVolume (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -17786,33 +19041,28 @@ def proxy_delete_namespaced_service_with_path_with_http_info(self, name, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_delete_namespaced_service_with_path" % key + " to method patch_persistent_volume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_service_with_path`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_service_with_path`") - # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_delete_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `name` when calling `patch_persistent_volume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_persistent_volume`") collection_formats = {} - resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') + resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] header_params = {} @@ -17820,25 +19070,27 @@ def proxy_delete_namespaced_service_with_path_with_http_info(self, name, namespa local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1PersistentVolume', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17846,51 +19098,55 @@ def proxy_delete_namespaced_service_with_path_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_delete_node(self, name, **kwargs): + def patch_persistent_volume_status(self, name, body, **kwargs): """ - proxy DELETE requests to Node + partially update status of the specified PersistentVolume This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_delete_node(name, callback=callback_function) + >>> thread = api.patch_persistent_volume_status(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Node (required) - :return: str + :param str name: name of the PersistentVolume (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_delete_node_with_http_info(name, **kwargs) + return self.patch_persistent_volume_status_with_http_info(name, body, **kwargs) else: - (data) = self.proxy_delete_node_with_http_info(name, **kwargs) + (data) = self.patch_persistent_volume_status_with_http_info(name, body, **kwargs) return data - def proxy_delete_node_with_http_info(self, name, **kwargs): + def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): """ - proxy DELETE requests to Node + partially update status of the specified PersistentVolume This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_delete_node_with_http_info(name, callback=callback_function) + >>> thread = api.patch_persistent_volume_status_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Node (required) - :return: str + :param str name: name of the PersistentVolume (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ - all_params = ['name'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -17901,23 +19157,28 @@ def proxy_delete_node_with_http_info(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_delete_node" % key + " to method patch_persistent_volume_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_delete_node`") + raise ValueError("Missing the required parameter `name` when calling `patch_persistent_volume_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_persistent_volume_status`") collection_formats = {} - resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') + resource_path = '/api/v1/persistentvolumes/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] header_params = {} @@ -17925,25 +19186,27 @@ def proxy_delete_node_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1PersistentVolume', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17951,53 +19214,55 @@ def proxy_delete_node_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_delete_node_with_path(self, name, path, **kwargs): + def patch_security_context_constraints(self, name, body, **kwargs): """ - proxy DELETE requests to Node + partially update the specified SecurityContextConstraints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_delete_node_with_path(name, path, callback=callback_function) + >>> thread = api.patch_security_context_constraints(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Node (required) - :param str path: path to the resource (required) - :return: str + :param str name: name of the SecurityContextConstraints (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SecurityContextConstraints If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_delete_node_with_path_with_http_info(name, path, **kwargs) + return self.patch_security_context_constraints_with_http_info(name, body, **kwargs) else: - (data) = self.proxy_delete_node_with_path_with_http_info(name, path, **kwargs) + (data) = self.patch_security_context_constraints_with_http_info(name, body, **kwargs) return data - def proxy_delete_node_with_path_with_http_info(self, name, path, **kwargs): + def patch_security_context_constraints_with_http_info(self, name, body, **kwargs): """ - proxy DELETE requests to Node + partially update the specified SecurityContextConstraints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_delete_node_with_path_with_http_info(name, path, callback=callback_function) + >>> thread = api.patch_security_context_constraints_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Node (required) - :param str path: path to the resource (required) - :return: str + :param str name: name of the SecurityContextConstraints (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SecurityContextConstraints If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'path'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -18008,28 +19273,28 @@ def proxy_delete_node_with_path_with_http_info(self, name, path, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_delete_node_with_path" % key + " to method patch_security_context_constraints" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_delete_node_with_path`") - # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_delete_node_with_path`") + raise ValueError("Missing the required parameter `name` when calling `patch_security_context_constraints`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_security_context_constraints`") collection_formats = {} - resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') + resource_path = '/api/v1/securitycontextconstraints/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'path' in params: - path_params['path'] = params['path'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] header_params = {} @@ -18037,25 +19302,27 @@ def proxy_delete_node_with_path_with_http_info(self, name, path, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1SecurityContextConstraints', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -18063,16 +19330,16 @@ def proxy_delete_node_with_path_with_http_info(self, name, path, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_get_namespaced_pod(self, name, namespace, **kwargs): + def proxy_delete_namespaced_pod(self, name, namespace, **kwargs): """ - proxy GET requests to Pod + proxy DELETE requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_get_namespaced_pod(name, namespace, callback=callback_function) + >>> thread = api.proxy_delete_namespaced_pod(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18084,21 +19351,21 @@ def proxy_get_namespaced_pod(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_get_namespaced_pod_with_http_info(name, namespace, **kwargs) + return self.proxy_delete_namespaced_pod_with_http_info(name, namespace, **kwargs) else: - (data) = self.proxy_get_namespaced_pod_with_http_info(name, namespace, **kwargs) + (data) = self.proxy_delete_namespaced_pod_with_http_info(name, namespace, **kwargs) return data - def proxy_get_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + def proxy_delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): """ - proxy GET requests to Pod + proxy DELETE requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_get_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.proxy_delete_namespaced_pod_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18120,16 +19387,16 @@ def proxy_get_namespaced_pod_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_get_namespaced_pod" % key + " to method proxy_delete_namespaced_pod" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_pod`") + raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_pod`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_pod`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_pod`") collection_formats = {} @@ -18160,7 +19427,7 @@ def proxy_get_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, @@ -18175,16 +19442,16 @@ def proxy_get_namespaced_pod_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_get_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + def proxy_delete_namespaced_pod_with_path(self, name, namespace, path, **kwargs): """ - proxy GET requests to Pod + proxy DELETE requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_get_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_delete_namespaced_pod_with_path(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18197,21 +19464,21 @@ def proxy_get_namespaced_pod_with_path(self, name, namespace, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_get_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return self.proxy_delete_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) else: - (data) = self.proxy_get_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.proxy_delete_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) return data - def proxy_get_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + def proxy_delete_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): """ - proxy GET requests to Pod + proxy DELETE requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_get_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_delete_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18234,19 +19501,19 @@ def proxy_get_namespaced_pod_with_path_with_http_info(self, name, namespace, pat if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_get_namespaced_pod_with_path" % key + " to method proxy_delete_namespaced_pod_with_path" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_pod_with_path`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_pod_with_path`") # verify the required parameter 'path' is set if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_get_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_delete_namespaced_pod_with_path`") collection_formats = {} @@ -18279,7 +19546,7 @@ def proxy_get_namespaced_pod_with_path_with_http_info(self, name, namespace, pat # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, @@ -18294,16 +19561,16 @@ def proxy_get_namespaced_pod_with_path_with_http_info(self, name, namespace, pat _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_get_namespaced_service(self, name, namespace, **kwargs): + def proxy_delete_namespaced_service(self, name, namespace, **kwargs): """ - proxy GET requests to Service + proxy DELETE requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_get_namespaced_service(name, namespace, callback=callback_function) + >>> thread = api.proxy_delete_namespaced_service(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18315,21 +19582,21 @@ def proxy_get_namespaced_service(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_get_namespaced_service_with_http_info(name, namespace, **kwargs) + return self.proxy_delete_namespaced_service_with_http_info(name, namespace, **kwargs) else: - (data) = self.proxy_get_namespaced_service_with_http_info(name, namespace, **kwargs) + (data) = self.proxy_delete_namespaced_service_with_http_info(name, namespace, **kwargs) return data - def proxy_get_namespaced_service_with_http_info(self, name, namespace, **kwargs): + def proxy_delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): """ - proxy GET requests to Service + proxy DELETE requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_get_namespaced_service_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.proxy_delete_namespaced_service_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18351,16 +19618,16 @@ def proxy_get_namespaced_service_with_http_info(self, name, namespace, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_get_namespaced_service" % key + " to method proxy_delete_namespaced_service" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_service`") + raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_service`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_service`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_service`") collection_formats = {} @@ -18391,7 +19658,7 @@ def proxy_get_namespaced_service_with_http_info(self, name, namespace, **kwargs) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, @@ -18406,16 +19673,16 @@ def proxy_get_namespaced_service_with_http_info(self, name, namespace, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_get_namespaced_service_with_path(self, name, namespace, path, **kwargs): + def proxy_delete_namespaced_service_with_path(self, name, namespace, path, **kwargs): """ - proxy GET requests to Service + proxy DELETE requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_get_namespaced_service_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_delete_namespaced_service_with_path(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18428,21 +19695,21 @@ def proxy_get_namespaced_service_with_path(self, name, namespace, path, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_get_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return self.proxy_delete_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) else: - (data) = self.proxy_get_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.proxy_delete_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) return data - def proxy_get_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + def proxy_delete_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): """ - proxy GET requests to Service + proxy DELETE requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_get_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_delete_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18465,19 +19732,19 @@ def proxy_get_namespaced_service_with_path_with_http_info(self, name, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_get_namespaced_service_with_path" % key + " to method proxy_delete_namespaced_service_with_path" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_service_with_path`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_service_with_path`") # verify the required parameter 'path' is set if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_get_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_delete_namespaced_service_with_path`") collection_formats = {} @@ -18510,7 +19777,7 @@ def proxy_get_namespaced_service_with_path_with_http_info(self, name, namespace, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, @@ -18525,16 +19792,16 @@ def proxy_get_namespaced_service_with_path_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_get_node(self, name, **kwargs): + def proxy_delete_node(self, name, **kwargs): """ - proxy GET requests to Node + proxy DELETE requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_get_node(name, callback=callback_function) + >>> thread = api.proxy_delete_node(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18545,21 +19812,21 @@ def proxy_get_node(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_get_node_with_http_info(name, **kwargs) + return self.proxy_delete_node_with_http_info(name, **kwargs) else: - (data) = self.proxy_get_node_with_http_info(name, **kwargs) + (data) = self.proxy_delete_node_with_http_info(name, **kwargs) return data - def proxy_get_node_with_http_info(self, name, **kwargs): + def proxy_delete_node_with_http_info(self, name, **kwargs): """ - proxy GET requests to Node + proxy DELETE requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_get_node_with_http_info(name, callback=callback_function) + >>> thread = api.proxy_delete_node_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18580,13 +19847,13 @@ def proxy_get_node_with_http_info(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_get_node" % key + " to method proxy_delete_node" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_get_node`") + raise ValueError("Missing the required parameter `name` when calling `proxy_delete_node`") collection_formats = {} @@ -18615,7 +19882,7 @@ def proxy_get_node_with_http_info(self, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, @@ -18630,16 +19897,16 @@ def proxy_get_node_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_get_node_with_path(self, name, path, **kwargs): + def proxy_delete_node_with_path(self, name, path, **kwargs): """ - proxy GET requests to Node + proxy DELETE requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_get_node_with_path(name, path, callback=callback_function) + >>> thread = api.proxy_delete_node_with_path(name, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18651,21 +19918,21 @@ def proxy_get_node_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_get_node_with_path_with_http_info(name, path, **kwargs) + return self.proxy_delete_node_with_path_with_http_info(name, path, **kwargs) else: - (data) = self.proxy_get_node_with_path_with_http_info(name, path, **kwargs) + (data) = self.proxy_delete_node_with_path_with_http_info(name, path, **kwargs) return data - def proxy_get_node_with_path_with_http_info(self, name, path, **kwargs): + def proxy_delete_node_with_path_with_http_info(self, name, path, **kwargs): """ - proxy GET requests to Node + proxy DELETE requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_get_node_with_path_with_http_info(name, path, callback=callback_function) + >>> thread = api.proxy_delete_node_with_path_with_http_info(name, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18687,16 +19954,16 @@ def proxy_get_node_with_path_with_http_info(self, name, path, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_get_node_with_path" % key + " to method proxy_delete_node_with_path" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_get_node_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_delete_node_with_path`") # verify the required parameter 'path' is set if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_get_node_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_delete_node_with_path`") collection_formats = {} @@ -18727,7 +19994,7 @@ def proxy_get_node_with_path_with_http_info(self, name, path, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, @@ -18742,16 +20009,16 @@ def proxy_get_node_with_path_with_http_info(self, name, path, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_head_namespaced_pod(self, name, namespace, **kwargs): + def proxy_get_namespaced_pod(self, name, namespace, **kwargs): """ - proxy HEAD requests to Pod + proxy GET requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_head_namespaced_pod(name, namespace, callback=callback_function) + >>> thread = api.proxy_get_namespaced_pod(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18763,21 +20030,21 @@ def proxy_head_namespaced_pod(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_head_namespaced_pod_with_http_info(name, namespace, **kwargs) + return self.proxy_get_namespaced_pod_with_http_info(name, namespace, **kwargs) else: - (data) = self.proxy_head_namespaced_pod_with_http_info(name, namespace, **kwargs) + (data) = self.proxy_get_namespaced_pod_with_http_info(name, namespace, **kwargs) return data - def proxy_head_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + def proxy_get_namespaced_pod_with_http_info(self, name, namespace, **kwargs): """ - proxy HEAD requests to Pod + proxy GET requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_head_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.proxy_get_namespaced_pod_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18799,16 +20066,16 @@ def proxy_head_namespaced_pod_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_head_namespaced_pod" % key + " to method proxy_get_namespaced_pod" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_head_namespaced_pod`") + raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_pod`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_head_namespaced_pod`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_pod`") collection_formats = {} @@ -18839,7 +20106,7 @@ def proxy_head_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'HEAD', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, @@ -18854,16 +20121,16 @@ def proxy_head_namespaced_pod_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_head_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + def proxy_get_namespaced_pod_with_path(self, name, namespace, path, **kwargs): """ - proxy HEAD requests to Pod + proxy GET requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_head_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_get_namespaced_pod_with_path(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18876,21 +20143,21 @@ def proxy_head_namespaced_pod_with_path(self, name, namespace, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_head_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return self.proxy_get_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) else: - (data) = self.proxy_head_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.proxy_get_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) return data - def proxy_head_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + def proxy_get_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): """ - proxy HEAD requests to Pod + proxy GET requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_head_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_get_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18913,19 +20180,19 @@ def proxy_head_namespaced_pod_with_path_with_http_info(self, name, namespace, pa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_head_namespaced_pod_with_path" % key + " to method proxy_get_namespaced_pod_with_path" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_head_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_pod_with_path`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_head_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_pod_with_path`") # verify the required parameter 'path' is set if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_head_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_get_namespaced_pod_with_path`") collection_formats = {} @@ -18958,7 +20225,7 @@ def proxy_head_namespaced_pod_with_path_with_http_info(self, name, namespace, pa # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'HEAD', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, @@ -18973,16 +20240,16 @@ def proxy_head_namespaced_pod_with_path_with_http_info(self, name, namespace, pa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_head_namespaced_service(self, name, namespace, **kwargs): + def proxy_get_namespaced_service(self, name, namespace, **kwargs): """ - proxy HEAD requests to Service + proxy GET requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_head_namespaced_service(name, namespace, callback=callback_function) + >>> thread = api.proxy_get_namespaced_service(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -18994,21 +20261,21 @@ def proxy_head_namespaced_service(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_head_namespaced_service_with_http_info(name, namespace, **kwargs) + return self.proxy_get_namespaced_service_with_http_info(name, namespace, **kwargs) else: - (data) = self.proxy_head_namespaced_service_with_http_info(name, namespace, **kwargs) + (data) = self.proxy_get_namespaced_service_with_http_info(name, namespace, **kwargs) return data - def proxy_head_namespaced_service_with_http_info(self, name, namespace, **kwargs): + def proxy_get_namespaced_service_with_http_info(self, name, namespace, **kwargs): """ - proxy HEAD requests to Service + proxy GET requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_head_namespaced_service_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.proxy_get_namespaced_service_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19030,16 +20297,16 @@ def proxy_head_namespaced_service_with_http_info(self, name, namespace, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_head_namespaced_service" % key + " to method proxy_get_namespaced_service" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_head_namespaced_service`") + raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_service`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_head_namespaced_service`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_service`") collection_formats = {} @@ -19070,7 +20337,7 @@ def proxy_head_namespaced_service_with_http_info(self, name, namespace, **kwargs # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'HEAD', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, @@ -19085,16 +20352,16 @@ def proxy_head_namespaced_service_with_http_info(self, name, namespace, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_head_namespaced_service_with_path(self, name, namespace, path, **kwargs): + def proxy_get_namespaced_service_with_path(self, name, namespace, path, **kwargs): """ - proxy HEAD requests to Service + proxy GET requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_head_namespaced_service_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_get_namespaced_service_with_path(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19107,21 +20374,21 @@ def proxy_head_namespaced_service_with_path(self, name, namespace, path, **kwarg """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_head_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return self.proxy_get_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) else: - (data) = self.proxy_head_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.proxy_get_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) return data - def proxy_head_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + def proxy_get_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): """ - proxy HEAD requests to Service + proxy GET requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_head_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_get_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19144,19 +20411,19 @@ def proxy_head_namespaced_service_with_path_with_http_info(self, name, namespace if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_head_namespaced_service_with_path" % key + " to method proxy_get_namespaced_service_with_path" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_head_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_service_with_path`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_head_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_service_with_path`") # verify the required parameter 'path' is set if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_head_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_get_namespaced_service_with_path`") collection_formats = {} @@ -19189,7 +20456,7 @@ def proxy_head_namespaced_service_with_path_with_http_info(self, name, namespace # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'HEAD', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, @@ -19204,16 +20471,16 @@ def proxy_head_namespaced_service_with_path_with_http_info(self, name, namespace _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_head_node(self, name, **kwargs): + def proxy_get_node(self, name, **kwargs): """ - proxy HEAD requests to Node + proxy GET requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_head_node(name, callback=callback_function) + >>> thread = api.proxy_get_node(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19224,21 +20491,21 @@ def proxy_head_node(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_head_node_with_http_info(name, **kwargs) + return self.proxy_get_node_with_http_info(name, **kwargs) else: - (data) = self.proxy_head_node_with_http_info(name, **kwargs) + (data) = self.proxy_get_node_with_http_info(name, **kwargs) return data - def proxy_head_node_with_http_info(self, name, **kwargs): + def proxy_get_node_with_http_info(self, name, **kwargs): """ - proxy HEAD requests to Node + proxy GET requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_head_node_with_http_info(name, callback=callback_function) + >>> thread = api.proxy_get_node_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19259,13 +20526,13 @@ def proxy_head_node_with_http_info(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_head_node" % key + " to method proxy_get_node" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_head_node`") + raise ValueError("Missing the required parameter `name` when calling `proxy_get_node`") collection_formats = {} @@ -19294,7 +20561,7 @@ def proxy_head_node_with_http_info(self, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'HEAD', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, @@ -19309,16 +20576,16 @@ def proxy_head_node_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_head_node_with_path(self, name, path, **kwargs): + def proxy_get_node_with_path(self, name, path, **kwargs): """ - proxy HEAD requests to Node + proxy GET requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_head_node_with_path(name, path, callback=callback_function) + >>> thread = api.proxy_get_node_with_path(name, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19330,21 +20597,21 @@ def proxy_head_node_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_head_node_with_path_with_http_info(name, path, **kwargs) + return self.proxy_get_node_with_path_with_http_info(name, path, **kwargs) else: - (data) = self.proxy_head_node_with_path_with_http_info(name, path, **kwargs) + (data) = self.proxy_get_node_with_path_with_http_info(name, path, **kwargs) return data - def proxy_head_node_with_path_with_http_info(self, name, path, **kwargs): + def proxy_get_node_with_path_with_http_info(self, name, path, **kwargs): """ - proxy HEAD requests to Node + proxy GET requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_head_node_with_path_with_http_info(name, path, callback=callback_function) + >>> thread = api.proxy_get_node_with_path_with_http_info(name, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19366,16 +20633,16 @@ def proxy_head_node_with_path_with_http_info(self, name, path, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_head_node_with_path" % key + " to method proxy_get_node_with_path" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_head_node_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_get_node_with_path`") # verify the required parameter 'path' is set if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_head_node_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_get_node_with_path`") collection_formats = {} @@ -19406,7 +20673,7 @@ def proxy_head_node_with_path_with_http_info(self, name, path, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'HEAD', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, @@ -19421,16 +20688,16 @@ def proxy_head_node_with_path_with_http_info(self, name, path, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_options_namespaced_pod(self, name, namespace, **kwargs): + def proxy_head_namespaced_pod(self, name, namespace, **kwargs): """ - proxy OPTIONS requests to Pod + proxy HEAD requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_options_namespaced_pod(name, namespace, callback=callback_function) + >>> thread = api.proxy_head_namespaced_pod(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19442,21 +20709,21 @@ def proxy_options_namespaced_pod(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_options_namespaced_pod_with_http_info(name, namespace, **kwargs) + return self.proxy_head_namespaced_pod_with_http_info(name, namespace, **kwargs) else: - (data) = self.proxy_options_namespaced_pod_with_http_info(name, namespace, **kwargs) + (data) = self.proxy_head_namespaced_pod_with_http_info(name, namespace, **kwargs) return data - def proxy_options_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + def proxy_head_namespaced_pod_with_http_info(self, name, namespace, **kwargs): """ - proxy OPTIONS requests to Pod + proxy HEAD requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_options_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.proxy_head_namespaced_pod_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19478,16 +20745,16 @@ def proxy_options_namespaced_pod_with_http_info(self, name, namespace, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_options_namespaced_pod" % key + " to method proxy_head_namespaced_pod" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_pod`") + raise ValueError("Missing the required parameter `name` when calling `proxy_head_namespaced_pod`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_pod`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_head_namespaced_pod`") collection_formats = {} @@ -19518,7 +20785,7 @@ def proxy_options_namespaced_pod_with_http_info(self, name, namespace, **kwargs) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'OPTIONS', + return self.api_client.call_api(resource_path, 'HEAD', path_params, query_params, header_params, @@ -19533,16 +20800,16 @@ def proxy_options_namespaced_pod_with_http_info(self, name, namespace, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_options_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + def proxy_head_namespaced_pod_with_path(self, name, namespace, path, **kwargs): """ - proxy OPTIONS requests to Pod + proxy HEAD requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_options_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_head_namespaced_pod_with_path(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19555,21 +20822,21 @@ def proxy_options_namespaced_pod_with_path(self, name, namespace, path, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_options_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return self.proxy_head_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) else: - (data) = self.proxy_options_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.proxy_head_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) return data - def proxy_options_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + def proxy_head_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): """ - proxy OPTIONS requests to Pod + proxy HEAD requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_options_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_head_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19592,19 +20859,19 @@ def proxy_options_namespaced_pod_with_path_with_http_info(self, name, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_options_namespaced_pod_with_path" % key + " to method proxy_head_namespaced_pod_with_path" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_head_namespaced_pod_with_path`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_head_namespaced_pod_with_path`") # verify the required parameter 'path' is set if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_options_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_head_namespaced_pod_with_path`") collection_formats = {} @@ -19637,7 +20904,7 @@ def proxy_options_namespaced_pod_with_path_with_http_info(self, name, namespace, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'OPTIONS', + return self.api_client.call_api(resource_path, 'HEAD', path_params, query_params, header_params, @@ -19652,16 +20919,16 @@ def proxy_options_namespaced_pod_with_path_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_options_namespaced_service(self, name, namespace, **kwargs): + def proxy_head_namespaced_service(self, name, namespace, **kwargs): """ - proxy OPTIONS requests to Service + proxy HEAD requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_options_namespaced_service(name, namespace, callback=callback_function) + >>> thread = api.proxy_head_namespaced_service(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19673,21 +20940,21 @@ def proxy_options_namespaced_service(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_options_namespaced_service_with_http_info(name, namespace, **kwargs) + return self.proxy_head_namespaced_service_with_http_info(name, namespace, **kwargs) else: - (data) = self.proxy_options_namespaced_service_with_http_info(name, namespace, **kwargs) + (data) = self.proxy_head_namespaced_service_with_http_info(name, namespace, **kwargs) return data - def proxy_options_namespaced_service_with_http_info(self, name, namespace, **kwargs): + def proxy_head_namespaced_service_with_http_info(self, name, namespace, **kwargs): """ - proxy OPTIONS requests to Service + proxy HEAD requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_options_namespaced_service_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.proxy_head_namespaced_service_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19709,16 +20976,16 @@ def proxy_options_namespaced_service_with_http_info(self, name, namespace, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_options_namespaced_service" % key + " to method proxy_head_namespaced_service" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_service`") + raise ValueError("Missing the required parameter `name` when calling `proxy_head_namespaced_service`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_service`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_head_namespaced_service`") collection_formats = {} @@ -19749,7 +21016,7 @@ def proxy_options_namespaced_service_with_http_info(self, name, namespace, **kwa # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'OPTIONS', + return self.api_client.call_api(resource_path, 'HEAD', path_params, query_params, header_params, @@ -19764,16 +21031,16 @@ def proxy_options_namespaced_service_with_http_info(self, name, namespace, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_options_namespaced_service_with_path(self, name, namespace, path, **kwargs): + def proxy_head_namespaced_service_with_path(self, name, namespace, path, **kwargs): """ - proxy OPTIONS requests to Service + proxy HEAD requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_options_namespaced_service_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_head_namespaced_service_with_path(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19786,21 +21053,21 @@ def proxy_options_namespaced_service_with_path(self, name, namespace, path, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_options_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return self.proxy_head_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) else: - (data) = self.proxy_options_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.proxy_head_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) return data - def proxy_options_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + def proxy_head_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): """ - proxy OPTIONS requests to Service + proxy HEAD requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_options_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_head_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19823,19 +21090,19 @@ def proxy_options_namespaced_service_with_path_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_options_namespaced_service_with_path" % key + " to method proxy_head_namespaced_service_with_path" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_head_namespaced_service_with_path`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_head_namespaced_service_with_path`") # verify the required parameter 'path' is set if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_options_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_head_namespaced_service_with_path`") collection_formats = {} @@ -19868,7 +21135,7 @@ def proxy_options_namespaced_service_with_path_with_http_info(self, name, namesp # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'OPTIONS', + return self.api_client.call_api(resource_path, 'HEAD', path_params, query_params, header_params, @@ -19883,16 +21150,16 @@ def proxy_options_namespaced_service_with_path_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_options_node(self, name, **kwargs): + def proxy_head_node(self, name, **kwargs): """ - proxy OPTIONS requests to Node + proxy HEAD requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_options_node(name, callback=callback_function) + >>> thread = api.proxy_head_node(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19903,21 +21170,21 @@ def proxy_options_node(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_options_node_with_http_info(name, **kwargs) + return self.proxy_head_node_with_http_info(name, **kwargs) else: - (data) = self.proxy_options_node_with_http_info(name, **kwargs) + (data) = self.proxy_head_node_with_http_info(name, **kwargs) return data - def proxy_options_node_with_http_info(self, name, **kwargs): + def proxy_head_node_with_http_info(self, name, **kwargs): """ - proxy OPTIONS requests to Node + proxy HEAD requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_options_node_with_http_info(name, callback=callback_function) + >>> thread = api.proxy_head_node_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -19938,13 +21205,13 @@ def proxy_options_node_with_http_info(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_options_node" % key + " to method proxy_head_node" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_options_node`") + raise ValueError("Missing the required parameter `name` when calling `proxy_head_node`") collection_formats = {} @@ -19973,7 +21240,7 @@ def proxy_options_node_with_http_info(self, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'OPTIONS', + return self.api_client.call_api(resource_path, 'HEAD', path_params, query_params, header_params, @@ -19988,16 +21255,16 @@ def proxy_options_node_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_options_node_with_path(self, name, path, **kwargs): + def proxy_head_node_with_path(self, name, path, **kwargs): """ - proxy OPTIONS requests to Node + proxy HEAD requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_options_node_with_path(name, path, callback=callback_function) + >>> thread = api.proxy_head_node_with_path(name, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20009,21 +21276,21 @@ def proxy_options_node_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_options_node_with_path_with_http_info(name, path, **kwargs) + return self.proxy_head_node_with_path_with_http_info(name, path, **kwargs) else: - (data) = self.proxy_options_node_with_path_with_http_info(name, path, **kwargs) + (data) = self.proxy_head_node_with_path_with_http_info(name, path, **kwargs) return data - def proxy_options_node_with_path_with_http_info(self, name, path, **kwargs): + def proxy_head_node_with_path_with_http_info(self, name, path, **kwargs): """ - proxy OPTIONS requests to Node + proxy HEAD requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_options_node_with_path_with_http_info(name, path, callback=callback_function) + >>> thread = api.proxy_head_node_with_path_with_http_info(name, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20045,16 +21312,16 @@ def proxy_options_node_with_path_with_http_info(self, name, path, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_options_node_with_path" % key + " to method proxy_head_node_with_path" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_options_node_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_head_node_with_path`") # verify the required parameter 'path' is set if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_options_node_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_head_node_with_path`") collection_formats = {} @@ -20085,7 +21352,7 @@ def proxy_options_node_with_path_with_http_info(self, name, path, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'OPTIONS', + return self.api_client.call_api(resource_path, 'HEAD', path_params, query_params, header_params, @@ -20100,16 +21367,16 @@ def proxy_options_node_with_path_with_http_info(self, name, path, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_patch_namespaced_pod(self, name, namespace, **kwargs): + def proxy_options_namespaced_pod(self, name, namespace, **kwargs): """ - proxy PATCH requests to Pod + proxy OPTIONS requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_patch_namespaced_pod(name, namespace, callback=callback_function) + >>> thread = api.proxy_options_namespaced_pod(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20121,21 +21388,21 @@ def proxy_patch_namespaced_pod(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_patch_namespaced_pod_with_http_info(name, namespace, **kwargs) + return self.proxy_options_namespaced_pod_with_http_info(name, namespace, **kwargs) else: - (data) = self.proxy_patch_namespaced_pod_with_http_info(name, namespace, **kwargs) + (data) = self.proxy_options_namespaced_pod_with_http_info(name, namespace, **kwargs) return data - def proxy_patch_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + def proxy_options_namespaced_pod_with_http_info(self, name, namespace, **kwargs): """ - proxy PATCH requests to Pod + proxy OPTIONS requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_patch_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.proxy_options_namespaced_pod_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20157,16 +21424,16 @@ def proxy_patch_namespaced_pod_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_patch_namespaced_pod" % key + " to method proxy_options_namespaced_pod" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_patch_namespaced_pod`") + raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_pod`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_patch_namespaced_pod`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_pod`") collection_formats = {} @@ -20197,7 +21464,7 @@ def proxy_patch_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'OPTIONS', path_params, query_params, header_params, @@ -20212,16 +21479,16 @@ def proxy_patch_namespaced_pod_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_patch_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + def proxy_options_namespaced_pod_with_path(self, name, namespace, path, **kwargs): """ - proxy PATCH requests to Pod + proxy OPTIONS requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_patch_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_options_namespaced_pod_with_path(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20234,21 +21501,21 @@ def proxy_patch_namespaced_pod_with_path(self, name, namespace, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_patch_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return self.proxy_options_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) else: - (data) = self.proxy_patch_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.proxy_options_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) return data - def proxy_patch_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + def proxy_options_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): """ - proxy PATCH requests to Pod + proxy OPTIONS requests to Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_patch_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_options_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20271,19 +21538,19 @@ def proxy_patch_namespaced_pod_with_path_with_http_info(self, name, namespace, p if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_patch_namespaced_pod_with_path" % key + " to method proxy_options_namespaced_pod_with_path" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_patch_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_pod_with_path`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_patch_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_pod_with_path`") # verify the required parameter 'path' is set if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_patch_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_options_namespaced_pod_with_path`") collection_formats = {} @@ -20316,7 +21583,7 @@ def proxy_patch_namespaced_pod_with_path_with_http_info(self, name, namespace, p # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'OPTIONS', path_params, query_params, header_params, @@ -20331,16 +21598,16 @@ def proxy_patch_namespaced_pod_with_path_with_http_info(self, name, namespace, p _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_patch_namespaced_service(self, name, namespace, **kwargs): + def proxy_options_namespaced_service(self, name, namespace, **kwargs): """ - proxy PATCH requests to Service + proxy OPTIONS requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_patch_namespaced_service(name, namespace, callback=callback_function) + >>> thread = api.proxy_options_namespaced_service(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20352,21 +21619,21 @@ def proxy_patch_namespaced_service(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_patch_namespaced_service_with_http_info(name, namespace, **kwargs) + return self.proxy_options_namespaced_service_with_http_info(name, namespace, **kwargs) else: - (data) = self.proxy_patch_namespaced_service_with_http_info(name, namespace, **kwargs) + (data) = self.proxy_options_namespaced_service_with_http_info(name, namespace, **kwargs) return data - def proxy_patch_namespaced_service_with_http_info(self, name, namespace, **kwargs): + def proxy_options_namespaced_service_with_http_info(self, name, namespace, **kwargs): """ - proxy PATCH requests to Service + proxy OPTIONS requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_patch_namespaced_service_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.proxy_options_namespaced_service_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20388,16 +21655,16 @@ def proxy_patch_namespaced_service_with_http_info(self, name, namespace, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_patch_namespaced_service" % key + " to method proxy_options_namespaced_service" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_patch_namespaced_service`") + raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_service`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_patch_namespaced_service`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_service`") collection_formats = {} @@ -20428,7 +21695,7 @@ def proxy_patch_namespaced_service_with_http_info(self, name, namespace, **kwarg # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'OPTIONS', path_params, query_params, header_params, @@ -20443,16 +21710,16 @@ def proxy_patch_namespaced_service_with_http_info(self, name, namespace, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_patch_namespaced_service_with_path(self, name, namespace, path, **kwargs): + def proxy_options_namespaced_service_with_path(self, name, namespace, path, **kwargs): """ - proxy PATCH requests to Service + proxy OPTIONS requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_patch_namespaced_service_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_options_namespaced_service_with_path(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20465,21 +21732,21 @@ def proxy_patch_namespaced_service_with_path(self, name, namespace, path, **kwar """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_patch_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return self.proxy_options_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) else: - (data) = self.proxy_patch_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.proxy_options_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) return data - def proxy_patch_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + def proxy_options_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): """ - proxy PATCH requests to Service + proxy OPTIONS requests to Service This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_patch_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_options_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20502,19 +21769,19 @@ def proxy_patch_namespaced_service_with_path_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_patch_namespaced_service_with_path" % key + " to method proxy_options_namespaced_service_with_path" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_patch_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_service_with_path`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `proxy_patch_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_service_with_path`") # verify the required parameter 'path' is set if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_patch_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_options_namespaced_service_with_path`") collection_formats = {} @@ -20547,7 +21814,7 @@ def proxy_patch_namespaced_service_with_path_with_http_info(self, name, namespac # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'OPTIONS', path_params, query_params, header_params, @@ -20562,16 +21829,16 @@ def proxy_patch_namespaced_service_with_path_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_patch_node(self, name, **kwargs): + def proxy_options_node(self, name, **kwargs): """ - proxy PATCH requests to Node + proxy OPTIONS requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_patch_node(name, callback=callback_function) + >>> thread = api.proxy_options_node(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20582,21 +21849,21 @@ def proxy_patch_node(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_patch_node_with_http_info(name, **kwargs) + return self.proxy_options_node_with_http_info(name, **kwargs) else: - (data) = self.proxy_patch_node_with_http_info(name, **kwargs) + (data) = self.proxy_options_node_with_http_info(name, **kwargs) return data - def proxy_patch_node_with_http_info(self, name, **kwargs): + def proxy_options_node_with_http_info(self, name, **kwargs): """ - proxy PATCH requests to Node + proxy OPTIONS requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_patch_node_with_http_info(name, callback=callback_function) + >>> thread = api.proxy_options_node_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20617,13 +21884,13 @@ def proxy_patch_node_with_http_info(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_patch_node" % key + " to method proxy_options_node" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_patch_node`") + raise ValueError("Missing the required parameter `name` when calling `proxy_options_node`") collection_formats = {} @@ -20652,7 +21919,7 @@ def proxy_patch_node_with_http_info(self, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'OPTIONS', path_params, query_params, header_params, @@ -20667,16 +21934,16 @@ def proxy_patch_node_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_patch_node_with_path(self, name, path, **kwargs): + def proxy_options_node_with_path(self, name, path, **kwargs): """ - proxy PATCH requests to Node + proxy OPTIONS requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_patch_node_with_path(name, path, callback=callback_function) + >>> thread = api.proxy_options_node_with_path(name, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20688,21 +21955,21 @@ def proxy_patch_node_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_patch_node_with_path_with_http_info(name, path, **kwargs) + return self.proxy_options_node_with_path_with_http_info(name, path, **kwargs) else: - (data) = self.proxy_patch_node_with_path_with_http_info(name, path, **kwargs) + (data) = self.proxy_options_node_with_path_with_http_info(name, path, **kwargs) return data - def proxy_patch_node_with_path_with_http_info(self, name, path, **kwargs): + def proxy_options_node_with_path_with_http_info(self, name, path, **kwargs): """ - proxy PATCH requests to Node + proxy OPTIONS requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.proxy_patch_node_with_path_with_http_info(name, path, callback=callback_function) + >>> thread = api.proxy_options_node_with_path_with_http_info(name, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20724,16 +21991,16 @@ def proxy_patch_node_with_path_with_http_info(self, name, path, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_patch_node_with_path" % key + " to method proxy_options_node_with_path" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `proxy_patch_node_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_options_node_with_path`") # verify the required parameter 'path' is set if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `proxy_patch_node_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_options_node_with_path`") collection_formats = {} @@ -20764,7 +22031,7 @@ def proxy_patch_node_with_path_with_http_info(self, name, path, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'OPTIONS', path_params, query_params, header_params, @@ -22261,7 +23528,7 @@ def read_namespace(self, name, **kwargs): for asynchronous request. (optional) :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Namespace If the method is called asynchronously, @@ -22289,7 +23556,7 @@ def read_namespace_with_http_info(self, name, **kwargs): for asynchronous request. (optional) :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Namespace If the method is called asynchronously, @@ -22488,7 +23755,7 @@ def read_namespaced_config_map(self, name, namespace, **kwargs): :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1ConfigMap If the method is called asynchronously, @@ -22517,7 +23784,7 @@ def read_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1ConfigMap If the method is called asynchronously, @@ -22612,7 +23879,7 @@ def read_namespaced_endpoints(self, name, namespace, **kwargs): :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Endpoints If the method is called asynchronously, @@ -22641,7 +23908,7 @@ def read_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Endpoints If the method is called asynchronously, @@ -22736,7 +24003,7 @@ def read_namespaced_event(self, name, namespace, **kwargs): :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Event If the method is called asynchronously, @@ -22765,7 +24032,7 @@ def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Event If the method is called asynchronously, @@ -22860,7 +24127,7 @@ def read_namespaced_limit_range(self, name, namespace, **kwargs): :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1LimitRange If the method is called asynchronously, @@ -22889,7 +24156,7 @@ def read_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1LimitRange If the method is called asynchronously, @@ -22984,7 +24251,7 @@ def read_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1PersistentVolumeClaim If the method is called asynchronously, @@ -23013,7 +24280,7 @@ def read_namespaced_persistent_volume_claim_with_http_info(self, name, namespace :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1PersistentVolumeClaim If the method is called asynchronously, @@ -23224,7 +24491,7 @@ def read_namespaced_pod(self, name, namespace, **kwargs): :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Pod If the method is called asynchronously, @@ -23253,7 +24520,7 @@ def read_namespaced_pod_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Pod If the method is called asynchronously, @@ -23353,6 +24620,7 @@ def read_namespaced_pod_log(self, name, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param bool previous: Return previous terminated container logs. Defaults to false. :param int since_seconds: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param str since_time: An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. :param int tail_lines: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime :param bool timestamps: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. :return: str @@ -23387,6 +24655,7 @@ def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param bool previous: Return previous terminated container logs. Defaults to false. :param int since_seconds: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param str since_time: An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. :param int tail_lines: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime :param bool timestamps: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. :return: str @@ -23394,7 +24663,7 @@ def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'container', 'follow', 'limit_bytes', 'pretty', 'previous', 'since_seconds', 'tail_lines', 'timestamps'] + all_params = ['name', 'namespace', 'container', 'follow', 'limit_bytes', 'pretty', 'previous', 'since_seconds', 'since_time', 'tail_lines', 'timestamps'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -23439,6 +24708,8 @@ def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): query_params['previous'] = params['previous'] if 'since_seconds' in params: query_params['sinceSeconds'] = params['since_seconds'] + if 'since_time' in params: + query_params['sinceTime'] = params['since_time'] if 'tail_lines' in params: query_params['tailLines'] = params['tail_lines'] if 'timestamps' in params: @@ -23608,7 +24879,7 @@ def read_namespaced_pod_template(self, name, namespace, **kwargs): :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1PodTemplate If the method is called asynchronously, @@ -23637,7 +24908,7 @@ def read_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs) :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1PodTemplate If the method is called asynchronously, @@ -23732,7 +25003,7 @@ def read_namespaced_replication_controller(self, name, namespace, **kwargs): :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1ReplicationController If the method is called asynchronously, @@ -23761,7 +25032,7 @@ def read_namespaced_replication_controller_with_http_info(self, name, namespace, :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1ReplicationController If the method is called asynchronously, @@ -23972,7 +25243,7 @@ def read_namespaced_resource_quota(self, name, namespace, **kwargs): :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1ResourceQuota If the method is called asynchronously, @@ -24001,7 +25272,7 @@ def read_namespaced_resource_quota_with_http_info(self, name, namespace, **kwarg :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1ResourceQuota If the method is called asynchronously, @@ -24328,7 +25599,7 @@ def read_namespaced_secret(self, name, namespace, **kwargs): :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Secret If the method is called asynchronously, @@ -24357,7 +25628,7 @@ def read_namespaced_secret_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Secret If the method is called asynchronously, @@ -24452,7 +25723,7 @@ def read_namespaced_service(self, name, namespace, **kwargs): :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Service If the method is called asynchronously, @@ -24481,7 +25752,7 @@ def read_namespaced_service_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Service If the method is called asynchronously, @@ -24576,7 +25847,7 @@ def read_namespaced_service_account(self, name, namespace, **kwargs): :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1ServiceAccount If the method is called asynchronously, @@ -24605,7 +25876,7 @@ def read_namespaced_service_account_with_http_info(self, name, namespace, **kwar :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1ServiceAccount If the method is called asynchronously, @@ -24815,7 +26086,7 @@ def read_node(self, name, **kwargs): for asynchronous request. (optional) :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Node If the method is called asynchronously, @@ -24843,7 +26114,7 @@ def read_node_with_http_info(self, name, **kwargs): for asynchronous request. (optional) :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1Node If the method is called asynchronously, @@ -25041,7 +26312,7 @@ def read_persistent_volume(self, name, **kwargs): for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1PersistentVolume If the method is called asynchronously, @@ -25069,7 +26340,7 @@ def read_persistent_volume_with_http_info(self, name, **kwargs): for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1PersistentVolume If the method is called asynchronously, @@ -25252,6 +26523,123 @@ def read_persistent_volume_status_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def read_security_context_constraints(self, name, **kwargs): + """ + read the specified SecurityContextConstraints + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_security_context_constraints(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the SecurityContextConstraints (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1SecurityContextConstraints + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_security_context_constraints_with_http_info(name, **kwargs) + else: + (data) = self.read_security_context_constraints_with_http_info(name, **kwargs) + return data + + def read_security_context_constraints_with_http_info(self, name, **kwargs): + """ + read the specified SecurityContextConstraints + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_security_context_constraints_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the SecurityContextConstraints (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1SecurityContextConstraints + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_security_context_constraints" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_security_context_constraints`") + + + collection_formats = {} + + resource_path = '/api/v1/securitycontextconstraints/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SecurityContextConstraints', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def replace_namespace(self, name, body, **kwargs): """ replace the specified Namespace @@ -25368,7 +26756,7 @@ def replace_namespace_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespace_finalize(self, name, body, **kwargs): + def replace_namespace_finalize(self, body, name, **kwargs): """ replace finalize of the specified Namespace This method makes a synchronous HTTP request by default. To make an @@ -25377,12 +26765,12 @@ def replace_namespace_finalize(self, name, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespace_finalize(name, body, callback=callback_function) + >>> thread = api.replace_namespace_finalize(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Namespace (required) :param V1Namespace body: (required) + :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace If the method is called asynchronously, @@ -25390,12 +26778,12 @@ def replace_namespace_finalize(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespace_finalize_with_http_info(name, body, **kwargs) + return self.replace_namespace_finalize_with_http_info(body, name, **kwargs) else: - (data) = self.replace_namespace_finalize_with_http_info(name, body, **kwargs) + (data) = self.replace_namespace_finalize_with_http_info(body, name, **kwargs) return data - def replace_namespace_finalize_with_http_info(self, name, body, **kwargs): + def replace_namespace_finalize_with_http_info(self, body, name, **kwargs): """ replace finalize of the specified Namespace This method makes a synchronous HTTP request by default. To make an @@ -25404,19 +26792,19 @@ def replace_namespace_finalize_with_http_info(self, name, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespace_finalize_with_http_info(name, body, callback=callback_function) + >>> thread = api.replace_namespace_finalize_with_http_info(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Namespace (required) :param V1Namespace body: (required) + :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty'] + all_params = ['body', 'name', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -25431,12 +26819,12 @@ def replace_namespace_finalize_with_http_info(self, name, body, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespace_finalize`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `replace_namespace_finalize`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespace_finalize`") collection_formats = {} @@ -28277,3 +29665,119 @@ def replace_persistent_volume_status_with_http_info(self, name, body, **kwargs): _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + + def replace_security_context_constraints(self, name, body, **kwargs): + """ + replace the specified SecurityContextConstraints + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_security_context_constraints(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the SecurityContextConstraints (required) + :param V1SecurityContextConstraints body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SecurityContextConstraints + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_security_context_constraints_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_security_context_constraints_with_http_info(name, body, **kwargs) + return data + + def replace_security_context_constraints_with_http_info(self, name, body, **kwargs): + """ + replace the specified SecurityContextConstraints + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_security_context_constraints_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the SecurityContextConstraints (required) + :param V1SecurityContextConstraints body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SecurityContextConstraints + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_security_context_constraints" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_security_context_constraints`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_security_context_constraints`") + + + collection_formats = {} + + resource_path = '/api/v1/securitycontextconstraints/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SecurityContextConstraints', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/default_api.py b/kubernetes/client/apis/default_api.py new file mode 100644 index 0000000000..52de6cc478 --- /dev/null +++ b/kubernetes/client/apis/default_api.py @@ -0,0 +1,382 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class DefaultApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_namespaced_processed_template(self, body, namespace, **kwargs): + """ + create a Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_processed_template(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Template body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_processed_template_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_processed_template_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_processed_template_with_http_info(self, body, namespace, **kwargs): + """ + create a Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_processed_template_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Template body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_processed_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_processed_template`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_processed_template`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/processedtemplates'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Template', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_processed_template_for_all_namespaces(self, body, **kwargs): + """ + create a Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_processed_template_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Template body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_processed_template_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_processed_template_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_processed_template_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_processed_template_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Template body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_processed_template_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_processed_template_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/processedtemplates'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Template', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def generate_namespaced_deployment_config(self, name, namespace, **kwargs): + """ + read the specified DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.generate_namespaced_deployment_config(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.generate_namespaced_deployment_config_with_http_info(name, namespace, **kwargs) + else: + (data) = self.generate_namespaced_deployment_config_with_http_info(name, namespace, **kwargs) + return data + + def generate_namespaced_deployment_config_with_http_info(self, name, namespace, **kwargs): + """ + read the specified DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.generate_namespaced_deployment_config_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method generate_namespaced_deployment_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `generate_namespaced_deployment_config`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `generate_namespaced_deployment_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/generatedeploymentconfigs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentConfig', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/extensions_api.py b/kubernetes/client/apis/extensions_api.py index 9519a6186b..11028e0953 100644 --- a/kubernetes/client/apis/extensions_api.py +++ b/kubernetes/client/apis/extensions_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='UnversionedAPIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/extensions_v1beta1_api.py b/kubernetes/client/apis/extensions_v1beta1_api.py index 194d2cec1a..8d3b6f3527 100644 --- a/kubernetes/client/apis/extensions_v1beta1_api.py +++ b/kubernetes/client/apis/extensions_v1beta1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -40,7 +40,7 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def create_namespaced_daemon_set(self, namespace, body, **kwargs): + def create_daemon_set_for_all_namespaces(self, body, **kwargs): """ create a DaemonSet This method makes a synchronous HTTP request by default. To make an @@ -49,11 +49,10 @@ def create_namespaced_daemon_set(self, namespace, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_daemon_set(namespace, body, callback=callback_function) + >>> thread = api.create_daemon_set_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1DaemonSet @@ -62,12 +61,12 @@ def create_namespaced_daemon_set(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) + return self.create_daemon_set_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) + (data) = self.create_daemon_set_for_all_namespaces_with_http_info(body, **kwargs) return data - def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs): + def create_daemon_set_for_all_namespaces_with_http_info(self, body, **kwargs): """ create a DaemonSet This method makes a synchronous HTTP request by default. To make an @@ -76,11 +75,10 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_daemon_set_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_daemon_set_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1DaemonSet @@ -88,7 +86,7 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -99,24 +97,19 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_daemon_set" % key + " to method create_daemon_set_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `body` when calling `create_daemon_set_for_all_namespaces`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/daemonsets'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -156,7 +149,7 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_deployment(self, namespace, body, **kwargs): + def create_deployment_for_all_namespaces(self, body, **kwargs): """ create a Deployment This method makes a synchronous HTTP request by default. To make an @@ -165,25 +158,24 @@ def create_namespaced_deployment(self, namespace, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_deployment(namespace, body, callback=callback_function) + >>> thread = api.create_deployment_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1Deployment body: (required) + :param V1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) + return self.create_deployment_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) + (data) = self.create_deployment_for_all_namespaces_with_http_info(body, **kwargs) return data - def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): + def create_deployment_for_all_namespaces_with_http_info(self, body, **kwargs): """ create a Deployment This method makes a synchronous HTTP request by default. To make an @@ -192,19 +184,18 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_deployment_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_deployment_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1Deployment body: (required) + :param V1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -215,24 +206,19 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_deployment" % key + " to method create_deployment_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") + raise ValueError("Missing the required parameter `body` when calling `create_deployment_for_all_namespaces`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/deployments'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -264,7 +250,7 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Deployment', + response_type='V1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -272,57 +258,53 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_deployment_rollback_rollback(self, name, namespace, body, **kwargs): + def create_horizontal_pod_autoscaler_for_all_namespaces(self, body, **kwargs): """ - create rollback of a DeploymentRollback + create a HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_deployment_rollback_rollback(name, namespace, body, callback=callback_function) + >>> thread = api.create_horizontal_pod_autoscaler_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DeploymentRollback (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1DeploymentRollback body: (required) + :param V1beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1DeploymentRollback + :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_deployment_rollback_rollback_with_http_info(name, namespace, body, **kwargs) + return self.create_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_deployment_rollback_rollback_with_http_info(name, namespace, body, **kwargs) + (data) = self.create_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(body, **kwargs) return data - def create_namespaced_deployment_rollback_rollback_with_http_info(self, name, namespace, body, **kwargs): + def create_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, body, **kwargs): """ - create rollback of a DeploymentRollback + create a HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_deployment_rollback_rollback_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.create_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DeploymentRollback (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1DeploymentRollback body: (required) + :param V1beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1DeploymentRollback + :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -333,29 +315,19 @@ def create_namespaced_deployment_rollback_rollback_with_http_info(self, name, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_deployment_rollback_rollback" % key + " to method create_horizontal_pod_autoscaler_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback_rollback`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback_rollback`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback_rollback`") + raise ValueError("Missing the required parameter `body` when calling `create_horizontal_pod_autoscaler_for_all_namespaces`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/horizontalpodautoscalers'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -387,7 +359,7 @@ def create_namespaced_deployment_rollback_rollback_with_http_info(self, name, na body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1DeploymentRollback', + response_type='V1beta1HorizontalPodAutoscaler', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -395,7 +367,7 @@ def create_namespaced_deployment_rollback_rollback_with_http_info(self, name, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_ingress(self, namespace, body, **kwargs): + def create_ingress_for_all_namespaces(self, body, **kwargs): """ create an Ingress This method makes a synchronous HTTP request by default. To make an @@ -404,11 +376,10 @@ def create_namespaced_ingress(self, namespace, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_ingress(namespace, body, callback=callback_function) + >>> thread = api.create_ingress_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Ingress @@ -417,12 +388,12 @@ def create_namespaced_ingress(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) + return self.create_ingress_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) + (data) = self.create_ingress_for_all_namespaces_with_http_info(body, **kwargs) return data - def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): + def create_ingress_for_all_namespaces_with_http_info(self, body, **kwargs): """ create an Ingress This method makes a synchronous HTTP request by default. To make an @@ -431,11 +402,10 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_ingress_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_ingress_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Ingress @@ -443,7 +413,7 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -454,24 +424,19 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_ingress" % key + " to method create_ingress_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_ingress`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_ingress`") + raise ValueError("Missing the required parameter `body` when calling `create_ingress_for_all_namespaces`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/ingresses'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -511,55 +476,53 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_network_policy(self, namespace, body, **kwargs): + def create_job_for_all_namespaces(self, body, **kwargs): """ - create a NetworkPolicy + create a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_network_policy(namespace, body, callback=callback_function) + >>> thread = api.create_job_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1NetworkPolicy body: (required) + :param V1beta1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1NetworkPolicy + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) + return self.create_job_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) + (data) = self.create_job_for_all_namespaces_with_http_info(body, **kwargs) return data - def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwargs): + def create_job_for_all_namespaces_with_http_info(self, body, **kwargs): """ - create a NetworkPolicy + create a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_network_policy_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_job_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1NetworkPolicy body: (required) + :param V1beta1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1NetworkPolicy + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -570,24 +533,19 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_network_policy" % key + " to method create_job_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_network_policy`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_network_policy`") + raise ValueError("Missing the required parameter `body` when calling `create_job_for_all_namespaces`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/jobs'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -619,7 +577,7 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1NetworkPolicy', + response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -627,50 +585,50 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_replica_set(self, namespace, body, **kwargs): + def create_namespaced_daemon_set(self, namespace, body, **kwargs): """ - create a ReplicaSet + create a DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_replica_set(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_daemon_set(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1ReplicaSet body: (required) + :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ReplicaSet + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) return data - def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): + def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs): """ - create a ReplicaSet + create a DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_replica_set_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_namespaced_daemon_set_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1ReplicaSet body: (required) + :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ReplicaSet + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ @@ -686,21 +644,21 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_replica_set" % key + " to method create_namespaced_daemon_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -735,7 +693,7 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ReplicaSet', + response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -743,53 +701,55 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_pod_security_policy(self, body, **kwargs): + def create_namespaced_deployment(self, namespace, body, **kwargs): """ - create a PodSecurityPolicy + create a Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_pod_security_policy(body, callback=callback_function) + >>> thread = api.create_namespaced_deployment(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1beta1PodSecurityPolicy body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1PodSecurityPolicy + :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_pod_security_policy_with_http_info(body, **kwargs) + return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_pod_security_policy_with_http_info(body, **kwargs) + (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) return data - def create_pod_security_policy_with_http_info(self, body, **kwargs): + def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): """ - create a PodSecurityPolicy + create a Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_pod_security_policy_with_http_info(body, callback=callback_function) + >>> thread = api.create_namespaced_deployment_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1beta1PodSecurityPolicy body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1PodSecurityPolicy + :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'pretty'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -800,19 +760,24 @@ def create_pod_security_policy_with_http_info(self, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_pod_security_policy" % key + " to method create_namespaced_deployment" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/podsecuritypolicies'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -844,7 +809,7 @@ def create_pod_security_policy_with_http_info(self, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1PodSecurityPolicy', + response_type='V1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -852,53 +817,57 @@ def create_pod_security_policy_with_http_info(self, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_third_party_resource(self, body, **kwargs): + def create_namespaced_deployment_rollback_rollback(self, body, name, namespace, **kwargs): """ - create a ThirdPartyResource + create rollback of a DeploymentRollback This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_third_party_resource(body, callback=callback_function) + >>> thread = api.create_namespaced_deployment_rollback_rollback(body, name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1beta1ThirdPartyResource body: (required) + :param V1beta1DeploymentRollback body: (required) + :param str name: name of the DeploymentRollback (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ThirdPartyResource + :return: V1beta1DeploymentRollback If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_third_party_resource_with_http_info(body, **kwargs) + return self.create_namespaced_deployment_rollback_rollback_with_http_info(body, name, namespace, **kwargs) else: - (data) = self.create_third_party_resource_with_http_info(body, **kwargs) + (data) = self.create_namespaced_deployment_rollback_rollback_with_http_info(body, name, namespace, **kwargs) return data - def create_third_party_resource_with_http_info(self, body, **kwargs): + def create_namespaced_deployment_rollback_rollback_with_http_info(self, body, name, namespace, **kwargs): """ - create a ThirdPartyResource + create rollback of a DeploymentRollback This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_third_party_resource_with_http_info(body, callback=callback_function) + >>> thread = api.create_namespaced_deployment_rollback_rollback_with_http_info(body, name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1beta1ThirdPartyResource body: (required) + :param V1beta1DeploymentRollback body: (required) + :param str name: name of the DeploymentRollback (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ThirdPartyResource + :return: V1beta1DeploymentRollback If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'pretty'] + all_params = ['body', 'name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -909,19 +878,29 @@ def create_third_party_resource_with_http_info(self, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_third_party_resource" % key + " to method create_namespaced_deployment_rollback_rollback" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_third_party_resource`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback_rollback`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback_rollback`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback_rollback`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/thirdpartyresources'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -953,7 +932,7 @@ def create_third_party_resource_with_http_info(self, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ThirdPartyResource', + response_type='V1beta1DeploymentRollback', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -961,63 +940,55 @@ def create_third_party_resource_with_http_info(self, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): + def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs): """ - delete collection of DaemonSet + create a HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_daemon_set(namespace, callback=callback_function) + >>> thread = api.create_namespaced_horizontal_pod_autoscaler(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) + return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) else: - (data) = self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) + (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) return data - def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): + def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): """ - delete collection of DaemonSet + create a HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_daemon_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1028,18 +999,21 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_daemon_set" % key + " to method create_namespaced_horizontal_pod_autoscaler" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -1047,16 +1021,6 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -1064,6 +1028,8 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -1075,14 +1041,14 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1beta1HorizontalPodAutoscaler', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1090,63 +1056,55 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_deployment(self, namespace, **kwargs): + def create_namespaced_ingress(self, namespace, body, **kwargs): """ - delete collection of Deployment + create an Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_deployment(namespace, callback=callback_function) + >>> thread = api.create_namespaced_ingress(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + return self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) else: - (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + (data) = self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) return data - def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): + def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): """ - delete collection of Deployment + create an Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_namespaced_ingress_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1157,18 +1115,21 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_deployment" % key + " to method create_namespaced_ingress" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_ingress`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_ingress`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -1176,16 +1137,6 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -1193,6 +1144,8 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -1204,14 +1157,14 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1219,63 +1172,55 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_ingress(self, namespace, **kwargs): + def create_namespaced_job(self, namespace, body, **kwargs): """ - delete collection of Ingress + create a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_ingress(namespace, callback=callback_function) + >>> thread = api.create_namespaced_job(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) + return self.create_namespaced_job_with_http_info(namespace, body, **kwargs) else: - (data) = self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) + (data) = self.create_namespaced_job_with_http_info(namespace, body, **kwargs) return data - def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwargs): + def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): """ - delete collection of Ingress + create a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_ingress_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_namespaced_job_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1286,18 +1231,21 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_ingress" % key + " to method create_namespaced_job" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_ingress`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_job`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -1305,16 +1253,6 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -1322,6 +1260,8 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -1333,14 +1273,14 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1348,63 +1288,55 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_network_policy(self, namespace, **kwargs): + def create_namespaced_network_policy(self, namespace, body, **kwargs): """ - delete collection of NetworkPolicy + create a NetworkPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_network_policy(namespace, callback=callback_function) + >>> thread = api.create_namespaced_network_policy(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) + return self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) else: - (data) = self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) + (data) = self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) return data - def delete_collection_namespaced_network_policy_with_http_info(self, namespace, **kwargs): + def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwargs): """ - delete collection of NetworkPolicy + create a NetworkPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_network_policy_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_namespaced_network_policy_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1415,13 +1347,16 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_network_policy" % key + " to method create_namespaced_network_policy" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_network_policy`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_network_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_network_policy`") collection_formats = {} @@ -1434,16 +1369,6 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -1451,6 +1376,8 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -1462,14 +1389,14 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1beta1NetworkPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1477,63 +1404,55 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_replica_set(self, namespace, **kwargs): + def create_namespaced_replica_set(self, namespace, body, **kwargs): """ - delete collection of ReplicaSet + create a ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_replica_set(namespace, callback=callback_function) + >>> thread = api.create_namespaced_replica_set(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) + return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) else: - (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) + (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) return data - def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): + def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): """ - delete collection of ReplicaSet + create a ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.create_namespaced_replica_set_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1544,13 +1463,16 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_replica_set" % key + " to method create_namespaced_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") collection_formats = {} @@ -1563,16 +1485,6 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -1580,6 +1492,8 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -1591,14 +1505,14 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1606,61 +1520,53 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_pod_security_policy(self, **kwargs): + def create_network_policy_for_all_namespaces(self, body, **kwargs): """ - delete collection of PodSecurityPolicy + create a NetworkPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_pod_security_policy(callback=callback_function) + >>> thread = api.create_network_policy_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1beta1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_pod_security_policy_with_http_info(**kwargs) + return self.create_network_policy_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_pod_security_policy_with_http_info(**kwargs) + (data) = self.create_network_policy_for_all_namespaces_with_http_info(body, **kwargs) return data - def delete_collection_pod_security_policy_with_http_info(self, **kwargs): + def create_network_policy_for_all_namespaces_with_http_info(self, body, **kwargs): """ - delete collection of PodSecurityPolicy + create a NetworkPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_pod_security_policy_with_http_info(callback=callback_function) + >>> thread = api.create_network_policy_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1beta1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1671,30 +1577,23 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_pod_security_policy" % key + " to method create_network_policy_for_all_namespaces" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_network_policy_for_all_namespaces`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/podsecuritypolicies'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/networkpolicies'.replace('{format}', 'json') path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -1702,6 +1601,8 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -1713,14 +1614,14 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1beta1NetworkPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1728,61 +1629,53 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_third_party_resource(self, **kwargs): + def create_pod_security_policy(self, body, **kwargs): """ - delete collection of ThirdPartyResource + create a PodSecurityPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_third_party_resource(callback=callback_function) + >>> thread = api.create_pod_security_policy(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1beta1PodSecurityPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_third_party_resource_with_http_info(**kwargs) + return self.create_pod_security_policy_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_third_party_resource_with_http_info(**kwargs) + (data) = self.create_pod_security_policy_with_http_info(body, **kwargs) return data - def delete_collection_third_party_resource_with_http_info(self, **kwargs): + def create_pod_security_policy_with_http_info(self, body, **kwargs): """ - delete collection of ThirdPartyResource + create a PodSecurityPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_third_party_resource_with_http_info(callback=callback_function) + >>> thread = api.create_pod_security_policy_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param V1beta1PodSecurityPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: V1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1793,30 +1686,23 @@ def delete_collection_third_party_resource_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_third_party_resource" % key + " to method create_pod_security_policy" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/thirdpartyresources'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies'.replace('{format}', 'json') path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -1824,6 +1710,8 @@ def delete_collection_third_party_resource_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -1835,14 +1723,14 @@ def delete_collection_third_party_resource_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1beta1PodSecurityPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1850,63 +1738,53 @@ def delete_collection_third_party_resource_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_daemon_set(self, name, namespace, body, **kwargs): + def create_replica_set_for_all_namespaces(self, body, **kwargs): """ - delete a DaemonSet + create a ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_daemon_set(name, namespace, body, callback=callback_function) + >>> thread = api.create_replica_set_for_all_namespaces(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param V1beta1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return self.create_replica_set_for_all_namespaces_with_http_info(body, **kwargs) else: - (data) = self.delete_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.create_replica_set_for_all_namespaces_with_http_info(body, **kwargs) return data - def delete_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): + def create_replica_set_for_all_namespaces_with_http_info(self, body, **kwargs): """ - delete a DaemonSet + create a ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_daemon_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.create_replica_set_for_all_namespaces_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param V1beta1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1917,39 +1795,23 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, body, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_daemon_set" % key + " to method create_replica_set_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `body` when calling `create_replica_set_for_all_namespaces`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/replicasets'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -1970,14 +1832,14 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, body, **k # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1985,63 +1847,53 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, body, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_deployment(self, name, namespace, body, **kwargs): + def create_third_party_resource(self, body, **kwargs): """ - delete a Deployment + create a ThirdPartyResource This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_deployment(name, namespace, body, callback=callback_function) + >>> thread = api.create_third_party_resource(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param V1beta1ThirdPartyResource body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :return: V1beta1ThirdPartyResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.create_third_party_resource_with_http_info(body, **kwargs) else: - (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.create_third_party_resource_with_http_info(body, **kwargs) return data - def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): + def create_third_party_resource_with_http_info(self, body, **kwargs): """ - delete a Deployment + create a ThirdPartyResource This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.create_third_party_resource_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param V1beta1ThirdPartyResource body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :return: V1beta1ThirdPartyResource If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2052,39 +1904,23 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_deployment" % key + " to method create_third_party_resource" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_deployment`") + raise ValueError("Missing the required parameter `body` when calling `create_third_party_resource`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/thirdpartyresources'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -2105,14 +1941,14 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **k # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1beta1ThirdPartyResource', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2120,63 +1956,63 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_ingress(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): """ - delete an Ingress + delete collection of DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_ingress(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_daemon_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) return data - def delete_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): """ - delete an Ingress + delete collection of DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_ingress_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_daemon_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2187,39 +2023,35 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, body, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_ingress" % key + " to method delete_collection_namespaced_daemon_set" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_ingress`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_ingress`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_ingress`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -2227,8 +2059,6 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, body, **kwar local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -2247,7 +2077,7 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, body, **kwar body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2255,63 +2085,63 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, body, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_network_policy(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_deployment(self, namespace, **kwargs): """ - delete a NetworkPolicy + delete collection of Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_network_policy(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_deployment(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) return data - def delete_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): """ - delete a NetworkPolicy + delete collection of Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_network_policy_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2322,39 +2152,35 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_network_policy" % key + " to method delete_collection_namespaced_deployment" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_network_policy`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_network_policy`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_network_policy`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -2362,8 +2188,6 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -2382,7 +2206,7 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, body, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2390,63 +2214,63 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_replica_set(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): """ - delete a ReplicaSet + delete collection of HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) return data - def delete_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): """ - delete a ReplicaSet + delete collection of HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2457,39 +2281,35 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, body, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_replica_set" % key + " to method delete_collection_namespaced_horizontal_pod_autoscaler" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -2497,8 +2317,6 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -2517,7 +2335,7 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, body, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2525,61 +2343,63 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, body, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_pod_security_policy(self, name, body, **kwargs): + def delete_collection_namespaced_ingress(self, namespace, **kwargs): """ - delete a PodSecurityPolicy + delete collection of Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_pod_security_policy(name, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_ingress(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PodSecurityPolicy (required) - :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_pod_security_policy_with_http_info(name, body, **kwargs) + return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) else: - (data) = self.delete_pod_security_policy_with_http_info(name, body, **kwargs) + (data) = self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) return data - def delete_pod_security_policy_with_http_info(self, name, body, **kwargs): + def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwargs): """ - delete a PodSecurityPolicy + delete collection of Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_pod_security_policy_with_http_info(name, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_ingress_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PodSecurityPolicy (required) - :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2590,34 +2410,35 @@ def delete_pod_security_policy_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_pod_security_policy" % key + " to method delete_collection_namespaced_ingress" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_pod_security_policy`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_pod_security_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_ingress`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/podsecuritypolicies/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -2625,8 +2446,6 @@ def delete_pod_security_policy_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -2645,7 +2464,7 @@ def delete_pod_security_policy_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2653,61 +2472,63 @@ def delete_pod_security_policy_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_third_party_resource(self, name, body, **kwargs): + def delete_collection_namespaced_job(self, namespace, **kwargs): """ - delete a ThirdPartyResource + delete collection of Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_third_party_resource(name, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_job(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ThirdPartyResource (required) - :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_third_party_resource_with_http_info(name, body, **kwargs) + return self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) else: - (data) = self.delete_third_party_resource_with_http_info(name, body, **kwargs) + (data) = self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) return data - def delete_third_party_resource_with_http_info(self, name, body, **kwargs): + def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): """ - delete a ThirdPartyResource + delete collection of Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_third_party_resource_with_http_info(name, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_job_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ThirdPartyResource (required) - :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2718,34 +2539,35 @@ def delete_third_party_resource_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_third_party_resource" % key + " to method delete_collection_namespaced_job" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_third_party_resource`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_third_party_resource`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_job`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -2753,8 +2575,6 @@ def delete_third_party_resource_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -2773,7 +2593,7 @@ def delete_third_party_resource_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2781,49 +2601,63 @@ def delete_third_party_resource_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources(self, **kwargs): + def delete_collection_namespaced_network_policy(self, namespace, **kwargs): """ - get available resources + delete collection of NetworkPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources(callback=callback_function) + >>> thread = api.delete_collection_namespaced_network_policy(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) + return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) return data - def get_api_resources_with_http_info(self, **kwargs): + def delete_collection_namespaced_network_policy_with_http_info(self, namespace, **kwargs): """ - get available resources + delete collection of NetworkPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_network_policy_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2834,17 +2668,35 @@ def get_api_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key + " to method delete_collection_namespaced_network_policy" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_network_policy`") + collection_formats = {} - resource_path = '/apis/extensions/v1beta1/'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] header_params = {} @@ -2858,19 +2710,19 @@ def get_api_resources_with_http_info(self, **kwargs): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2878,61 +2730,63 @@ def get_api_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_daemon_set_for_all_namespaces(self, **kwargs): + def delete_collection_namespaced_replica_set(self, namespace, **kwargs): """ - list or watch objects of kind DaemonSet + delete collection of ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_daemon_set_for_all_namespaces(callback=callback_function) + >>> thread = api.delete_collection_namespaced_replica_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1DaemonSetList + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) + return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) else: - (data) = self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) return data - def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): + def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind DaemonSet + delete collection of ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_daemon_set_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1DaemonSetList + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2943,24 +2797,29 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_daemon_set_for_all_namespaces" % key + " to method delete_collection_namespaced_replica_set" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/daemonsets'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -2976,7 +2835,7 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -2985,14 +2844,14 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DaemonSetList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3000,61 +2859,61 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_deployment_for_all_namespaces(self, **kwargs): + def delete_collection_pod_security_policy(self, **kwargs): """ - list or watch objects of kind Deployment + delete collection of PodSecurityPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_deployment_for_all_namespaces(callback=callback_function) + >>> thread = api.delete_collection_pod_security_policy(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: ExtensionsV1beta1DeploymentList + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + return self.delete_collection_pod_security_policy_with_http_info(**kwargs) else: - (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + (data) = self.delete_collection_pod_security_policy_with_http_info(**kwargs) return data - def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): + def delete_collection_pod_security_policy_with_http_info(self, **kwargs): """ - list or watch objects of kind Deployment + delete collection of PodSecurityPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_deployment_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_pod_security_policy_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: ExtensionsV1beta1DeploymentList + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3065,7 +2924,7 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_deployment_for_all_namespaces" % key + " to method delete_collection_pod_security_policy" % key ) params[key] = val del params['kwargs'] @@ -3073,16 +2932,16 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/apis/extensions/v1beta1/deployments'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies'.replace('{format}', 'json') path_params = {} query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -3098,7 +2957,7 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -3107,14 +2966,14 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1DeploymentList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3122,61 +2981,61 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_ingress_for_all_namespaces(self, **kwargs): + def delete_collection_third_party_resource(self, **kwargs): """ - list or watch objects of kind Ingress + delete collection of ThirdPartyResource This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_ingress_for_all_namespaces(callback=callback_function) + >>> thread = api.delete_collection_third_party_resource(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1IngressList + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_ingress_for_all_namespaces_with_http_info(**kwargs) + return self.delete_collection_third_party_resource_with_http_info(**kwargs) else: - (data) = self.list_ingress_for_all_namespaces_with_http_info(**kwargs) + (data) = self.delete_collection_third_party_resource_with_http_info(**kwargs) return data - def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): + def delete_collection_third_party_resource_with_http_info(self, **kwargs): """ - list or watch objects of kind Ingress + delete collection of ThirdPartyResource This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_ingress_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_third_party_resource_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1IngressList + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3187,7 +3046,7 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_ingress_for_all_namespaces" % key + " to method delete_collection_third_party_resource" % key ) params[key] = val del params['kwargs'] @@ -3195,16 +3054,16 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/apis/extensions/v1beta1/ingresses'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/thirdpartyresources'.replace('{format}', 'json') path_params = {} query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -3220,7 +3079,7 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -3229,14 +3088,14 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1IngressList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3244,63 +3103,61 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_daemon_set(self, namespace, **kwargs): + def delete_namespaced_daemon_set(self, name, namespace, body, **kwargs): """ - list or watch objects of kind DaemonSet + delete a DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_daemon_set(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_daemon_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1DaemonSetList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) + return self.delete_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) + (data) = self.delete_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) return data - def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): + def delete_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind DaemonSet + delete a DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_daemon_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_daemon_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1DaemonSetList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3311,35 +3168,37 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_daemon_set" % key + " to method delete_namespaced_daemon_set" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_daemon_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -3347,9 +3206,11 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -3358,14 +3219,14 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DaemonSetList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3373,63 +3234,61 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_deployment(self, namespace, **kwargs): + def delete_namespaced_deployment(self, name, namespace, body, **kwargs): """ - list or watch objects of kind Deployment + delete a Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_deployment(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_deployment(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: ExtensionsV1beta1DeploymentList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + return self.delete_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) return data - def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): + def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind Deployment + delete a Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_deployment_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: ExtensionsV1beta1DeploymentList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3440,35 +3299,37 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_deployment" % key + " to method delete_namespaced_deployment" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_deployment`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -3476,9 +3337,11 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -3487,14 +3350,14 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1DeploymentList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3502,63 +3365,61 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_ingress(self, namespace, **kwargs): + def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): """ - list or watch objects of kind Ingress + delete a HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_ingress(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1IngressList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_ingress_with_http_info(namespace, **kwargs) + return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_namespaced_ingress_with_http_info(namespace, **kwargs) + (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) return data - def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): + def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind Ingress + delete a HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_ingress_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1IngressList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3569,35 +3430,37 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_ingress" % key + " to method delete_namespaced_horizontal_pod_autoscaler" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_horizontal_pod_autoscaler`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -3605,9 +3468,11 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -3616,14 +3481,14 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1IngressList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3631,63 +3496,61 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_network_policy(self, namespace, **kwargs): + def delete_namespaced_ingress(self, name, namespace, body, **kwargs): """ - list or watch objects of kind NetworkPolicy + delete an Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_network_policy(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_ingress(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1NetworkPolicyList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) + return self.delete_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) + (data) = self.delete_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) return data - def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): + def delete_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind NetworkPolicy + delete an Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_network_policy_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_ingress_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1NetworkPolicyList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3698,35 +3561,37 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_network_policy" % key + " to method delete_namespaced_ingress" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_ingress`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_network_policy`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_ingress`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_ingress`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -3734,9 +3599,11 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -3745,14 +3612,14 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1NetworkPolicyList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3760,63 +3627,61 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_replica_set(self, namespace, **kwargs): + def delete_namespaced_job(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ReplicaSet + delete a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_replica_set(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_job(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ReplicaSetList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) + return self.delete_namespaced_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) + (data) = self.delete_namespaced_job_with_http_info(name, namespace, body, **kwargs) return data - def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): + def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ReplicaSet + delete a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ReplicaSetList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3827,35 +3692,37 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_replica_set" % key + " to method delete_namespaced_job" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_job`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_job`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -3863,9 +3730,11 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -3874,14 +3743,14 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ReplicaSetList', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3889,61 +3758,3649 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_network_policy_for_all_namespaces(self, **kwargs): + def delete_namespaced_network_policy(self, name, namespace, body, **kwargs): """ - list or watch objects of kind NetworkPolicy + delete a NetworkPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_network_policy_for_all_namespaces(callback=callback_function) + >>> thread = api.delete_namespaced_network_policy(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1NetworkPolicyList + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) + return self.delete_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) + (data) = self.delete_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) return data - def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): + def delete_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind NetworkPolicy + delete a NetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_network_policy_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_network_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_network_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_network_policy`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_replica_set(self, name, namespace, body, **kwargs): + """ + delete a ReplicaSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_replica_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a ReplicaSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_replica_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ReplicaSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_replica_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_pod_security_policy(self, name, body, **kwargs): + """ + delete a PodSecurityPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_pod_security_policy(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodSecurityPolicy (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_pod_security_policy_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_pod_security_policy_with_http_info(name, body, **kwargs) + return data + + def delete_pod_security_policy_with_http_info(self, name, body, **kwargs): + """ + delete a PodSecurityPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_pod_security_policy_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodSecurityPolicy (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_pod_security_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_pod_security_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_pod_security_policy`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_third_party_resource(self, name, body, **kwargs): + """ + delete a ThirdPartyResource + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_third_party_resource(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ThirdPartyResource (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_third_party_resource_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_third_party_resource_with_http_info(name, body, **kwargs) + return data + + def delete_third_party_resource_with_http_info(self, name, body, **kwargs): + """ + delete a ThirdPartyResource + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_third_party_resource_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ThirdPartyResource (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_third_party_resource" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_third_party_resource`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_third_party_resource`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): + """ + get available resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_with_http_info(**kwargs) + return data + + def get_api_resources_with_http_info(self, **kwargs): + """ + get available resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/'.replace('{format}', 'json') + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_daemon_set_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind DaemonSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_daemon_set_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DaemonSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind DaemonSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_daemon_set_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DaemonSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_daemon_set_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/daemonsets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_deployment_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind Deployment + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_deployment_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DeploymentList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind Deployment + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_deployment_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DeploymentList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_deployment_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/deployments'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DeploymentList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind HorizontalPodAutoscaler + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind HorizontalPodAutoscaler + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_horizontal_pod_autoscaler_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscalerList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_ingress_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind Ingress + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_ingress_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1IngressList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_ingress_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_ingress_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind Ingress + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_ingress_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1IngressList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_ingress_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/ingresses'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1IngressList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_job_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_job_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1JobList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_job_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_job_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_job_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_job_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1JobList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_job_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/jobs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1JobList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_daemon_set(self, namespace, **kwargs): + """ + list or watch objects of kind DaemonSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_daemon_set(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DaemonSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind DaemonSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_daemon_set_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DaemonSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_daemon_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_deployment(self, namespace, **kwargs): + """ + list or watch objects of kind Deployment + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_deployment(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DeploymentList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind Deployment + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_deployment_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1DeploymentList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_deployment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DeploymentList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): + """ + list or watch objects of kind HorizontalPodAutoscaler + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_horizontal_pod_autoscaler(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind HorizontalPodAutoscaler + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscalerList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_ingress(self, namespace, **kwargs): + """ + list or watch objects of kind Ingress + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_ingress(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1IngressList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_ingress_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_ingress_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind Ingress + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_ingress_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1IngressList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_ingress" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1IngressList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_job(self, namespace, **kwargs): + """ + list or watch objects of kind Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_job(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1JobList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_job_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_job_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_job_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind Job + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_job_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1JobList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_job`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1JobList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_network_policy(self, namespace, **kwargs): + """ + list or watch objects of kind NetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_network_policy(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1NetworkPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind NetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_network_policy_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1NetworkPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_network_policy`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_replica_set(self, namespace, **kwargs): + """ + list or watch objects of kind ReplicaSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_replica_set(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind ReplicaSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_replica_set_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_network_policy_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind NetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_network_policy_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1NetworkPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind NetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_network_policy_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1NetworkPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_network_policy_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/networkpolicies'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_pod_security_policy(self, **kwargs): + """ + list or watch objects of kind PodSecurityPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_pod_security_policy(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1PodSecurityPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_pod_security_policy_with_http_info(**kwargs) + else: + (data) = self.list_pod_security_policy_with_http_info(**kwargs) + return data + + def list_pod_security_policy_with_http_info(self, **kwargs): + """ + list or watch objects of kind PodSecurityPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_pod_security_policy_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1PodSecurityPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_pod_security_policy" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PodSecurityPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_replica_set_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind ReplicaSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_replica_set_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind ReplicaSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_replica_set_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_replica_set_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/replicasets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_third_party_resource(self, **kwargs): + """ + list or watch objects of kind ThirdPartyResource + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_third_party_resource(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ThirdPartyResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_third_party_resource_with_http_info(**kwargs) + else: + (data) = self.list_third_party_resource_with_http_info(**kwargs) + return data + + def list_third_party_resource_with_http_info(self, **kwargs): + """ + list or watch objects of kind ThirdPartyResource + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_third_party_resource_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ThirdPartyResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_third_party_resource" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/thirdpartyresources'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ThirdPartyResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): + """ + partially update the specified DaemonSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_daemon_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified DaemonSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_daemon_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_daemon_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): + """ + partially update status of the specified DaemonSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_daemon_set_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update status of the specified DaemonSet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1DaemonSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_daemon_set_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment(self, name, namespace, body, **kwargs): + """ + partially update the specified Deployment + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_deployment(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified Deployment + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_deployment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Deployment', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): + """ + partially update status of the specified Deployment + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_deployment_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update status of the specified Deployment + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_deployment_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_deployment_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Deployment', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployments_scale(self, name, namespace, body, **kwargs): + """ + partially update scale of the specified Scale + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_deployments_scale(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_deployments_scale_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update scale of the specified Scale + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_deployments_scale_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_deployments_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployments_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployments_scale`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployments_scale`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): + """ + partially update the specified HorizontalPodAutoscaler + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified HorizontalPodAutoscaler + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_horizontal_pod_autoscaler" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): + """ + partially update status of the specified HorizontalPodAutoscaler + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update status of the specified HorizontalPodAutoscaler + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_horizontal_pod_autoscaler_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_ingress(self, name, namespace, body, **kwargs): + """ + partially update the specified Ingress + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_ingress(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified Ingress + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_ingress_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_ingress" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Ingress', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): + """ + partially update status of the specified Ingress + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_ingress_status(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Ingress + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update status of the specified Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_network_policy_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.patch_namespaced_ingress_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1NetworkPolicyList + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3954,30 +7411,33 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_network_policy_for_all_namespaces" % key + " to method patch_namespaced_ingress_status" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/networkpolicies'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -3985,25 +7445,27 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1NetworkPolicyList', + response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4011,61 +7473,57 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_pod_security_policy(self, **kwargs): + def patch_namespaced_job(self, name, namespace, body, **kwargs): """ - list or watch objects of kind PodSecurityPolicy + partially update the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_pod_security_policy(callback=callback_function) + >>> thread = api.patch_namespaced_job(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1PodSecurityPolicyList + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_pod_security_policy_with_http_info(**kwargs) + return self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_pod_security_policy_with_http_info(**kwargs) + (data) = self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) return data - def list_pod_security_policy_with_http_info(self, **kwargs): + def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind PodSecurityPolicy + partially update the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_pod_security_policy_with_http_info(callback=callback_function) + >>> thread = api.patch_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1PodSecurityPolicyList + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4076,30 +7534,33 @@ def list_pod_security_policy_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_pod_security_policy" % key + " to method patch_namespaced_job" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_job`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_job`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/podsecuritypolicies'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -4107,25 +7568,27 @@ def list_pod_security_policy_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1PodSecurityPolicyList', + response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4133,61 +7596,57 @@ def list_pod_security_policy_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_replica_set_for_all_namespaces(self, **kwargs): + def patch_namespaced_job_status(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ReplicaSet + partially update status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_replica_set_for_all_namespaces(callback=callback_function) + >>> thread = api.patch_namespaced_job_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ReplicaSetList + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) + return self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) return data - def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): + def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ReplicaSet + partially update status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_replica_set_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.patch_namespaced_job_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str name: name of the Job (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ReplicaSetList + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4198,30 +7657,33 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_replica_set_for_all_namespaces" % key + " to method patch_namespaced_job_status" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_job_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_job_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/replicasets'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -4229,25 +7691,27 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ReplicaSetList', + response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4255,61 +7719,57 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_third_party_resource(self, **kwargs): + def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ThirdPartyResource + partially update the specified NetworkPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_third_party_resource(callback=callback_function) + >>> thread = api.patch_namespaced_network_policy(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ThirdPartyResourceList + :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_third_party_resource_with_http_info(**kwargs) + return self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_third_party_resource_with_http_info(**kwargs) + (data) = self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) return data - def list_third_party_resource_with_http_info(self, **kwargs): + def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ThirdPartyResource + partially update the specified NetworkPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_third_party_resource_with_http_info(callback=callback_function) + >>> thread = api.patch_namespaced_network_policy_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the NetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ThirdPartyResourceList + :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4320,30 +7780,33 @@ def list_third_party_resource_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_third_party_resource" % key + " to method patch_namespaced_network_policy" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_network_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_network_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_network_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/thirdpartyresources'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] header_params = {} @@ -4351,25 +7814,27 @@ def list_third_party_resource_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ThirdPartyResourceList', + response_type='V1beta1NetworkPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4377,52 +7842,52 @@ def list_third_party_resource_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): + def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): """ - partially update the specified DaemonSet + partially update the specified ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_daemon_set(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_replica_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) + :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified DaemonSet + partially update the specified ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_daemon_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_replica_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) + :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -4438,24 +7903,24 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_daemon_set" % key + " to method patch_namespaced_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -4492,7 +7957,7 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DaemonSet', + response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4500,52 +7965,52 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): + def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): """ - partially update status of the specified DaemonSet + partially update status of the specified ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_daemon_set_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_replica_set_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) + :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified DaemonSet + partially update status of the specified ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) + :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -4561,24 +8026,24 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_daemon_set_status" % key + " to method patch_namespaced_replica_set_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -4615,7 +8080,7 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DaemonSet', + response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4623,52 +8088,52 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_deployment(self, name, namespace, body, **kwargs): + def patch_namespaced_replicasets_scale(self, name, namespace, body, **kwargs): """ - partially update the specified Deployment + partially update scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_deployment(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_replicasets_scale(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replicasets_scale_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replicasets_scale_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_replicasets_scale_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified Deployment + partially update scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_replicasets_scale_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -4684,24 +8149,24 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_deployment" % key + " to method patch_namespaced_replicasets_scale" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replicasets_scale`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replicasets_scale`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replicasets_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -4738,7 +8203,7 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Deployment', + response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4746,52 +8211,52 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): + def patch_namespaced_replicationcontrollers_scale(self, name, namespace, body, **kwargs): """ - partially update status of the specified Deployment + partially update scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_deployment_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_replicationcontrollers_scale(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_replicationcontrollers_scale_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified Deployment + partially update scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_deployment_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -4807,24 +8272,24 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_deployment_status" % key + " to method patch_namespaced_replicationcontrollers_scale" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replicationcontrollers_scale`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replicationcontrollers_scale`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replicationcontrollers_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -4861,7 +8326,7 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Deployment', + response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4869,57 +8334,55 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_deployments_scale(self, name, namespace, body, **kwargs): + def patch_pod_security_policy(self, name, body, **kwargs): """ - partially update scale of the specified Scale + partially update the specified PodSecurityPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_deployments_scale(name, namespace, body, callback=callback_function) + >>> thread = api.patch_pod_security_policy(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PodSecurityPolicy (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_pod_security_policy_with_http_info(name, body, **kwargs) else: - (data) = self.patch_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_pod_security_policy_with_http_info(name, body, **kwargs) return data - def patch_namespaced_deployments_scale_with_http_info(self, name, namespace, body, **kwargs): + def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): """ - partially update scale of the specified Scale + partially update the specified PodSecurityPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_deployments_scale_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_pod_security_policy_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PodSecurityPolicy (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4930,29 +8393,24 @@ def patch_namespaced_deployments_scale_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_deployments_scale" % key + " to method patch_pod_security_policy" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployments_scale`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `name` when calling `patch_pod_security_policy`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `body` when calling `patch_pod_security_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -4984,7 +8442,7 @@ def patch_namespaced_deployments_scale_with_http_info(self, name, namespace, bod body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Scale', + response_type='V1beta1PodSecurityPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4992,57 +8450,55 @@ def patch_namespaced_deployments_scale_with_http_info(self, name, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_ingress(self, name, namespace, body, **kwargs): + def patch_third_party_resource(self, name, body, **kwargs): """ - partially update the specified Ingress + partially update the specified ThirdPartyResource This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_ingress(name, namespace, body, callback=callback_function) + >>> thread = api.patch_third_party_resource(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ThirdPartyResource (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: V1beta1ThirdPartyResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return self.patch_third_party_resource_with_http_info(name, body, **kwargs) else: - (data) = self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_third_party_resource_with_http_info(name, body, **kwargs) return data - def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): + def patch_third_party_resource_with_http_info(self, name, body, **kwargs): """ - partially update the specified Ingress + partially update the specified ThirdPartyResource This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_ingress_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_third_party_resource_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ThirdPartyResource (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: V1beta1ThirdPartyResource If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5053,29 +8509,24 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_ingress" % key + " to method patch_third_party_resource" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress`") + raise ValueError("Missing the required parameter `name` when calling `patch_third_party_resource`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`") + raise ValueError("Missing the required parameter `body` when calling `patch_third_party_resource`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -5107,7 +8558,7 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Ingress', + response_type='V1beta1ThirdPartyResource', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5115,57 +8566,59 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): + def read_namespaced_daemon_set(self, name, namespace, **kwargs): """ - partially update status of the specified Ingress + read the specified DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_ingress_status(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_daemon_set(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): """ - partially update status of the specified Ingress + read the specified DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_ingress_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_daemon_set_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5176,24 +8629,21 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_ingress_status" % key + " to method read_namespaced_daemon_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress_status`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5203,6 +8653,10 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] header_params = {} @@ -5210,27 +8664,25 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Ingress', + response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5238,57 +8690,55 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): + def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): """ - partially update the specified NetworkPolicy + read status of the specified DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_network_policy(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_daemon_set_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the NetworkPolicy (required) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1NetworkPolicy + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): """ - partially update the specified NetworkPolicy + read status of the specified DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_network_policy_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_daemon_set_status_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the NetworkPolicy (required) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1NetworkPolicy + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5299,24 +8749,21 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_network_policy" % key + " to method read_namespaced_daemon_set_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_network_policy`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_network_policy`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_network_policy`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5333,27 +8780,25 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1NetworkPolicy', + response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5361,57 +8806,59 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): + def read_namespaced_deployment(self, name, namespace, **kwargs): """ - partially update the specified ReplicaSet + read the specified Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_deployment(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicaSet (required) + :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ReplicaSet + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): """ - partially update the specified ReplicaSet + read the specified Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_deployment_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicaSet (required) + :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ReplicaSet + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5422,24 +8869,21 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_replica_set" % key + " to method read_namespaced_deployment" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5449,6 +8893,10 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] header_params = {} @@ -5456,27 +8904,25 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ReplicaSet', + response_type='V1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5484,57 +8930,55 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): + def read_namespaced_deployment_status(self, name, namespace, **kwargs): """ - partially update status of the specified ReplicaSet + read status of the specified Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_replica_set_status(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_deployment_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicaSet (required) + :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ReplicaSet + :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): """ - partially update status of the specified ReplicaSet + read status of the specified Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicaSet (required) + :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ReplicaSet + :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5545,24 +8989,21 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_replica_set_status" % key + " to method read_namespaced_deployment_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5579,27 +9020,25 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ReplicaSet', + response_type='V1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5607,57 +9046,55 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_replicasets_scale(self, name, namespace, body, **kwargs): + def read_namespaced_deployments_scale(self, name, namespace, **kwargs): """ - partially update scale of the specified Scale + read scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_replicasets_scale(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_deployments_scale(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_replicasets_scale_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_deployments_scale_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_replicasets_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_deployments_scale_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_replicasets_scale_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_deployments_scale_with_http_info(self, name, namespace, **kwargs): """ - partially update scale of the specified Scale + read scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_replicasets_scale_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_deployments_scale_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5668,24 +9105,21 @@ def patch_namespaced_replicasets_scale_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_replicasets_scale" % key + " to method read_namespaced_deployments_scale" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replicasets_scale`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployments_scale`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replicasets_scale`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replicasets_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployments_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5702,27 +9136,25 @@ def patch_namespaced_replicasets_scale_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Scale', + response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5730,57 +9162,59 @@ def patch_namespaced_replicasets_scale_with_http_info(self, name, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_replicationcontrollers_scale(self, name, namespace, body, **kwargs): + def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): """ - partially update scale of the specified Scale + read the specified HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_replicationcontrollers_scale(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_horizontal_pod_autoscaler(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_replicationcontrollers_scale_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): """ - partially update scale of the specified Scale + read the specified HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5791,24 +9225,21 @@ def patch_namespaced_replicationcontrollers_scale_with_http_info(self, name, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_replicationcontrollers_scale" % key + " to method read_namespaced_horizontal_pod_autoscaler" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replicationcontrollers_scale`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replicationcontrollers_scale`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replicationcontrollers_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5818,6 +9249,10 @@ def patch_namespaced_replicationcontrollers_scale_with_http_info(self, name, nam query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] header_params = {} @@ -5825,27 +9260,25 @@ def patch_namespaced_replicationcontrollers_scale_with_http_info(self, name, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Scale', + response_type='V1beta1HorizontalPodAutoscaler', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5853,55 +9286,55 @@ def patch_namespaced_replicationcontrollers_scale_with_http_info(self, name, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_pod_security_policy(self, name, body, **kwargs): + def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kwargs): """ - partially update the specified PodSecurityPolicy + read status of the specified HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_pod_security_policy(name, body, callback=callback_function) + >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PodSecurityPolicy (required) - :param object body: (required) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1PodSecurityPolicy + :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_pod_security_policy_with_http_info(name, body, **kwargs) + return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_pod_security_policy_with_http_info(name, body, **kwargs) + (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) return data - def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): + def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): """ - partially update the specified PodSecurityPolicy + read status of the specified HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_pod_security_policy_with_http_info(name, body, callback=callback_function) + >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PodSecurityPolicy (required) - :param object body: (required) + :param str name: name of the HorizontalPodAutoscaler (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1PodSecurityPolicy + :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5912,24 +9345,26 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_pod_security_policy" % key + " to method read_namespaced_horizontal_pod_autoscaler_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_pod_security_policy`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_pod_security_policy`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/podsecuritypolicies/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -5941,27 +9376,25 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1PodSecurityPolicy', + response_type='V1beta1HorizontalPodAutoscaler', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5969,55 +9402,59 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_third_party_resource(self, name, body, **kwargs): + def read_namespaced_ingress(self, name, namespace, **kwargs): """ - partially update the specified ThirdPartyResource + read the specified Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_third_party_resource(name, body, callback=callback_function) + >>> thread = api.read_namespaced_ingress(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ThirdPartyResource (required) - :param object body: (required) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ThirdPartyResource + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_third_party_resource_with_http_info(name, body, **kwargs) + return self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_third_party_resource_with_http_info(name, body, **kwargs) + (data) = self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) return data - def patch_third_party_resource_with_http_info(self, name, body, **kwargs): + def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): """ - partially update the specified ThirdPartyResource + read the specified Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_third_party_resource_with_http_info(name, body, callback=callback_function) + >>> thread = api.read_namespaced_ingress_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ThirdPartyResource (required) - :param object body: (required) + :param str name: name of the Ingress (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ThirdPartyResource + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6028,28 +9465,34 @@ def patch_third_party_resource_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_third_party_resource" % key + " to method read_namespaced_ingress" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_third_party_resource`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_third_party_resource`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] header_params = {} @@ -6057,27 +9500,25 @@ def patch_third_party_resource_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ThirdPartyResource', + response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6085,59 +9526,55 @@ def patch_third_party_resource_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_daemon_set(self, name, namespace, **kwargs): + def read_namespaced_ingress_status(self, name, namespace, **kwargs): """ - read the specified DaemonSet + read status of the specified Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_daemon_set(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_ingress_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) + :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1DaemonSet + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwargs): """ - read the specified DaemonSet + read status of the specified Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_daemon_set_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_ingress_status_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) + :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1DaemonSet + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6148,21 +9585,21 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_daemon_set" % key + " to method read_namespaced_ingress_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -6172,10 +9609,6 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] header_params = {} @@ -6201,7 +9634,7 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DaemonSet', + response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6209,55 +9642,59 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): + def read_namespaced_job(self, name, namespace, **kwargs): """ - read status of the specified DaemonSet + read the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_daemon_set_status(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_job(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_job_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_job_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): """ - read status of the specified DaemonSet + read the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_daemon_set_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_job_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6268,21 +9705,21 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_daemon_set_status" % key + " to method read_namespaced_job" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_job`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_job`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -6292,6 +9729,10 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] header_params = {} @@ -6317,7 +9758,7 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DaemonSet', + response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6325,59 +9766,55 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_deployment(self, name, namespace, **kwargs): + def read_namespaced_job_status(self, name, namespace, **kwargs): """ - read the specified Deployment + read status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_deployment(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_job_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: ExtensionsV1beta1Deployment + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): """ - read the specified Deployment + read status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_deployment_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_job_status_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: ExtensionsV1beta1Deployment + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6388,21 +9825,21 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_deployment" % key + " to method read_namespaced_job_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_job_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_job_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -6412,10 +9849,6 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] header_params = {} @@ -6441,7 +9874,7 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Deployment', + response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6449,55 +9882,59 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_deployment_status(self, name, namespace, **kwargs): + def read_namespaced_network_policy(self, name, namespace, **kwargs): """ - read status of the specified Deployment + read the specified NetworkPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_deployment_status(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_network_policy(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): """ - read status of the specified Deployment + read the specified NetworkPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_network_policy_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6508,21 +9945,21 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_deployment_status" % key + " to method read_namespaced_network_policy" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_network_policy`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_network_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -6532,6 +9969,10 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] header_params = {} @@ -6557,7 +9998,7 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Deployment', + response_type='V1beta1NetworkPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6565,55 +10006,59 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_deployments_scale(self, name, namespace, **kwargs): + def read_namespaced_replica_set(self, name, namespace, **kwargs): """ - read scale of the specified Scale + read the specified ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_deployments_scale(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_replica_set(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_deployments_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_deployments_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_deployments_scale_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): """ - read scale of the specified Scale + read the specified ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_deployments_scale_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_replica_set_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6624,21 +10069,21 @@ def read_namespaced_deployments_scale_with_http_info(self, name, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_deployments_scale" % key + " to method read_namespaced_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -6648,6 +10093,10 @@ def read_namespaced_deployments_scale_with_http_info(self, name, namespace, **kw query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] header_params = {} @@ -6673,7 +10122,7 @@ def read_namespaced_deployments_scale_with_http_info(self, name, namespace, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Scale', + response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6681,59 +10130,55 @@ def read_namespaced_deployments_scale_with_http_info(self, name, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_ingress(self, name, namespace, **kwargs): + def read_namespaced_replica_set_status(self, name, namespace, **kwargs): """ - read the specified Ingress + read status of the specified ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_ingress(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_replica_set_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) + :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1Ingress + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): """ - read the specified Ingress + read status of the specified ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_ingress_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_replica_set_status_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) + :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1Ingress + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6744,21 +10189,21 @@ def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_ingress" % key + " to method read_namespaced_replica_set_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -6768,10 +10213,6 @@ def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] header_params = {} @@ -6797,7 +10238,7 @@ def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Ingress', + response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6805,50 +10246,50 @@ def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_ingress_status(self, name, namespace, **kwargs): + def read_namespaced_replicasets_scale(self, name, namespace, **kwargs): """ - read status of the specified Ingress + read scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_ingress_status(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_replicasets_scale(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replicasets_scale_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replicasets_scale_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kwargs): """ - read status of the specified Ingress + read scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_ingress_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_replicasets_scale_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -6864,21 +10305,21 @@ def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_ingress_status" % key + " to method read_namespaced_replicasets_scale" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replicasets_scale`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replicasets_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -6913,7 +10354,7 @@ def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Ingress', + response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6921,59 +10362,55 @@ def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_network_policy(self, name, namespace, **kwargs): + def read_namespaced_replicationcontrollers_scale(self, name, namespace, **kwargs): """ - read the specified NetworkPolicy + read scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_network_policy(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_replicationcontrollers_scale(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the NetworkPolicy (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1NetworkPolicy + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_replicationcontrollers_scale_with_http_info(self, name, namespace, **kwargs): """ - read the specified NetworkPolicy + read scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_network_policy_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the NetworkPolicy (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1NetworkPolicy + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6984,21 +10421,21 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_network_policy" % key + " to method read_namespaced_replicationcontrollers_scale" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_network_policy`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replicationcontrollers_scale`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_network_policy`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replicationcontrollers_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -7008,10 +10445,6 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] header_params = {} @@ -7037,7 +10470,7 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1NetworkPolicy', + response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7045,59 +10478,57 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_replica_set(self, name, namespace, **kwargs): + def read_pod_security_policy(self, name, **kwargs): """ - read the specified ReplicaSet + read the specified PodSecurityPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_replica_set(name, namespace, callback=callback_function) + >>> thread = api.read_pod_security_policy(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicaSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1ReplicaSet + :return: V1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + return self.read_pod_security_policy_with_http_info(name, **kwargs) else: - (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_pod_security_policy_with_http_info(name, **kwargs) return data - def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): + def read_pod_security_policy_with_http_info(self, name, **kwargs): """ - read the specified ReplicaSet + read the specified PodSecurityPolicy This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_replica_set_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_pod_security_policy_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicaSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1ReplicaSet + :return: V1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params = ['name', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7108,26 +10539,21 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_replica_set" % key + " to method read_pod_security_policy" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `read_pod_security_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -7161,7 +10587,7 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ReplicaSet', + response_type='V1beta1PodSecurityPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7169,55 +10595,57 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_replica_set_status(self, name, namespace, **kwargs): + def read_third_party_resource(self, name, **kwargs): """ - read status of the specified ReplicaSet + read the specified ThirdPartyResource This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_replica_set_status(name, namespace, callback=callback_function) + >>> thread = api.read_third_party_resource(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicaSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ThirdPartyResource (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ReplicaSet + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1ThirdPartyResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) + return self.read_third_party_resource_with_http_info(name, **kwargs) else: - (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_third_party_resource_with_http_info(name, **kwargs) return data - def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): + def read_third_party_resource_with_http_info(self, name, **kwargs): """ - read status of the specified ReplicaSet + read the specified ThirdPartyResource This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_replica_set_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_third_party_resource_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ReplicaSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ThirdPartyResource (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ReplicaSet + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1beta1ThirdPartyResource If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = ['name', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7228,30 +10656,29 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_replica_set_status" % key + " to method read_third_party_resource" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") + raise ValueError("Missing the required parameter `name` when calling `read_third_party_resource`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] header_params = {} @@ -7277,7 +10704,7 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ReplicaSet', + response_type='V1beta1ThirdPartyResource', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7285,55 +10712,57 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_replicasets_scale(self, name, namespace, **kwargs): + def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): """ - read scale of the specified Scale + replace the specified DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_replicasets_scale(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_daemon_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_replicasets_scale_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_replicasets_scale_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): """ - read scale of the specified Scale + replace the specified DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_replicasets_scale_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_daemon_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7344,21 +10773,24 @@ def read_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_replicasets_scale" % key + " to method replace_namespaced_daemon_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replicasets_scale`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replicasets_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -7375,6 +10807,8 @@ def read_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kw local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -7386,14 +10820,14 @@ def read_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Scale', + response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7401,55 +10835,57 @@ def read_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_replicationcontrollers_scale(self, name, namespace, **kwargs): + def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): """ - read scale of the specified Scale + replace status of the specified DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_replicationcontrollers_scale(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_daemon_set_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_replicationcontrollers_scale_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): """ - read scale of the specified Scale + replace status of the specified DaemonSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7460,21 +10896,24 @@ def read_namespaced_replicationcontrollers_scale_with_http_info(self, name, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_replicationcontrollers_scale" % key + " to method replace_namespaced_daemon_set_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replicationcontrollers_scale`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replicationcontrollers_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -7491,6 +10930,8 @@ def read_namespaced_replicationcontrollers_scale_with_http_info(self, name, name local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -7502,14 +10943,14 @@ def read_namespaced_replicationcontrollers_scale_with_http_info(self, name, name # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Scale', + response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7517,57 +10958,57 @@ def read_namespaced_replicationcontrollers_scale_with_http_info(self, name, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_pod_security_policy(self, name, **kwargs): + def replace_namespaced_deployment(self, name, namespace, body, **kwargs): """ - read the specified PodSecurityPolicy + replace the specified Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_pod_security_policy(name, callback=callback_function) + >>> thread = api.replace_namespaced_deployment(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PodSecurityPolicy (required) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1PodSecurityPolicy + :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_pod_security_policy_with_http_info(name, **kwargs) + return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_pod_security_policy_with_http_info(name, **kwargs) + (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) return data - def read_pod_security_policy_with_http_info(self, name, **kwargs): + def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): """ - read the specified PodSecurityPolicy + replace the specified Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_pod_security_policy_with_http_info(name, callback=callback_function) + >>> thread = api.replace_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the PodSecurityPolicy (required) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1PodSecurityPolicy + :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7578,29 +11019,33 @@ def read_pod_security_policy_with_http_info(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_pod_security_policy" % key + " to method replace_namespaced_deployment" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_pod_security_policy`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/podsecuritypolicies/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] header_params = {} @@ -7608,6 +11053,8 @@ def read_pod_security_policy_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -7619,14 +11066,14 @@ def read_pod_security_policy_with_http_info(self, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1PodSecurityPolicy', + response_type='V1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7634,57 +11081,57 @@ def read_pod_security_policy_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_third_party_resource(self, name, **kwargs): + def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): """ - read the specified ThirdPartyResource + replace status of the specified Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_third_party_resource(name, callback=callback_function) + >>> thread = api.replace_namespaced_deployment_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ThirdPartyResource (required) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1ThirdPartyResource + :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_third_party_resource_with_http_info(name, **kwargs) + return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_third_party_resource_with_http_info(name, **kwargs) + (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) return data - def read_third_party_resource_with_http_info(self, name, **kwargs): + def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): """ - read the specified ThirdPartyResource + replace status of the specified Deployment This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_third_party_resource_with_http_info(name, callback=callback_function) + >>> thread = api.replace_namespaced_deployment_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ThirdPartyResource (required) + :param str name: name of the Deployment (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1ThirdPartyResource + :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7695,29 +11142,33 @@ def read_third_party_resource_with_http_info(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_third_party_resource" % key + " to method replace_namespaced_deployment_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_third_party_resource`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] header_params = {} @@ -7725,6 +11176,8 @@ def read_third_party_resource_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) @@ -7736,14 +11189,14 @@ def read_third_party_resource_with_http_info(self, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + return self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ThirdPartyResource', + response_type='V1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7751,52 +11204,52 @@ def read_third_party_resource_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): + def replace_namespaced_deployments_scale(self, name, namespace, body, **kwargs): """ - replace the specified DaemonSet + replace scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_daemon_set(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_deployments_scale(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1DaemonSet body: (required) + :param V1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_deployments_scale_with_http_info(self, name, namespace, body, **kwargs): """ - replace the specified DaemonSet + replace scale of the specified Scale This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_daemon_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_deployments_scale_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1DaemonSet body: (required) + :param V1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -7812,24 +11265,24 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_daemon_set" % key + " to method replace_namespaced_deployments_scale" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployments_scale`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployments_scale`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployments_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -7866,7 +11319,7 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DaemonSet', + response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7874,52 +11327,52 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): + def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): """ - replace status of the specified DaemonSet + replace the specified HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_daemon_set_status(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) + :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1DaemonSet body: (required) + :param V1beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): """ - replace status of the specified DaemonSet + replace the specified HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) + :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1DaemonSet body: (required) + :param V1beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ @@ -7935,24 +11388,24 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_daemon_set_status" % key + " to method replace_namespaced_horizontal_pod_autoscaler" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -7989,7 +11442,7 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DaemonSet', + response_type='V1beta1HorizontalPodAutoscaler', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7997,52 +11450,52 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_deployment(self, name, namespace, body, **kwargs): + def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): """ - replace the specified Deployment + replace status of the specified HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_deployment(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1Deployment body: (required) + :param V1beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): """ - replace the specified Deployment + replace status of the specified HorizontalPodAutoscaler This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1Deployment body: (required) + :param V1beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ @@ -8058,24 +11511,24 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_deployment" % key + " to method replace_namespaced_horizontal_pod_autoscaler_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -8112,7 +11565,7 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Deployment', + response_type='V1beta1HorizontalPodAutoscaler', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8120,52 +11573,52 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): + def replace_namespaced_ingress(self, name, namespace, body, **kwargs): """ - replace status of the specified Deployment + replace the specified Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_deployment_status(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_ingress(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1Deployment body: (required) + :param V1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): """ - replace status of the specified Deployment + replace the specified Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_deployment_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_ingress_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Deployment (required) + :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1Deployment body: (required) + :param V1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ @@ -8181,24 +11634,24 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_deployment_status" % key + " to method replace_namespaced_ingress" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -8235,7 +11688,7 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Deployment', + response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8243,52 +11696,52 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_deployments_scale(self, name, namespace, body, **kwargs): + def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs): """ - replace scale of the specified Scale + replace status of the specified Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_deployments_scale(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_ingress_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1Scale body: (required) + :param V1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_deployments_scale_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): """ - replace scale of the specified Scale + replace status of the specified Ingress This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_deployments_scale_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_ingress_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Scale (required) + :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1Scale body: (required) + :param V1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ @@ -8304,24 +11757,24 @@ def replace_namespaced_deployments_scale_with_http_info(self, name, namespace, b if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_deployments_scale" % key + " to method replace_namespaced_ingress_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress_status`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -8358,7 +11811,7 @@ def replace_namespaced_deployments_scale_with_http_info(self, name, namespace, b body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Scale', + response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8366,52 +11819,52 @@ def replace_namespaced_deployments_scale_with_http_info(self, name, namespace, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_ingress(self, name, namespace, body, **kwargs): + def replace_namespaced_job(self, name, namespace, body, **kwargs): """ - replace the specified Ingress + replace the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_ingress(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_job(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Ingress body: (required) + :param V1beta1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): """ - replace the specified Ingress + replace the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_ingress_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Ingress body: (required) + :param V1beta1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ @@ -8427,24 +11880,24 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_ingress" % key + " to method replace_namespaced_job" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -8481,7 +11934,7 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Ingress', + response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8489,52 +11942,52 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs): + def replace_namespaced_job_status(self, name, namespace, body, **kwargs): """ - replace status of the specified Ingress + replace status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_ingress_status(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_job_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Ingress body: (required) + :param V1beta1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): """ - replace status of the specified Ingress + replace status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_ingress_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_job_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the Ingress (required) + :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Ingress body: (required) + :param V1beta1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ @@ -8550,24 +12003,24 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_ingress_status" % key + " to method replace_namespaced_job_status" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job_status`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job_status`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -8604,7 +12057,7 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Ingress', + response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8996,9 +12449,9 @@ def replace_namespaced_replicasets_scale(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1Scale body: (required) + :param V1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -9024,9 +12477,9 @@ def replace_namespaced_replicasets_scale_with_http_info(self, name, namespace, b for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1Scale body: (required) + :param V1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -9096,7 +12549,7 @@ def replace_namespaced_replicasets_scale_with_http_info(self, name, namespace, b body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Scale', + response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9119,9 +12572,9 @@ def replace_namespaced_replicationcontrollers_scale(self, name, namespace, body, for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1Scale body: (required) + :param V1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -9147,9 +12600,9 @@ def replace_namespaced_replicationcontrollers_scale_with_http_info(self, name, n for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param ExtensionsV1beta1Scale body: (required) + :param V1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -9219,7 +12672,7 @@ def replace_namespaced_replicationcontrollers_scale_with_http_info(self, name, n body=body_params, post_params=form_params, files=local_var_files, - response_type='ExtensionsV1beta1Scale', + response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/logs_api.py b/kubernetes/client/apis/logs_api.py deleted file mode 100644 index ccc3ce0527..0000000000 --- a/kubernetes/client/apis/logs_api.py +++ /dev/null @@ -1,223 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class LogsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def log_file_handler(self, logpath, **kwargs): - """ - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.log_file_handler(logpath, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str logpath: path to the log (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.log_file_handler_with_http_info(logpath, **kwargs) - else: - (data) = self.log_file_handler_with_http_info(logpath, **kwargs) - return data - - def log_file_handler_with_http_info(self, logpath, **kwargs): - """ - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.log_file_handler_with_http_info(logpath, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str logpath: path to the log (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['logpath'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method log_file_handler" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'logpath' is set - if ('logpath' not in params) or (params['logpath'] is None): - raise ValueError("Missing the required parameter `logpath` when calling `log_file_handler`") - - - collection_formats = {} - - resource_path = '/logs/{logpath}'.replace('{format}', 'json') - path_params = {} - if 'logpath' in params: - path_params['logpath'] = params['logpath'] - - query_params = {} - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def log_file_list_handler(self, **kwargs): - """ - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.log_file_list_handler(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.log_file_list_handler_with_http_info(**kwargs) - else: - (data) = self.log_file_list_handler_with_http_info(**kwargs) - return data - - def log_file_list_handler_with_http_info(self, **kwargs): - """ - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.log_file_list_handler_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method log_file_list_handler" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/logs/'.replace('{format}', 'json') - path_params = {} - - query_params = {} - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/oapi_api.py b/kubernetes/client/apis/oapi_api.py new file mode 100644 index 0000000000..ce5686150c --- /dev/null +++ b/kubernetes/client/apis/oapi_api.py @@ -0,0 +1,34529 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class OapiApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def connect_post_namespaced_binary_build_request_options_instantiatebinary(self, name, namespace, **kwargs): + """ + connect POST requests to instantiatebinary of BinaryBuildRequestOptions + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_binary_build_request_options_instantiatebinary(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the BinaryBuildRequestOptions (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str as_file: asFile determines if the binary should be created as a file within the source rather than extracted as an archive + :param str revision_author_email: revision.authorEmail of the source control user + :param str revision_author_name: revision.authorName of the source control user + :param str revision_commit: revision.commit is the value identifying a specific commit + :param str revision_committer_email: revision.committerEmail of the source control user + :param str revision_committer_name: revision.committerName of the source control user + :param str revision_message: revision.message is the description of a specific commit + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_post_namespaced_binary_build_request_options_instantiatebinary_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_post_namespaced_binary_build_request_options_instantiatebinary_with_http_info(name, namespace, **kwargs) + return data + + def connect_post_namespaced_binary_build_request_options_instantiatebinary_with_http_info(self, name, namespace, **kwargs): + """ + connect POST requests to instantiatebinary of BinaryBuildRequestOptions + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_binary_build_request_options_instantiatebinary_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the BinaryBuildRequestOptions (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str as_file: asFile determines if the binary should be created as a file within the source rather than extracted as an archive + :param str revision_author_email: revision.authorEmail of the source control user + :param str revision_author_name: revision.authorName of the source control user + :param str revision_commit: revision.commit is the value identifying a specific commit + :param str revision_committer_email: revision.committerEmail of the source control user + :param str revision_committer_name: revision.committerName of the source control user + :param str revision_message: revision.message is the description of a specific commit + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'as_file', 'revision_author_email', 'revision_author_name', 'revision_commit', 'revision_committer_email', 'revision_committer_name', 'revision_message'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_post_namespaced_binary_build_request_options_instantiatebinary" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_binary_build_request_options_instantiatebinary`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_binary_build_request_options_instantiatebinary`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/buildconfigs/{name}/instantiatebinary'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'as_file' in params: + query_params['asFile'] = params['as_file'] + if 'revision_author_email' in params: + query_params['revision.authorEmail'] = params['revision_author_email'] + if 'revision_author_name' in params: + query_params['revision.authorName'] = params['revision_author_name'] + if 'revision_commit' in params: + query_params['revision.commit'] = params['revision_commit'] + if 'revision_committer_email' in params: + query_params['revision.committerEmail'] = params['revision_committer_email'] + if 'revision_committer_name' in params: + query_params['revision.committerName'] = params['revision_committer_name'] + if 'revision_message' in params: + query_params['revision.message'] = params['revision_message'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_post_namespaced_status_webhooks(self, name, namespace, **kwargs): + """ + connect POST requests to webhooks of Status + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_status_webhooks(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Status (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_post_namespaced_status_webhooks_with_http_info(name, namespace, **kwargs) + else: + (data) = self.connect_post_namespaced_status_webhooks_with_http_info(name, namespace, **kwargs) + return data + + def connect_post_namespaced_status_webhooks_with_http_info(self, name, namespace, **kwargs): + """ + connect POST requests to webhooks of Status + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_status_webhooks_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Status (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_post_namespaced_status_webhooks" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_status_webhooks`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_status_webhooks`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/buildconfigs/{name}/webhooks'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_post_namespaced_status_webhooks_with_path(self, name, namespace, path, **kwargs): + """ + connect POST requests to webhooks of Status + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_status_webhooks_with_path(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Status (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.connect_post_namespaced_status_webhooks_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.connect_post_namespaced_status_webhooks_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def connect_post_namespaced_status_webhooks_with_path_with_http_info(self, name, namespace, path, **kwargs): + """ + connect POST requests to webhooks of Status + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_status_webhooks_with_path_with_http_info(name, namespace, path, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Status (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str path: path to the resource (required) + :param str path2: Path is the URL path to use for the current proxy request to pod. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'path', 'path2'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_post_namespaced_status_webhooks_with_path" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_status_webhooks_with_path`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_status_webhooks_with_path`") + # verify the required parameter 'path' is set + if ('path' not in params) or (params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_status_webhooks_with_path`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/buildconfigs/{name}/webhooks/{path}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'path' in params: + path_params['path'] = params['path'] + + query_params = {} + if 'path2' in params: + query_params['path'] = params['path2'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['*/*']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_build_config_for_all_namespaces(self, body, **kwargs): + """ + create a BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_build_config_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1BuildConfig body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1BuildConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_build_config_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_build_config_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_build_config_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_build_config_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1BuildConfig body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1BuildConfig + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_build_config_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_build_config_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/buildconfigs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1BuildConfig', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_build_for_all_namespaces(self, body, **kwargs): + """ + create a Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_build_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Build body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_build_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_build_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_build_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_build_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Build body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_build_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_build_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/builds'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Build', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_cluster_network(self, body, **kwargs): + """ + create a ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_cluster_network(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ClusterNetwork body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterNetwork + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_cluster_network_with_http_info(body, **kwargs) + else: + (data) = self.create_cluster_network_with_http_info(body, **kwargs) + return data + + def create_cluster_network_with_http_info(self, body, **kwargs): + """ + create a ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_cluster_network_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ClusterNetwork body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterNetwork + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_cluster_network" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_network`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusternetworks'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterNetwork', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_cluster_policy(self, body, **kwargs): + """ + create a ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_cluster_policy(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ClusterPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_cluster_policy_with_http_info(body, **kwargs) + else: + (data) = self.create_cluster_policy_with_http_info(body, **kwargs) + return data + + def create_cluster_policy_with_http_info(self, body, **kwargs): + """ + create a ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_cluster_policy_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ClusterPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_cluster_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicies'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_cluster_policy_binding(self, body, **kwargs): + """ + create a ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_cluster_policy_binding(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ClusterPolicyBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterPolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_cluster_policy_binding_with_http_info(body, **kwargs) + else: + (data) = self.create_cluster_policy_binding_with_http_info(body, **kwargs) + return data + + def create_cluster_policy_binding_with_http_info(self, body, **kwargs): + """ + create a ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_cluster_policy_binding_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ClusterPolicyBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterPolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_cluster_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_policy_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicybindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterPolicyBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_cluster_resource_quota(self, body, **kwargs): + """ + create a ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_cluster_resource_quota(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ClusterResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_cluster_resource_quota_with_http_info(body, **kwargs) + else: + (data) = self.create_cluster_resource_quota_with_http_info(body, **kwargs) + return data + + def create_cluster_resource_quota_with_http_info(self, body, **kwargs): + """ + create a ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_cluster_resource_quota_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ClusterResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_cluster_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_resource_quota`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterresourcequotas'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_cluster_role(self, body, **kwargs): + """ + create a ClusterRole + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_cluster_role(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ClusterRole body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_cluster_role_with_http_info(body, **kwargs) + else: + (data) = self.create_cluster_role_with_http_info(body, **kwargs) + return data + + def create_cluster_role_with_http_info(self, body, **kwargs): + """ + create a ClusterRole + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_cluster_role_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ClusterRole body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_role`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterroles'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRole', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_cluster_role_binding(self, body, **kwargs): + """ + create a ClusterRoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_cluster_role_binding(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ClusterRoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_cluster_role_binding_with_http_info(body, **kwargs) + else: + (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) + return data + + def create_cluster_role_binding_with_http_info(self, body, **kwargs): + """ + create a ClusterRoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_cluster_role_binding_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ClusterRoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterrolebindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_deployment_config_for_all_namespaces(self, body, **kwargs): + """ + create a DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_deployment_config_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeploymentConfig body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_deployment_config_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_deployment_config_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_deployment_config_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_deployment_config_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeploymentConfig body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_deployment_config_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_deployment_config_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/deploymentconfigs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentConfig', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_deployment_config_rollback_for_all_namespaces(self, body, **kwargs): + """ + create a DeploymentConfigRollback + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_deployment_config_rollback_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeploymentConfigRollback body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfigRollback + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_deployment_config_rollback_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_deployment_config_rollback_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_deployment_config_rollback_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a DeploymentConfigRollback + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_deployment_config_rollback_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeploymentConfigRollback body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfigRollback + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_deployment_config_rollback_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_deployment_config_rollback_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/deploymentconfigrollbacks'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentConfigRollback', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_egress_network_policy_for_all_namespaces(self, body, **kwargs): + """ + create an EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_egress_network_policy_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1EgressNetworkPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1EgressNetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_egress_network_policy_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_egress_network_policy_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_egress_network_policy_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create an EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_egress_network_policy_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1EgressNetworkPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1EgressNetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_egress_network_policy_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_egress_network_policy_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/egressnetworkpolicies'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EgressNetworkPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_group(self, body, **kwargs): + """ + create a Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_group(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Group body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Group + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_group_with_http_info(body, **kwargs) + else: + (data) = self.create_group_with_http_info(body, **kwargs) + return data + + def create_group_with_http_info(self, body, **kwargs): + """ + create a Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_group_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Group body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Group + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_group" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_group`") + + + collection_formats = {} + + resource_path = '/oapi/v1/groups'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Group', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_host_subnet(self, body, **kwargs): + """ + create a HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_host_subnet(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1HostSubnet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HostSubnet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_host_subnet_with_http_info(body, **kwargs) + else: + (data) = self.create_host_subnet_with_http_info(body, **kwargs) + return data + + def create_host_subnet_with_http_info(self, body, **kwargs): + """ + create a HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_host_subnet_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1HostSubnet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HostSubnet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_host_subnet" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_host_subnet`") + + + collection_formats = {} + + resource_path = '/oapi/v1/hostsubnets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HostSubnet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_identity(self, body, **kwargs): + """ + create an Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_identity(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Identity body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Identity + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_identity_with_http_info(body, **kwargs) + else: + (data) = self.create_identity_with_http_info(body, **kwargs) + return data + + def create_identity_with_http_info(self, body, **kwargs): + """ + create an Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_identity_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Identity body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Identity + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_identity" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_identity`") + + + collection_formats = {} + + resource_path = '/oapi/v1/identities'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Identity', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_image(self, body, **kwargs): + """ + create an Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_image(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Image body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Image + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_image_with_http_info(body, **kwargs) + else: + (data) = self.create_image_with_http_info(body, **kwargs) + return data + + def create_image_with_http_info(self, body, **kwargs): + """ + create an Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_image_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Image body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Image + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_image" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_image`") + + + collection_formats = {} + + resource_path = '/oapi/v1/images'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Image', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_image_signature(self, body, **kwargs): + """ + create an ImageSignature + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_image_signature(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageSignature body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageSignature + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_image_signature_with_http_info(body, **kwargs) + else: + (data) = self.create_image_signature_with_http_info(body, **kwargs) + return data + + def create_image_signature_with_http_info(self, body, **kwargs): + """ + create an ImageSignature + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_image_signature_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageSignature body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageSignature + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_image_signature" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_image_signature`") + + + collection_formats = {} + + resource_path = '/oapi/v1/imagesignatures'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageSignature', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_image_stream_for_all_namespaces(self, body, **kwargs): + """ + create an ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_image_stream_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStream body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_image_stream_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_image_stream_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_image_stream_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create an ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_image_stream_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStream body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_image_stream_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_image_stream_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/imagestreams'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStream', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_image_stream_import_for_all_namespaces(self, body, **kwargs): + """ + create an ImageStreamImport + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_image_stream_import_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStreamImport body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamImport + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_image_stream_import_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_image_stream_import_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_image_stream_import_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create an ImageStreamImport + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_image_stream_import_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStreamImport body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamImport + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_image_stream_import_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_image_stream_import_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/imagestreamimports'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamImport', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_image_stream_mapping_for_all_namespaces(self, body, **kwargs): + """ + create an ImageStreamMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_image_stream_mapping_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStreamMapping body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamMapping + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_image_stream_mapping_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_image_stream_mapping_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_image_stream_mapping_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create an ImageStreamMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_image_stream_mapping_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStreamMapping body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamMapping + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_image_stream_mapping_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_image_stream_mapping_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/imagestreammappings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamMapping', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_image_stream_tag_for_all_namespaces(self, body, **kwargs): + """ + create an ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_image_stream_tag_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStreamTag body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamTag + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_image_stream_tag_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_image_stream_tag_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_image_stream_tag_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create an ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_image_stream_tag_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStreamTag body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamTag + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_image_stream_tag_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_image_stream_tag_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/imagestreamtags'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamTag', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_local_resource_access_review_for_all_namespaces(self, body, **kwargs): + """ + create a LocalResourceAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_local_resource_access_review_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1LocalResourceAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LocalResourceAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_local_resource_access_review_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_local_resource_access_review_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_local_resource_access_review_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a LocalResourceAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_local_resource_access_review_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1LocalResourceAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LocalResourceAccessReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_local_resource_access_review_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_local_resource_access_review_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/localresourceaccessreviews'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LocalResourceAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_local_subject_access_review_for_all_namespaces(self, body, **kwargs): + """ + create a LocalSubjectAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_local_subject_access_review_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1LocalSubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LocalSubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_local_subject_access_review_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_local_subject_access_review_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_local_subject_access_review_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a LocalSubjectAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_local_subject_access_review_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1LocalSubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LocalSubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_local_subject_access_review_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_local_subject_access_review_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/localsubjectaccessreviews'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LocalSubjectAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_build(self, namespace, body, **kwargs): + """ + create a Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_build(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Build body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_build_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_build_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_build_with_http_info(self, namespace, body, **kwargs): + """ + create a Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_build_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Build body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_build`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_build`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/builds'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Build', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_build_config(self, namespace, body, **kwargs): + """ + create a BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_build_config(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1BuildConfig body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1BuildConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_build_config_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_build_config_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_build_config_with_http_info(self, namespace, body, **kwargs): + """ + create a BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_build_config_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1BuildConfig body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1BuildConfig + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_build_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_build_config`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_build_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/buildconfigs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1BuildConfig', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_build_request_clone(self, body, name, namespace, **kwargs): + """ + create clone of a BuildRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_build_request_clone(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1BuildRequest body: (required) + :param str name: name of the BuildRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1BuildRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_build_request_clone_with_http_info(body, name, namespace, **kwargs) + else: + (data) = self.create_namespaced_build_request_clone_with_http_info(body, name, namespace, **kwargs) + return data + + def create_namespaced_build_request_clone_with_http_info(self, body, name, namespace, **kwargs): + """ + create clone of a BuildRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_build_request_clone_with_http_info(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1BuildRequest body: (required) + :param str name: name of the BuildRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1BuildRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_build_request_clone" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_build_request_clone`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_namespaced_build_request_clone`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_build_request_clone`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/builds/{name}/clone'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1BuildRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_build_request_instantiate(self, body, name, namespace, **kwargs): + """ + create instantiate of a BuildRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_build_request_instantiate(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1BuildRequest body: (required) + :param str name: name of the BuildRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1BuildRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_build_request_instantiate_with_http_info(body, name, namespace, **kwargs) + else: + (data) = self.create_namespaced_build_request_instantiate_with_http_info(body, name, namespace, **kwargs) + return data + + def create_namespaced_build_request_instantiate_with_http_info(self, body, name, namespace, **kwargs): + """ + create instantiate of a BuildRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_build_request_instantiate_with_http_info(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1BuildRequest body: (required) + :param str name: name of the BuildRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1BuildRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_build_request_instantiate" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_build_request_instantiate`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_namespaced_build_request_instantiate`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_build_request_instantiate`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/buildconfigs/{name}/instantiate'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1BuildRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_deployment_config(self, namespace, body, **kwargs): + """ + create a DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_deployment_config(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeploymentConfig body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_deployment_config_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_deployment_config_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_deployment_config_with_http_info(self, namespace, body, **kwargs): + """ + create a DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_deployment_config_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeploymentConfig body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_deployment_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_config`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentConfig', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_deployment_config_rollback(self, body, namespace, **kwargs): + """ + create a DeploymentConfigRollback + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_deployment_config_rollback(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeploymentConfigRollback body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfigRollback + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_deployment_config_rollback_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_deployment_config_rollback_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_deployment_config_rollback_with_http_info(self, body, namespace, **kwargs): + """ + create a DeploymentConfigRollback + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_deployment_config_rollback_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeploymentConfigRollback body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfigRollback + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_deployment_config_rollback" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_config_rollback`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_config_rollback`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigrollbacks'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentConfigRollback', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_deployment_config_rollback_rollback(self, body, name, namespace, **kwargs): + """ + create rollback of a DeploymentConfigRollback + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_deployment_config_rollback_rollback(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeploymentConfigRollback body: (required) + :param str name: name of the DeploymentConfigRollback (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfigRollback + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_deployment_config_rollback_rollback_with_http_info(body, name, namespace, **kwargs) + else: + (data) = self.create_namespaced_deployment_config_rollback_rollback_with_http_info(body, name, namespace, **kwargs) + return data + + def create_namespaced_deployment_config_rollback_rollback_with_http_info(self, body, name, namespace, **kwargs): + """ + create rollback of a DeploymentConfigRollback + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_deployment_config_rollback_rollback_with_http_info(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeploymentConfigRollback body: (required) + :param str name: name of the DeploymentConfigRollback (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfigRollback + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_deployment_config_rollback_rollback" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_config_rollback_rollback`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_config_rollback_rollback`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_config_rollback_rollback`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/rollback'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentConfigRollback', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_deployment_request_instantiate(self, body, name, namespace, **kwargs): + """ + create instantiate of a DeploymentRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_deployment_request_instantiate(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeploymentRequest body: (required) + :param str name: name of the DeploymentRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_deployment_request_instantiate_with_http_info(body, name, namespace, **kwargs) + else: + (data) = self.create_namespaced_deployment_request_instantiate_with_http_info(body, name, namespace, **kwargs) + return data + + def create_namespaced_deployment_request_instantiate_with_http_info(self, body, name, namespace, **kwargs): + """ + create instantiate of a DeploymentRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_deployment_request_instantiate_with_http_info(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeploymentRequest body: (required) + :param str name: name of the DeploymentRequest (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_deployment_request_instantiate" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_request_instantiate`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_request_instantiate`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_request_instantiate`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/instantiate'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_egress_network_policy(self, namespace, body, **kwargs): + """ + create an EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_egress_network_policy(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1EgressNetworkPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1EgressNetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_egress_network_policy_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_egress_network_policy_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_egress_network_policy_with_http_info(self, namespace, body, **kwargs): + """ + create an EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_egress_network_policy_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1EgressNetworkPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1EgressNetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_egress_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_egress_network_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_egress_network_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/egressnetworkpolicies'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EgressNetworkPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_image_stream(self, namespace, body, **kwargs): + """ + create an ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_image_stream(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ImageStream body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_image_stream_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_image_stream_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_image_stream_with_http_info(self, namespace, body, **kwargs): + """ + create an ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_image_stream_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ImageStream body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_image_stream" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_image_stream`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_image_stream`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreams'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStream', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_image_stream_import(self, body, namespace, **kwargs): + """ + create an ImageStreamImport + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_image_stream_import(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStreamImport body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamImport + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_image_stream_import_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_image_stream_import_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_image_stream_import_with_http_info(self, body, namespace, **kwargs): + """ + create an ImageStreamImport + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_image_stream_import_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStreamImport body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamImport + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_image_stream_import" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_image_stream_import`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_image_stream_import`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreamimports'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamImport', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_image_stream_mapping(self, body, namespace, **kwargs): + """ + create an ImageStreamMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_image_stream_mapping(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStreamMapping body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamMapping + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_image_stream_mapping_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_image_stream_mapping_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_image_stream_mapping_with_http_info(self, body, namespace, **kwargs): + """ + create an ImageStreamMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_image_stream_mapping_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStreamMapping body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamMapping + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_image_stream_mapping" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_image_stream_mapping`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_image_stream_mapping`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreammappings'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamMapping', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_image_stream_tag(self, namespace, body, **kwargs): + """ + create an ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_image_stream_tag(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ImageStreamTag body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamTag + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_image_stream_tag_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_image_stream_tag_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_image_stream_tag_with_http_info(self, namespace, body, **kwargs): + """ + create an ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_image_stream_tag_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ImageStreamTag body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamTag + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_image_stream_tag" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_image_stream_tag`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_image_stream_tag`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreamtags'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamTag', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_local_resource_access_review(self, body, namespace, **kwargs): + """ + create a LocalResourceAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_local_resource_access_review(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1LocalResourceAccessReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LocalResourceAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_local_resource_access_review_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_local_resource_access_review_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_local_resource_access_review_with_http_info(self, body, namespace, **kwargs): + """ + create a LocalResourceAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_local_resource_access_review_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1LocalResourceAccessReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LocalResourceAccessReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_local_resource_access_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_local_resource_access_review`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_resource_access_review`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/localresourceaccessreviews'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LocalResourceAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_local_subject_access_review(self, body, namespace, **kwargs): + """ + create a LocalSubjectAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_local_subject_access_review(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1LocalSubjectAccessReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LocalSubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_local_subject_access_review_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_local_subject_access_review_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_local_subject_access_review_with_http_info(self, body, namespace, **kwargs): + """ + create a LocalSubjectAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_local_subject_access_review_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1LocalSubjectAccessReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LocalSubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_local_subject_access_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/localsubjectaccessreviews'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LocalSubjectAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_pod_security_policy_review(self, body, namespace, **kwargs): + """ + create a PodSecurityPolicyReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_pod_security_policy_review(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodSecurityPolicyReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodSecurityPolicyReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_pod_security_policy_review_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_pod_security_policy_review_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_pod_security_policy_review_with_http_info(self, body, namespace, **kwargs): + """ + create a PodSecurityPolicyReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_pod_security_policy_review_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodSecurityPolicyReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodSecurityPolicyReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_pod_security_policy_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_security_policy_review`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_security_policy_review`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/podsecuritypolicyreviews'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodSecurityPolicyReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_pod_security_policy_self_subject_review(self, body, namespace, **kwargs): + """ + create a PodSecurityPolicySelfSubjectReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_pod_security_policy_self_subject_review(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodSecurityPolicySelfSubjectReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodSecurityPolicySelfSubjectReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_pod_security_policy_self_subject_review_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_pod_security_policy_self_subject_review_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_pod_security_policy_self_subject_review_with_http_info(self, body, namespace, **kwargs): + """ + create a PodSecurityPolicySelfSubjectReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_pod_security_policy_self_subject_review_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodSecurityPolicySelfSubjectReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodSecurityPolicySelfSubjectReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_pod_security_policy_self_subject_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_security_policy_self_subject_review`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_security_policy_self_subject_review`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/podsecuritypolicyselfsubjectreviews'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodSecurityPolicySelfSubjectReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_pod_security_policy_subject_review(self, body, namespace, **kwargs): + """ + create a PodSecurityPolicySubjectReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_pod_security_policy_subject_review(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodSecurityPolicySubjectReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodSecurityPolicySubjectReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_pod_security_policy_subject_review_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_pod_security_policy_subject_review_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_pod_security_policy_subject_review_with_http_info(self, body, namespace, **kwargs): + """ + create a PodSecurityPolicySubjectReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_pod_security_policy_subject_review_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodSecurityPolicySubjectReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodSecurityPolicySubjectReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_pod_security_policy_subject_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_security_policy_subject_review`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_security_policy_subject_review`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/podsecuritypolicysubjectreviews'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodSecurityPolicySubjectReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_policy(self, namespace, body, **kwargs): + """ + create a Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_policy(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Policy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Policy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_policy_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_policy_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_policy_with_http_info(self, namespace, body, **kwargs): + """ + create a Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_policy_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Policy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Policy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policies'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Policy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_policy_binding(self, namespace, body, **kwargs): + """ + create a PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_policy_binding(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PolicyBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_policy_binding_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_policy_binding_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_policy_binding_with_http_info(self, namespace, body, **kwargs): + """ + create a PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_policy_binding_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PolicyBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_policy_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_policy_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policybindings'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PolicyBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_resource_access_review(self, body, namespace, **kwargs): + """ + create a ResourceAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_resource_access_review(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ResourceAccessReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_resource_access_review_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_resource_access_review_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_resource_access_review_with_http_info(self, body, namespace, **kwargs): + """ + create a ResourceAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_resource_access_review_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ResourceAccessReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceAccessReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_resource_access_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_resource_access_review`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_access_review`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/resourceaccessreviews'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_role(self, namespace, body, **kwargs): + """ + create a Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_role(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): + """ + create a Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_role_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/roles'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_role_binding(self, namespace, body, **kwargs): + """ + create a RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_role_binding(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): + """ + create a RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_role_binding_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_role_binding_restriction(self, namespace, body, **kwargs): + """ + create a RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_role_binding_restriction(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1RoleBindingRestriction body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBindingRestriction + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_role_binding_restriction_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_role_binding_restriction_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_role_binding_restriction_with_http_info(self, namespace, body, **kwargs): + """ + create a RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_role_binding_restriction_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1RoleBindingRestriction body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBindingRestriction + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_role_binding_restriction" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding_restriction`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding_restriction`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindingrestrictions'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBindingRestriction', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_route(self, namespace, body, **kwargs): + """ + create a Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_route(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Route body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Route + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_route_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_route_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_route_with_http_info(self, namespace, body, **kwargs): + """ + create a Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_route_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Route body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Route + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_route" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_route`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_route`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/routes'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Route', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_self_subject_rules_review(self, body, namespace, **kwargs): + """ + create a SelfSubjectRulesReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_self_subject_rules_review(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SelfSubjectRulesReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SelfSubjectRulesReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_self_subject_rules_review_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_self_subject_rules_review_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_self_subject_rules_review_with_http_info(self, body, namespace, **kwargs): + """ + create a SelfSubjectRulesReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_self_subject_rules_review_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SelfSubjectRulesReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SelfSubjectRulesReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_self_subject_rules_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_self_subject_rules_review`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_self_subject_rules_review`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/selfsubjectrulesreviews'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SelfSubjectRulesReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_subject_access_review(self, body, namespace, **kwargs): + """ + create a SubjectAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_subject_access_review(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SubjectAccessReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_subject_access_review_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_subject_access_review_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_subject_access_review_with_http_info(self, body, namespace, **kwargs): + """ + create a SubjectAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_subject_access_review_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SubjectAccessReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_subject_access_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_subject_access_review`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_subject_access_review`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/subjectaccessreviews'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SubjectAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_subject_rules_review(self, body, namespace, **kwargs): + """ + create a SubjectRulesReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_subject_rules_review(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SubjectRulesReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SubjectRulesReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_subject_rules_review_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_subject_rules_review_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_subject_rules_review_with_http_info(self, body, namespace, **kwargs): + """ + create a SubjectRulesReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_subject_rules_review_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SubjectRulesReview body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SubjectRulesReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_subject_rules_review" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_subject_rules_review`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_subject_rules_review`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/subjectrulesreviews'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SubjectRulesReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_template(self, namespace, body, **kwargs): + """ + create a Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_template(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Template body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_template_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_template_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_template_with_http_info(self, namespace, body, **kwargs): + """ + create a Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_template_with_http_info(namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Template body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_template`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_template`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/templates'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Template', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_net_namespace(self, body, **kwargs): + """ + create a NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_net_namespace(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1NetNamespace body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1NetNamespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_net_namespace_with_http_info(body, **kwargs) + else: + (data) = self.create_net_namespace_with_http_info(body, **kwargs) + return data + + def create_net_namespace_with_http_info(self, body, **kwargs): + """ + create a NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_net_namespace_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1NetNamespace body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1NetNamespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_net_namespace" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_net_namespace`") + + + collection_formats = {} + + resource_path = '/oapi/v1/netnamespaces'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NetNamespace', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_o_auth_access_token(self, body, **kwargs): + """ + create an OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_o_auth_access_token(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1OAuthAccessToken body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthAccessToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_o_auth_access_token_with_http_info(body, **kwargs) + else: + (data) = self.create_o_auth_access_token_with_http_info(body, **kwargs) + return data + + def create_o_auth_access_token_with_http_info(self, body, **kwargs): + """ + create an OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_o_auth_access_token_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1OAuthAccessToken body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthAccessToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_o_auth_access_token" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_o_auth_access_token`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthaccesstokens'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthAccessToken', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_o_auth_authorize_token(self, body, **kwargs): + """ + create an OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_o_auth_authorize_token(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1OAuthAuthorizeToken body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthAuthorizeToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_o_auth_authorize_token_with_http_info(body, **kwargs) + else: + (data) = self.create_o_auth_authorize_token_with_http_info(body, **kwargs) + return data + + def create_o_auth_authorize_token_with_http_info(self, body, **kwargs): + """ + create an OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_o_auth_authorize_token_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1OAuthAuthorizeToken body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthAuthorizeToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_o_auth_authorize_token" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_o_auth_authorize_token`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthauthorizetokens'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthAuthorizeToken', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_o_auth_client(self, body, **kwargs): + """ + create an OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_o_auth_client(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1OAuthClient body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthClient + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_o_auth_client_with_http_info(body, **kwargs) + else: + (data) = self.create_o_auth_client_with_http_info(body, **kwargs) + return data + + def create_o_auth_client_with_http_info(self, body, **kwargs): + """ + create an OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_o_auth_client_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1OAuthClient body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthClient + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_o_auth_client" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_o_auth_client`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclients'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthClient', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_o_auth_client_authorization(self, body, **kwargs): + """ + create an OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_o_auth_client_authorization(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1OAuthClientAuthorization body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthClientAuthorization + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_o_auth_client_authorization_with_http_info(body, **kwargs) + else: + (data) = self.create_o_auth_client_authorization_with_http_info(body, **kwargs) + return data + + def create_o_auth_client_authorization_with_http_info(self, body, **kwargs): + """ + create an OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_o_auth_client_authorization_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1OAuthClientAuthorization body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthClientAuthorization + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_o_auth_client_authorization" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_o_auth_client_authorization`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclientauthorizations'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthClientAuthorization', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_pod_security_policy_review_for_all_namespaces(self, body, **kwargs): + """ + create a PodSecurityPolicyReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pod_security_policy_review_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodSecurityPolicyReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodSecurityPolicyReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_pod_security_policy_review_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_pod_security_policy_review_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_pod_security_policy_review_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a PodSecurityPolicyReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pod_security_policy_review_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodSecurityPolicyReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodSecurityPolicyReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pod_security_policy_review_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy_review_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/podsecuritypolicyreviews'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodSecurityPolicyReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_pod_security_policy_self_subject_review_for_all_namespaces(self, body, **kwargs): + """ + create a PodSecurityPolicySelfSubjectReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pod_security_policy_self_subject_review_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodSecurityPolicySelfSubjectReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodSecurityPolicySelfSubjectReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_pod_security_policy_self_subject_review_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_pod_security_policy_self_subject_review_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_pod_security_policy_self_subject_review_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a PodSecurityPolicySelfSubjectReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pod_security_policy_self_subject_review_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodSecurityPolicySelfSubjectReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodSecurityPolicySelfSubjectReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pod_security_policy_self_subject_review_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy_self_subject_review_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/podsecuritypolicyselfsubjectreviews'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodSecurityPolicySelfSubjectReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_pod_security_policy_subject_review_for_all_namespaces(self, body, **kwargs): + """ + create a PodSecurityPolicySubjectReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pod_security_policy_subject_review_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodSecurityPolicySubjectReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodSecurityPolicySubjectReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_pod_security_policy_subject_review_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_pod_security_policy_subject_review_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_pod_security_policy_subject_review_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a PodSecurityPolicySubjectReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pod_security_policy_subject_review_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodSecurityPolicySubjectReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodSecurityPolicySubjectReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pod_security_policy_subject_review_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy_subject_review_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/podsecuritypolicysubjectreviews'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodSecurityPolicySubjectReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_policy_binding_for_all_namespaces(self, body, **kwargs): + """ + create a PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_policy_binding_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PolicyBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_policy_binding_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_policy_binding_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_policy_binding_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_policy_binding_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PolicyBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_policy_binding_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_policy_binding_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/policybindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PolicyBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_policy_for_all_namespaces(self, body, **kwargs): + """ + create a Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_policy_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Policy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Policy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_policy_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_policy_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_policy_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_policy_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Policy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Policy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_policy_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_policy_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/policies'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Policy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_project(self, body, **kwargs): + """ + create a Project + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_project(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Project body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Project + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_project_with_http_info(body, **kwargs) + else: + (data) = self.create_project_with_http_info(body, **kwargs) + return data + + def create_project_with_http_info(self, body, **kwargs): + """ + create a Project + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_project_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Project body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Project + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_project`") + + + collection_formats = {} + + resource_path = '/oapi/v1/projects'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Project', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_project_request(self, body, **kwargs): + """ + create a ProjectRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_project_request(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ProjectRequest body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ProjectRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_project_request_with_http_info(body, **kwargs) + else: + (data) = self.create_project_request_with_http_info(body, **kwargs) + return data + + def create_project_request_with_http_info(self, body, **kwargs): + """ + create a ProjectRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_project_request_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ProjectRequest body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ProjectRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_project_request" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_project_request`") + + + collection_formats = {} + + resource_path = '/oapi/v1/projectrequests'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ProjectRequest', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_resource_access_review_for_all_namespaces(self, body, **kwargs): + """ + create a ResourceAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_resource_access_review_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ResourceAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_resource_access_review_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_resource_access_review_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_resource_access_review_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a ResourceAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_resource_access_review_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ResourceAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceAccessReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_resource_access_review_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_resource_access_review_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/resourceaccessreviews'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_role_binding_for_all_namespaces(self, body, **kwargs): + """ + create a RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_role_binding_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_role_binding_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_role_binding_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_role_binding_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_role_binding_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_role_binding_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_role_binding_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/rolebindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_role_binding_restriction_for_all_namespaces(self, body, **kwargs): + """ + create a RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_role_binding_restriction_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1RoleBindingRestriction body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBindingRestriction + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_role_binding_restriction_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_role_binding_restriction_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_role_binding_restriction_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_role_binding_restriction_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1RoleBindingRestriction body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBindingRestriction + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_role_binding_restriction_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_role_binding_restriction_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/rolebindingrestrictions'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBindingRestriction', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_role_for_all_namespaces(self, body, **kwargs): + """ + create a Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_role_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_role_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_role_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_role_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_role_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_role_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_role_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/roles'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_route_for_all_namespaces(self, body, **kwargs): + """ + create a Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_route_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Route body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Route + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_route_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_route_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_route_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_route_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Route body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Route + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_route_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_route_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/routes'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Route', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_self_subject_rules_review_for_all_namespaces(self, body, **kwargs): + """ + create a SelfSubjectRulesReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_self_subject_rules_review_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SelfSubjectRulesReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SelfSubjectRulesReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_self_subject_rules_review_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_self_subject_rules_review_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_self_subject_rules_review_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a SelfSubjectRulesReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_self_subject_rules_review_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SelfSubjectRulesReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SelfSubjectRulesReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_self_subject_rules_review_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_self_subject_rules_review_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/selfsubjectrulesreviews'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SelfSubjectRulesReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_subject_access_review_for_all_namespaces(self, body, **kwargs): + """ + create a SubjectAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_subject_access_review_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_subject_access_review_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_subject_access_review_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_subject_access_review_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a SubjectAccessReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_subject_access_review_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_subject_access_review_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_subject_access_review_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/subjectaccessreviews'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SubjectAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_subject_rules_review_for_all_namespaces(self, body, **kwargs): + """ + create a SubjectRulesReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_subject_rules_review_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SubjectRulesReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SubjectRulesReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_subject_rules_review_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_subject_rules_review_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_subject_rules_review_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a SubjectRulesReview + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_subject_rules_review_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SubjectRulesReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SubjectRulesReview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_subject_rules_review_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_subject_rules_review_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/subjectrulesreviews'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SubjectRulesReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_template_for_all_namespaces(self, body, **kwargs): + """ + create a Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_template_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Template body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_template_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_template_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_template_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_template_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Template body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_template_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_template_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/oapi/v1/templates'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Template', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_user(self, body, **kwargs): + """ + create an User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_user(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1User body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1User + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_user_with_http_info(body, **kwargs) + else: + (data) = self.create_user_with_http_info(body, **kwargs) + return data + + def create_user_with_http_info(self, body, **kwargs): + """ + create an User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_user_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1User body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1User + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_user" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_user`") + + + collection_formats = {} + + resource_path = '/oapi/v1/users'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1User', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_user_identity_mapping(self, body, **kwargs): + """ + create an UserIdentityMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_user_identity_mapping(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1UserIdentityMapping body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1UserIdentityMapping + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_user_identity_mapping_with_http_info(body, **kwargs) + else: + (data) = self.create_user_identity_mapping_with_http_info(body, **kwargs) + return data + + def create_user_identity_mapping_with_http_info(self, body, **kwargs): + """ + create an UserIdentityMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_user_identity_mapping_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1UserIdentityMapping body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1UserIdentityMapping + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_user_identity_mapping" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_user_identity_mapping`") + + + collection_formats = {} + + resource_path = '/oapi/v1/useridentitymappings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1UserIdentityMapping', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_network(self, name, body, **kwargs): + """ + delete a ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_cluster_network(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterNetwork (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_cluster_network_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_cluster_network_with_http_info(name, body, **kwargs) + return data + + def delete_cluster_network_with_http_info(self, name, body, **kwargs): + """ + delete a ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_cluster_network_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterNetwork (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_cluster_network" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_network`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_cluster_network`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusternetworks/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_policy(self, name, body, **kwargs): + """ + delete a ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_cluster_policy(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicy (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_cluster_policy_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_cluster_policy_with_http_info(name, body, **kwargs) + return data + + def delete_cluster_policy_with_http_info(self, name, body, **kwargs): + """ + delete a ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_cluster_policy_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicy (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_cluster_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_cluster_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_policy_binding(self, name, body, **kwargs): + """ + delete a ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_cluster_policy_binding(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicyBinding (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_cluster_policy_binding_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_cluster_policy_binding_with_http_info(name, body, **kwargs) + return data + + def delete_cluster_policy_binding_with_http_info(self, name, body, **kwargs): + """ + delete a ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_cluster_policy_binding_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicyBinding (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_cluster_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_policy_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_cluster_policy_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicybindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_resource_quota(self, name, body, **kwargs): + """ + delete a ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_cluster_resource_quota(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_cluster_resource_quota_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_cluster_resource_quota_with_http_info(name, body, **kwargs) + return data + + def delete_cluster_resource_quota_with_http_info(self, name, body, **kwargs): + """ + delete a ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_cluster_resource_quota_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_cluster_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_resource_quota`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_cluster_resource_quota`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterresourcequotas/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_role(self, name, body, **kwargs): + """ + delete a ClusterRole + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_cluster_role(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_cluster_role_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_cluster_role_with_http_info(name, body, **kwargs) + return data + + def delete_cluster_role_with_http_info(self, name, body, **kwargs): + """ + delete a ClusterRole + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_cluster_role_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_cluster_role`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterroles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_role_binding(self, name, body, **kwargs): + """ + delete a ClusterRoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_cluster_role_binding(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_cluster_role_binding_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_cluster_role_binding_with_http_info(name, body, **kwargs) + return data + + def delete_cluster_role_binding_with_http_info(self, name, body, **kwargs): + """ + delete a ClusterRoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_cluster_role_binding_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterrolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_cluster_network(self, **kwargs): + """ + delete collection of ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_cluster_network(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_cluster_network_with_http_info(**kwargs) + else: + (data) = self.delete_collection_cluster_network_with_http_info(**kwargs) + return data + + def delete_collection_cluster_network_with_http_info(self, **kwargs): + """ + delete collection of ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_cluster_network_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_cluster_network" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/clusternetworks'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_cluster_policy(self, **kwargs): + """ + delete collection of ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_cluster_policy(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_cluster_policy_with_http_info(**kwargs) + else: + (data) = self.delete_collection_cluster_policy_with_http_info(**kwargs) + return data + + def delete_collection_cluster_policy_with_http_info(self, **kwargs): + """ + delete collection of ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_cluster_policy_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_cluster_policy" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicies'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_cluster_policy_binding(self, **kwargs): + """ + delete collection of ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_cluster_policy_binding(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_cluster_policy_binding_with_http_info(**kwargs) + else: + (data) = self.delete_collection_cluster_policy_binding_with_http_info(**kwargs) + return data + + def delete_collection_cluster_policy_binding_with_http_info(self, **kwargs): + """ + delete collection of ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_cluster_policy_binding_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_cluster_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicybindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_cluster_resource_quota(self, **kwargs): + """ + delete collection of ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_cluster_resource_quota(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_cluster_resource_quota_with_http_info(**kwargs) + else: + (data) = self.delete_collection_cluster_resource_quota_with_http_info(**kwargs) + return data + + def delete_collection_cluster_resource_quota_with_http_info(self, **kwargs): + """ + delete collection of ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_cluster_resource_quota_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_cluster_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterresourcequotas'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_group(self, **kwargs): + """ + delete collection of Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_group_with_http_info(**kwargs) + else: + (data) = self.delete_collection_group_with_http_info(**kwargs) + return data + + def delete_collection_group_with_http_info(self, **kwargs): + """ + delete collection of Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_group" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/groups'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_host_subnet(self, **kwargs): + """ + delete collection of HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_host_subnet(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_host_subnet_with_http_info(**kwargs) + else: + (data) = self.delete_collection_host_subnet_with_http_info(**kwargs) + return data + + def delete_collection_host_subnet_with_http_info(self, **kwargs): + """ + delete collection of HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_host_subnet_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_host_subnet" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/hostsubnets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_identity(self, **kwargs): + """ + delete collection of Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_identity(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_identity_with_http_info(**kwargs) + else: + (data) = self.delete_collection_identity_with_http_info(**kwargs) + return data + + def delete_collection_identity_with_http_info(self, **kwargs): + """ + delete collection of Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_identity_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_identity" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/identities'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_image(self, **kwargs): + """ + delete collection of Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_image(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_image_with_http_info(**kwargs) + else: + (data) = self.delete_collection_image_with_http_info(**kwargs) + return data + + def delete_collection_image_with_http_info(self, **kwargs): + """ + delete collection of Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_image_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_image" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/images'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_build(self, namespace, **kwargs): + """ + delete collection of Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_build(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_build_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_build_with_http_info(namespace, **kwargs) + return data + + def delete_collection_namespaced_build_with_http_info(self, namespace, **kwargs): + """ + delete collection of Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_build_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_build`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/builds'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_build_config(self, namespace, **kwargs): + """ + delete collection of BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_build_config(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_build_config_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_build_config_with_http_info(namespace, **kwargs) + return data + + def delete_collection_namespaced_build_config_with_http_info(self, namespace, **kwargs): + """ + delete collection of BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_build_config_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_build_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_build_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/buildconfigs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_deployment_config(self, namespace, **kwargs): + """ + delete collection of DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_deployment_config(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_deployment_config_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_deployment_config_with_http_info(namespace, **kwargs) + return data + + def delete_collection_namespaced_deployment_config_with_http_info(self, namespace, **kwargs): + """ + delete collection of DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_deployment_config_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_deployment_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_egress_network_policy(self, namespace, **kwargs): + """ + delete collection of EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_egress_network_policy(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_egress_network_policy_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_egress_network_policy_with_http_info(namespace, **kwargs) + return data + + def delete_collection_namespaced_egress_network_policy_with_http_info(self, namespace, **kwargs): + """ + delete collection of EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_egress_network_policy_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_egress_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_egress_network_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/egressnetworkpolicies'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_image_stream(self, namespace, **kwargs): + """ + delete collection of ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_image_stream(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_image_stream_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_image_stream_with_http_info(namespace, **kwargs) + return data + + def delete_collection_namespaced_image_stream_with_http_info(self, namespace, **kwargs): + """ + delete collection of ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_image_stream_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_image_stream" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_image_stream`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreams'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_policy(self, namespace, **kwargs): + """ + delete collection of Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_policy(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_policy_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_policy_with_http_info(namespace, **kwargs) + return data + + def delete_collection_namespaced_policy_with_http_info(self, namespace, **kwargs): + """ + delete collection of Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_policy_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policies'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_policy_binding(self, namespace, **kwargs): + """ + delete collection of PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_policy_binding(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_policy_binding_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_policy_binding_with_http_info(namespace, **kwargs) + return data + + def delete_collection_namespaced_policy_binding_with_http_info(self, namespace, **kwargs): + """ + delete collection of PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_policy_binding_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_policy_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policybindings'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_role_binding_restriction(self, namespace, **kwargs): + """ + delete collection of RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_role_binding_restriction(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_role_binding_restriction_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_role_binding_restriction_with_http_info(namespace, **kwargs) + return data + + def delete_collection_namespaced_role_binding_restriction_with_http_info(self, namespace, **kwargs): + """ + delete collection of RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_role_binding_restriction_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_role_binding_restriction" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding_restriction`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindingrestrictions'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_route(self, namespace, **kwargs): + """ + delete collection of Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_route(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_route_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_route_with_http_info(namespace, **kwargs) + return data + + def delete_collection_namespaced_route_with_http_info(self, namespace, **kwargs): + """ + delete collection of Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_route_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_route" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_route`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/routes'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_template(self, namespace, **kwargs): + """ + delete collection of Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_template(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_template_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_template_with_http_info(namespace, **kwargs) + return data + + def delete_collection_namespaced_template_with_http_info(self, namespace, **kwargs): + """ + delete collection of Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_template_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_template`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/templates'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_net_namespace(self, **kwargs): + """ + delete collection of NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_net_namespace(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_net_namespace_with_http_info(**kwargs) + else: + (data) = self.delete_collection_net_namespace_with_http_info(**kwargs) + return data + + def delete_collection_net_namespace_with_http_info(self, **kwargs): + """ + delete collection of NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_net_namespace_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_net_namespace" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/netnamespaces'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_o_auth_access_token(self, **kwargs): + """ + delete collection of OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_o_auth_access_token(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_o_auth_access_token_with_http_info(**kwargs) + else: + (data) = self.delete_collection_o_auth_access_token_with_http_info(**kwargs) + return data + + def delete_collection_o_auth_access_token_with_http_info(self, **kwargs): + """ + delete collection of OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_o_auth_access_token_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_o_auth_access_token" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthaccesstokens'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_o_auth_authorize_token(self, **kwargs): + """ + delete collection of OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_o_auth_authorize_token(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_o_auth_authorize_token_with_http_info(**kwargs) + else: + (data) = self.delete_collection_o_auth_authorize_token_with_http_info(**kwargs) + return data + + def delete_collection_o_auth_authorize_token_with_http_info(self, **kwargs): + """ + delete collection of OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_o_auth_authorize_token_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_o_auth_authorize_token" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthauthorizetokens'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_o_auth_client(self, **kwargs): + """ + delete collection of OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_o_auth_client(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_o_auth_client_with_http_info(**kwargs) + else: + (data) = self.delete_collection_o_auth_client_with_http_info(**kwargs) + return data + + def delete_collection_o_auth_client_with_http_info(self, **kwargs): + """ + delete collection of OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_o_auth_client_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_o_auth_client" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclients'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_o_auth_client_authorization(self, **kwargs): + """ + delete collection of OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_o_auth_client_authorization(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_o_auth_client_authorization_with_http_info(**kwargs) + else: + (data) = self.delete_collection_o_auth_client_authorization_with_http_info(**kwargs) + return data + + def delete_collection_o_auth_client_authorization_with_http_info(self, **kwargs): + """ + delete collection of OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_o_auth_client_authorization_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_o_auth_client_authorization" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclientauthorizations'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_user(self, **kwargs): + """ + delete collection of User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_user(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_user_with_http_info(**kwargs) + else: + (data) = self.delete_collection_user_with_http_info(**kwargs) + return data + + def delete_collection_user_with_http_info(self, **kwargs): + """ + delete collection of User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_user_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_user" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/users'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_group(self, name, body, **kwargs): + """ + delete a Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_group(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Group (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_group_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_group_with_http_info(name, body, **kwargs) + return data + + def delete_group_with_http_info(self, name, body, **kwargs): + """ + delete a Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_group_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Group (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_group" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_group`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_group`") + + + collection_formats = {} + + resource_path = '/oapi/v1/groups/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_host_subnet(self, name, body, **kwargs): + """ + delete a HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_host_subnet(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HostSubnet (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_host_subnet_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_host_subnet_with_http_info(name, body, **kwargs) + return data + + def delete_host_subnet_with_http_info(self, name, body, **kwargs): + """ + delete a HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_host_subnet_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HostSubnet (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_host_subnet" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_host_subnet`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_host_subnet`") + + + collection_formats = {} + + resource_path = '/oapi/v1/hostsubnets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_identity(self, name, body, **kwargs): + """ + delete an Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_identity(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Identity (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_identity_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_identity_with_http_info(name, body, **kwargs) + return data + + def delete_identity_with_http_info(self, name, body, **kwargs): + """ + delete an Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_identity_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Identity (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_identity" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_identity`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_identity`") + + + collection_formats = {} + + resource_path = '/oapi/v1/identities/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_image(self, name, body, **kwargs): + """ + delete an Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_image(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Image (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_image_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_image_with_http_info(name, body, **kwargs) + return data + + def delete_image_with_http_info(self, name, body, **kwargs): + """ + delete an Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_image_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Image (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_image" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_image`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_image`") + + + collection_formats = {} + + resource_path = '/oapi/v1/images/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_image_signature(self, name, **kwargs): + """ + delete an ImageSignature + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_image_signature(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageSignature (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_image_signature_with_http_info(name, **kwargs) + else: + (data) = self.delete_image_signature_with_http_info(name, **kwargs) + return data + + def delete_image_signature_with_http_info(self, name, **kwargs): + """ + delete an ImageSignature + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_image_signature_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageSignature (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_image_signature" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_image_signature`") + + + collection_formats = {} + + resource_path = '/oapi/v1/imagesignatures/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_build(self, name, namespace, body, **kwargs): + """ + delete a Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_build(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Build (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_build_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_build_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_build_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_build_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Build (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_build`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_build`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_build`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/builds/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_build_config(self, name, namespace, body, **kwargs): + """ + delete a BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_build_config(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the BuildConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_build_config_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_build_config_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_build_config_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_build_config_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the BuildConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_build_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_build_config`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_build_config`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_build_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/buildconfigs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_deployment_config(self, name, namespace, body, **kwargs): + """ + delete a DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_deployment_config(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_deployment_config_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_deployment_config_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_deployment_config_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_deployment_config_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_deployment_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment_config`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment_config`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_deployment_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_egress_network_policy(self, name, namespace, body, **kwargs): + """ + delete an EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_egress_network_policy(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the EgressNetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_egress_network_policy_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_egress_network_policy_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_egress_network_policy_with_http_info(self, name, namespace, body, **kwargs): + """ + delete an EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_egress_network_policy_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the EgressNetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_egress_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_egress_network_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_egress_network_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_egress_network_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_image_stream(self, name, namespace, body, **kwargs): + """ + delete an ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_image_stream(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStream (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_image_stream_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_image_stream_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_image_stream_with_http_info(self, name, namespace, body, **kwargs): + """ + delete an ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_image_stream_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStream (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_image_stream" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_image_stream`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_image_stream`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_image_stream`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreams/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_image_stream_tag(self, name, namespace, **kwargs): + """ + delete an ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_image_stream_tag(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStreamTag (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_image_stream_tag_with_http_info(name, namespace, **kwargs) + else: + (data) = self.delete_namespaced_image_stream_tag_with_http_info(name, namespace, **kwargs) + return data + + def delete_namespaced_image_stream_tag_with_http_info(self, name, namespace, **kwargs): + """ + delete an ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_image_stream_tag_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStreamTag (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_image_stream_tag" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_image_stream_tag`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_image_stream_tag`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreamtags/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_policy(self, name, namespace, body, **kwargs): + """ + delete a Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_policy(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Policy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_policy_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_policy_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_policy_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_policy_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Policy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_policy_binding(self, name, namespace, body, **kwargs): + """ + delete a PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_policy_binding(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PolicyBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_policy_binding_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_policy_binding_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_policy_binding_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_policy_binding_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PolicyBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_policy_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_policy_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_policy_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policybindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_role(self, name, namespace, body, **kwargs): + """ + delete a Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_role(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_role_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_role_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_role`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_role_binding(self, name, namespace, body, **kwargs): + """ + delete a RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_role_binding(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_role_binding_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_role_binding_restriction(self, name, namespace, body, **kwargs): + """ + delete a RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_role_binding_restriction(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBindingRestriction (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_role_binding_restriction_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_role_binding_restriction_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_role_binding_restriction_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_role_binding_restriction_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBindingRestriction (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_role_binding_restriction" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding_restriction`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding_restriction`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_role_binding_restriction`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_route(self, name, namespace, body, **kwargs): + """ + delete a Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_route(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Route (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_route_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_route_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_route_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_route_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Route (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_route" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_route`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_route`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_route`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/routes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_template(self, name, namespace, body, **kwargs): + """ + delete a Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_template(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Template (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_template_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_template_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_template_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_template_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Template (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_template`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_template`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_template`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/templates/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_net_namespace(self, name, body, **kwargs): + """ + delete a NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_net_namespace(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetNamespace (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_net_namespace_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_net_namespace_with_http_info(name, body, **kwargs) + return data + + def delete_net_namespace_with_http_info(self, name, body, **kwargs): + """ + delete a NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_net_namespace_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetNamespace (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_net_namespace" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_net_namespace`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_net_namespace`") + + + collection_formats = {} + + resource_path = '/oapi/v1/netnamespaces/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_o_auth_access_token(self, name, body, **kwargs): + """ + delete an OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_o_auth_access_token(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAccessToken (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_o_auth_access_token_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_o_auth_access_token_with_http_info(name, body, **kwargs) + return data + + def delete_o_auth_access_token_with_http_info(self, name, body, **kwargs): + """ + delete an OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_o_auth_access_token_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAccessToken (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_o_auth_access_token" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_o_auth_access_token`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_o_auth_access_token`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthaccesstokens/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_o_auth_authorize_token(self, name, body, **kwargs): + """ + delete an OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_o_auth_authorize_token(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAuthorizeToken (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_o_auth_authorize_token_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_o_auth_authorize_token_with_http_info(name, body, **kwargs) + return data + + def delete_o_auth_authorize_token_with_http_info(self, name, body, **kwargs): + """ + delete an OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_o_auth_authorize_token_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAuthorizeToken (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_o_auth_authorize_token" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_o_auth_authorize_token`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_o_auth_authorize_token`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthauthorizetokens/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_o_auth_client(self, name, body, **kwargs): + """ + delete an OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_o_auth_client(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClient (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_o_auth_client_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_o_auth_client_with_http_info(name, body, **kwargs) + return data + + def delete_o_auth_client_with_http_info(self, name, body, **kwargs): + """ + delete an OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_o_auth_client_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClient (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_o_auth_client" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_o_auth_client`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_o_auth_client`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclients/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_o_auth_client_authorization(self, name, body, **kwargs): + """ + delete an OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_o_auth_client_authorization(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClientAuthorization (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_o_auth_client_authorization_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_o_auth_client_authorization_with_http_info(name, body, **kwargs) + return data + + def delete_o_auth_client_authorization_with_http_info(self, name, body, **kwargs): + """ + delete an OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_o_auth_client_authorization_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClientAuthorization (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_o_auth_client_authorization" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_o_auth_client_authorization`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_o_auth_client_authorization`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclientauthorizations/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_project(self, name, **kwargs): + """ + delete a Project + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_project(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Project (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_project_with_http_info(name, **kwargs) + else: + (data) = self.delete_project_with_http_info(name, **kwargs) + return data + + def delete_project_with_http_info(self, name, **kwargs): + """ + delete a Project + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_project_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Project (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_project`") + + + collection_formats = {} + + resource_path = '/oapi/v1/projects/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_user(self, name, body, **kwargs): + """ + delete an User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_user(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the User (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_user_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_user_with_http_info(name, body, **kwargs) + return data + + def delete_user_with_http_info(self, name, body, **kwargs): + """ + delete an User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_user_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the User (required) + :param V1DeleteOptions body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_user" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_user`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_user`") + + + collection_formats = {} + + resource_path = '/oapi/v1/users/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_user_identity_mapping(self, name, **kwargs): + """ + delete an UserIdentityMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_user_identity_mapping(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the UserIdentityMapping (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_user_identity_mapping_with_http_info(name, **kwargs) + else: + (data) = self.delete_user_identity_mapping_with_http_info(name, **kwargs) + return data + + def delete_user_identity_mapping_with_http_info(self, name, **kwargs): + """ + delete an UserIdentityMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_user_identity_mapping_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the UserIdentityMapping (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_user_identity_mapping" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_user_identity_mapping`") + + + collection_formats = {} + + resource_path = '/oapi/v1/useridentitymappings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): + """ + get available resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_with_http_info(**kwargs) + return data + + def get_api_resources_with_http_info(self, **kwargs): + """ + get available resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: UnversionedAPIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/oapi/v1/'.replace('{format}', 'json') + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedAPIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_version(self, **kwargs): + """ + list supported server API versions + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_version(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_version_with_http_info(**kwargs) + else: + (data) = self.get_version_with_http_info(**kwargs) + return data + + def get_version_with_http_info(self, **kwargs): + """ + list supported server API versions + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_version_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_version" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/oapi/'.replace('{format}', 'json') + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_applied_cluster_resource_quota_for_all_namespaces(self, **kwargs): + """ + list objects of kind AppliedClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_applied_cluster_resource_quota_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1AppliedClusterResourceQuotaList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_applied_cluster_resource_quota_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_applied_cluster_resource_quota_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_applied_cluster_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): + """ + list objects of kind AppliedClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_applied_cluster_resource_quota_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1AppliedClusterResourceQuotaList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_applied_cluster_resource_quota_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/appliedclusterresourcequotas'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1AppliedClusterResourceQuotaList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_build_config_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_build_config_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1BuildConfigList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_build_config_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_build_config_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_build_config_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_build_config_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1BuildConfigList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_build_config_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/buildconfigs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1BuildConfigList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_build_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_build_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1BuildList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_build_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_build_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_build_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_build_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1BuildList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_build_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/builds'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1BuildList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_network(self, **kwargs): + """ + list or watch objects of kind ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cluster_network(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ClusterNetworkList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_cluster_network_with_http_info(**kwargs) + else: + (data) = self.list_cluster_network_with_http_info(**kwargs) + return data + + def list_cluster_network_with_http_info(self, **kwargs): + """ + list or watch objects of kind ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cluster_network_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ClusterNetworkList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_cluster_network" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/clusternetworks'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterNetworkList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_policy(self, **kwargs): + """ + list or watch objects of kind ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cluster_policy(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ClusterPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_cluster_policy_with_http_info(**kwargs) + else: + (data) = self.list_cluster_policy_with_http_info(**kwargs) + return data + + def list_cluster_policy_with_http_info(self, **kwargs): + """ + list or watch objects of kind ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cluster_policy_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ClusterPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_cluster_policy" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicies'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_policy_binding(self, **kwargs): + """ + list or watch objects of kind ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cluster_policy_binding(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ClusterPolicyBindingList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_cluster_policy_binding_with_http_info(**kwargs) + else: + (data) = self.list_cluster_policy_binding_with_http_info(**kwargs) + return data + + def list_cluster_policy_binding_with_http_info(self, **kwargs): + """ + list or watch objects of kind ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cluster_policy_binding_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ClusterPolicyBindingList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_cluster_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicybindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterPolicyBindingList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_resource_quota(self, **kwargs): + """ + list or watch objects of kind ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cluster_resource_quota(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ClusterResourceQuotaList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_cluster_resource_quota_with_http_info(**kwargs) + else: + (data) = self.list_cluster_resource_quota_with_http_info(**kwargs) + return data + + def list_cluster_resource_quota_with_http_info(self, **kwargs): + """ + list or watch objects of kind ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cluster_resource_quota_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ClusterResourceQuotaList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_cluster_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterresourcequotas'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterResourceQuotaList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_role(self, **kwargs): + """ + list objects of kind ClusterRole + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cluster_role(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ClusterRoleList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_cluster_role_with_http_info(**kwargs) + else: + (data) = self.list_cluster_role_with_http_info(**kwargs) + return data + + def list_cluster_role_with_http_info(self, **kwargs): + """ + list objects of kind ClusterRole + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cluster_role_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ClusterRoleList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterroles'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRoleList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_role_binding(self, **kwargs): + """ + list objects of kind ClusterRoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cluster_role_binding(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ClusterRoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_cluster_role_binding_with_http_info(**kwargs) + else: + (data) = self.list_cluster_role_binding_with_http_info(**kwargs) + return data + + def list_cluster_role_binding_with_http_info(self, **kwargs): + """ + list objects of kind ClusterRoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_cluster_role_binding_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ClusterRoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterrolebindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRoleBindingList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_deployment_config_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_deployment_config_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1DeploymentConfigList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_deployment_config_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_deployment_config_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_deployment_config_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_deployment_config_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1DeploymentConfigList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_deployment_config_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/deploymentconfigs'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentConfigList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_egress_network_policy_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_egress_network_policy_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1EgressNetworkPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_egress_network_policy_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_egress_network_policy_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_egress_network_policy_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_egress_network_policy_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1EgressNetworkPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_egress_network_policy_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/egressnetworkpolicies'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EgressNetworkPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_group(self, **kwargs): + """ + list or watch objects of kind Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1GroupList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_group_with_http_info(**kwargs) + else: + (data) = self.list_group_with_http_info(**kwargs) + return data + + def list_group_with_http_info(self, **kwargs): + """ + list or watch objects of kind Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1GroupList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_group" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/groups'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1GroupList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_host_subnet(self, **kwargs): + """ + list or watch objects of kind HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_host_subnet(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1HostSubnetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_host_subnet_with_http_info(**kwargs) + else: + (data) = self.list_host_subnet_with_http_info(**kwargs) + return data + + def list_host_subnet_with_http_info(self, **kwargs): + """ + list or watch objects of kind HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_host_subnet_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1HostSubnetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_host_subnet" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/hostsubnets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HostSubnetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_identity(self, **kwargs): + """ + list or watch objects of kind Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_identity(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1IdentityList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_identity_with_http_info(**kwargs) + else: + (data) = self.list_identity_with_http_info(**kwargs) + return data + + def list_identity_with_http_info(self, **kwargs): + """ + list or watch objects of kind Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_identity_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1IdentityList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_identity" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/identities'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1IdentityList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_image(self, **kwargs): + """ + list or watch objects of kind Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_image(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ImageList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_image_with_http_info(**kwargs) + else: + (data) = self.list_image_with_http_info(**kwargs) + return data + + def list_image_with_http_info(self, **kwargs): + """ + list or watch objects of kind Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_image_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ImageList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_image" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/images'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_image_stream_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_image_stream_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ImageStreamList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_image_stream_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_image_stream_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_image_stream_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_image_stream_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ImageStreamList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_image_stream_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/imagestreams'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_image_stream_tag_for_all_namespaces(self, **kwargs): + """ + list objects of kind ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_image_stream_tag_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ImageStreamTagList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_image_stream_tag_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_image_stream_tag_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_image_stream_tag_for_all_namespaces_with_http_info(self, **kwargs): + """ + list objects of kind ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_image_stream_tag_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ImageStreamTagList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_image_stream_tag_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/imagestreamtags'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamTagList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_applied_cluster_resource_quota(self, namespace, **kwargs): + """ + list objects of kind AppliedClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_applied_cluster_resource_quota(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1AppliedClusterResourceQuotaList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_applied_cluster_resource_quota_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_applied_cluster_resource_quota_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_applied_cluster_resource_quota_with_http_info(self, namespace, **kwargs): + """ + list objects of kind AppliedClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_applied_cluster_resource_quota_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1AppliedClusterResourceQuotaList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_applied_cluster_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_applied_cluster_resource_quota`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/appliedclusterresourcequotas'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1AppliedClusterResourceQuotaList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_build(self, namespace, **kwargs): + """ + list or watch objects of kind Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_build(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1BuildList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_build_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_build_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_build_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_build_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1BuildList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_build`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/builds'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1BuildList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_build_config(self, namespace, **kwargs): + """ + list or watch objects of kind BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_build_config(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1BuildConfigList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_build_config_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_build_config_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_build_config_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_build_config_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1BuildConfigList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_build_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_build_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/buildconfigs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1BuildConfigList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_deployment_config(self, namespace, **kwargs): + """ + list or watch objects of kind DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_deployment_config(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1DeploymentConfigList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_deployment_config_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_deployment_config_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_deployment_config_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_deployment_config_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1DeploymentConfigList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_deployment_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentConfigList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_egress_network_policy(self, namespace, **kwargs): + """ + list or watch objects of kind EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_egress_network_policy(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1EgressNetworkPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_egress_network_policy_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_egress_network_policy_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_egress_network_policy_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_egress_network_policy_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1EgressNetworkPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_egress_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_egress_network_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/egressnetworkpolicies'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EgressNetworkPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_image_stream(self, namespace, **kwargs): + """ + list or watch objects of kind ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_image_stream(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ImageStreamList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_image_stream_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_image_stream_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_image_stream_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_image_stream_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ImageStreamList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_image_stream" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_image_stream`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreams'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_image_stream_tag(self, namespace, **kwargs): + """ + list objects of kind ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_image_stream_tag(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ImageStreamTagList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_image_stream_tag_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_image_stream_tag_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_image_stream_tag_with_http_info(self, namespace, **kwargs): + """ + list objects of kind ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_image_stream_tag_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ImageStreamTagList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_image_stream_tag" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_image_stream_tag`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreamtags'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamTagList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_policy(self, namespace, **kwargs): + """ + list or watch objects of kind Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_policy(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_policy_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_policy_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_policy_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_policy_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policies'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_policy_binding(self, namespace, **kwargs): + """ + list or watch objects of kind PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_policy_binding(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PolicyBindingList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_policy_binding_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_policy_binding_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_policy_binding_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_policy_binding_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PolicyBindingList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_policy_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policybindings'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PolicyBindingList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_role(self, namespace, **kwargs): + """ + list objects of kind Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_role(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RoleList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_role_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_role_with_http_info(self, namespace, **kwargs): + """ + list objects of kind Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_role_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RoleList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/roles'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_role_binding(self, namespace, **kwargs): + """ + list objects of kind RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_role_binding(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): + """ + list objects of kind RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_role_binding_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBindingList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_role_binding_restriction(self, namespace, **kwargs): + """ + list or watch objects of kind RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_role_binding_restriction(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RoleBindingRestrictionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_role_binding_restriction_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_role_binding_restriction_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_role_binding_restriction_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_role_binding_restriction_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RoleBindingRestrictionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_role_binding_restriction" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding_restriction`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindingrestrictions'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBindingRestrictionList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_route(self, namespace, **kwargs): + """ + list or watch objects of kind Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_route(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RouteList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_route_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_route_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_route_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_route_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RouteList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_route" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_route`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/routes'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RouteList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_template(self, namespace, **kwargs): + """ + list or watch objects of kind Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_template(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1TemplateList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_template_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_template_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_template_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_template_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1TemplateList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_template`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/templates'.replace('{format}', 'json') + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1TemplateList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_net_namespace(self, **kwargs): + """ + list or watch objects of kind NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_net_namespace(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1NetNamespaceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_net_namespace_with_http_info(**kwargs) + else: + (data) = self.list_net_namespace_with_http_info(**kwargs) + return data + + def list_net_namespace_with_http_info(self, **kwargs): + """ + list or watch objects of kind NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_net_namespace_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1NetNamespaceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_net_namespace" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/netnamespaces'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NetNamespaceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_o_auth_access_token(self, **kwargs): + """ + list or watch objects of kind OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_o_auth_access_token(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1OAuthAccessTokenList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_o_auth_access_token_with_http_info(**kwargs) + else: + (data) = self.list_o_auth_access_token_with_http_info(**kwargs) + return data + + def list_o_auth_access_token_with_http_info(self, **kwargs): + """ + list or watch objects of kind OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_o_auth_access_token_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1OAuthAccessTokenList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_o_auth_access_token" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthaccesstokens'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthAccessTokenList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_o_auth_authorize_token(self, **kwargs): + """ + list or watch objects of kind OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_o_auth_authorize_token(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1OAuthAuthorizeTokenList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_o_auth_authorize_token_with_http_info(**kwargs) + else: + (data) = self.list_o_auth_authorize_token_with_http_info(**kwargs) + return data + + def list_o_auth_authorize_token_with_http_info(self, **kwargs): + """ + list or watch objects of kind OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_o_auth_authorize_token_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1OAuthAuthorizeTokenList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_o_auth_authorize_token" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthauthorizetokens'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthAuthorizeTokenList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_o_auth_client(self, **kwargs): + """ + list or watch objects of kind OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_o_auth_client(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1OAuthClientList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_o_auth_client_with_http_info(**kwargs) + else: + (data) = self.list_o_auth_client_with_http_info(**kwargs) + return data + + def list_o_auth_client_with_http_info(self, **kwargs): + """ + list or watch objects of kind OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_o_auth_client_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1OAuthClientList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_o_auth_client" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclients'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthClientList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_o_auth_client_authorization(self, **kwargs): + """ + list or watch objects of kind OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_o_auth_client_authorization(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1OAuthClientAuthorizationList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_o_auth_client_authorization_with_http_info(**kwargs) + else: + (data) = self.list_o_auth_client_authorization_with_http_info(**kwargs) + return data + + def list_o_auth_client_authorization_with_http_info(self, **kwargs): + """ + list or watch objects of kind OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_o_auth_client_authorization_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1OAuthClientAuthorizationList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_o_auth_client_authorization" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclientauthorizations'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthClientAuthorizationList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_policy_binding_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_policy_binding_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PolicyBindingList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_policy_binding_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_policy_binding_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_policy_binding_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_policy_binding_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PolicyBindingList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_policy_binding_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/policybindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PolicyBindingList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_policy_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_policy_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_policy_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_policy_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_policy_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_policy_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1PolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_policy_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/policies'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_project(self, **kwargs): + """ + list or watch objects of kind Project + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_project(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ProjectList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_project_with_http_info(**kwargs) + else: + (data) = self.list_project_with_http_info(**kwargs) + return data + + def list_project_with_http_info(self, **kwargs): + """ + list or watch objects of kind Project + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_project_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1ProjectList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_project" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/projects'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ProjectList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_project_request(self, **kwargs): + """ + list objects of kind ProjectRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_project_request(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_project_request_with_http_info(**kwargs) + else: + (data) = self.list_project_request_with_http_info(**kwargs) + return data + + def list_project_request_with_http_info(self, **kwargs): + """ + list objects of kind ProjectRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_project_request_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: UnversionedStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_project_request" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/projectrequests'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UnversionedStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_role_binding_for_all_namespaces(self, **kwargs): + """ + list objects of kind RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_role_binding_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): + """ + list objects of kind RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_role_binding_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_role_binding_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/rolebindings'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBindingList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_role_binding_restriction_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_role_binding_restriction_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RoleBindingRestrictionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_role_binding_restriction_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_role_binding_restriction_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_role_binding_restriction_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_role_binding_restriction_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RoleBindingRestrictionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_role_binding_restriction_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/rolebindingrestrictions'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBindingRestrictionList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_role_for_all_namespaces(self, **kwargs): + """ + list objects of kind Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_role_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RoleList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_role_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_role_for_all_namespaces_with_http_info(self, **kwargs): + """ + list objects of kind Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_role_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RoleList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_role_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/roles'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_route_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_route_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RouteList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_route_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_route_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_route_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_route_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1RouteList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_route_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/routes'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RouteList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_template_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_template_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1TemplateList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_template_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_template_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_template_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_template_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1TemplateList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_template_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/templates'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1TemplateList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_user(self, **kwargs): + """ + list or watch objects of kind User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_user(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1UserList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_user_with_http_info(**kwargs) + else: + (data) = self.list_user_with_http_info(**kwargs) + return data + + def list_user_with_http_info(self, **kwargs): + """ + list or watch objects of kind User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_user_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1UserList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_user" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/oapi/v1/users'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1UserList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_network(self, name, body, **kwargs): + """ + partially update the specified ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_network(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterNetwork (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterNetwork + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_cluster_network_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_cluster_network_with_http_info(name, body, **kwargs) + return data + + def patch_cluster_network_with_http_info(self, name, body, **kwargs): + """ + partially update the specified ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_network_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterNetwork (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterNetwork + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_cluster_network" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_network`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_network`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusternetworks/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterNetwork', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_policy(self, name, body, **kwargs): + """ + partially update the specified ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_policy(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicy (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_cluster_policy_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_cluster_policy_with_http_info(name, body, **kwargs) + return data + + def patch_cluster_policy_with_http_info(self, name, body, **kwargs): + """ + partially update the specified ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_policy_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicy (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_cluster_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_policy_binding(self, name, body, **kwargs): + """ + partially update the specified ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_policy_binding(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicyBinding (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterPolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_cluster_policy_binding_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_cluster_policy_binding_with_http_info(name, body, **kwargs) + return data + + def patch_cluster_policy_binding_with_http_info(self, name, body, **kwargs): + """ + partially update the specified ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_policy_binding_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicyBinding (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterPolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_cluster_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_policy_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_policy_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicybindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterPolicyBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_resource_quota(self, name, body, **kwargs): + """ + partially update the specified ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_resource_quota(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_cluster_resource_quota_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_cluster_resource_quota_with_http_info(name, body, **kwargs) + return data + + def patch_cluster_resource_quota_with_http_info(self, name, body, **kwargs): + """ + partially update the specified ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_resource_quota_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_cluster_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_resource_quota`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_resource_quota`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterresourcequotas/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_resource_quota_status(self, name, body, **kwargs): + """ + partially update status of the specified ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_resource_quota_status(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_cluster_resource_quota_status_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_cluster_resource_quota_status_with_http_info(name, body, **kwargs) + return data + + def patch_cluster_resource_quota_status_with_http_info(self, name, body, **kwargs): + """ + partially update status of the specified ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_resource_quota_status_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_cluster_resource_quota_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_resource_quota_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_resource_quota_status`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterresourcequotas/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_role(self, name, body, **kwargs): + """ + partially update the specified ClusterRole + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_role(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_cluster_role_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) + return data + + def patch_cluster_role_with_http_info(self, name, body, **kwargs): + """ + partially update the specified ClusterRole + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_role_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterroles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRole', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_role_binding(self, name, body, **kwargs): + """ + partially update the specified ClusterRoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_role_binding(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) + return data + + def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): + """ + partially update the specified ClusterRoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_cluster_role_binding_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterrolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_group(self, name, body, **kwargs): + """ + partially update the specified Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_group(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Group (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Group + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_group_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_group_with_http_info(name, body, **kwargs) + return data + + def patch_group_with_http_info(self, name, body, **kwargs): + """ + partially update the specified Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_group_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Group (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Group + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_group" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_group`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_group`") + + + collection_formats = {} + + resource_path = '/oapi/v1/groups/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Group', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_host_subnet(self, name, body, **kwargs): + """ + partially update the specified HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_host_subnet(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HostSubnet (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HostSubnet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_host_subnet_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_host_subnet_with_http_info(name, body, **kwargs) + return data + + def patch_host_subnet_with_http_info(self, name, body, **kwargs): + """ + partially update the specified HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_host_subnet_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HostSubnet (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HostSubnet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_host_subnet" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_host_subnet`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_host_subnet`") + + + collection_formats = {} + + resource_path = '/oapi/v1/hostsubnets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HostSubnet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_identity(self, name, body, **kwargs): + """ + partially update the specified Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_identity(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Identity (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Identity + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_identity_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_identity_with_http_info(name, body, **kwargs) + return data + + def patch_identity_with_http_info(self, name, body, **kwargs): + """ + partially update the specified Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_identity_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Identity (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Identity + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_identity" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_identity`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_identity`") + + + collection_formats = {} + + resource_path = '/oapi/v1/identities/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Identity', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_image(self, name, body, **kwargs): + """ + partially update the specified Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_image(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Image (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Image + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_image_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_image_with_http_info(name, body, **kwargs) + return data + + def patch_image_with_http_info(self, name, body, **kwargs): + """ + partially update the specified Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_image_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Image (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Image + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_image" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_image`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_image`") + + + collection_formats = {} + + resource_path = '/oapi/v1/images/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Image', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_build(self, name, namespace, body, **kwargs): + """ + partially update the specified Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_build(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Build (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_build_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_build_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_build_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_build_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Build (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_build`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_build`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_build`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/builds/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Build', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_build_config(self, name, namespace, body, **kwargs): + """ + partially update the specified BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_build_config(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the BuildConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1BuildConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_build_config_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_build_config_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_build_config_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_build_config_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the BuildConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1BuildConfig + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_build_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_build_config`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_build_config`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_build_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/buildconfigs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1BuildConfig', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment_config(self, name, namespace, body, **kwargs): + """ + partially update the specified DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_deployment_config(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_deployment_config_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_deployment_config_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_deployment_config_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_deployment_config_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_deployment_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_config`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_config`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentConfig', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_egress_network_policy(self, name, namespace, body, **kwargs): + """ + partially update the specified EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_egress_network_policy(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the EgressNetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1EgressNetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_egress_network_policy_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_egress_network_policy_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_egress_network_policy_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_egress_network_policy_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the EgressNetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1EgressNetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_egress_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_egress_network_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_egress_network_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_egress_network_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EgressNetworkPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_image_stream(self, name, namespace, body, **kwargs): + """ + partially update the specified ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_image_stream(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStream (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_image_stream_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_image_stream_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_image_stream_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_image_stream_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStream (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_image_stream" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_image_stream`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_image_stream`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_image_stream`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreams/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStream', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_image_stream_tag(self, name, namespace, body, **kwargs): + """ + partially update the specified ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_image_stream_tag(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStreamTag (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamTag + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_image_stream_tag_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_image_stream_tag_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_image_stream_tag_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_image_stream_tag_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStreamTag (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamTag + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_image_stream_tag" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_image_stream_tag`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_image_stream_tag`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_image_stream_tag`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreamtags/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamTag', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_policy(self, name, namespace, body, **kwargs): + """ + partially update the specified Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_policy(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Policy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Policy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_policy_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_policy_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_policy_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_policy_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Policy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Policy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Policy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_policy_binding(self, name, namespace, body, **kwargs): + """ + partially update the specified PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_policy_binding(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PolicyBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_policy_binding_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_policy_binding_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_policy_binding_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_policy_binding_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PolicyBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_policy_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_policy_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_policy_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policybindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PolicyBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_role(self, name, namespace, body, **kwargs): + """ + partially update the specified Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_role(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_role_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): + """ + partially update the specified RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_role_binding(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_role_binding_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_role_binding_restriction(self, name, namespace, body, **kwargs): + """ + partially update the specified RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_role_binding_restriction(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBindingRestriction (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBindingRestriction + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_role_binding_restriction_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_role_binding_restriction_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_role_binding_restriction_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_role_binding_restriction_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBindingRestriction (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBindingRestriction + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_role_binding_restriction" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding_restriction`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding_restriction`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding_restriction`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBindingRestriction', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_route(self, name, namespace, body, **kwargs): + """ + partially update the specified Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_route(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Route (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Route + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_route_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_route_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_route_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_route_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Route (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Route + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_route" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_route`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_route`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_route`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/routes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Route', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_scale_scale(self, name, namespace, body, **kwargs): + """ + partially update scale of the specified Scale + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_scale_scale(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_scale_scale_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update scale of the specified Scale + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_scale_scale_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_scale_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scale_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scale_scale`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scale_scale`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_template(self, name, namespace, body, **kwargs): + """ + partially update the specified Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_template(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Template (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_template_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_template_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_template_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_template_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Template (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_template`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_template`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_template`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/templates/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Template', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_net_namespace(self, name, body, **kwargs): + """ + partially update the specified NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_net_namespace(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetNamespace (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1NetNamespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_net_namespace_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_net_namespace_with_http_info(name, body, **kwargs) + return data + + def patch_net_namespace_with_http_info(self, name, body, **kwargs): + """ + partially update the specified NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_net_namespace_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetNamespace (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1NetNamespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_net_namespace" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_net_namespace`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_net_namespace`") + + + collection_formats = {} + + resource_path = '/oapi/v1/netnamespaces/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NetNamespace', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_o_auth_access_token(self, name, body, **kwargs): + """ + partially update the specified OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_o_auth_access_token(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAccessToken (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthAccessToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_o_auth_access_token_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_o_auth_access_token_with_http_info(name, body, **kwargs) + return data + + def patch_o_auth_access_token_with_http_info(self, name, body, **kwargs): + """ + partially update the specified OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_o_auth_access_token_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAccessToken (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthAccessToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_o_auth_access_token" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_o_auth_access_token`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_o_auth_access_token`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthaccesstokens/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthAccessToken', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_o_auth_authorize_token(self, name, body, **kwargs): + """ + partially update the specified OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_o_auth_authorize_token(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAuthorizeToken (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthAuthorizeToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_o_auth_authorize_token_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_o_auth_authorize_token_with_http_info(name, body, **kwargs) + return data + + def patch_o_auth_authorize_token_with_http_info(self, name, body, **kwargs): + """ + partially update the specified OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_o_auth_authorize_token_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAuthorizeToken (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthAuthorizeToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_o_auth_authorize_token" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_o_auth_authorize_token`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_o_auth_authorize_token`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthauthorizetokens/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthAuthorizeToken', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_o_auth_client(self, name, body, **kwargs): + """ + partially update the specified OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_o_auth_client(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClient (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthClient + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_o_auth_client_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_o_auth_client_with_http_info(name, body, **kwargs) + return data + + def patch_o_auth_client_with_http_info(self, name, body, **kwargs): + """ + partially update the specified OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_o_auth_client_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClient (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthClient + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_o_auth_client" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_o_auth_client`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_o_auth_client`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclients/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthClient', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_o_auth_client_authorization(self, name, body, **kwargs): + """ + partially update the specified OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_o_auth_client_authorization(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClientAuthorization (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthClientAuthorization + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_o_auth_client_authorization_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_o_auth_client_authorization_with_http_info(name, body, **kwargs) + return data + + def patch_o_auth_client_authorization_with_http_info(self, name, body, **kwargs): + """ + partially update the specified OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_o_auth_client_authorization_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClientAuthorization (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthClientAuthorization + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_o_auth_client_authorization" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_o_auth_client_authorization`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_o_auth_client_authorization`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclientauthorizations/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthClientAuthorization', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_project(self, name, body, **kwargs): + """ + partially update the specified Project + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_project(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Project (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Project + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_project_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_project_with_http_info(name, body, **kwargs) + return data + + def patch_project_with_http_info(self, name, body, **kwargs): + """ + partially update the specified Project + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_project_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Project (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Project + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_project`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_project`") + + + collection_formats = {} + + resource_path = '/oapi/v1/projects/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Project', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_user(self, name, body, **kwargs): + """ + partially update the specified User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_user(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the User (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1User + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_user_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_user_with_http_info(name, body, **kwargs) + return data + + def patch_user_with_http_info(self, name, body, **kwargs): + """ + partially update the specified User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_user_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the User (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1User + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_user" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_user`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_user`") + + + collection_formats = {} + + resource_path = '/oapi/v1/users/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1User', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_user_identity_mapping(self, name, body, **kwargs): + """ + partially update the specified UserIdentityMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_user_identity_mapping(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the UserIdentityMapping (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1UserIdentityMapping + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_user_identity_mapping_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_user_identity_mapping_with_http_info(name, body, **kwargs) + return data + + def patch_user_identity_mapping_with_http_info(self, name, body, **kwargs): + """ + partially update the specified UserIdentityMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_user_identity_mapping_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the UserIdentityMapping (required) + :param object body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1UserIdentityMapping + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_user_identity_mapping" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_user_identity_mapping`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_user_identity_mapping`") + + + collection_formats = {} + + resource_path = '/oapi/v1/useridentitymappings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1UserIdentityMapping', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_network(self, name, **kwargs): + """ + read the specified ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_network(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterNetwork (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ClusterNetwork + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_cluster_network_with_http_info(name, **kwargs) + else: + (data) = self.read_cluster_network_with_http_info(name, **kwargs) + return data + + def read_cluster_network_with_http_info(self, name, **kwargs): + """ + read the specified ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_network_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterNetwork (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ClusterNetwork + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_cluster_network" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_network`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusternetworks/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterNetwork', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_policy(self, name, **kwargs): + """ + read the specified ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_policy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicy (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ClusterPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_cluster_policy_with_http_info(name, **kwargs) + else: + (data) = self.read_cluster_policy_with_http_info(name, **kwargs) + return data + + def read_cluster_policy_with_http_info(self, name, **kwargs): + """ + read the specified ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_policy_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicy (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ClusterPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_cluster_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_policy_binding(self, name, **kwargs): + """ + read the specified ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_policy_binding(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicyBinding (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ClusterPolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_cluster_policy_binding_with_http_info(name, **kwargs) + else: + (data) = self.read_cluster_policy_binding_with_http_info(name, **kwargs) + return data + + def read_cluster_policy_binding_with_http_info(self, name, **kwargs): + """ + read the specified ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_policy_binding_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicyBinding (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ClusterPolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_cluster_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_policy_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicybindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterPolicyBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_resource_quota(self, name, **kwargs): + """ + read the specified ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_resource_quota(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_cluster_resource_quota_with_http_info(name, **kwargs) + else: + (data) = self.read_cluster_resource_quota_with_http_info(name, **kwargs) + return data + + def read_cluster_resource_quota_with_http_info(self, name, **kwargs): + """ + read the specified ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_resource_quota_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_cluster_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_resource_quota`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterresourcequotas/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_resource_quota_status(self, name, **kwargs): + """ + read status of the specified ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_resource_quota_status(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_cluster_resource_quota_status_with_http_info(name, **kwargs) + else: + (data) = self.read_cluster_resource_quota_status_with_http_info(name, **kwargs) + return data + + def read_cluster_resource_quota_status_with_http_info(self, name, **kwargs): + """ + read status of the specified ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_resource_quota_status_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_cluster_resource_quota_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_resource_quota_status`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterresourcequotas/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_role(self, name, **kwargs): + """ + read the specified ClusterRole + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_role(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_cluster_role_with_http_info(name, **kwargs) + else: + (data) = self.read_cluster_role_with_http_info(name, **kwargs) + return data + + def read_cluster_role_with_http_info(self, name, **kwargs): + """ + read the specified ClusterRole + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_role_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_role`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterroles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRole', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_role_binding(self, name, **kwargs): + """ + read the specified ClusterRoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_role_binding(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_cluster_role_binding_with_http_info(name, **kwargs) + else: + (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) + return data + + def read_cluster_role_binding_with_http_info(self, name, **kwargs): + """ + read the specified ClusterRoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_cluster_role_binding_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterrolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_group(self, name, **kwargs): + """ + read the specified Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_group(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Group (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Group + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_group_with_http_info(name, **kwargs) + else: + (data) = self.read_group_with_http_info(name, **kwargs) + return data + + def read_group_with_http_info(self, name, **kwargs): + """ + read the specified Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_group_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Group (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Group + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_group" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_group`") + + + collection_formats = {} + + resource_path = '/oapi/v1/groups/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Group', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_host_subnet(self, name, **kwargs): + """ + read the specified HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_host_subnet(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HostSubnet (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1HostSubnet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_host_subnet_with_http_info(name, **kwargs) + else: + (data) = self.read_host_subnet_with_http_info(name, **kwargs) + return data + + def read_host_subnet_with_http_info(self, name, **kwargs): + """ + read the specified HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_host_subnet_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HostSubnet (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1HostSubnet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_host_subnet" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_host_subnet`") + + + collection_formats = {} + + resource_path = '/oapi/v1/hostsubnets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HostSubnet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_identity(self, name, **kwargs): + """ + read the specified Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_identity(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Identity (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Identity + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_identity_with_http_info(name, **kwargs) + else: + (data) = self.read_identity_with_http_info(name, **kwargs) + return data + + def read_identity_with_http_info(self, name, **kwargs): + """ + read the specified Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_identity_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Identity (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Identity + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_identity" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_identity`") + + + collection_formats = {} + + resource_path = '/oapi/v1/identities/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Identity', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_image(self, name, **kwargs): + """ + read the specified Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_image(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Image (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Image + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_image_with_http_info(name, **kwargs) + else: + (data) = self.read_image_with_http_info(name, **kwargs) + return data + + def read_image_with_http_info(self, name, **kwargs): + """ + read the specified Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_image_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Image (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Image + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_image" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_image`") + + + collection_formats = {} + + resource_path = '/oapi/v1/images/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Image', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_applied_cluster_resource_quota(self, name, namespace, **kwargs): + """ + read the specified AppliedClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_applied_cluster_resource_quota(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the AppliedClusterResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1AppliedClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_applied_cluster_resource_quota_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_applied_cluster_resource_quota_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_applied_cluster_resource_quota_with_http_info(self, name, namespace, **kwargs): + """ + read the specified AppliedClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_applied_cluster_resource_quota_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the AppliedClusterResourceQuota (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1AppliedClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_applied_cluster_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_applied_cluster_resource_quota`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_applied_cluster_resource_quota`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/appliedclusterresourcequotas/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1AppliedClusterResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_build(self, name, namespace, **kwargs): + """ + read the specified Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_build(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Build (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_build_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_build_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_build_with_http_info(self, name, namespace, **kwargs): + """ + read the specified Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_build_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Build (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_build`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_build`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/builds/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Build', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_build_config(self, name, namespace, **kwargs): + """ + read the specified BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_build_config(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the BuildConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1BuildConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_build_config_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_build_config_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_build_config_with_http_info(self, name, namespace, **kwargs): + """ + read the specified BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_build_config_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the BuildConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1BuildConfig + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_build_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_build_config`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_build_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/buildconfigs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1BuildConfig', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_build_log_log(self, name, namespace, **kwargs): + """ + read log of the specified BuildLog + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_build_log_log(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the BuildLog (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str container: cointainer for which to stream logs. Defaults to only container if there is one container in the pod. + :param bool follow: follow if true indicates that the build log should be streamed until the build terminates. + :param int limit_bytes: limitBytes, If set, is the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. + :param bool nowait: noWait if true causes the call to return immediately even if the build is not available yet. Otherwise the server will wait until the build has started. + :param str pretty: If 'true', then the output is pretty printed. + :param bool previous: previous returns previous build logs. Defaults to false. + :param int since_seconds: sinceSeconds is a relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param str since_time: sinceTime is an RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param int tail_lines: tailLines, If set, is the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + :param bool timestamps: timestamps, If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. + :param int version: version of the build for which to view logs. + :return: V1BuildLog + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_build_log_log_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_build_log_log_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_build_log_log_with_http_info(self, name, namespace, **kwargs): + """ + read log of the specified BuildLog + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_build_log_log_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the BuildLog (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str container: cointainer for which to stream logs. Defaults to only container if there is one container in the pod. + :param bool follow: follow if true indicates that the build log should be streamed until the build terminates. + :param int limit_bytes: limitBytes, If set, is the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. + :param bool nowait: noWait if true causes the call to return immediately even if the build is not available yet. Otherwise the server will wait until the build has started. + :param str pretty: If 'true', then the output is pretty printed. + :param bool previous: previous returns previous build logs. Defaults to false. + :param int since_seconds: sinceSeconds is a relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param str since_time: sinceTime is an RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param int tail_lines: tailLines, If set, is the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + :param bool timestamps: timestamps, If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. + :param int version: version of the build for which to view logs. + :return: V1BuildLog + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'container', 'follow', 'limit_bytes', 'nowait', 'pretty', 'previous', 'since_seconds', 'since_time', 'tail_lines', 'timestamps', 'version'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_build_log_log" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_build_log_log`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_build_log_log`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/builds/{name}/log'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'container' in params: + query_params['container'] = params['container'] + if 'follow' in params: + query_params['follow'] = params['follow'] + if 'limit_bytes' in params: + query_params['limitBytes'] = params['limit_bytes'] + if 'nowait' in params: + query_params['nowait'] = params['nowait'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'previous' in params: + query_params['previous'] = params['previous'] + if 'since_seconds' in params: + query_params['sinceSeconds'] = params['since_seconds'] + if 'since_time' in params: + query_params['sinceTime'] = params['since_time'] + if 'tail_lines' in params: + query_params['tailLines'] = params['tail_lines'] + if 'timestamps' in params: + query_params['timestamps'] = params['timestamps'] + if 'version' in params: + query_params['version'] = params['version'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1BuildLog', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment_config(self, name, namespace, **kwargs): + """ + read the specified DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_deployment_config(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_deployment_config_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_deployment_config_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_deployment_config_with_http_info(self, name, namespace, **kwargs): + """ + read the specified DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_deployment_config_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_deployment_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_config`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentConfig', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment_log_log(self, name, namespace, **kwargs): + """ + read log of the specified DeploymentLog + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_deployment_log_log(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentLog (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str container: The container for which to stream logs. Defaults to only container if there is one container in the pod. + :param bool follow: Follow if true indicates that the build log should be streamed until the build terminates. + :param int limit_bytes: If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. + :param bool nowait: NoWait if true causes the call to return immediately even if the deployment is not available yet. Otherwise the server will wait until the deployment has started. + :param str pretty: If 'true', then the output is pretty printed. + :param bool previous: Return previous deployment logs. Defaults to false. + :param int since_seconds: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param str since_time: An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param int tail_lines: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + :param bool timestamps: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. + :param int version: Version of the deployment for which to view logs. + :return: V1DeploymentLog + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_deployment_log_log_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_deployment_log_log_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_deployment_log_log_with_http_info(self, name, namespace, **kwargs): + """ + read log of the specified DeploymentLog + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_deployment_log_log_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentLog (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str container: The container for which to stream logs. Defaults to only container if there is one container in the pod. + :param bool follow: Follow if true indicates that the build log should be streamed until the build terminates. + :param int limit_bytes: If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. + :param bool nowait: NoWait if true causes the call to return immediately even if the deployment is not available yet. Otherwise the server will wait until the deployment has started. + :param str pretty: If 'true', then the output is pretty printed. + :param bool previous: Return previous deployment logs. Defaults to false. + :param int since_seconds: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param str since_time: An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + :param int tail_lines: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + :param bool timestamps: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. + :param int version: Version of the deployment for which to view logs. + :return: V1DeploymentLog + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'container', 'follow', 'limit_bytes', 'nowait', 'pretty', 'previous', 'since_seconds', 'since_time', 'tail_lines', 'timestamps', 'version'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_deployment_log_log" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_log_log`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_log_log`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/log'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'container' in params: + query_params['container'] = params['container'] + if 'follow' in params: + query_params['follow'] = params['follow'] + if 'limit_bytes' in params: + query_params['limitBytes'] = params['limit_bytes'] + if 'nowait' in params: + query_params['nowait'] = params['nowait'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'previous' in params: + query_params['previous'] = params['previous'] + if 'since_seconds' in params: + query_params['sinceSeconds'] = params['since_seconds'] + if 'since_time' in params: + query_params['sinceTime'] = params['since_time'] + if 'tail_lines' in params: + query_params['tailLines'] = params['tail_lines'] + if 'timestamps' in params: + query_params['timestamps'] = params['timestamps'] + if 'version' in params: + query_params['version'] = params['version'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentLog', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_egress_network_policy(self, name, namespace, **kwargs): + """ + read the specified EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_egress_network_policy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the EgressNetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1EgressNetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_egress_network_policy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_egress_network_policy_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_egress_network_policy_with_http_info(self, name, namespace, **kwargs): + """ + read the specified EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_egress_network_policy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the EgressNetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1EgressNetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_egress_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_egress_network_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_egress_network_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EgressNetworkPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_image_stream(self, name, namespace, **kwargs): + """ + read the specified ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_image_stream(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStream (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ImageStream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_image_stream_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_image_stream_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_image_stream_with_http_info(self, name, namespace, **kwargs): + """ + read the specified ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_image_stream_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStream (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1ImageStream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_image_stream" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_image_stream`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_image_stream`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreams/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStream', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_image_stream_image(self, name, namespace, **kwargs): + """ + read the specified ImageStreamImage + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_image_stream_image(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStreamImage (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamImage + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_image_stream_image_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_image_stream_image_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_image_stream_image_with_http_info(self, name, namespace, **kwargs): + """ + read the specified ImageStreamImage + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_image_stream_image_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStreamImage (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamImage + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_image_stream_image" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_image_stream_image`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_image_stream_image`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreamimages/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamImage', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_image_stream_tag(self, name, namespace, **kwargs): + """ + read the specified ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_image_stream_tag(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStreamTag (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamTag + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_image_stream_tag_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_image_stream_tag_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_image_stream_tag_with_http_info(self, name, namespace, **kwargs): + """ + read the specified ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_image_stream_tag_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStreamTag (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamTag + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_image_stream_tag" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_image_stream_tag`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_image_stream_tag`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreamtags/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamTag', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_policy(self, name, namespace, **kwargs): + """ + read the specified Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_policy(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Policy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Policy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_policy_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_policy_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_policy_with_http_info(self, name, namespace, **kwargs): + """ + read the specified Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_policy_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Policy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Policy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Policy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_policy_binding(self, name, namespace, **kwargs): + """ + read the specified PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_policy_binding(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PolicyBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1PolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_policy_binding_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_policy_binding_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_policy_binding_with_http_info(self, name, namespace, **kwargs): + """ + read the specified PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_policy_binding_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PolicyBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1PolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_policy_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_policy_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policybindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PolicyBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_role(self, name, namespace, **kwargs): + """ + read the specified Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_role(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): + """ + read the specified Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_role_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_role_binding(self, name, namespace, **kwargs): + """ + read the specified RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_role_binding(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): + """ + read the specified RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_role_binding_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_role_binding_restriction(self, name, namespace, **kwargs): + """ + read the specified RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_role_binding_restriction(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBindingRestriction (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1RoleBindingRestriction + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_role_binding_restriction_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_role_binding_restriction_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_role_binding_restriction_with_http_info(self, name, namespace, **kwargs): + """ + read the specified RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_role_binding_restriction_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBindingRestriction (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1RoleBindingRestriction + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_role_binding_restriction" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding_restriction`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding_restriction`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBindingRestriction', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_route(self, name, namespace, **kwargs): + """ + read the specified Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_route(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Route (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Route + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_route_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_route_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_route_with_http_info(self, name, namespace, **kwargs): + """ + read the specified Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_route_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Route (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Route + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_route" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_route`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_route`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/routes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Route', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_scale_scale(self, name, namespace, **kwargs): + """ + read scale of the specified Scale + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_scale_scale(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_scale_scale_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_scale_scale_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_scale_scale_with_http_info(self, name, namespace, **kwargs): + """ + read scale of the specified Scale + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_scale_scale_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_scale_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scale_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scale_scale`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_secret_list_secrets(self, name, namespace, **kwargs): + """ + read secrets of the specified SecretList + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_secret_list_secrets(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the SecretList (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1SecretList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_secret_list_secrets_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_secret_list_secrets_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_secret_list_secrets_with_http_info(self, name, namespace, **kwargs): + """ + read secrets of the specified SecretList + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_secret_list_secrets_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the SecretList (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str pretty: If 'true', then the output is pretty printed. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1SecretList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_secret_list_secrets" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_secret_list_secrets`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_secret_list_secrets`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreams/{name}/secrets'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + if 'timeout_seconds' in params: + query_params['timeoutSeconds'] = params['timeout_seconds'] + if 'watch' in params: + query_params['watch'] = params['watch'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SecretList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_template(self, name, namespace, **kwargs): + """ + read the specified Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_template(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Template (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_template_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_template_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_template_with_http_info(self, name, namespace, **kwargs): + """ + read the specified Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_template_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Template (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_template`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_template`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/templates/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Template', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_net_namespace(self, name, **kwargs): + """ + read the specified NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_net_namespace(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetNamespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1NetNamespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_net_namespace_with_http_info(name, **kwargs) + else: + (data) = self.read_net_namespace_with_http_info(name, **kwargs) + return data + + def read_net_namespace_with_http_info(self, name, **kwargs): + """ + read the specified NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_net_namespace_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetNamespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1NetNamespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_net_namespace" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_net_namespace`") + + + collection_formats = {} + + resource_path = '/oapi/v1/netnamespaces/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NetNamespace', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_o_auth_access_token(self, name, **kwargs): + """ + read the specified OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_o_auth_access_token(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAccessToken (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1OAuthAccessToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_o_auth_access_token_with_http_info(name, **kwargs) + else: + (data) = self.read_o_auth_access_token_with_http_info(name, **kwargs) + return data + + def read_o_auth_access_token_with_http_info(self, name, **kwargs): + """ + read the specified OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_o_auth_access_token_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAccessToken (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1OAuthAccessToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_o_auth_access_token" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_o_auth_access_token`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthaccesstokens/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthAccessToken', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_o_auth_authorize_token(self, name, **kwargs): + """ + read the specified OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_o_auth_authorize_token(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAuthorizeToken (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1OAuthAuthorizeToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_o_auth_authorize_token_with_http_info(name, **kwargs) + else: + (data) = self.read_o_auth_authorize_token_with_http_info(name, **kwargs) + return data + + def read_o_auth_authorize_token_with_http_info(self, name, **kwargs): + """ + read the specified OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_o_auth_authorize_token_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAuthorizeToken (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1OAuthAuthorizeToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_o_auth_authorize_token" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_o_auth_authorize_token`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthauthorizetokens/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthAuthorizeToken', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_o_auth_client(self, name, **kwargs): + """ + read the specified OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_o_auth_client(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClient (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1OAuthClient + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_o_auth_client_with_http_info(name, **kwargs) + else: + (data) = self.read_o_auth_client_with_http_info(name, **kwargs) + return data + + def read_o_auth_client_with_http_info(self, name, **kwargs): + """ + read the specified OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_o_auth_client_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClient (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1OAuthClient + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_o_auth_client" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_o_auth_client`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclients/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthClient', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_o_auth_client_authorization(self, name, **kwargs): + """ + read the specified OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_o_auth_client_authorization(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClientAuthorization (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1OAuthClientAuthorization + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_o_auth_client_authorization_with_http_info(name, **kwargs) + else: + (data) = self.read_o_auth_client_authorization_with_http_info(name, **kwargs) + return data + + def read_o_auth_client_authorization_with_http_info(self, name, **kwargs): + """ + read the specified OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_o_auth_client_authorization_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClientAuthorization (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1OAuthClientAuthorization + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_o_auth_client_authorization" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_o_auth_client_authorization`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclientauthorizations/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthClientAuthorization', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_project(self, name, **kwargs): + """ + read the specified Project + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_project(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Project (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Project + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_project_with_http_info(name, **kwargs) + else: + (data) = self.read_project_with_http_info(name, **kwargs) + return data + + def read_project_with_http_info(self, name, **kwargs): + """ + read the specified Project + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_project_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Project (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Project + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_project`") + + + collection_formats = {} + + resource_path = '/oapi/v1/projects/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Project', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_user(self, name, **kwargs): + """ + read the specified User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_user(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the User (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1User + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_user_with_http_info(name, **kwargs) + else: + (data) = self.read_user_with_http_info(name, **kwargs) + return data + + def read_user_with_http_info(self, name, **kwargs): + """ + read the specified User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_user_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the User (required) + :param str pretty: If 'true', then the output is pretty printed. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1User + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_user" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_user`") + + + collection_formats = {} + + resource_path = '/oapi/v1/users/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] + + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1User', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_user_identity_mapping(self, name, **kwargs): + """ + read the specified UserIdentityMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_user_identity_mapping(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the UserIdentityMapping (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1UserIdentityMapping + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_user_identity_mapping_with_http_info(name, **kwargs) + else: + (data) = self.read_user_identity_mapping_with_http_info(name, **kwargs) + return data + + def read_user_identity_mapping_with_http_info(self, name, **kwargs): + """ + read the specified UserIdentityMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_user_identity_mapping_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the UserIdentityMapping (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1UserIdentityMapping + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_user_identity_mapping" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_user_identity_mapping`") + + + collection_formats = {} + + resource_path = '/oapi/v1/useridentitymappings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1UserIdentityMapping', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_network(self, name, body, **kwargs): + """ + replace the specified ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_network(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterNetwork (required) + :param V1ClusterNetwork body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterNetwork + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_cluster_network_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_cluster_network_with_http_info(name, body, **kwargs) + return data + + def replace_cluster_network_with_http_info(self, name, body, **kwargs): + """ + replace the specified ClusterNetwork + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_network_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterNetwork (required) + :param V1ClusterNetwork body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterNetwork + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_cluster_network" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_network`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_network`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusternetworks/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterNetwork', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_policy(self, name, body, **kwargs): + """ + replace the specified ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_policy(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicy (required) + :param V1ClusterPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_cluster_policy_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_cluster_policy_with_http_info(name, body, **kwargs) + return data + + def replace_cluster_policy_with_http_info(self, name, body, **kwargs): + """ + replace the specified ClusterPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_policy_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicy (required) + :param V1ClusterPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_cluster_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_policy_binding(self, name, body, **kwargs): + """ + replace the specified ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_policy_binding(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicyBinding (required) + :param V1ClusterPolicyBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterPolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_cluster_policy_binding_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_cluster_policy_binding_with_http_info(name, body, **kwargs) + return data + + def replace_cluster_policy_binding_with_http_info(self, name, body, **kwargs): + """ + replace the specified ClusterPolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_policy_binding_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterPolicyBinding (required) + :param V1ClusterPolicyBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterPolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_cluster_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_policy_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_policy_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterpolicybindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterPolicyBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_resource_quota(self, name, body, **kwargs): + """ + replace the specified ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_resource_quota(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param V1ClusterResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_cluster_resource_quota_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_cluster_resource_quota_with_http_info(name, body, **kwargs) + return data + + def replace_cluster_resource_quota_with_http_info(self, name, body, **kwargs): + """ + replace the specified ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_resource_quota_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param V1ClusterResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_cluster_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_resource_quota`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_resource_quota`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterresourcequotas/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_resource_quota_status(self, name, body, **kwargs): + """ + replace status of the specified ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_resource_quota_status(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param V1ClusterResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_cluster_resource_quota_status_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_cluster_resource_quota_status_with_http_info(name, body, **kwargs) + return data + + def replace_cluster_resource_quota_status_with_http_info(self, name, body, **kwargs): + """ + replace status of the specified ClusterResourceQuota + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_resource_quota_status_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterResourceQuota (required) + :param V1ClusterResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_cluster_resource_quota_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_resource_quota_status`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_resource_quota_status`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterresourcequotas/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_role(self, name, body, **kwargs): + """ + replace the specified ClusterRole + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_role(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param V1ClusterRole body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_cluster_role_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) + return data + + def replace_cluster_role_with_http_info(self, name, body, **kwargs): + """ + replace the specified ClusterRole + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_role_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRole (required) + :param V1ClusterRole body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterroles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRole', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_role_binding(self, name, body, **kwargs): + """ + replace the specified ClusterRoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_role_binding(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param V1ClusterRoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) + return data + + def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): + """ + replace the specified ClusterRoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_cluster_role_binding_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ClusterRoleBinding (required) + :param V1ClusterRoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/clusterrolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_group(self, name, body, **kwargs): + """ + replace the specified Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_group(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Group (required) + :param V1Group body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Group + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_group_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_group_with_http_info(name, body, **kwargs) + return data + + def replace_group_with_http_info(self, name, body, **kwargs): + """ + replace the specified Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_group_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Group (required) + :param V1Group body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Group + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_group" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_group`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_group`") + + + collection_formats = {} + + resource_path = '/oapi/v1/groups/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Group', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_host_subnet(self, name, body, **kwargs): + """ + replace the specified HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_host_subnet(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HostSubnet (required) + :param V1HostSubnet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HostSubnet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_host_subnet_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_host_subnet_with_http_info(name, body, **kwargs) + return data + + def replace_host_subnet_with_http_info(self, name, body, **kwargs): + """ + replace the specified HostSubnet + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_host_subnet_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the HostSubnet (required) + :param V1HostSubnet body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1HostSubnet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_host_subnet" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_host_subnet`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_host_subnet`") + + + collection_formats = {} + + resource_path = '/oapi/v1/hostsubnets/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HostSubnet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_identity(self, name, body, **kwargs): + """ + replace the specified Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_identity(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Identity (required) + :param V1Identity body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Identity + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_identity_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_identity_with_http_info(name, body, **kwargs) + return data + + def replace_identity_with_http_info(self, name, body, **kwargs): + """ + replace the specified Identity + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_identity_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Identity (required) + :param V1Identity body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Identity + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_identity" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_identity`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_identity`") + + + collection_formats = {} + + resource_path = '/oapi/v1/identities/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Identity', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_image(self, name, body, **kwargs): + """ + replace the specified Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_image(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Image (required) + :param V1Image body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Image + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_image_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_image_with_http_info(name, body, **kwargs) + return data + + def replace_image_with_http_info(self, name, body, **kwargs): + """ + replace the specified Image + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_image_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Image (required) + :param V1Image body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Image + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_image" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_image`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_image`") + + + collection_formats = {} + + resource_path = '/oapi/v1/images/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Image', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_build(self, name, namespace, body, **kwargs): + """ + replace the specified Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_build(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Build (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Build body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_build_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_build_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_build_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_build_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Build (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Build body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_build`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_build`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_build`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/builds/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Build', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_build_config(self, name, namespace, body, **kwargs): + """ + replace the specified BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_build_config(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the BuildConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1BuildConfig body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1BuildConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_build_config_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_build_config_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_build_config_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified BuildConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_build_config_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the BuildConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1BuildConfig body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1BuildConfig + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_build_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_build_config`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_build_config`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_build_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/buildconfigs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1BuildConfig', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_build_details(self, body, name, namespace, **kwargs): + """ + replace details of the specified Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_build_details(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Build body: (required) + :param str name: name of the Build (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_build_details_with_http_info(body, name, namespace, **kwargs) + else: + (data) = self.replace_namespaced_build_details_with_http_info(body, name, namespace, **kwargs) + return data + + def replace_namespaced_build_details_with_http_info(self, body, name, namespace, **kwargs): + """ + replace details of the specified Build + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_build_details_with_http_info(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Build body: (required) + :param str name: name of the Build (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_build_details" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_build_details`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_build_details`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_build_details`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/builds/{name}/details'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Build', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment_config(self, name, namespace, body, **kwargs): + """ + replace the specified DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_deployment_config(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeploymentConfig body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_deployment_config_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_deployment_config_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_deployment_config_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_deployment_config_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1DeploymentConfig body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_deployment_config" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_config`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_config`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_config`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentConfig', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment_config_status(self, body, name, namespace, **kwargs): + """ + replace status of the specified DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_deployment_config_status(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeploymentConfig body: (required) + :param str name: name of the DeploymentConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_deployment_config_status_with_http_info(body, name, namespace, **kwargs) + else: + (data) = self.replace_namespaced_deployment_config_status_with_http_info(body, name, namespace, **kwargs) + return data + + def replace_namespaced_deployment_config_status_with_http_info(self, body, name, namespace, **kwargs): + """ + replace status of the specified DeploymentConfig + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_deployment_config_status_with_http_info(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeploymentConfig body: (required) + :param str name: name of the DeploymentConfig (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1DeploymentConfig + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_deployment_config_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_config_status`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_config_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_config_status`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentConfig', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_egress_network_policy(self, name, namespace, body, **kwargs): + """ + replace the specified EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_egress_network_policy(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the EgressNetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1EgressNetworkPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1EgressNetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_egress_network_policy_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_egress_network_policy_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_egress_network_policy_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified EgressNetworkPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_egress_network_policy_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the EgressNetworkPolicy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1EgressNetworkPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1EgressNetworkPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_egress_network_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_egress_network_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_egress_network_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_egress_network_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EgressNetworkPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_image_stream(self, name, namespace, body, **kwargs): + """ + replace the specified ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_image_stream(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStream (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ImageStream body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_image_stream_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_image_stream_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_image_stream_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_image_stream_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStream (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ImageStream body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_image_stream" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_image_stream`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_image_stream`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_image_stream`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreams/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStream', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_image_stream_status(self, body, name, namespace, **kwargs): + """ + replace status of the specified ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_image_stream_status(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStream body: (required) + :param str name: name of the ImageStream (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_image_stream_status_with_http_info(body, name, namespace, **kwargs) + else: + (data) = self.replace_namespaced_image_stream_status_with_http_info(body, name, namespace, **kwargs) + return data + + def replace_namespaced_image_stream_status_with_http_info(self, body, name, namespace, **kwargs): + """ + replace status of the specified ImageStream + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_image_stream_status_with_http_info(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ImageStream body: (required) + :param str name: name of the ImageStream (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_image_stream_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_image_stream_status`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_image_stream_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_image_stream_status`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreams/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStream', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_image_stream_tag(self, name, namespace, body, **kwargs): + """ + replace the specified ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_image_stream_tag(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStreamTag (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ImageStreamTag body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamTag + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_image_stream_tag_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_image_stream_tag_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_image_stream_tag_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified ImageStreamTag + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_image_stream_tag_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the ImageStreamTag (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1ImageStreamTag body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ImageStreamTag + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_image_stream_tag" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_image_stream_tag`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_image_stream_tag`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_image_stream_tag`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/imagestreamtags/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ImageStreamTag', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_policy(self, name, namespace, body, **kwargs): + """ + replace the specified Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_policy(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Policy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Policy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Policy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_policy_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_policy_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_policy_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified Policy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_policy_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Policy (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Policy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Policy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_policy`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_policy`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policies/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Policy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_policy_binding(self, name, namespace, body, **kwargs): + """ + replace the specified PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_policy_binding(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PolicyBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PolicyBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_policy_binding_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_policy_binding_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_policy_binding_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified PolicyBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_policy_binding_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PolicyBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1PolicyBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PolicyBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_policy_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_policy_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_policy_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_policy_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/policybindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PolicyBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_role(self, name, namespace, body, **kwargs): + """ + replace the specified Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_role(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified Role + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_role_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Role (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): + """ + replace the specified RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_role_binding(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified RoleBinding + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_role_binding_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBinding (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_role_binding" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_role_binding_restriction(self, name, namespace, body, **kwargs): + """ + replace the specified RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_role_binding_restriction(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBindingRestriction (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1RoleBindingRestriction body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBindingRestriction + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_role_binding_restriction_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_role_binding_restriction_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_role_binding_restriction_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified RoleBindingRestriction + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_role_binding_restriction_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the RoleBindingRestriction (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1RoleBindingRestriction body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1RoleBindingRestriction + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_role_binding_restriction" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding_restriction`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding_restriction`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding_restriction`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBindingRestriction', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_route(self, name, namespace, body, **kwargs): + """ + replace the specified Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_route(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Route (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Route body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Route + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_route_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_route_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_route_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_route_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Route (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Route body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Route + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_route" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_route`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_route`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_route`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/routes/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Route', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_route_status(self, body, name, namespace, **kwargs): + """ + replace status of the specified Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_route_status(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Route body: (required) + :param str name: name of the Route (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Route + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_route_status_with_http_info(body, name, namespace, **kwargs) + else: + (data) = self.replace_namespaced_route_status_with_http_info(body, name, namespace, **kwargs) + return data + + def replace_namespaced_route_status_with_http_info(self, body, name, namespace, **kwargs): + """ + replace status of the specified Route + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_route_status_with_http_info(body, name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Route body: (required) + :param str name: name of the Route (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Route + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name', 'namespace', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_route_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_route_status`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_route_status`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_route_status`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/routes/{name}/status'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Route', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_scale_scale(self, name, namespace, body, **kwargs): + """ + replace scale of the specified Scale + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_scale_scale(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Scale body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_scale_scale_with_http_info(self, name, namespace, body, **kwargs): + """ + replace scale of the specified Scale + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_scale_scale_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Scale (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1beta1Scale body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_scale_scale" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_scale_scale`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_scale_scale`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_scale_scale`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_template(self, name, namespace, body, **kwargs): + """ + replace the specified Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_template(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Template (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Template body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_template_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_template_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_template_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified Template + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_template_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Template (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Template body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Template + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_template`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_template`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_template`") + + + collection_formats = {} + + resource_path = '/oapi/v1/namespaces/{namespace}/templates/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Template', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_net_namespace(self, name, body, **kwargs): + """ + replace the specified NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_net_namespace(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetNamespace (required) + :param V1NetNamespace body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1NetNamespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_net_namespace_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_net_namespace_with_http_info(name, body, **kwargs) + return data + + def replace_net_namespace_with_http_info(self, name, body, **kwargs): + """ + replace the specified NetNamespace + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_net_namespace_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the NetNamespace (required) + :param V1NetNamespace body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1NetNamespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_net_namespace" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_net_namespace`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_net_namespace`") + + + collection_formats = {} + + resource_path = '/oapi/v1/netnamespaces/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NetNamespace', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_o_auth_access_token(self, name, body, **kwargs): + """ + replace the specified OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_o_auth_access_token(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAccessToken (required) + :param V1OAuthAccessToken body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthAccessToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_o_auth_access_token_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_o_auth_access_token_with_http_info(name, body, **kwargs) + return data + + def replace_o_auth_access_token_with_http_info(self, name, body, **kwargs): + """ + replace the specified OAuthAccessToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_o_auth_access_token_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAccessToken (required) + :param V1OAuthAccessToken body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthAccessToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_o_auth_access_token" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_o_auth_access_token`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_o_auth_access_token`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthaccesstokens/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthAccessToken', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_o_auth_authorize_token(self, name, body, **kwargs): + """ + replace the specified OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_o_auth_authorize_token(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAuthorizeToken (required) + :param V1OAuthAuthorizeToken body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthAuthorizeToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_o_auth_authorize_token_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_o_auth_authorize_token_with_http_info(name, body, **kwargs) + return data + + def replace_o_auth_authorize_token_with_http_info(self, name, body, **kwargs): + """ + replace the specified OAuthAuthorizeToken + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_o_auth_authorize_token_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthAuthorizeToken (required) + :param V1OAuthAuthorizeToken body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthAuthorizeToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_o_auth_authorize_token" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_o_auth_authorize_token`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_o_auth_authorize_token`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthauthorizetokens/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthAuthorizeToken', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_o_auth_client(self, name, body, **kwargs): + """ + replace the specified OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_o_auth_client(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClient (required) + :param V1OAuthClient body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthClient + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_o_auth_client_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_o_auth_client_with_http_info(name, body, **kwargs) + return data + + def replace_o_auth_client_with_http_info(self, name, body, **kwargs): + """ + replace the specified OAuthClient + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_o_auth_client_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClient (required) + :param V1OAuthClient body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthClient + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_o_auth_client" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_o_auth_client`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_o_auth_client`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclients/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthClient', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_o_auth_client_authorization(self, name, body, **kwargs): + """ + replace the specified OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_o_auth_client_authorization(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClientAuthorization (required) + :param V1OAuthClientAuthorization body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthClientAuthorization + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_o_auth_client_authorization_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_o_auth_client_authorization_with_http_info(name, body, **kwargs) + return data + + def replace_o_auth_client_authorization_with_http_info(self, name, body, **kwargs): + """ + replace the specified OAuthClientAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_o_auth_client_authorization_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the OAuthClientAuthorization (required) + :param V1OAuthClientAuthorization body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1OAuthClientAuthorization + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_o_auth_client_authorization" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_o_auth_client_authorization`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_o_auth_client_authorization`") + + + collection_formats = {} + + resource_path = '/oapi/v1/oauthclientauthorizations/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1OAuthClientAuthorization', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_project(self, name, body, **kwargs): + """ + replace the specified Project + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_project(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Project (required) + :param V1Project body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Project + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_project_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_project_with_http_info(name, body, **kwargs) + return data + + def replace_project_with_http_info(self, name, body, **kwargs): + """ + replace the specified Project + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_project_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Project (required) + :param V1Project body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Project + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_project`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_project`") + + + collection_formats = {} + + resource_path = '/oapi/v1/projects/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Project', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_user(self, name, body, **kwargs): + """ + replace the specified User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_user(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the User (required) + :param V1User body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1User + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_user_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_user_with_http_info(name, body, **kwargs) + return data + + def replace_user_with_http_info(self, name, body, **kwargs): + """ + replace the specified User + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_user_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the User (required) + :param V1User body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1User + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_user" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_user`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_user`") + + + collection_formats = {} + + resource_path = '/oapi/v1/users/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1User', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_user_identity_mapping(self, name, body, **kwargs): + """ + replace the specified UserIdentityMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_user_identity_mapping(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the UserIdentityMapping (required) + :param V1UserIdentityMapping body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1UserIdentityMapping + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_user_identity_mapping_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_user_identity_mapping_with_http_info(name, body, **kwargs) + return data + + def replace_user_identity_mapping_with_http_info(self, name, body, **kwargs): + """ + replace the specified UserIdentityMapping + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_user_identity_mapping_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the UserIdentityMapping (required) + :param V1UserIdentityMapping body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1UserIdentityMapping + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_user_identity_mapping" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_user_identity_mapping`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_user_identity_mapping`") + + + collection_formats = {} + + resource_path = '/oapi/v1/useridentitymappings/{name}'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1UserIdentityMapping', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/osapi_api.py b/kubernetes/client/apis/osapi_api.py new file mode 100644 index 0000000000..db8752471f --- /dev/null +++ b/kubernetes/client/apis/osapi_api.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class OsapiApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_version(self, **kwargs): + """ + list supported server API versions + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_version(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_version_with_http_info(**kwargs) + else: + (data) = self.get_version_with_http_info(**kwargs) + return data + + def get_version_with_http_info(self, **kwargs): + """ + list supported server API versions + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_version_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_version" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/osapi/'.replace('{format}', 'json') + 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/policy_api.py b/kubernetes/client/apis/policy_api.py index 10550bca70..88129c8899 100644 --- a/kubernetes/client/apis/policy_api.py +++ b/kubernetes/client/apis/policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='UnversionedAPIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/policy_v1beta1_api.py b/kubernetes/client/apis/policy_v1beta1_api.py index ffe507a412..9b127f0f08 100644 --- a/kubernetes/client/apis/policy_v1beta1_api.py +++ b/kubernetes/client/apis/policy_v1beta1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -156,6 +156,115 @@ def create_namespaced_pod_disruption_budget_with_http_info(self, namespace, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_pod_disruption_budget_for_all_namespaces(self, body, **kwargs): + """ + create a PodDisruptionBudget + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pod_disruption_budget_for_all_namespaces(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1PodDisruptionBudget body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_pod_disruption_budget_for_all_namespaces_with_http_info(body, **kwargs) + else: + (data) = self.create_pod_disruption_budget_for_all_namespaces_with_http_info(body, **kwargs) + return data + + def create_pod_disruption_budget_for_all_namespaces_with_http_info(self, body, **kwargs): + """ + create a PodDisruptionBudget + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pod_disruption_budget_for_all_namespaces_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1PodDisruptionBudget body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1PodDisruptionBudget + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'pretty'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pod_disruption_budget_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_pod_disruption_budget_for_all_namespaces`") + + + collection_formats = {} + + resource_path = '/apis/policy/v1beta1/poddisruptionbudgets'.replace('{format}', 'json') + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PodDisruptionBudget', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_namespaced_pod_disruption_budget(self, namespace, **kwargs): """ delete collection of PodDisruptionBudget @@ -173,10 +282,10 @@ def delete_collection_namespaced_pod_disruption_budget(self, namespace, **kwargs :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -204,10 +313,10 @@ def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, name :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -277,7 +386,7 @@ def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, name body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -303,9 +412,8 @@ def delete_namespaced_pod_disruption_budget(self, name, namespace, body, **kwarg :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -334,14 +442,13 @@ def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -383,8 +490,6 @@ def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -412,7 +517,7 @@ def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -433,7 +538,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ @@ -457,7 +562,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ @@ -509,7 +614,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='UnversionedAPIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -534,7 +639,7 @@ def list_namespaced_pod_disruption_budget(self, namespace, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1beta1PodDisruptionBudgetList @@ -565,7 +670,7 @@ def list_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwar :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1beta1PodDisruptionBudgetList @@ -659,10 +764,10 @@ def list_pod_disruption_budget_for_all_namespaces(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1beta1PodDisruptionBudgetList @@ -689,10 +794,10 @@ def list_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs) :param callback function: The callback function for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1beta1PodDisruptionBudgetList @@ -700,7 +805,7 @@ def list_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs) returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -723,12 +828,12 @@ def list_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs) path_params = {} query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -1030,7 +1135,7 @@ def read_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, @@ -1059,7 +1164,7 @@ def read_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, diff --git a/kubernetes/client/apis/rbac_authorization_api.py b/kubernetes/client/apis/rbac_authorization_api.py deleted file mode 100644 index f2cf63ee26..0000000000 --- a/kubernetes/client/apis/rbac_authorization_api.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class RbacAuthorizationApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_group(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_group_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py b/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py deleted file mode 100644 index a61f265bac..0000000000 --- a/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py +++ /dev/null @@ -1,3768 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class RbacAuthorizationV1alpha1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def create_cluster_role(self, body, **kwargs): - """ - create a ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_cluster_role(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1alpha1ClusterRole body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_cluster_role_with_http_info(body, **kwargs) - else: - (data) = self.create_cluster_role_with_http_info(body, **kwargs) - return data - - def create_cluster_role_with_http_info(self, body, **kwargs): - """ - create a ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_cluster_role_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1alpha1ClusterRole body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRole', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_cluster_role_binding(self, body, **kwargs): - """ - create a ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_cluster_role_binding(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1alpha1ClusterRoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_cluster_role_binding_with_http_info(body, **kwargs) - else: - (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) - return data - - def create_cluster_role_binding_with_http_info(self, body, **kwargs): - """ - create a ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_cluster_role_binding_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1alpha1ClusterRoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_role(self, namespace, body, **kwargs): - """ - create a Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_role(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha1Role body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1Role - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) - else: - (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) - return data - - def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): - """ - create a Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_role_with_http_info(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha1Role body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1Role - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1Role', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_role_binding(self, namespace, body, **kwargs): - """ - create a RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_role_binding(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha1RoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) - else: - (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) - return data - - def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): - """ - create a RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_role_binding_with_http_info(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha1RoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_cluster_role(self, name, body, **kwargs): - """ - delete a ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_cluster_role(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_cluster_role_with_http_info(name, body, **kwargs) - else: - (data) = self.delete_cluster_role_with_http_info(name, body, **kwargs) - return data - - def delete_cluster_role_with_http_info(self, name, body, **kwargs): - """ - delete a ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_cluster_role_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_cluster_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_cluster_role_binding(self, name, body, **kwargs): - """ - delete a ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_cluster_role_binding(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_cluster_role_binding_with_http_info(name, body, **kwargs) - else: - (data) = self.delete_cluster_role_binding_with_http_info(name, body, **kwargs) - return data - - def delete_cluster_role_binding_with_http_info(self, name, body, **kwargs): - """ - delete a ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_cluster_role_binding_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_cluster_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_cluster_role(self, **kwargs): - """ - delete collection of ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_cluster_role(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_collection_cluster_role_with_http_info(**kwargs) - else: - (data) = self.delete_collection_cluster_role_with_http_info(**kwargs) - return data - - def delete_collection_cluster_role_with_http_info(self, **kwargs): - """ - delete collection of ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_cluster_role_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_cluster_role_binding(self, **kwargs): - """ - delete collection of ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_cluster_role_binding(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) - else: - (data) = self.delete_collection_cluster_role_binding_with_http_info(**kwargs) - return data - - def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): - """ - delete collection of ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_cluster_role_binding_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_role(self, namespace, **kwargs): - """ - delete collection of Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_namespaced_role(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) - else: - (data) = self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) - return data - - def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): - """ - delete collection of Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_namespaced_role_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_role_binding(self, namespace, **kwargs): - """ - delete collection of RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_namespaced_role_binding(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) - else: - (data) = self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) - return data - - def delete_collection_namespaced_role_binding_with_http_info(self, namespace, **kwargs): - """ - delete collection of RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_namespaced_role_binding_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_role(self, name, namespace, body, **kwargs): - """ - delete a Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_role(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_namespaced_role_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.delete_namespaced_role_with_http_info(name, namespace, body, **kwargs) - return data - - def delete_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): - """ - delete a Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_role_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_role_binding(self, name, namespace, body, **kwargs): - """ - delete a RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_role_binding(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) - return data - - def delete_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - delete a RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_role_binding_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) - else: - (data) = self.get_api_resources_with_http_info(**kwargs) - return data - - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cluster_role(self, **kwargs): - """ - list or watch objects of kind ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_cluster_role(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1ClusterRoleList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_cluster_role_with_http_info(**kwargs) - else: - (data) = self.list_cluster_role_with_http_info(**kwargs) - return data - - def list_cluster_role_with_http_info(self, **kwargs): - """ - list or watch objects of kind ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_cluster_role_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1ClusterRoleList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRoleList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cluster_role_binding(self, **kwargs): - """ - list or watch objects of kind ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_cluster_role_binding(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1ClusterRoleBindingList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_cluster_role_binding_with_http_info(**kwargs) - else: - (data) = self.list_cluster_role_binding_with_http_info(**kwargs) - return data - - def list_cluster_role_binding_with_http_info(self, **kwargs): - """ - list or watch objects of kind ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_cluster_role_binding_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1ClusterRoleBindingList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRoleBindingList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_role(self, namespace, **kwargs): - """ - list or watch objects of kind Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_role(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RoleList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_namespaced_role_with_http_info(namespace, **kwargs) - else: - (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) - return data - - def list_namespaced_role_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_role_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RoleList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_role_binding(self, namespace, **kwargs): - """ - list or watch objects of kind RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_role_binding(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RoleBindingList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) - else: - (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) - return data - - def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_role_binding_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RoleBindingList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleBindingList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_role_binding_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_role_binding_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RoleBindingList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) - return data - - def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_role_binding_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RoleBindingList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_role_binding_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleBindingList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_role_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_role_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RoleList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_role_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) - return data - - def list_role_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_role_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RoleList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_role_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/roles'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_role(self, name, body, **kwargs): - """ - partially update the specified ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_cluster_role(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_cluster_role_with_http_info(name, body, **kwargs) - else: - (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) - return data - - def patch_cluster_role_with_http_info(self, name, body, **kwargs): - """ - partially update the specified ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_cluster_role_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRole', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_role_binding(self, name, body, **kwargs): - """ - partially update the specified ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_cluster_role_binding(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) - else: - (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) - return data - - def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): - """ - partially update the specified ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_cluster_role_binding_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_role(self, name, namespace, body, **kwargs): - """ - partially update the specified Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_role(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1Role - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_role_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1Role - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1Role', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): - """ - partially update the specified RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_role_binding(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_role_binding_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_cluster_role(self, name, **kwargs): - """ - read the specified ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_cluster_role(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_cluster_role_with_http_info(name, **kwargs) - else: - (data) = self.read_cluster_role_with_http_info(name, **kwargs) - return data - - def read_cluster_role_with_http_info(self, name, **kwargs): - """ - read the specified ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_cluster_role_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRole', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_cluster_role_binding(self, name, **kwargs): - """ - read the specified ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_cluster_role_binding(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_cluster_role_binding_with_http_info(name, **kwargs) - else: - (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) - return data - - def read_cluster_role_binding_with_http_info(self, name, **kwargs): - """ - read the specified ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_cluster_role_binding_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_role(self, name, namespace, **kwargs): - """ - read the specified Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_role(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1Role - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) - return data - - def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_role_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1Role - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1Role', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_role_binding(self, name, namespace, **kwargs): - """ - read the specified RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_role_binding(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) - return data - - def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): - """ - read the specified RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_role_binding_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_role(self, name, body, **kwargs): - """ - replace the specified ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_cluster_role(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param V1alpha1ClusterRole body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_cluster_role_with_http_info(name, body, **kwargs) - else: - (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) - return data - - def replace_cluster_role_with_http_info(self, name, body, **kwargs): - """ - replace the specified ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_cluster_role_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param V1alpha1ClusterRole body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRole', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_role_binding(self, name, body, **kwargs): - """ - replace the specified ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_cluster_role_binding(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param V1alpha1ClusterRoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) - else: - (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) - return data - - def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): - """ - replace the specified ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_cluster_role_binding_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param V1alpha1ClusterRoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_role(self, name, namespace, body, **kwargs): - """ - replace the specified Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_role(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha1Role body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1Role - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) - return data - - def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_role_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha1Role body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1Role - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1Role', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): - """ - replace the specified RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_role_binding(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha1RoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) - return data - - def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_role_binding_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha1RoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/rbac_authorization_v1beta1_api.py b/kubernetes/client/apis/rbac_authorization_v1beta1_api.py deleted file mode 100644 index ac6831b2bd..0000000000 --- a/kubernetes/client/apis/rbac_authorization_v1beta1_api.py +++ /dev/null @@ -1,3768 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class RbacAuthorizationV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def create_cluster_role(self, body, **kwargs): - """ - create a ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_cluster_role(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1beta1ClusterRole body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_cluster_role_with_http_info(body, **kwargs) - else: - (data) = self.create_cluster_role_with_http_info(body, **kwargs) - return data - - def create_cluster_role_with_http_info(self, body, **kwargs): - """ - create a ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_cluster_role_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1beta1ClusterRole body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRole', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_cluster_role_binding(self, body, **kwargs): - """ - create a ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_cluster_role_binding(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1beta1ClusterRoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_cluster_role_binding_with_http_info(body, **kwargs) - else: - (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) - return data - - def create_cluster_role_binding_with_http_info(self, body, **kwargs): - """ - create a ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_cluster_role_binding_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1beta1ClusterRoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_role(self, namespace, body, **kwargs): - """ - create a Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_role(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Role body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Role - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) - else: - (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) - return data - - def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): - """ - create a Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_role_with_http_info(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Role body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Role - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Role', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_role_binding(self, namespace, body, **kwargs): - """ - create a RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_role_binding(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1RoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) - else: - (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) - return data - - def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): - """ - create a RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_role_binding_with_http_info(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1RoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_cluster_role(self, name, body, **kwargs): - """ - delete a ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_cluster_role(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_cluster_role_with_http_info(name, body, **kwargs) - else: - (data) = self.delete_cluster_role_with_http_info(name, body, **kwargs) - return data - - def delete_cluster_role_with_http_info(self, name, body, **kwargs): - """ - delete a ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_cluster_role_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_cluster_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_cluster_role_binding(self, name, body, **kwargs): - """ - delete a ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_cluster_role_binding(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_cluster_role_binding_with_http_info(name, body, **kwargs) - else: - (data) = self.delete_cluster_role_binding_with_http_info(name, body, **kwargs) - return data - - def delete_cluster_role_binding_with_http_info(self, name, body, **kwargs): - """ - delete a ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_cluster_role_binding_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_cluster_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_cluster_role(self, **kwargs): - """ - delete collection of ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_cluster_role(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_collection_cluster_role_with_http_info(**kwargs) - else: - (data) = self.delete_collection_cluster_role_with_http_info(**kwargs) - return data - - def delete_collection_cluster_role_with_http_info(self, **kwargs): - """ - delete collection of ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_cluster_role_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_cluster_role_binding(self, **kwargs): - """ - delete collection of ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_cluster_role_binding(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) - else: - (data) = self.delete_collection_cluster_role_binding_with_http_info(**kwargs) - return data - - def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): - """ - delete collection of ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_cluster_role_binding_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_role(self, namespace, **kwargs): - """ - delete collection of Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_namespaced_role(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) - else: - (data) = self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) - return data - - def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): - """ - delete collection of Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_namespaced_role_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_role_binding(self, namespace, **kwargs): - """ - delete collection of RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_namespaced_role_binding(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) - else: - (data) = self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) - return data - - def delete_collection_namespaced_role_binding_with_http_info(self, namespace, **kwargs): - """ - delete collection of RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_namespaced_role_binding_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_role(self, name, namespace, body, **kwargs): - """ - delete a Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_role(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_namespaced_role_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.delete_namespaced_role_with_http_info(name, namespace, body, **kwargs) - return data - - def delete_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): - """ - delete a Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_role_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_role_binding(self, name, namespace, body, **kwargs): - """ - delete a RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_role_binding(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) - return data - - def delete_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - delete a RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_role_binding_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) - else: - (data) = self.get_api_resources_with_http_info(**kwargs) - return data - - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cluster_role(self, **kwargs): - """ - list or watch objects of kind ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_cluster_role(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ClusterRoleList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_cluster_role_with_http_info(**kwargs) - else: - (data) = self.list_cluster_role_with_http_info(**kwargs) - return data - - def list_cluster_role_with_http_info(self, **kwargs): - """ - list or watch objects of kind ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_cluster_role_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ClusterRoleList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRoleList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cluster_role_binding(self, **kwargs): - """ - list or watch objects of kind ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_cluster_role_binding(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ClusterRoleBindingList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_cluster_role_binding_with_http_info(**kwargs) - else: - (data) = self.list_cluster_role_binding_with_http_info(**kwargs) - return data - - def list_cluster_role_binding_with_http_info(self, **kwargs): - """ - list or watch objects of kind ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_cluster_role_binding_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ClusterRoleBindingList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRoleBindingList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_role(self, namespace, **kwargs): - """ - list or watch objects of kind Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_role(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RoleList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_namespaced_role_with_http_info(namespace, **kwargs) - else: - (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) - return data - - def list_namespaced_role_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_role_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RoleList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_role_binding(self, namespace, **kwargs): - """ - list or watch objects of kind RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_role_binding(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RoleBindingList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) - else: - (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) - return data - - def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_role_binding_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RoleBindingList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleBindingList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_role_binding_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_role_binding_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RoleBindingList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) - return data - - def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_role_binding_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RoleBindingList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_role_binding_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/rolebindings'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleBindingList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_role_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_role_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RoleList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_role_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) - return data - - def list_role_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_role_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RoleList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_role_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/roles'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_role(self, name, body, **kwargs): - """ - partially update the specified ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_cluster_role(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_cluster_role_with_http_info(name, body, **kwargs) - else: - (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) - return data - - def patch_cluster_role_with_http_info(self, name, body, **kwargs): - """ - partially update the specified ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_cluster_role_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRole', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_role_binding(self, name, body, **kwargs): - """ - partially update the specified ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_cluster_role_binding(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) - else: - (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) - return data - - def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): - """ - partially update the specified ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_cluster_role_binding_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_role(self, name, namespace, body, **kwargs): - """ - partially update the specified Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_role(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Role - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_role_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Role - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Role', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): - """ - partially update the specified RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_role_binding(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_role_binding_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_cluster_role(self, name, **kwargs): - """ - read the specified ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_cluster_role(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_cluster_role_with_http_info(name, **kwargs) - else: - (data) = self.read_cluster_role_with_http_info(name, **kwargs) - return data - - def read_cluster_role_with_http_info(self, name, **kwargs): - """ - read the specified ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_cluster_role_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRole', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_cluster_role_binding(self, name, **kwargs): - """ - read the specified ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_cluster_role_binding(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_cluster_role_binding_with_http_info(name, **kwargs) - else: - (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) - return data - - def read_cluster_role_binding_with_http_info(self, name, **kwargs): - """ - read the specified ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_cluster_role_binding_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_role(self, name, namespace, **kwargs): - """ - read the specified Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_role(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Role - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) - return data - - def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_role_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Role - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Role', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_role_binding(self, name, namespace, **kwargs): - """ - read the specified RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_role_binding(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) - return data - - def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): - """ - read the specified RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_role_binding_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_role(self, name, body, **kwargs): - """ - replace the specified ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_cluster_role(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param V1beta1ClusterRole body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_cluster_role_with_http_info(name, body, **kwargs) - else: - (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) - return data - - def replace_cluster_role_with_http_info(self, name, body, **kwargs): - """ - replace the specified ClusterRole - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_cluster_role_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param V1beta1ClusterRole body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRole - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRole', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_role_binding(self, name, body, **kwargs): - """ - replace the specified ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_cluster_role_binding(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param V1beta1ClusterRoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) - else: - (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) - return data - - def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): - """ - replace the specified ClusterRoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_cluster_role_binding_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param V1beta1ClusterRoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_role(self, name, namespace, body, **kwargs): - """ - replace the specified Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_role(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Role body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Role - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) - return data - - def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Role - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_role_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Role body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Role - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Role', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): - """ - replace the specified RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_role_binding(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1RoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) - return data - - def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified RoleBinding - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_role_binding_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1RoleBinding body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1RoleBinding - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleBinding', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/settings_api.py b/kubernetes/client/apis/settings_api.py deleted file mode 100644 index 975017d5e9..0000000000 --- a/kubernetes/client/apis/settings_api.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class SettingsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_group(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_group_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/settings.k8s.io/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/settings_v1alpha1_api.py b/kubernetes/client/apis/settings_v1alpha1_api.py deleted file mode 100644 index c127828260..0000000000 --- a/kubernetes/client/apis/settings_v1alpha1_api.py +++ /dev/null @@ -1,1139 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class SettingsV1alpha1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def create_namespaced_pod_preset(self, namespace, body, **kwargs): - """ - create a PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_pod_preset(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha1PodPreset body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1PodPreset - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_namespaced_pod_preset_with_http_info(namespace, body, **kwargs) - else: - (data) = self.create_namespaced_pod_preset_with_http_info(namespace, body, **kwargs) - return data - - def create_namespaced_pod_preset_with_http_info(self, namespace, body, **kwargs): - """ - create a PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_namespaced_pod_preset_with_http_info(namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha1PodPreset body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1PodPreset - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_namespaced_pod_preset" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_preset`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_preset`") - - - collection_formats = {} - - resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PodPreset', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_pod_preset(self, namespace, **kwargs): - """ - delete collection of PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_namespaced_pod_preset(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_collection_namespaced_pod_preset_with_http_info(namespace, **kwargs) - else: - (data) = self.delete_collection_namespaced_pod_preset_with_http_info(namespace, **kwargs) - return data - - def delete_collection_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): - """ - delete collection of PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_namespaced_pod_preset_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_pod_preset" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_preset`") - - - collection_formats = {} - - resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_pod_preset(self, name, namespace, body, **kwargs): - """ - delete a PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_pod_preset(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PodPreset (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.delete_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) - return data - - def delete_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kwargs): - """ - delete a PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_namespaced_pod_preset_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PodPreset (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_pod_preset" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_preset`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_preset`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_pod_preset`") - - - collection_formats = {} - - resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) - else: - (data) = self.get_api_resources_with_http_info(**kwargs) - return data - - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/settings.k8s.io/v1alpha1/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_pod_preset(self, namespace, **kwargs): - """ - list or watch objects of kind PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_pod_preset(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1PodPresetList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_namespaced_pod_preset_with_http_info(namespace, **kwargs) - else: - (data) = self.list_namespaced_pod_preset_with_http_info(namespace, **kwargs) - return data - - def list_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_namespaced_pod_preset_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1PodPresetList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_namespaced_pod_preset" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_preset`") - - - collection_formats = {} - - resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PodPresetList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_pod_preset_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_pod_preset_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1PodPresetList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_pod_preset_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.list_pod_preset_for_all_namespaces_with_http_info(**kwargs) - return data - - def list_pod_preset_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_pod_preset_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1PodPresetList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_pod_preset_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/settings.k8s.io/v1alpha1/podpresets'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PodPresetList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_pod_preset(self, name, namespace, body, **kwargs): - """ - partially update the specified PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_pod_preset(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PodPreset (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1PodPreset - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_namespaced_pod_preset_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PodPreset (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1PodPreset - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_pod_preset" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_preset`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_preset`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_preset`") - - - collection_formats = {} - - resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PodPreset', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_pod_preset(self, name, namespace, **kwargs): - """ - read the specified PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_pod_preset(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PodPreset (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1PodPreset - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) - return data - - def read_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs): - """ - read the specified PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_namespaced_pod_preset_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PodPreset (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1PodPreset - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_namespaced_pod_preset" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_preset`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_preset`") - - - collection_formats = {} - - resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PodPreset', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_pod_preset(self, name, namespace, body, **kwargs): - """ - replace the specified PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_pod_preset(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PodPreset (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha1PodPreset body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1PodPreset - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) - return data - - def replace_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified PodPreset - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_namespaced_pod_preset_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PodPreset (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1alpha1PodPreset body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1PodPreset - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_pod_preset" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_preset`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_preset`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_preset`") - - - collection_formats = {} - - resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PodPreset', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/storage_api.py b/kubernetes/client/apis/storage_api.py index 706e6245ba..274b044928 100644 --- a/kubernetes/client/apis/storage_api.py +++ b/kubernetes/client/apis/storage_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: UnversionedAPIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='UnversionedAPIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/storage_v1_api.py b/kubernetes/client/apis/storage_v1_api.py deleted file mode 100644 index bf3a4346d2..0000000000 --- a/kubernetes/client/apis/storage_v1_api.py +++ /dev/null @@ -1,968 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class StorageV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def create_storage_class(self, body, **kwargs): - """ - create a StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_storage_class(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1StorageClass body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1StorageClass - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_storage_class_with_http_info(body, **kwargs) - else: - (data) = self.create_storage_class_with_http_info(body, **kwargs) - return data - - def create_storage_class_with_http_info(self, body, **kwargs): - """ - create a StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_storage_class_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param V1StorageClass body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1StorageClass - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_storage_class" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_storage_class`") - - - collection_formats = {} - - resource_path = '/apis/storage.k8s.io/v1/storageclasses'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StorageClass', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_storage_class(self, **kwargs): - """ - delete collection of StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_storage_class(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_collection_storage_class_with_http_info(**kwargs) - else: - (data) = self.delete_collection_storage_class_with_http_info(**kwargs) - return data - - def delete_collection_storage_class_with_http_info(self, **kwargs): - """ - delete collection of StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_collection_storage_class_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_collection_storage_class" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/storage.k8s.io/v1/storageclasses'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_storage_class(self, name, body, **kwargs): - """ - delete a StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_storage_class(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StorageClass (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.delete_storage_class_with_http_info(name, body, **kwargs) - else: - (data) = self.delete_storage_class_with_http_info(name, body, **kwargs) - return data - - def delete_storage_class_with_http_info(self, name, body, **kwargs): - """ - delete a StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_storage_class_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StorageClass (required) - :param V1DeleteOptions body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_storage_class" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_storage_class`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_storage_class`") - - - collection_formats = {} - - resource_path = '/apis/storage.k8s.io/v1/storageclasses/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) - else: - (data) = self.get_api_resources_with_http_info(**kwargs) - return data - - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: V1APIResourceList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - resource_path = '/apis/storage.k8s.io/v1/'.replace('{format}', 'json') - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_storage_class(self, **kwargs): - """ - list or watch objects of kind StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_storage_class(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1StorageClassList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_storage_class_with_http_info(**kwargs) - else: - (data) = self.list_storage_class_with_http_info(**kwargs) - return data - - def list_storage_class_with_http_info(self, **kwargs): - """ - list or watch objects of kind StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_storage_class_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str pretty: If 'true', then the output is pretty printed. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1StorageClassList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_storage_class" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/storage.k8s.io/v1/storageclasses'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - 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/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StorageClassList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_storage_class(self, name, body, **kwargs): - """ - partially update the specified StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_storage_class(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StorageClass (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1StorageClass - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_storage_class_with_http_info(name, body, **kwargs) - else: - (data) = self.patch_storage_class_with_http_info(name, body, **kwargs) - return data - - def patch_storage_class_with_http_info(self, name, body, **kwargs): - """ - partially update the specified StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.patch_storage_class_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StorageClass (required) - :param object body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1StorageClass - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_storage_class" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_storage_class`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_storage_class`") - - - collection_formats = {} - - resource_path = '/apis/storage.k8s.io/v1/storageclasses/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StorageClass', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_storage_class(self, name, **kwargs): - """ - read the specified StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_storage_class(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StorageClass (required) - :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1StorageClass - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_storage_class_with_http_info(name, **kwargs) - else: - (data) = self.read_storage_class_with_http_info(name, **kwargs) - return data - - def read_storage_class_with_http_info(self, name, **kwargs): - """ - read the specified StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.read_storage_class_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StorageClass (required) - :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1StorageClass - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'pretty', 'exact', 'export'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_storage_class" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_storage_class`") - - - collection_formats = {} - - resource_path = '/apis/storage.k8s.io/v1/storageclasses/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] - - 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StorageClass', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_storage_class(self, name, body, **kwargs): - """ - replace the specified StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_storage_class(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StorageClass (required) - :param V1StorageClass body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1StorageClass - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.replace_storage_class_with_http_info(name, body, **kwargs) - else: - (data) = self.replace_storage_class_with_http_info(name, body, **kwargs) - return data - - def replace_storage_class_with_http_info(self, name, body, **kwargs): - """ - replace the specified StorageClass - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.replace_storage_class_with_http_info(name, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StorageClass (required) - :param V1StorageClass body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V1StorageClass - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method replace_storage_class" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_storage_class`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_storage_class`") - - - collection_formats = {} - - resource_path = '/apis/storage.k8s.io/v1/storageclasses/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StorageClass', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/storage_v1beta1_api.py b/kubernetes/client/apis/storage_v1beta1_api.py index 8904aba334..e036995053 100644 --- a/kubernetes/client/apis/storage_v1beta1_api.py +++ b/kubernetes/client/apis/storage_v1beta1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -165,10 +165,10 @@ def delete_collection_storage_class(self, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -195,10 +195,10 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -263,7 +263,7 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -288,9 +288,8 @@ def delete_storage_class(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ @@ -318,14 +317,13 @@ def delete_storage_class_with_http_info(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - :return: V1Status + :param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. + :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -362,8 +360,6 @@ def delete_storage_class_with_http_info(self, name, body, **kwargs): query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] - if 'propagation_policy' in params: - query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -391,7 +387,7 @@ def delete_storage_class_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -412,7 +408,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ @@ -436,7 +432,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: UnversionedAPIResourceList If the method is called asynchronously, returns the request thread. """ @@ -488,7 +484,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='UnversionedAPIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -512,7 +508,7 @@ def list_storage_class(self, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1beta1StorageClassList @@ -542,7 +538,7 @@ def list_storage_class_with_http_info(self, **kwargs): :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1beta1StorageClassList @@ -749,7 +745,7 @@ def read_storage_class(self, name, **kwargs): for asynchronous request. (optional) :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1beta1StorageClass If the method is called asynchronously, @@ -777,7 +773,7 @@ def read_storage_class_with_http_info(self, name, **kwargs): for asynchronous request. (optional) :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1beta1StorageClass If the method is called asynchronously, diff --git a/kubernetes/client/apis/third_party_resources_api.py b/kubernetes/client/apis/third_party_resources_api.py index 982daeda9e..371fceca87 100644 --- a/kubernetes/client/apis/third_party_resources_api.py +++ b/kubernetes/client/apis/third_party_resources_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/apis/version_api.py b/kubernetes/client/apis/version_api.py index 36f220afa8..c30e40ee0f 100644 --- a/kubernetes/client/apis/version_api.py +++ b/kubernetes/client/apis/version_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/__init__.py b/kubernetes/client/models/__init__.py index c96b606802..e87d35b11c 100644 --- a/kubernetes/client/models/__init__.py +++ b/kubernetes/client/models/__init__.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -14,53 +14,71 @@ from __future__ import absolute_import # import models into model package -from .apps_v1beta1_deployment import AppsV1beta1Deployment -from .apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition -from .apps_v1beta1_deployment_list import AppsV1beta1DeploymentList -from .apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback -from .apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec -from .apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus -from .apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy -from .apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig -from .apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment -from .apps_v1beta1_scale import AppsV1beta1Scale -from .apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec -from .apps_v1beta1_scale_status import AppsV1beta1ScaleStatus -from .extensions_v1beta1_deployment import ExtensionsV1beta1Deployment -from .extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition -from .extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList -from .extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback -from .extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec -from .extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus -from .extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy -from .extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig -from .extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment -from .extensions_v1beta1_scale import ExtensionsV1beta1Scale -from .extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec -from .extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus from .runtime_raw_extension import RuntimeRawExtension -from .v1_api_group import V1APIGroup -from .v1_api_group_list import V1APIGroupList -from .v1_api_resource import V1APIResource -from .v1_api_resource_list import V1APIResourceList -from .v1_api_versions import V1APIVersions +from .unversioned_api_group import UnversionedAPIGroup +from .unversioned_api_group_list import UnversionedAPIGroupList +from .unversioned_api_resource import UnversionedAPIResource +from .unversioned_api_resource_list import UnversionedAPIResourceList +from .unversioned_api_versions import UnversionedAPIVersions +from .unversioned_group_version_for_discovery import UnversionedGroupVersionForDiscovery +from .unversioned_label_selector import UnversionedLabelSelector +from .unversioned_label_selector_requirement import UnversionedLabelSelectorRequirement +from .unversioned_list_meta import UnversionedListMeta +from .unversioned_server_address_by_client_cidr import UnversionedServerAddressByClientCIDR +from .unversioned_status import UnversionedStatus +from .unversioned_status_cause import UnversionedStatusCause +from .unversioned_status_details import UnversionedStatusDetails from .v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource -from .v1_affinity import V1Affinity +from .v1_applied_cluster_resource_quota import V1AppliedClusterResourceQuota +from .v1_applied_cluster_resource_quota_list import V1AppliedClusterResourceQuotaList from .v1_attached_volume import V1AttachedVolume from .v1_azure_disk_volume_source import V1AzureDiskVolumeSource from .v1_azure_file_volume_source import V1AzureFileVolumeSource +from .v1_binary_build_source import V1BinaryBuildSource from .v1_binding import V1Binding +from .v1_build import V1Build +from .v1_build_config import V1BuildConfig +from .v1_build_config_list import V1BuildConfigList +from .v1_build_config_spec import V1BuildConfigSpec +from .v1_build_config_status import V1BuildConfigStatus +from .v1_build_list import V1BuildList +from .v1_build_log import V1BuildLog +from .v1_build_output import V1BuildOutput +from .v1_build_post_commit_spec import V1BuildPostCommitSpec +from .v1_build_request import V1BuildRequest +from .v1_build_source import V1BuildSource +from .v1_build_spec import V1BuildSpec +from .v1_build_status import V1BuildStatus +from .v1_build_status_output import V1BuildStatusOutput +from .v1_build_status_output_to import V1BuildStatusOutputTo +from .v1_build_strategy import V1BuildStrategy +from .v1_build_trigger_cause import V1BuildTriggerCause +from .v1_build_trigger_policy import V1BuildTriggerPolicy from .v1_capabilities import V1Capabilities from .v1_ceph_fs_volume_source import V1CephFSVolumeSource from .v1_cinder_volume_source import V1CinderVolumeSource +from .v1_cluster_network import V1ClusterNetwork +from .v1_cluster_network_list import V1ClusterNetworkList +from .v1_cluster_policy import V1ClusterPolicy +from .v1_cluster_policy_binding import V1ClusterPolicyBinding +from .v1_cluster_policy_binding_list import V1ClusterPolicyBindingList +from .v1_cluster_policy_list import V1ClusterPolicyList +from .v1_cluster_resource_quota import V1ClusterResourceQuota +from .v1_cluster_resource_quota_list import V1ClusterResourceQuotaList +from .v1_cluster_resource_quota_selector import V1ClusterResourceQuotaSelector +from .v1_cluster_resource_quota_spec import V1ClusterResourceQuotaSpec +from .v1_cluster_resource_quota_status import V1ClusterResourceQuotaStatus +from .v1_cluster_role import V1ClusterRole +from .v1_cluster_role_binding import V1ClusterRoleBinding +from .v1_cluster_role_binding_list import V1ClusterRoleBindingList +from .v1_cluster_role_list import V1ClusterRoleList +from .v1_cluster_role_scope_restriction import V1ClusterRoleScopeRestriction from .v1_component_condition import V1ComponentCondition from .v1_component_status import V1ComponentStatus from .v1_component_status_list import V1ComponentStatusList from .v1_config_map import V1ConfigMap -from .v1_config_map_env_source import V1ConfigMapEnvSource from .v1_config_map_key_selector import V1ConfigMapKeySelector from .v1_config_map_list import V1ConfigMapList -from .v1_config_map_projection import V1ConfigMapProjection from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container import V1Container from .v1_container_image import V1ContainerImage @@ -71,31 +89,62 @@ from .v1_container_state_waiting import V1ContainerStateWaiting from .v1_container_status import V1ContainerStatus from .v1_cross_version_object_reference import V1CrossVersionObjectReference +from .v1_custom_build_strategy import V1CustomBuildStrategy +from .v1_custom_deployment_strategy_params import V1CustomDeploymentStrategyParams from .v1_daemon_endpoint import V1DaemonEndpoint from .v1_delete_options import V1DeleteOptions -from .v1_downward_api_projection import V1DownwardAPIProjection +from .v1_deployment_cause import V1DeploymentCause +from .v1_deployment_cause_image_trigger import V1DeploymentCauseImageTrigger +from .v1_deployment_condition import V1DeploymentCondition +from .v1_deployment_config import V1DeploymentConfig +from .v1_deployment_config_list import V1DeploymentConfigList +from .v1_deployment_config_rollback import V1DeploymentConfigRollback +from .v1_deployment_config_rollback_spec import V1DeploymentConfigRollbackSpec +from .v1_deployment_config_spec import V1DeploymentConfigSpec +from .v1_deployment_config_status import V1DeploymentConfigStatus +from .v1_deployment_details import V1DeploymentDetails +from .v1_deployment_log import V1DeploymentLog +from .v1_deployment_request import V1DeploymentRequest +from .v1_deployment_strategy import V1DeploymentStrategy +from .v1_deployment_trigger_image_change_params import V1DeploymentTriggerImageChangeParams +from .v1_deployment_trigger_policy import V1DeploymentTriggerPolicy +from .v1_deprecated_downward_api_volume_file import V1DeprecatedDownwardAPIVolumeFile +from .v1_deprecated_downward_api_volume_source import V1DeprecatedDownwardAPIVolumeSource +from .v1_docker_build_strategy import V1DockerBuildStrategy from .v1_downward_api_volume_file import V1DownwardAPIVolumeFile from .v1_downward_api_volume_source import V1DownwardAPIVolumeSource +from .v1_egress_network_policy import V1EgressNetworkPolicy +from .v1_egress_network_policy_list import V1EgressNetworkPolicyList +from .v1_egress_network_policy_peer import V1EgressNetworkPolicyPeer +from .v1_egress_network_policy_rule import V1EgressNetworkPolicyRule +from .v1_egress_network_policy_spec import V1EgressNetworkPolicySpec from .v1_empty_dir_volume_source import V1EmptyDirVolumeSource from .v1_endpoint_address import V1EndpointAddress from .v1_endpoint_port import V1EndpointPort from .v1_endpoint_subset import V1EndpointSubset from .v1_endpoints import V1Endpoints from .v1_endpoints_list import V1EndpointsList -from .v1_env_from_source import V1EnvFromSource from .v1_env_var import V1EnvVar from .v1_env_var_source import V1EnvVarSource from .v1_event import V1Event from .v1_event_list import V1EventList from .v1_event_source import V1EventSource from .v1_exec_action import V1ExecAction +from .v1_exec_new_pod_hook import V1ExecNewPodHook from .v1_fc_volume_source import V1FCVolumeSource +from .v1_fs_group_strategy_options import V1FSGroupStrategyOptions from .v1_flex_volume_source import V1FlexVolumeSource from .v1_flocker_volume_source import V1FlockerVolumeSource from .v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource +from .v1_generic_web_hook_cause import V1GenericWebHookCause +from .v1_git_build_source import V1GitBuildSource +from .v1_git_hub_web_hook_cause import V1GitHubWebHookCause from .v1_git_repo_volume_source import V1GitRepoVolumeSource +from .v1_git_source_revision import V1GitSourceRevision from .v1_glusterfs_volume_source import V1GlusterfsVolumeSource -from .v1_group_version_for_discovery import V1GroupVersionForDiscovery +from .v1_group import V1Group +from .v1_group_list import V1GroupList +from .v1_group_restriction import V1GroupRestriction from .v1_http_get_action import V1HTTPGetAction from .v1_http_header import V1HTTPHeader from .v1_handler import V1Handler @@ -104,47 +153,85 @@ from .v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec from .v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus from .v1_host_path_volume_source import V1HostPathVolumeSource +from .v1_host_subnet import V1HostSubnet +from .v1_host_subnet_list import V1HostSubnetList +from .v1_id_range import V1IDRange from .v1_iscsi_volume_source import V1ISCSIVolumeSource +from .v1_identity import V1Identity +from .v1_identity_list import V1IdentityList +from .v1_image import V1Image +from .v1_image_change_cause import V1ImageChangeCause +from .v1_image_change_trigger import V1ImageChangeTrigger +from .v1_image_import_spec import V1ImageImportSpec +from .v1_image_import_status import V1ImageImportStatus +from .v1_image_label import V1ImageLabel +from .v1_image_layer import V1ImageLayer +from .v1_image_list import V1ImageList +from .v1_image_signature import V1ImageSignature +from .v1_image_source import V1ImageSource +from .v1_image_source_path import V1ImageSourcePath +from .v1_image_stream import V1ImageStream +from .v1_image_stream_image import V1ImageStreamImage +from .v1_image_stream_import import V1ImageStreamImport +from .v1_image_stream_import_spec import V1ImageStreamImportSpec +from .v1_image_stream_import_status import V1ImageStreamImportStatus +from .v1_image_stream_list import V1ImageStreamList +from .v1_image_stream_mapping import V1ImageStreamMapping +from .v1_image_stream_spec import V1ImageStreamSpec +from .v1_image_stream_status import V1ImageStreamStatus +from .v1_image_stream_tag import V1ImageStreamTag +from .v1_image_stream_tag_list import V1ImageStreamTagList +from .v1_jenkins_pipeline_build_strategy import V1JenkinsPipelineBuildStrategy from .v1_job import V1Job from .v1_job_condition import V1JobCondition from .v1_job_list import V1JobList from .v1_job_spec import V1JobSpec from .v1_job_status import V1JobStatus from .v1_key_to_path import V1KeyToPath -from .v1_label_selector import V1LabelSelector -from .v1_label_selector_requirement import V1LabelSelectorRequirement from .v1_lifecycle import V1Lifecycle +from .v1_lifecycle_hook import V1LifecycleHook from .v1_limit_range import V1LimitRange from .v1_limit_range_item import V1LimitRangeItem from .v1_limit_range_list import V1LimitRangeList from .v1_limit_range_spec import V1LimitRangeSpec -from .v1_list_meta import V1ListMeta from .v1_load_balancer_ingress import V1LoadBalancerIngress from .v1_load_balancer_status import V1LoadBalancerStatus from .v1_local_object_reference import V1LocalObjectReference +from .v1_local_resource_access_review import V1LocalResourceAccessReview from .v1_local_subject_access_review import V1LocalSubjectAccessReview from .v1_nfs_volume_source import V1NFSVolumeSource +from .v1_named_cluster_role import V1NamedClusterRole +from .v1_named_cluster_role_binding import V1NamedClusterRoleBinding +from .v1_named_role import V1NamedRole +from .v1_named_role_binding import V1NamedRoleBinding +from .v1_named_tag_event_list import V1NamedTagEventList from .v1_namespace import V1Namespace from .v1_namespace_list import V1NamespaceList from .v1_namespace_spec import V1NamespaceSpec from .v1_namespace_status import V1NamespaceStatus +from .v1_net_namespace import V1NetNamespace +from .v1_net_namespace_list import V1NetNamespaceList from .v1_node import V1Node from .v1_node_address import V1NodeAddress -from .v1_node_affinity import V1NodeAffinity from .v1_node_condition import V1NodeCondition from .v1_node_daemon_endpoints import V1NodeDaemonEndpoints from .v1_node_list import V1NodeList -from .v1_node_selector import V1NodeSelector -from .v1_node_selector_requirement import V1NodeSelectorRequirement -from .v1_node_selector_term import V1NodeSelectorTerm from .v1_node_spec import V1NodeSpec from .v1_node_status import V1NodeStatus from .v1_node_system_info import V1NodeSystemInfo -from .v1_non_resource_attributes import V1NonResourceAttributes +from .v1_o_auth_access_token import V1OAuthAccessToken +from .v1_o_auth_access_token_list import V1OAuthAccessTokenList +from .v1_o_auth_authorize_token import V1OAuthAuthorizeToken +from .v1_o_auth_authorize_token_list import V1OAuthAuthorizeTokenList +from .v1_o_auth_client import V1OAuthClient +from .v1_o_auth_client_authorization import V1OAuthClientAuthorization +from .v1_o_auth_client_authorization_list import V1OAuthClientAuthorizationList +from .v1_o_auth_client_list import V1OAuthClientList from .v1_object_field_selector import V1ObjectFieldSelector from .v1_object_meta import V1ObjectMeta from .v1_object_reference import V1ObjectReference from .v1_owner_reference import V1OwnerReference +from .v1_parameter import V1Parameter from .v1_persistent_volume import V1PersistentVolume from .v1_persistent_volume_claim import V1PersistentVolumeClaim from .v1_persistent_volume_claim_list import V1PersistentVolumeClaimList @@ -156,112 +243,151 @@ from .v1_persistent_volume_status import V1PersistentVolumeStatus from .v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource from .v1_pod import V1Pod -from .v1_pod_affinity import V1PodAffinity -from .v1_pod_affinity_term import V1PodAffinityTerm -from .v1_pod_anti_affinity import V1PodAntiAffinity from .v1_pod_condition import V1PodCondition from .v1_pod_list import V1PodList from .v1_pod_security_context import V1PodSecurityContext +from .v1_pod_security_policy_review import V1PodSecurityPolicyReview +from .v1_pod_security_policy_review_spec import V1PodSecurityPolicyReviewSpec +from .v1_pod_security_policy_review_status import V1PodSecurityPolicyReviewStatus +from .v1_pod_security_policy_self_subject_review import V1PodSecurityPolicySelfSubjectReview +from .v1_pod_security_policy_self_subject_review_spec import V1PodSecurityPolicySelfSubjectReviewSpec +from .v1_pod_security_policy_subject_review import V1PodSecurityPolicySubjectReview +from .v1_pod_security_policy_subject_review_spec import V1PodSecurityPolicySubjectReviewSpec +from .v1_pod_security_policy_subject_review_status import V1PodSecurityPolicySubjectReviewStatus from .v1_pod_spec import V1PodSpec from .v1_pod_status import V1PodStatus from .v1_pod_template import V1PodTemplate from .v1_pod_template_list import V1PodTemplateList from .v1_pod_template_spec import V1PodTemplateSpec -from .v1_portworx_volume_source import V1PortworxVolumeSource +from .v1_policy import V1Policy +from .v1_policy_binding import V1PolicyBinding +from .v1_policy_binding_list import V1PolicyBindingList +from .v1_policy_list import V1PolicyList +from .v1_policy_rule import V1PolicyRule from .v1_preconditions import V1Preconditions -from .v1_preferred_scheduling_term import V1PreferredSchedulingTerm from .v1_probe import V1Probe -from .v1_projected_volume_source import V1ProjectedVolumeSource +from .v1_project import V1Project +from .v1_project_list import V1ProjectList +from .v1_project_request import V1ProjectRequest +from .v1_project_spec import V1ProjectSpec +from .v1_project_status import V1ProjectStatus from .v1_quobyte_volume_source import V1QuobyteVolumeSource from .v1_rbd_volume_source import V1RBDVolumeSource +from .v1_recreate_deployment_strategy_params import V1RecreateDeploymentStrategyParams from .v1_replication_controller import V1ReplicationController from .v1_replication_controller_condition import V1ReplicationControllerCondition from .v1_replication_controller_list import V1ReplicationControllerList from .v1_replication_controller_spec import V1ReplicationControllerSpec from .v1_replication_controller_status import V1ReplicationControllerStatus -from .v1_resource_attributes import V1ResourceAttributes +from .v1_repository_import_spec import V1RepositoryImportSpec +from .v1_repository_import_status import V1RepositoryImportStatus +from .v1_resource_access_review import V1ResourceAccessReview from .v1_resource_field_selector import V1ResourceFieldSelector from .v1_resource_quota import V1ResourceQuota from .v1_resource_quota_list import V1ResourceQuotaList from .v1_resource_quota_spec import V1ResourceQuotaSpec from .v1_resource_quota_status import V1ResourceQuotaStatus +from .v1_resource_quota_status_by_namespace import V1ResourceQuotaStatusByNamespace from .v1_resource_requirements import V1ResourceRequirements +from .v1_role import V1Role +from .v1_role_binding import V1RoleBinding +from .v1_role_binding_list import V1RoleBindingList +from .v1_role_binding_restriction import V1RoleBindingRestriction +from .v1_role_binding_restriction_list import V1RoleBindingRestrictionList +from .v1_role_binding_restriction_spec import V1RoleBindingRestrictionSpec +from .v1_role_list import V1RoleList +from .v1_rolling_deployment_strategy_params import V1RollingDeploymentStrategyParams +from .v1_route import V1Route +from .v1_route_ingress import V1RouteIngress +from .v1_route_ingress_condition import V1RouteIngressCondition +from .v1_route_list import V1RouteList +from .v1_route_port import V1RoutePort +from .v1_route_spec import V1RouteSpec +from .v1_route_status import V1RouteStatus +from .v1_route_target_reference import V1RouteTargetReference +from .v1_run_as_user_strategy_options import V1RunAsUserStrategyOptions +from .v1_se_linux_context_strategy_options import V1SELinuxContextStrategyOptions from .v1_se_linux_options import V1SELinuxOptions from .v1_scale import V1Scale -from .v1_scale_io_volume_source import V1ScaleIOVolumeSource from .v1_scale_spec import V1ScaleSpec from .v1_scale_status import V1ScaleStatus +from .v1_scope_restriction import V1ScopeRestriction from .v1_secret import V1Secret -from .v1_secret_env_source import V1SecretEnvSource +from .v1_secret_build_source import V1SecretBuildSource from .v1_secret_key_selector import V1SecretKeySelector from .v1_secret_list import V1SecretList -from .v1_secret_projection import V1SecretProjection +from .v1_secret_spec import V1SecretSpec from .v1_secret_volume_source import V1SecretVolumeSource from .v1_security_context import V1SecurityContext -from .v1_self_subject_access_review import V1SelfSubjectAccessReview -from .v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec -from .v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR +from .v1_security_context_constraints import V1SecurityContextConstraints +from .v1_security_context_constraints_list import V1SecurityContextConstraintsList +from .v1_self_subject_rules_review import V1SelfSubjectRulesReview +from .v1_self_subject_rules_review_spec import V1SelfSubjectRulesReviewSpec from .v1_service import V1Service from .v1_service_account import V1ServiceAccount from .v1_service_account_list import V1ServiceAccountList +from .v1_service_account_pod_security_policy_review_status import V1ServiceAccountPodSecurityPolicyReviewStatus +from .v1_service_account_reference import V1ServiceAccountReference +from .v1_service_account_restriction import V1ServiceAccountRestriction from .v1_service_list import V1ServiceList from .v1_service_port import V1ServicePort from .v1_service_spec import V1ServiceSpec from .v1_service_status import V1ServiceStatus -from .v1_status import V1Status -from .v1_status_cause import V1StatusCause -from .v1_status_details import V1StatusDetails -from .v1_storage_class import V1StorageClass -from .v1_storage_class_list import V1StorageClassList +from .v1_signature_condition import V1SignatureCondition +from .v1_signature_issuer import V1SignatureIssuer +from .v1_signature_subject import V1SignatureSubject +from .v1_source_build_strategy import V1SourceBuildStrategy +from .v1_source_control_user import V1SourceControlUser +from .v1_source_revision import V1SourceRevision from .v1_subject_access_review import V1SubjectAccessReview -from .v1_subject_access_review_spec import V1SubjectAccessReviewSpec -from .v1_subject_access_review_status import V1SubjectAccessReviewStatus +from .v1_subject_rules_review import V1SubjectRulesReview +from .v1_subject_rules_review_spec import V1SubjectRulesReviewSpec +from .v1_subject_rules_review_status import V1SubjectRulesReviewStatus +from .v1_supplemental_groups_strategy_options import V1SupplementalGroupsStrategyOptions from .v1_tcp_socket_action import V1TCPSocketAction -from .v1_taint import V1Taint -from .v1_token_review import V1TokenReview -from .v1_token_review_spec import V1TokenReviewSpec -from .v1_token_review_status import V1TokenReviewStatus -from .v1_toleration import V1Toleration -from .v1_user_info import V1UserInfo +from .v1_tls_config import V1TLSConfig +from .v1_tag_event import V1TagEvent +from .v1_tag_event_condition import V1TagEventCondition +from .v1_tag_image_hook import V1TagImageHook +from .v1_tag_import_policy import V1TagImportPolicy +from .v1_tag_reference import V1TagReference +from .v1_tag_reference_policy import V1TagReferencePolicy +from .v1_template import V1Template +from .v1_template_list import V1TemplateList +from .v1_user import V1User +from .v1_user_identity_mapping import V1UserIdentityMapping +from .v1_user_list import V1UserList +from .v1_user_restriction import V1UserRestriction from .v1_volume import V1Volume from .v1_volume_mount import V1VolumeMount -from .v1_volume_projection import V1VolumeProjection from .v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource -from .v1_watch_event import V1WatchEvent -from .v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm -from .v1alpha1_cluster_role import V1alpha1ClusterRole -from .v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding -from .v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList -from .v1alpha1_cluster_role_list import V1alpha1ClusterRoleList -from .v1alpha1_pod_preset import V1alpha1PodPreset -from .v1alpha1_pod_preset_list import V1alpha1PodPresetList -from .v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec -from .v1alpha1_policy_rule import V1alpha1PolicyRule -from .v1alpha1_role import V1alpha1Role -from .v1alpha1_role_binding import V1alpha1RoleBinding -from .v1alpha1_role_binding_list import V1alpha1RoleBindingList -from .v1alpha1_role_list import V1alpha1RoleList -from .v1alpha1_role_ref import V1alpha1RoleRef -from .v1alpha1_subject import V1alpha1Subject +from .v1_web_hook_trigger import V1WebHookTrigger +from .v1alpha1_certificate_signing_request import V1alpha1CertificateSigningRequest +from .v1alpha1_certificate_signing_request_condition import V1alpha1CertificateSigningRequestCondition +from .v1alpha1_certificate_signing_request_list import V1alpha1CertificateSigningRequestList +from .v1alpha1_certificate_signing_request_spec import V1alpha1CertificateSigningRequestSpec +from .v1alpha1_certificate_signing_request_status import V1alpha1CertificateSigningRequestStatus from .v1beta1_api_version import V1beta1APIVersion -from .v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest -from .v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition -from .v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList -from .v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec -from .v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus -from .v1beta1_cluster_role import V1beta1ClusterRole -from .v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding -from .v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList -from .v1beta1_cluster_role_list import V1beta1ClusterRoleList +from .v1beta1_cpu_target_utilization import V1beta1CPUTargetUtilization from .v1beta1_daemon_set import V1beta1DaemonSet from .v1beta1_daemon_set_list import V1beta1DaemonSetList from .v1beta1_daemon_set_spec import V1beta1DaemonSetSpec from .v1beta1_daemon_set_status import V1beta1DaemonSetStatus -from .v1beta1_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy +from .v1beta1_deployment import V1beta1Deployment +from .v1beta1_deployment_condition import V1beta1DeploymentCondition +from .v1beta1_deployment_list import V1beta1DeploymentList +from .v1beta1_deployment_rollback import V1beta1DeploymentRollback +from .v1beta1_deployment_spec import V1beta1DeploymentSpec +from .v1beta1_deployment_status import V1beta1DeploymentStatus +from .v1beta1_deployment_strategy import V1beta1DeploymentStrategy from .v1beta1_eviction import V1beta1Eviction from .v1beta1_fs_group_strategy_options import V1beta1FSGroupStrategyOptions from .v1beta1_http_ingress_path import V1beta1HTTPIngressPath from .v1beta1_http_ingress_rule_value import V1beta1HTTPIngressRuleValue +from .v1beta1_horizontal_pod_autoscaler import V1beta1HorizontalPodAutoscaler +from .v1beta1_horizontal_pod_autoscaler_list import V1beta1HorizontalPodAutoscalerList +from .v1beta1_horizontal_pod_autoscaler_spec import V1beta1HorizontalPodAutoscalerSpec +from .v1beta1_horizontal_pod_autoscaler_status import V1beta1HorizontalPodAutoscalerStatus from .v1beta1_host_port_range import V1beta1HostPortRange from .v1beta1_id_range import V1beta1IDRange from .v1beta1_ingress import V1beta1Ingress @@ -271,14 +397,17 @@ from .v1beta1_ingress_spec import V1beta1IngressSpec from .v1beta1_ingress_status import V1beta1IngressStatus from .v1beta1_ingress_tls import V1beta1IngressTLS -from .v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview +from .v1beta1_job import V1beta1Job +from .v1beta1_job_condition import V1beta1JobCondition +from .v1beta1_job_list import V1beta1JobList +from .v1beta1_job_spec import V1beta1JobSpec +from .v1beta1_job_status import V1beta1JobStatus from .v1beta1_network_policy import V1beta1NetworkPolicy from .v1beta1_network_policy_ingress_rule import V1beta1NetworkPolicyIngressRule from .v1beta1_network_policy_list import V1beta1NetworkPolicyList from .v1beta1_network_policy_peer import V1beta1NetworkPolicyPeer from .v1beta1_network_policy_port import V1beta1NetworkPolicyPort from .v1beta1_network_policy_spec import V1beta1NetworkPolicySpec -from .v1beta1_non_resource_attributes import V1beta1NonResourceAttributes from .v1beta1_pod_disruption_budget import V1beta1PodDisruptionBudget from .v1beta1_pod_disruption_budget_list import V1beta1PodDisruptionBudgetList from .v1beta1_pod_disruption_budget_spec import V1beta1PodDisruptionBudgetSpec @@ -286,33 +415,25 @@ from .v1beta1_pod_security_policy import V1beta1PodSecurityPolicy from .v1beta1_pod_security_policy_list import V1beta1PodSecurityPolicyList from .v1beta1_pod_security_policy_spec import V1beta1PodSecurityPolicySpec -from .v1beta1_policy_rule import V1beta1PolicyRule from .v1beta1_replica_set import V1beta1ReplicaSet from .v1beta1_replica_set_condition import V1beta1ReplicaSetCondition from .v1beta1_replica_set_list import V1beta1ReplicaSetList from .v1beta1_replica_set_spec import V1beta1ReplicaSetSpec from .v1beta1_replica_set_status import V1beta1ReplicaSetStatus -from .v1beta1_resource_attributes import V1beta1ResourceAttributes -from .v1beta1_role import V1beta1Role -from .v1beta1_role_binding import V1beta1RoleBinding -from .v1beta1_role_binding_list import V1beta1RoleBindingList -from .v1beta1_role_list import V1beta1RoleList -from .v1beta1_role_ref import V1beta1RoleRef -from .v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet +from .v1beta1_rollback_config import V1beta1RollbackConfig +from .v1beta1_rolling_update_deployment import V1beta1RollingUpdateDeployment from .v1beta1_run_as_user_strategy_options import V1beta1RunAsUserStrategyOptions from .v1beta1_se_linux_strategy_options import V1beta1SELinuxStrategyOptions -from .v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview -from .v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec +from .v1beta1_scale import V1beta1Scale +from .v1beta1_scale_spec import V1beta1ScaleSpec +from .v1beta1_scale_status import V1beta1ScaleStatus from .v1beta1_stateful_set import V1beta1StatefulSet from .v1beta1_stateful_set_list import V1beta1StatefulSetList from .v1beta1_stateful_set_spec import V1beta1StatefulSetSpec from .v1beta1_stateful_set_status import V1beta1StatefulSetStatus from .v1beta1_storage_class import V1beta1StorageClass from .v1beta1_storage_class_list import V1beta1StorageClassList -from .v1beta1_subject import V1beta1Subject -from .v1beta1_subject_access_review import V1beta1SubjectAccessReview -from .v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec -from .v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus +from .v1beta1_subresource_reference import V1beta1SubresourceReference from .v1beta1_supplemental_groups_strategy_options import V1beta1SupplementalGroupsStrategyOptions from .v1beta1_third_party_resource import V1beta1ThirdPartyResource from .v1beta1_third_party_resource_list import V1beta1ThirdPartyResourceList @@ -324,18 +445,11 @@ from .v2alpha1_cron_job_list import V2alpha1CronJobList from .v2alpha1_cron_job_spec import V2alpha1CronJobSpec from .v2alpha1_cron_job_status import V2alpha1CronJobStatus -from .v2alpha1_cross_version_object_reference import V2alpha1CrossVersionObjectReference -from .v2alpha1_horizontal_pod_autoscaler import V2alpha1HorizontalPodAutoscaler -from .v2alpha1_horizontal_pod_autoscaler_list import V2alpha1HorizontalPodAutoscalerList -from .v2alpha1_horizontal_pod_autoscaler_spec import V2alpha1HorizontalPodAutoscalerSpec -from .v2alpha1_horizontal_pod_autoscaler_status import V2alpha1HorizontalPodAutoscalerStatus +from .v2alpha1_job import V2alpha1Job +from .v2alpha1_job_condition import V2alpha1JobCondition +from .v2alpha1_job_list import V2alpha1JobList +from .v2alpha1_job_spec import V2alpha1JobSpec +from .v2alpha1_job_status import V2alpha1JobStatus from .v2alpha1_job_template_spec import V2alpha1JobTemplateSpec -from .v2alpha1_metric_spec import V2alpha1MetricSpec -from .v2alpha1_metric_status import V2alpha1MetricStatus -from .v2alpha1_object_metric_source import V2alpha1ObjectMetricSource -from .v2alpha1_object_metric_status import V2alpha1ObjectMetricStatus -from .v2alpha1_pods_metric_source import V2alpha1PodsMetricSource -from .v2alpha1_pods_metric_status import V2alpha1PodsMetricStatus -from .v2alpha1_resource_metric_source import V2alpha1ResourceMetricSource -from .v2alpha1_resource_metric_status import V2alpha1ResourceMetricStatus from .version_info import VersionInfo +from .versioned_event import VersionedEvent diff --git a/kubernetes/client/models/apps_v1beta1_deployment.py b/kubernetes/client/models/apps_v1beta1_deployment.py deleted file mode 100644 index 5a3e5a8e46..0000000000 --- a/kubernetes/client/models/apps_v1beta1_deployment.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class AppsV1beta1Deployment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - AppsV1beta1Deployment - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'AppsV1beta1DeploymentSpec', - 'status': 'AppsV1beta1DeploymentStatus' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status - - @property - def api_version(self): - """ - Gets the api_version of this AppsV1beta1Deployment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this AppsV1beta1Deployment. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this AppsV1beta1Deployment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this AppsV1beta1Deployment. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this AppsV1beta1Deployment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this AppsV1beta1Deployment. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this AppsV1beta1Deployment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this AppsV1beta1Deployment. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this AppsV1beta1Deployment. - Standard object metadata. - - :return: The metadata of this AppsV1beta1Deployment. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this AppsV1beta1Deployment. - Standard object metadata. - - :param metadata: The metadata of this AppsV1beta1Deployment. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this AppsV1beta1Deployment. - Specification of the desired behavior of the Deployment. - - :return: The spec of this AppsV1beta1Deployment. - :rtype: AppsV1beta1DeploymentSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this AppsV1beta1Deployment. - Specification of the desired behavior of the Deployment. - - :param spec: The spec of this AppsV1beta1Deployment. - :type: AppsV1beta1DeploymentSpec - """ - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this AppsV1beta1Deployment. - Most recently observed status of the Deployment. - - :return: The status of this AppsV1beta1Deployment. - :rtype: AppsV1beta1DeploymentStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this AppsV1beta1Deployment. - Most recently observed status of the Deployment. - - :param status: The status of this AppsV1beta1Deployment. - :type: AppsV1beta1DeploymentStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, AppsV1beta1Deployment): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment_condition.py b/kubernetes/client/models/apps_v1beta1_deployment_condition.py deleted file mode 100644 index cf4ed43dc0..0000000000 --- a/kubernetes/client/models/apps_v1beta1_deployment_condition.py +++ /dev/null @@ -1,251 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class AppsV1beta1DeploymentCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): - """ - AppsV1beta1DeploymentCondition - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'last_transition_time': 'datetime', - 'last_update_time': 'datetime', - 'message': 'str', - 'reason': 'str', - 'status': 'str', - 'type': 'str' - } - - self.attribute_map = { - 'last_transition_time': 'lastTransitionTime', - 'last_update_time': 'lastUpdateTime', - 'message': 'message', - 'reason': 'reason', - 'status': 'status', - 'type': 'type' - } - - self._last_transition_time = last_transition_time - self._last_update_time = last_update_time - self._message = message - self._reason = reason - self._status = status - self._type = type - - @property - def last_transition_time(self): - """ - Gets the last_transition_time of this AppsV1beta1DeploymentCondition. - Last time the condition transitioned from one status to another. - - :return: The last_transition_time of this AppsV1beta1DeploymentCondition. - :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 AppsV1beta1DeploymentCondition. - Last time the condition transitioned from one status to another. - - :param last_transition_time: The last_transition_time of this AppsV1beta1DeploymentCondition. - :type: datetime - """ - - self._last_transition_time = last_transition_time - - @property - def last_update_time(self): - """ - Gets the last_update_time of this AppsV1beta1DeploymentCondition. - The last time this condition was updated. - - :return: The last_update_time of this AppsV1beta1DeploymentCondition. - :rtype: datetime - """ - return self._last_update_time - - @last_update_time.setter - def last_update_time(self, last_update_time): - """ - Sets the last_update_time of this AppsV1beta1DeploymentCondition. - The last time this condition was updated. - - :param last_update_time: The last_update_time of this AppsV1beta1DeploymentCondition. - :type: datetime - """ - - self._last_update_time = last_update_time - - @property - def message(self): - """ - Gets the message of this AppsV1beta1DeploymentCondition. - A human readable message indicating details about the transition. - - :return: The message of this AppsV1beta1DeploymentCondition. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this AppsV1beta1DeploymentCondition. - A human readable message indicating details about the transition. - - :param message: The message of this AppsV1beta1DeploymentCondition. - :type: str - """ - - self._message = message - - @property - def reason(self): - """ - Gets the reason of this AppsV1beta1DeploymentCondition. - The reason for the condition's last transition. - - :return: The reason of this AppsV1beta1DeploymentCondition. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this AppsV1beta1DeploymentCondition. - The reason for the condition's last transition. - - :param reason: The reason of this AppsV1beta1DeploymentCondition. - :type: str - """ - - self._reason = reason - - @property - def status(self): - """ - Gets the status of this AppsV1beta1DeploymentCondition. - Status of the condition, one of True, False, Unknown. - - :return: The status of this AppsV1beta1DeploymentCondition. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this AppsV1beta1DeploymentCondition. - Status of the condition, one of True, False, Unknown. - - :param status: The status of this AppsV1beta1DeploymentCondition. - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") - - self._status = status - - @property - def type(self): - """ - Gets the type of this AppsV1beta1DeploymentCondition. - Type of deployment condition. - - :return: The type of this AppsV1beta1DeploymentCondition. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this AppsV1beta1DeploymentCondition. - Type of deployment condition. - - :param type: The type of this AppsV1beta1DeploymentCondition. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, AppsV1beta1DeploymentCondition): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment_list.py b/kubernetes/client/models/apps_v1beta1_deployment_list.py deleted file mode 100644 index 05f1f6fe7f..0000000000 --- a/kubernetes/client/models/apps_v1beta1_deployment_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class AppsV1beta1DeploymentList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - AppsV1beta1DeploymentList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[AppsV1beta1Deployment]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this AppsV1beta1DeploymentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this AppsV1beta1DeploymentList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this AppsV1beta1DeploymentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this AppsV1beta1DeploymentList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this AppsV1beta1DeploymentList. - Items is the list of Deployments. - - :return: The items of this AppsV1beta1DeploymentList. - :rtype: list[AppsV1beta1Deployment] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this AppsV1beta1DeploymentList. - Items is the list of Deployments. - - :param items: The items of this AppsV1beta1DeploymentList. - :type: list[AppsV1beta1Deployment] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this AppsV1beta1DeploymentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this AppsV1beta1DeploymentList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this AppsV1beta1DeploymentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this AppsV1beta1DeploymentList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this AppsV1beta1DeploymentList. - Standard list metadata. - - :return: The metadata of this AppsV1beta1DeploymentList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this AppsV1beta1DeploymentList. - Standard list metadata. - - :param metadata: The metadata of this AppsV1beta1DeploymentList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, AppsV1beta1DeploymentList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment_rollback.py b/kubernetes/client/models/apps_v1beta1_deployment_rollback.py deleted file mode 100644 index 416ed5e034..0000000000 --- a/kubernetes/client/models/apps_v1beta1_deployment_rollback.py +++ /dev/null @@ -1,225 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class AppsV1beta1DeploymentRollback(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, updated_annotations=None): - """ - AppsV1beta1DeploymentRollback - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'name': 'str', - 'rollback_to': 'AppsV1beta1RollbackConfig', - 'updated_annotations': 'dict(str, str)' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'name': 'name', - 'rollback_to': 'rollbackTo', - 'updated_annotations': 'updatedAnnotations' - } - - self._api_version = api_version - self._kind = kind - self._name = name - self._rollback_to = rollback_to - self._updated_annotations = updated_annotations - - @property - def api_version(self): - """ - Gets the api_version of this AppsV1beta1DeploymentRollback. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this AppsV1beta1DeploymentRollback. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this AppsV1beta1DeploymentRollback. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this AppsV1beta1DeploymentRollback. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this AppsV1beta1DeploymentRollback. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this AppsV1beta1DeploymentRollback. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this AppsV1beta1DeploymentRollback. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this AppsV1beta1DeploymentRollback. - :type: str - """ - - self._kind = kind - - @property - def name(self): - """ - Gets the name of this AppsV1beta1DeploymentRollback. - Required: This must match the Name of a deployment. - - :return: The name of this AppsV1beta1DeploymentRollback. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this AppsV1beta1DeploymentRollback. - Required: This must match the Name of a deployment. - - :param name: The name of this AppsV1beta1DeploymentRollback. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - @property - def rollback_to(self): - """ - Gets the rollback_to of this AppsV1beta1DeploymentRollback. - The config of this deployment rollback. - - :return: The rollback_to of this AppsV1beta1DeploymentRollback. - :rtype: AppsV1beta1RollbackConfig - """ - return self._rollback_to - - @rollback_to.setter - def rollback_to(self, rollback_to): - """ - Sets the rollback_to of this AppsV1beta1DeploymentRollback. - The config of this deployment rollback. - - :param rollback_to: The rollback_to of this AppsV1beta1DeploymentRollback. - :type: AppsV1beta1RollbackConfig - """ - if rollback_to is None: - raise ValueError("Invalid value for `rollback_to`, must not be `None`") - - self._rollback_to = rollback_to - - @property - def updated_annotations(self): - """ - Gets the updated_annotations of this AppsV1beta1DeploymentRollback. - The annotations to be updated to a deployment - - :return: The updated_annotations of this AppsV1beta1DeploymentRollback. - :rtype: dict(str, str) - """ - return self._updated_annotations - - @updated_annotations.setter - def updated_annotations(self, updated_annotations): - """ - Sets the updated_annotations of this AppsV1beta1DeploymentRollback. - The annotations to be updated to a deployment - - :param updated_annotations: The updated_annotations of this AppsV1beta1DeploymentRollback. - :type: dict(str, str) - """ - - self._updated_annotations = updated_annotations - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, AppsV1beta1DeploymentRollback): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment_spec.py b/kubernetes/client/models/apps_v1beta1_deployment_spec.py deleted file mode 100644 index f0afe417cb..0000000000 --- a/kubernetes/client/models/apps_v1beta1_deployment_spec.py +++ /dev/null @@ -1,327 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class AppsV1beta1DeploymentSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, rollback_to=None, selector=None, strategy=None, template=None): - """ - AppsV1beta1DeploymentSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'min_ready_seconds': 'int', - 'paused': 'bool', - 'progress_deadline_seconds': 'int', - 'replicas': 'int', - 'revision_history_limit': 'int', - 'rollback_to': 'AppsV1beta1RollbackConfig', - 'selector': 'V1LabelSelector', - 'strategy': 'AppsV1beta1DeploymentStrategy', - 'template': 'V1PodTemplateSpec' - } - - self.attribute_map = { - 'min_ready_seconds': 'minReadySeconds', - 'paused': 'paused', - 'progress_deadline_seconds': 'progressDeadlineSeconds', - 'replicas': 'replicas', - 'revision_history_limit': 'revisionHistoryLimit', - 'rollback_to': 'rollbackTo', - 'selector': 'selector', - 'strategy': 'strategy', - 'template': 'template' - } - - self._min_ready_seconds = min_ready_seconds - self._paused = paused - self._progress_deadline_seconds = progress_deadline_seconds - self._replicas = replicas - self._revision_history_limit = revision_history_limit - self._rollback_to = rollback_to - self._selector = selector - self._strategy = strategy - self._template = template - - @property - def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this AppsV1beta1DeploymentSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - - :return: The min_ready_seconds of this AppsV1beta1DeploymentSpec. - :rtype: int - """ - return self._min_ready_seconds - - @min_ready_seconds.setter - def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this AppsV1beta1DeploymentSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - - :param min_ready_seconds: The min_ready_seconds of this AppsV1beta1DeploymentSpec. - :type: int - """ - - self._min_ready_seconds = min_ready_seconds - - @property - def paused(self): - """ - Gets the paused of this AppsV1beta1DeploymentSpec. - Indicates that the deployment is paused. - - :return: The paused of this AppsV1beta1DeploymentSpec. - :rtype: bool - """ - return self._paused - - @paused.setter - def paused(self, paused): - """ - Sets the paused of this AppsV1beta1DeploymentSpec. - Indicates that the deployment is paused. - - :param paused: The paused of this AppsV1beta1DeploymentSpec. - :type: bool - """ - - self._paused = paused - - @property - def progress_deadline_seconds(self): - """ - Gets the progress_deadline_seconds of this AppsV1beta1DeploymentSpec. - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - - :return: The progress_deadline_seconds of this AppsV1beta1DeploymentSpec. - :rtype: int - """ - return self._progress_deadline_seconds - - @progress_deadline_seconds.setter - def progress_deadline_seconds(self, progress_deadline_seconds): - """ - Sets the progress_deadline_seconds of this AppsV1beta1DeploymentSpec. - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - - :param progress_deadline_seconds: The progress_deadline_seconds of this AppsV1beta1DeploymentSpec. - :type: int - """ - - self._progress_deadline_seconds = progress_deadline_seconds - - @property - def replicas(self): - """ - Gets the replicas of this AppsV1beta1DeploymentSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - - :return: The replicas of this AppsV1beta1DeploymentSpec. - :rtype: int - """ - return self._replicas - - @replicas.setter - def replicas(self, replicas): - """ - Sets the replicas of this AppsV1beta1DeploymentSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - - :param replicas: The replicas of this AppsV1beta1DeploymentSpec. - :type: int - """ - - self._replicas = replicas - - @property - def revision_history_limit(self): - """ - Gets the revision_history_limit of this AppsV1beta1DeploymentSpec. - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. - - :return: The revision_history_limit of this AppsV1beta1DeploymentSpec. - :rtype: int - """ - return self._revision_history_limit - - @revision_history_limit.setter - def revision_history_limit(self, revision_history_limit): - """ - Sets the revision_history_limit of this AppsV1beta1DeploymentSpec. - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. - - :param revision_history_limit: The revision_history_limit of this AppsV1beta1DeploymentSpec. - :type: int - """ - - self._revision_history_limit = revision_history_limit - - @property - def rollback_to(self): - """ - Gets the rollback_to of this AppsV1beta1DeploymentSpec. - The config this deployment is rolling back to. Will be cleared after rollback is done. - - :return: The rollback_to of this AppsV1beta1DeploymentSpec. - :rtype: AppsV1beta1RollbackConfig - """ - return self._rollback_to - - @rollback_to.setter - def rollback_to(self, rollback_to): - """ - Sets the rollback_to of this AppsV1beta1DeploymentSpec. - The config this deployment is rolling back to. Will be cleared after rollback is done. - - :param rollback_to: The rollback_to of this AppsV1beta1DeploymentSpec. - :type: AppsV1beta1RollbackConfig - """ - - self._rollback_to = rollback_to - - @property - def selector(self): - """ - Gets the selector of this AppsV1beta1DeploymentSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - - :return: The selector of this AppsV1beta1DeploymentSpec. - :rtype: V1LabelSelector - """ - return self._selector - - @selector.setter - def selector(self, selector): - """ - Sets the selector of this AppsV1beta1DeploymentSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - - :param selector: The selector of this AppsV1beta1DeploymentSpec. - :type: V1LabelSelector - """ - - self._selector = selector - - @property - def strategy(self): - """ - Gets the strategy of this AppsV1beta1DeploymentSpec. - The deployment strategy to use to replace existing pods with new ones. - - :return: The strategy of this AppsV1beta1DeploymentSpec. - :rtype: AppsV1beta1DeploymentStrategy - """ - return self._strategy - - @strategy.setter - def strategy(self, strategy): - """ - Sets the strategy of this AppsV1beta1DeploymentSpec. - The deployment strategy to use to replace existing pods with new ones. - - :param strategy: The strategy of this AppsV1beta1DeploymentSpec. - :type: AppsV1beta1DeploymentStrategy - """ - - self._strategy = strategy - - @property - def template(self): - """ - Gets the template of this AppsV1beta1DeploymentSpec. - Template describes the pods that will be created. - - :return: The template of this AppsV1beta1DeploymentSpec. - :rtype: V1PodTemplateSpec - """ - return self._template - - @template.setter - def template(self, template): - """ - Sets the template of this AppsV1beta1DeploymentSpec. - Template describes the pods that will be created. - - :param template: The template of this AppsV1beta1DeploymentSpec. - :type: V1PodTemplateSpec - """ - if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") - - self._template = template - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, AppsV1beta1DeploymentSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment_status.py b/kubernetes/client/models/apps_v1beta1_deployment_status.py deleted file mode 100644 index bb2e9c514c..0000000000 --- a/kubernetes/client/models/apps_v1beta1_deployment_status.py +++ /dev/null @@ -1,273 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class AppsV1beta1DeploymentStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, available_replicas=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): - """ - AppsV1beta1DeploymentStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'available_replicas': 'int', - 'conditions': 'list[AppsV1beta1DeploymentCondition]', - 'observed_generation': 'int', - 'ready_replicas': 'int', - 'replicas': 'int', - 'unavailable_replicas': 'int', - 'updated_replicas': 'int' - } - - self.attribute_map = { - 'available_replicas': 'availableReplicas', - 'conditions': 'conditions', - 'observed_generation': 'observedGeneration', - 'ready_replicas': 'readyReplicas', - 'replicas': 'replicas', - 'unavailable_replicas': 'unavailableReplicas', - 'updated_replicas': 'updatedReplicas' - } - - self._available_replicas = available_replicas - self._conditions = conditions - self._observed_generation = observed_generation - self._ready_replicas = ready_replicas - self._replicas = replicas - self._unavailable_replicas = unavailable_replicas - self._updated_replicas = updated_replicas - - @property - def available_replicas(self): - """ - Gets the available_replicas of this AppsV1beta1DeploymentStatus. - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - - :return: The available_replicas of this AppsV1beta1DeploymentStatus. - :rtype: int - """ - return self._available_replicas - - @available_replicas.setter - def available_replicas(self, available_replicas): - """ - Sets the available_replicas of this AppsV1beta1DeploymentStatus. - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - - :param available_replicas: The available_replicas of this AppsV1beta1DeploymentStatus. - :type: int - """ - - self._available_replicas = available_replicas - - @property - def conditions(self): - """ - Gets the conditions of this AppsV1beta1DeploymentStatus. - Represents the latest available observations of a deployment's current state. - - :return: The conditions of this AppsV1beta1DeploymentStatus. - :rtype: list[AppsV1beta1DeploymentCondition] - """ - return self._conditions - - @conditions.setter - def conditions(self, conditions): - """ - Sets the conditions of this AppsV1beta1DeploymentStatus. - Represents the latest available observations of a deployment's current state. - - :param conditions: The conditions of this AppsV1beta1DeploymentStatus. - :type: list[AppsV1beta1DeploymentCondition] - """ - - self._conditions = conditions - - @property - def observed_generation(self): - """ - Gets the observed_generation of this AppsV1beta1DeploymentStatus. - The generation observed by the deployment controller. - - :return: The observed_generation of this AppsV1beta1DeploymentStatus. - :rtype: int - """ - return self._observed_generation - - @observed_generation.setter - def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this AppsV1beta1DeploymentStatus. - The generation observed by the deployment controller. - - :param observed_generation: The observed_generation of this AppsV1beta1DeploymentStatus. - :type: int - """ - - self._observed_generation = observed_generation - - @property - def ready_replicas(self): - """ - Gets the ready_replicas of this AppsV1beta1DeploymentStatus. - Total number of ready pods targeted by this deployment. - - :return: The ready_replicas of this AppsV1beta1DeploymentStatus. - :rtype: int - """ - return self._ready_replicas - - @ready_replicas.setter - def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this AppsV1beta1DeploymentStatus. - Total number of ready pods targeted by this deployment. - - :param ready_replicas: The ready_replicas of this AppsV1beta1DeploymentStatus. - :type: int - """ - - self._ready_replicas = ready_replicas - - @property - def replicas(self): - """ - Gets the replicas of this AppsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - - :return: The replicas of this AppsV1beta1DeploymentStatus. - :rtype: int - """ - return self._replicas - - @replicas.setter - def replicas(self, replicas): - """ - Sets the replicas of this AppsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - - :param replicas: The replicas of this AppsV1beta1DeploymentStatus. - :type: int - """ - - self._replicas = replicas - - @property - def unavailable_replicas(self): - """ - Gets the unavailable_replicas of this AppsV1beta1DeploymentStatus. - Total number of unavailable pods targeted by this deployment. - - :return: The unavailable_replicas of this AppsV1beta1DeploymentStatus. - :rtype: int - """ - return self._unavailable_replicas - - @unavailable_replicas.setter - def unavailable_replicas(self, unavailable_replicas): - """ - Sets the unavailable_replicas of this AppsV1beta1DeploymentStatus. - Total number of unavailable pods targeted by this deployment. - - :param unavailable_replicas: The unavailable_replicas of this AppsV1beta1DeploymentStatus. - :type: int - """ - - self._unavailable_replicas = unavailable_replicas - - @property - def updated_replicas(self): - """ - Gets the updated_replicas of this AppsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment that have the desired template spec. - - :return: The updated_replicas of this AppsV1beta1DeploymentStatus. - :rtype: int - """ - return self._updated_replicas - - @updated_replicas.setter - def updated_replicas(self, updated_replicas): - """ - Sets the updated_replicas of this AppsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment that have the desired template spec. - - :param updated_replicas: The updated_replicas of this AppsV1beta1DeploymentStatus. - :type: int - """ - - self._updated_replicas = updated_replicas - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, AppsV1beta1DeploymentStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment_strategy.py b/kubernetes/client/models/apps_v1beta1_deployment_strategy.py deleted file mode 100644 index 0fc98aa731..0000000000 --- a/kubernetes/client/models/apps_v1beta1_deployment_strategy.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class AppsV1beta1DeploymentStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, rolling_update=None, type=None): - """ - AppsV1beta1DeploymentStrategy - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'rolling_update': 'AppsV1beta1RollingUpdateDeployment', - 'type': 'str' - } - - self.attribute_map = { - 'rolling_update': 'rollingUpdate', - 'type': 'type' - } - - self._rolling_update = rolling_update - self._type = type - - @property - def rolling_update(self): - """ - Gets the rolling_update of this AppsV1beta1DeploymentStrategy. - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - - :return: The rolling_update of this AppsV1beta1DeploymentStrategy. - :rtype: AppsV1beta1RollingUpdateDeployment - """ - return self._rolling_update - - @rolling_update.setter - def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this AppsV1beta1DeploymentStrategy. - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - - :param rolling_update: The rolling_update of this AppsV1beta1DeploymentStrategy. - :type: AppsV1beta1RollingUpdateDeployment - """ - - self._rolling_update = rolling_update - - @property - def type(self): - """ - Gets the type of this AppsV1beta1DeploymentStrategy. - Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. - - :return: The type of this AppsV1beta1DeploymentStrategy. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this AppsV1beta1DeploymentStrategy. - Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. - - :param type: The type of this AppsV1beta1DeploymentStrategy. - :type: str - """ - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, AppsV1beta1DeploymentStrategy): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_rollback_config.py b/kubernetes/client/models/apps_v1beta1_rollback_config.py deleted file mode 100644 index 9e068c4591..0000000000 --- a/kubernetes/client/models/apps_v1beta1_rollback_config.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class AppsV1beta1RollbackConfig(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, revision=None): - """ - AppsV1beta1RollbackConfig - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'revision': 'int' - } - - self.attribute_map = { - 'revision': 'revision' - } - - self._revision = revision - - @property - def revision(self): - """ - Gets the revision of this AppsV1beta1RollbackConfig. - The revision to rollback to. If set to 0, rollbck to the last revision. - - :return: The revision of this AppsV1beta1RollbackConfig. - :rtype: int - """ - return self._revision - - @revision.setter - def revision(self, revision): - """ - Sets the revision of this AppsV1beta1RollbackConfig. - The revision to rollback to. If set to 0, rollbck to the last revision. - - :param revision: The revision of this AppsV1beta1RollbackConfig. - :type: int - """ - - self._revision = revision - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, AppsV1beta1RollbackConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py b/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py deleted file mode 100644 index d19d754d06..0000000000 --- a/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class AppsV1beta1RollingUpdateDeployment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, max_surge=None, max_unavailable=None): - """ - AppsV1beta1RollingUpdateDeployment - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'max_surge': 'str', - 'max_unavailable': 'str' - } - - self.attribute_map = { - 'max_surge': 'maxSurge', - 'max_unavailable': 'maxUnavailable' - } - - self._max_surge = max_surge - self._max_unavailable = max_unavailable - - @property - def max_surge(self): - """ - Gets the max_surge of this AppsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. - - :return: The max_surge of this AppsV1beta1RollingUpdateDeployment. - :rtype: str - """ - return self._max_surge - - @max_surge.setter - def max_surge(self, max_surge): - """ - Sets the max_surge of this AppsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. - - :param max_surge: The max_surge of this AppsV1beta1RollingUpdateDeployment. - :type: str - """ - - self._max_surge = max_surge - - @property - def max_unavailable(self): - """ - Gets the max_unavailable of this AppsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - :return: The max_unavailable of this AppsV1beta1RollingUpdateDeployment. - :rtype: str - """ - return self._max_unavailable - - @max_unavailable.setter - def max_unavailable(self, max_unavailable): - """ - Sets the max_unavailable of this AppsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - :param max_unavailable: The max_unavailable of this AppsV1beta1RollingUpdateDeployment. - :type: str - """ - - self._max_unavailable = max_unavailable - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, AppsV1beta1RollingUpdateDeployment): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_scale.py b/kubernetes/client/models/apps_v1beta1_scale.py deleted file mode 100644 index f6d476e9ea..0000000000 --- a/kubernetes/client/models/apps_v1beta1_scale.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class AppsV1beta1Scale(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - AppsV1beta1Scale - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'AppsV1beta1ScaleSpec', - 'status': 'AppsV1beta1ScaleStatus' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status - - @property - def api_version(self): - """ - Gets the api_version of this AppsV1beta1Scale. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this AppsV1beta1Scale. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this AppsV1beta1Scale. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this AppsV1beta1Scale. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this AppsV1beta1Scale. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this AppsV1beta1Scale. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this AppsV1beta1Scale. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this AppsV1beta1Scale. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this AppsV1beta1Scale. - Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. - - :return: The metadata of this AppsV1beta1Scale. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this AppsV1beta1Scale. - Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. - - :param metadata: The metadata of this AppsV1beta1Scale. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this AppsV1beta1Scale. - defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. - - :return: The spec of this AppsV1beta1Scale. - :rtype: AppsV1beta1ScaleSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this AppsV1beta1Scale. - defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. - - :param spec: The spec of this AppsV1beta1Scale. - :type: AppsV1beta1ScaleSpec - """ - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this AppsV1beta1Scale. - current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. - - :return: The status of this AppsV1beta1Scale. - :rtype: AppsV1beta1ScaleStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this AppsV1beta1Scale. - current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. - - :param status: The status of this AppsV1beta1Scale. - :type: AppsV1beta1ScaleStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, AppsV1beta1Scale): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_scale_spec.py b/kubernetes/client/models/apps_v1beta1_scale_spec.py deleted file mode 100644 index bd7c406967..0000000000 --- a/kubernetes/client/models/apps_v1beta1_scale_spec.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class AppsV1beta1ScaleSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, replicas=None): - """ - AppsV1beta1ScaleSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'replicas': 'int' - } - - self.attribute_map = { - 'replicas': 'replicas' - } - - self._replicas = replicas - - @property - def replicas(self): - """ - Gets the replicas of this AppsV1beta1ScaleSpec. - desired number of instances for the scaled object. - - :return: The replicas of this AppsV1beta1ScaleSpec. - :rtype: int - """ - return self._replicas - - @replicas.setter - def replicas(self, replicas): - """ - Sets the replicas of this AppsV1beta1ScaleSpec. - desired number of instances for the scaled object. - - :param replicas: The replicas of this AppsV1beta1ScaleSpec. - :type: int - """ - - self._replicas = replicas - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, AppsV1beta1ScaleSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_scale_status.py b/kubernetes/client/models/apps_v1beta1_scale_status.py deleted file mode 100644 index 57ec25cbb5..0000000000 --- a/kubernetes/client/models/apps_v1beta1_scale_status.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class AppsV1beta1ScaleStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, replicas=None, selector=None, target_selector=None): - """ - AppsV1beta1ScaleStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'replicas': 'int', - 'selector': 'dict(str, str)', - 'target_selector': 'str' - } - - self.attribute_map = { - 'replicas': 'replicas', - 'selector': 'selector', - 'target_selector': 'targetSelector' - } - - self._replicas = replicas - self._selector = selector - self._target_selector = target_selector - - @property - def replicas(self): - """ - Gets the replicas of this AppsV1beta1ScaleStatus. - actual number of observed instances of the scaled object. - - :return: The replicas of this AppsV1beta1ScaleStatus. - :rtype: int - """ - return self._replicas - - @replicas.setter - def replicas(self, replicas): - """ - Sets the replicas of this AppsV1beta1ScaleStatus. - actual number of observed instances of the scaled object. - - :param replicas: The replicas of this AppsV1beta1ScaleStatus. - :type: int - """ - if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") - - self._replicas = replicas - - @property - def selector(self): - """ - Gets the selector of this AppsV1beta1ScaleStatus. - label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - - :return: The selector of this AppsV1beta1ScaleStatus. - :rtype: dict(str, str) - """ - return self._selector - - @selector.setter - def selector(self, selector): - """ - Sets the selector of this AppsV1beta1ScaleStatus. - label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - - :param selector: The selector of this AppsV1beta1ScaleStatus. - :type: dict(str, str) - """ - - self._selector = selector - - @property - def target_selector(self): - """ - Gets the target_selector of this AppsV1beta1ScaleStatus. - label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - - :return: The target_selector of this AppsV1beta1ScaleStatus. - :rtype: str - """ - return self._target_selector - - @target_selector.setter - def target_selector(self, target_selector): - """ - Sets the target_selector of this AppsV1beta1ScaleStatus. - label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - - :param target_selector: The target_selector of this AppsV1beta1ScaleStatus. - :type: str - """ - - self._target_selector = target_selector - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, AppsV1beta1ScaleStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment.py b/kubernetes/client/models/extensions_v1beta1_deployment.py deleted file mode 100644 index d11886c13a..0000000000 --- a/kubernetes/client/models/extensions_v1beta1_deployment.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ExtensionsV1beta1Deployment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - ExtensionsV1beta1Deployment - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'ExtensionsV1beta1DeploymentSpec', - 'status': 'ExtensionsV1beta1DeploymentStatus' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status - - @property - def api_version(self): - """ - Gets the api_version of this ExtensionsV1beta1Deployment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this ExtensionsV1beta1Deployment. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this ExtensionsV1beta1Deployment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this ExtensionsV1beta1Deployment. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this ExtensionsV1beta1Deployment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this ExtensionsV1beta1Deployment. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this ExtensionsV1beta1Deployment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this ExtensionsV1beta1Deployment. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this ExtensionsV1beta1Deployment. - Standard object metadata. - - :return: The metadata of this ExtensionsV1beta1Deployment. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this ExtensionsV1beta1Deployment. - Standard object metadata. - - :param metadata: The metadata of this ExtensionsV1beta1Deployment. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this ExtensionsV1beta1Deployment. - Specification of the desired behavior of the Deployment. - - :return: The spec of this ExtensionsV1beta1Deployment. - :rtype: ExtensionsV1beta1DeploymentSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this ExtensionsV1beta1Deployment. - Specification of the desired behavior of the Deployment. - - :param spec: The spec of this ExtensionsV1beta1Deployment. - :type: ExtensionsV1beta1DeploymentSpec - """ - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this ExtensionsV1beta1Deployment. - Most recently observed status of the Deployment. - - :return: The status of this ExtensionsV1beta1Deployment. - :rtype: ExtensionsV1beta1DeploymentStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this ExtensionsV1beta1Deployment. - Most recently observed status of the Deployment. - - :param status: The status of this ExtensionsV1beta1Deployment. - :type: ExtensionsV1beta1DeploymentStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, ExtensionsV1beta1Deployment): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_condition.py b/kubernetes/client/models/extensions_v1beta1_deployment_condition.py deleted file mode 100644 index 90fa5b17b1..0000000000 --- a/kubernetes/client/models/extensions_v1beta1_deployment_condition.py +++ /dev/null @@ -1,251 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ExtensionsV1beta1DeploymentCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): - """ - ExtensionsV1beta1DeploymentCondition - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'last_transition_time': 'datetime', - 'last_update_time': 'datetime', - 'message': 'str', - 'reason': 'str', - 'status': 'str', - 'type': 'str' - } - - self.attribute_map = { - 'last_transition_time': 'lastTransitionTime', - 'last_update_time': 'lastUpdateTime', - 'message': 'message', - 'reason': 'reason', - 'status': 'status', - 'type': 'type' - } - - self._last_transition_time = last_transition_time - self._last_update_time = last_update_time - self._message = message - self._reason = reason - self._status = status - self._type = type - - @property - def last_transition_time(self): - """ - Gets the last_transition_time of this ExtensionsV1beta1DeploymentCondition. - Last time the condition transitioned from one status to another. - - :return: The last_transition_time of this ExtensionsV1beta1DeploymentCondition. - :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 ExtensionsV1beta1DeploymentCondition. - Last time the condition transitioned from one status to another. - - :param last_transition_time: The last_transition_time of this ExtensionsV1beta1DeploymentCondition. - :type: datetime - """ - - self._last_transition_time = last_transition_time - - @property - def last_update_time(self): - """ - Gets the last_update_time of this ExtensionsV1beta1DeploymentCondition. - The last time this condition was updated. - - :return: The last_update_time of this ExtensionsV1beta1DeploymentCondition. - :rtype: datetime - """ - return self._last_update_time - - @last_update_time.setter - def last_update_time(self, last_update_time): - """ - Sets the last_update_time of this ExtensionsV1beta1DeploymentCondition. - The last time this condition was updated. - - :param last_update_time: The last_update_time of this ExtensionsV1beta1DeploymentCondition. - :type: datetime - """ - - self._last_update_time = last_update_time - - @property - def message(self): - """ - Gets the message of this ExtensionsV1beta1DeploymentCondition. - A human readable message indicating details about the transition. - - :return: The message of this ExtensionsV1beta1DeploymentCondition. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this ExtensionsV1beta1DeploymentCondition. - A human readable message indicating details about the transition. - - :param message: The message of this ExtensionsV1beta1DeploymentCondition. - :type: str - """ - - self._message = message - - @property - def reason(self): - """ - Gets the reason of this ExtensionsV1beta1DeploymentCondition. - The reason for the condition's last transition. - - :return: The reason of this ExtensionsV1beta1DeploymentCondition. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this ExtensionsV1beta1DeploymentCondition. - The reason for the condition's last transition. - - :param reason: The reason of this ExtensionsV1beta1DeploymentCondition. - :type: str - """ - - self._reason = reason - - @property - def status(self): - """ - Gets the status of this ExtensionsV1beta1DeploymentCondition. - Status of the condition, one of True, False, Unknown. - - :return: The status of this ExtensionsV1beta1DeploymentCondition. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this ExtensionsV1beta1DeploymentCondition. - Status of the condition, one of True, False, Unknown. - - :param status: The status of this ExtensionsV1beta1DeploymentCondition. - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") - - self._status = status - - @property - def type(self): - """ - Gets the type of this ExtensionsV1beta1DeploymentCondition. - Type of deployment condition. - - :return: The type of this ExtensionsV1beta1DeploymentCondition. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this ExtensionsV1beta1DeploymentCondition. - Type of deployment condition. - - :param type: The type of this ExtensionsV1beta1DeploymentCondition. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, ExtensionsV1beta1DeploymentCondition): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_list.py b/kubernetes/client/models/extensions_v1beta1_deployment_list.py deleted file mode 100644 index 3411df4052..0000000000 --- a/kubernetes/client/models/extensions_v1beta1_deployment_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ExtensionsV1beta1DeploymentList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - ExtensionsV1beta1DeploymentList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[ExtensionsV1beta1Deployment]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this ExtensionsV1beta1DeploymentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this ExtensionsV1beta1DeploymentList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this ExtensionsV1beta1DeploymentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this ExtensionsV1beta1DeploymentList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this ExtensionsV1beta1DeploymentList. - Items is the list of Deployments. - - :return: The items of this ExtensionsV1beta1DeploymentList. - :rtype: list[ExtensionsV1beta1Deployment] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this ExtensionsV1beta1DeploymentList. - Items is the list of Deployments. - - :param items: The items of this ExtensionsV1beta1DeploymentList. - :type: list[ExtensionsV1beta1Deployment] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this ExtensionsV1beta1DeploymentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this ExtensionsV1beta1DeploymentList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this ExtensionsV1beta1DeploymentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this ExtensionsV1beta1DeploymentList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this ExtensionsV1beta1DeploymentList. - Standard list metadata. - - :return: The metadata of this ExtensionsV1beta1DeploymentList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this ExtensionsV1beta1DeploymentList. - Standard list metadata. - - :param metadata: The metadata of this ExtensionsV1beta1DeploymentList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, ExtensionsV1beta1DeploymentList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py b/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py deleted file mode 100644 index f0b5de217d..0000000000 --- a/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py +++ /dev/null @@ -1,225 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ExtensionsV1beta1DeploymentRollback(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, updated_annotations=None): - """ - ExtensionsV1beta1DeploymentRollback - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'name': 'str', - 'rollback_to': 'ExtensionsV1beta1RollbackConfig', - 'updated_annotations': 'dict(str, str)' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'name': 'name', - 'rollback_to': 'rollbackTo', - 'updated_annotations': 'updatedAnnotations' - } - - self._api_version = api_version - self._kind = kind - self._name = name - self._rollback_to = rollback_to - self._updated_annotations = updated_annotations - - @property - def api_version(self): - """ - Gets the api_version of this ExtensionsV1beta1DeploymentRollback. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this ExtensionsV1beta1DeploymentRollback. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this ExtensionsV1beta1DeploymentRollback. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this ExtensionsV1beta1DeploymentRollback. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this ExtensionsV1beta1DeploymentRollback. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this ExtensionsV1beta1DeploymentRollback. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this ExtensionsV1beta1DeploymentRollback. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this ExtensionsV1beta1DeploymentRollback. - :type: str - """ - - self._kind = kind - - @property - def name(self): - """ - Gets the name of this ExtensionsV1beta1DeploymentRollback. - Required: This must match the Name of a deployment. - - :return: The name of this ExtensionsV1beta1DeploymentRollback. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this ExtensionsV1beta1DeploymentRollback. - Required: This must match the Name of a deployment. - - :param name: The name of this ExtensionsV1beta1DeploymentRollback. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - @property - def rollback_to(self): - """ - Gets the rollback_to of this ExtensionsV1beta1DeploymentRollback. - The config of this deployment rollback. - - :return: The rollback_to of this ExtensionsV1beta1DeploymentRollback. - :rtype: ExtensionsV1beta1RollbackConfig - """ - return self._rollback_to - - @rollback_to.setter - def rollback_to(self, rollback_to): - """ - Sets the rollback_to of this ExtensionsV1beta1DeploymentRollback. - The config of this deployment rollback. - - :param rollback_to: The rollback_to of this ExtensionsV1beta1DeploymentRollback. - :type: ExtensionsV1beta1RollbackConfig - """ - if rollback_to is None: - raise ValueError("Invalid value for `rollback_to`, must not be `None`") - - self._rollback_to = rollback_to - - @property - def updated_annotations(self): - """ - Gets the updated_annotations of this ExtensionsV1beta1DeploymentRollback. - The annotations to be updated to a deployment - - :return: The updated_annotations of this ExtensionsV1beta1DeploymentRollback. - :rtype: dict(str, str) - """ - return self._updated_annotations - - @updated_annotations.setter - def updated_annotations(self, updated_annotations): - """ - Sets the updated_annotations of this ExtensionsV1beta1DeploymentRollback. - The annotations to be updated to a deployment - - :param updated_annotations: The updated_annotations of this ExtensionsV1beta1DeploymentRollback. - :type: dict(str, str) - """ - - self._updated_annotations = updated_annotations - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, ExtensionsV1beta1DeploymentRollback): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_spec.py b/kubernetes/client/models/extensions_v1beta1_deployment_spec.py deleted file mode 100644 index 8cc6805009..0000000000 --- a/kubernetes/client/models/extensions_v1beta1_deployment_spec.py +++ /dev/null @@ -1,327 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ExtensionsV1beta1DeploymentSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, rollback_to=None, selector=None, strategy=None, template=None): - """ - ExtensionsV1beta1DeploymentSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'min_ready_seconds': 'int', - 'paused': 'bool', - 'progress_deadline_seconds': 'int', - 'replicas': 'int', - 'revision_history_limit': 'int', - 'rollback_to': 'ExtensionsV1beta1RollbackConfig', - 'selector': 'V1LabelSelector', - 'strategy': 'ExtensionsV1beta1DeploymentStrategy', - 'template': 'V1PodTemplateSpec' - } - - self.attribute_map = { - 'min_ready_seconds': 'minReadySeconds', - 'paused': 'paused', - 'progress_deadline_seconds': 'progressDeadlineSeconds', - 'replicas': 'replicas', - 'revision_history_limit': 'revisionHistoryLimit', - 'rollback_to': 'rollbackTo', - 'selector': 'selector', - 'strategy': 'strategy', - 'template': 'template' - } - - self._min_ready_seconds = min_ready_seconds - self._paused = paused - self._progress_deadline_seconds = progress_deadline_seconds - self._replicas = replicas - self._revision_history_limit = revision_history_limit - self._rollback_to = rollback_to - self._selector = selector - self._strategy = strategy - self._template = template - - @property - def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - - :return: The min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. - :rtype: int - """ - return self._min_ready_seconds - - @min_ready_seconds.setter - def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - - :param min_ready_seconds: The min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. - :type: int - """ - - self._min_ready_seconds = min_ready_seconds - - @property - def paused(self): - """ - Gets the paused of this ExtensionsV1beta1DeploymentSpec. - Indicates that the deployment is paused and will not be processed by the deployment controller. - - :return: The paused of this ExtensionsV1beta1DeploymentSpec. - :rtype: bool - """ - return self._paused - - @paused.setter - def paused(self, paused): - """ - Sets the paused of this ExtensionsV1beta1DeploymentSpec. - Indicates that the deployment is paused and will not be processed by the deployment controller. - - :param paused: The paused of this ExtensionsV1beta1DeploymentSpec. - :type: bool - """ - - self._paused = paused - - @property - def progress_deadline_seconds(self): - """ - Gets the progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. - - :return: The progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. - :rtype: int - """ - return self._progress_deadline_seconds - - @progress_deadline_seconds.setter - def progress_deadline_seconds(self, progress_deadline_seconds): - """ - Sets the progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. - - :param progress_deadline_seconds: The progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. - :type: int - """ - - self._progress_deadline_seconds = progress_deadline_seconds - - @property - def replicas(self): - """ - Gets the replicas of this ExtensionsV1beta1DeploymentSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - - :return: The replicas of this ExtensionsV1beta1DeploymentSpec. - :rtype: int - """ - return self._replicas - - @replicas.setter - def replicas(self, replicas): - """ - Sets the replicas of this ExtensionsV1beta1DeploymentSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - - :param replicas: The replicas of this ExtensionsV1beta1DeploymentSpec. - :type: int - """ - - self._replicas = replicas - - @property - def revision_history_limit(self): - """ - Gets the revision_history_limit of this ExtensionsV1beta1DeploymentSpec. - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. - - :return: The revision_history_limit of this ExtensionsV1beta1DeploymentSpec. - :rtype: int - """ - return self._revision_history_limit - - @revision_history_limit.setter - def revision_history_limit(self, revision_history_limit): - """ - Sets the revision_history_limit of this ExtensionsV1beta1DeploymentSpec. - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. - - :param revision_history_limit: The revision_history_limit of this ExtensionsV1beta1DeploymentSpec. - :type: int - """ - - self._revision_history_limit = revision_history_limit - - @property - def rollback_to(self): - """ - Gets the rollback_to of this ExtensionsV1beta1DeploymentSpec. - The config this deployment is rolling back to. Will be cleared after rollback is done. - - :return: The rollback_to of this ExtensionsV1beta1DeploymentSpec. - :rtype: ExtensionsV1beta1RollbackConfig - """ - return self._rollback_to - - @rollback_to.setter - def rollback_to(self, rollback_to): - """ - Sets the rollback_to of this ExtensionsV1beta1DeploymentSpec. - The config this deployment is rolling back to. Will be cleared after rollback is done. - - :param rollback_to: The rollback_to of this ExtensionsV1beta1DeploymentSpec. - :type: ExtensionsV1beta1RollbackConfig - """ - - self._rollback_to = rollback_to - - @property - def selector(self): - """ - Gets the selector of this ExtensionsV1beta1DeploymentSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - - :return: The selector of this ExtensionsV1beta1DeploymentSpec. - :rtype: V1LabelSelector - """ - return self._selector - - @selector.setter - def selector(self, selector): - """ - Sets the selector of this ExtensionsV1beta1DeploymentSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - - :param selector: The selector of this ExtensionsV1beta1DeploymentSpec. - :type: V1LabelSelector - """ - - self._selector = selector - - @property - def strategy(self): - """ - Gets the strategy of this ExtensionsV1beta1DeploymentSpec. - The deployment strategy to use to replace existing pods with new ones. - - :return: The strategy of this ExtensionsV1beta1DeploymentSpec. - :rtype: ExtensionsV1beta1DeploymentStrategy - """ - return self._strategy - - @strategy.setter - def strategy(self, strategy): - """ - Sets the strategy of this ExtensionsV1beta1DeploymentSpec. - The deployment strategy to use to replace existing pods with new ones. - - :param strategy: The strategy of this ExtensionsV1beta1DeploymentSpec. - :type: ExtensionsV1beta1DeploymentStrategy - """ - - self._strategy = strategy - - @property - def template(self): - """ - Gets the template of this ExtensionsV1beta1DeploymentSpec. - Template describes the pods that will be created. - - :return: The template of this ExtensionsV1beta1DeploymentSpec. - :rtype: V1PodTemplateSpec - """ - return self._template - - @template.setter - def template(self, template): - """ - Sets the template of this ExtensionsV1beta1DeploymentSpec. - Template describes the pods that will be created. - - :param template: The template of this ExtensionsV1beta1DeploymentSpec. - :type: V1PodTemplateSpec - """ - if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") - - self._template = template - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, ExtensionsV1beta1DeploymentSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_status.py b/kubernetes/client/models/extensions_v1beta1_deployment_status.py deleted file mode 100644 index 2186af0761..0000000000 --- a/kubernetes/client/models/extensions_v1beta1_deployment_status.py +++ /dev/null @@ -1,273 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ExtensionsV1beta1DeploymentStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, available_replicas=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): - """ - ExtensionsV1beta1DeploymentStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'available_replicas': 'int', - 'conditions': 'list[ExtensionsV1beta1DeploymentCondition]', - 'observed_generation': 'int', - 'ready_replicas': 'int', - 'replicas': 'int', - 'unavailable_replicas': 'int', - 'updated_replicas': 'int' - } - - self.attribute_map = { - 'available_replicas': 'availableReplicas', - 'conditions': 'conditions', - 'observed_generation': 'observedGeneration', - 'ready_replicas': 'readyReplicas', - 'replicas': 'replicas', - 'unavailable_replicas': 'unavailableReplicas', - 'updated_replicas': 'updatedReplicas' - } - - self._available_replicas = available_replicas - self._conditions = conditions - self._observed_generation = observed_generation - self._ready_replicas = ready_replicas - self._replicas = replicas - self._unavailable_replicas = unavailable_replicas - self._updated_replicas = updated_replicas - - @property - def available_replicas(self): - """ - Gets the available_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - - :return: The available_replicas of this ExtensionsV1beta1DeploymentStatus. - :rtype: int - """ - return self._available_replicas - - @available_replicas.setter - def available_replicas(self, available_replicas): - """ - Sets the available_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - - :param available_replicas: The available_replicas of this ExtensionsV1beta1DeploymentStatus. - :type: int - """ - - self._available_replicas = available_replicas - - @property - def conditions(self): - """ - Gets the conditions of this ExtensionsV1beta1DeploymentStatus. - Represents the latest available observations of a deployment's current state. - - :return: The conditions of this ExtensionsV1beta1DeploymentStatus. - :rtype: list[ExtensionsV1beta1DeploymentCondition] - """ - return self._conditions - - @conditions.setter - def conditions(self, conditions): - """ - Sets the conditions of this ExtensionsV1beta1DeploymentStatus. - Represents the latest available observations of a deployment's current state. - - :param conditions: The conditions of this ExtensionsV1beta1DeploymentStatus. - :type: list[ExtensionsV1beta1DeploymentCondition] - """ - - self._conditions = conditions - - @property - def observed_generation(self): - """ - Gets the observed_generation of this ExtensionsV1beta1DeploymentStatus. - The generation observed by the deployment controller. - - :return: The observed_generation of this ExtensionsV1beta1DeploymentStatus. - :rtype: int - """ - return self._observed_generation - - @observed_generation.setter - def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this ExtensionsV1beta1DeploymentStatus. - The generation observed by the deployment controller. - - :param observed_generation: The observed_generation of this ExtensionsV1beta1DeploymentStatus. - :type: int - """ - - self._observed_generation = observed_generation - - @property - def ready_replicas(self): - """ - Gets the ready_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of ready pods targeted by this deployment. - - :return: The ready_replicas of this ExtensionsV1beta1DeploymentStatus. - :rtype: int - """ - return self._ready_replicas - - @ready_replicas.setter - def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of ready pods targeted by this deployment. - - :param ready_replicas: The ready_replicas of this ExtensionsV1beta1DeploymentStatus. - :type: int - """ - - self._ready_replicas = ready_replicas - - @property - def replicas(self): - """ - Gets the replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - - :return: The replicas of this ExtensionsV1beta1DeploymentStatus. - :rtype: int - """ - return self._replicas - - @replicas.setter - def replicas(self, replicas): - """ - Sets the replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - - :param replicas: The replicas of this ExtensionsV1beta1DeploymentStatus. - :type: int - """ - - self._replicas = replicas - - @property - def unavailable_replicas(self): - """ - Gets the unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of unavailable pods targeted by this deployment. - - :return: The unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. - :rtype: int - """ - return self._unavailable_replicas - - @unavailable_replicas.setter - def unavailable_replicas(self, unavailable_replicas): - """ - Sets the unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of unavailable pods targeted by this deployment. - - :param unavailable_replicas: The unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. - :type: int - """ - - self._unavailable_replicas = unavailable_replicas - - @property - def updated_replicas(self): - """ - Gets the updated_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment that have the desired template spec. - - :return: The updated_replicas of this ExtensionsV1beta1DeploymentStatus. - :rtype: int - """ - return self._updated_replicas - - @updated_replicas.setter - def updated_replicas(self, updated_replicas): - """ - Sets the updated_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment that have the desired template spec. - - :param updated_replicas: The updated_replicas of this ExtensionsV1beta1DeploymentStatus. - :type: int - """ - - self._updated_replicas = updated_replicas - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, ExtensionsV1beta1DeploymentStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py b/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py deleted file mode 100644 index 7fd8679b60..0000000000 --- a/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ExtensionsV1beta1DeploymentStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, rolling_update=None, type=None): - """ - ExtensionsV1beta1DeploymentStrategy - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'rolling_update': 'ExtensionsV1beta1RollingUpdateDeployment', - 'type': 'str' - } - - self.attribute_map = { - 'rolling_update': 'rollingUpdate', - 'type': 'type' - } - - self._rolling_update = rolling_update - self._type = type - - @property - def rolling_update(self): - """ - Gets the rolling_update of this ExtensionsV1beta1DeploymentStrategy. - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - - :return: The rolling_update of this ExtensionsV1beta1DeploymentStrategy. - :rtype: ExtensionsV1beta1RollingUpdateDeployment - """ - return self._rolling_update - - @rolling_update.setter - def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this ExtensionsV1beta1DeploymentStrategy. - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - - :param rolling_update: The rolling_update of this ExtensionsV1beta1DeploymentStrategy. - :type: ExtensionsV1beta1RollingUpdateDeployment - """ - - self._rolling_update = rolling_update - - @property - def type(self): - """ - Gets the type of this ExtensionsV1beta1DeploymentStrategy. - Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. - - :return: The type of this ExtensionsV1beta1DeploymentStrategy. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this ExtensionsV1beta1DeploymentStrategy. - Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. - - :param type: The type of this ExtensionsV1beta1DeploymentStrategy. - :type: str - """ - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, ExtensionsV1beta1DeploymentStrategy): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_rollback_config.py b/kubernetes/client/models/extensions_v1beta1_rollback_config.py deleted file mode 100644 index 7d3beb9197..0000000000 --- a/kubernetes/client/models/extensions_v1beta1_rollback_config.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ExtensionsV1beta1RollbackConfig(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, revision=None): - """ - ExtensionsV1beta1RollbackConfig - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'revision': 'int' - } - - self.attribute_map = { - 'revision': 'revision' - } - - self._revision = revision - - @property - def revision(self): - """ - Gets the revision of this ExtensionsV1beta1RollbackConfig. - The revision to rollback to. If set to 0, rollbck to the last revision. - - :return: The revision of this ExtensionsV1beta1RollbackConfig. - :rtype: int - """ - return self._revision - - @revision.setter - def revision(self, revision): - """ - Sets the revision of this ExtensionsV1beta1RollbackConfig. - The revision to rollback to. If set to 0, rollbck to the last revision. - - :param revision: The revision of this ExtensionsV1beta1RollbackConfig. - :type: int - """ - - self._revision = revision - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, ExtensionsV1beta1RollbackConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py b/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py deleted file mode 100644 index e50289623a..0000000000 --- a/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ExtensionsV1beta1RollingUpdateDeployment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, max_surge=None, max_unavailable=None): - """ - ExtensionsV1beta1RollingUpdateDeployment - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'max_surge': 'str', - 'max_unavailable': 'str' - } - - self.attribute_map = { - 'max_surge': 'maxSurge', - 'max_unavailable': 'maxUnavailable' - } - - self._max_surge = max_surge - self._max_unavailable = max_unavailable - - @property - def max_surge(self): - """ - Gets the max_surge of this ExtensionsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. - - :return: The max_surge of this ExtensionsV1beta1RollingUpdateDeployment. - :rtype: str - """ - return self._max_surge - - @max_surge.setter - def max_surge(self, max_surge): - """ - Sets the max_surge of this ExtensionsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. - - :param max_surge: The max_surge of this ExtensionsV1beta1RollingUpdateDeployment. - :type: str - """ - - self._max_surge = max_surge - - @property - def max_unavailable(self): - """ - Gets the max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - :return: The max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. - :rtype: str - """ - return self._max_unavailable - - @max_unavailable.setter - def max_unavailable(self, max_unavailable): - """ - Sets the max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - :param max_unavailable: The max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. - :type: str - """ - - self._max_unavailable = max_unavailable - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, ExtensionsV1beta1RollingUpdateDeployment): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_scale.py b/kubernetes/client/models/extensions_v1beta1_scale.py deleted file mode 100644 index 5a99a8da5e..0000000000 --- a/kubernetes/client/models/extensions_v1beta1_scale.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ExtensionsV1beta1Scale(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - ExtensionsV1beta1Scale - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'ExtensionsV1beta1ScaleSpec', - 'status': 'ExtensionsV1beta1ScaleStatus' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status - - @property - def api_version(self): - """ - Gets the api_version of this ExtensionsV1beta1Scale. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this ExtensionsV1beta1Scale. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this ExtensionsV1beta1Scale. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this ExtensionsV1beta1Scale. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this ExtensionsV1beta1Scale. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this ExtensionsV1beta1Scale. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this ExtensionsV1beta1Scale. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this ExtensionsV1beta1Scale. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this ExtensionsV1beta1Scale. - Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. - - :return: The metadata of this ExtensionsV1beta1Scale. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this ExtensionsV1beta1Scale. - Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. - - :param metadata: The metadata of this ExtensionsV1beta1Scale. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this ExtensionsV1beta1Scale. - defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. - - :return: The spec of this ExtensionsV1beta1Scale. - :rtype: ExtensionsV1beta1ScaleSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this ExtensionsV1beta1Scale. - defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. - - :param spec: The spec of this ExtensionsV1beta1Scale. - :type: ExtensionsV1beta1ScaleSpec - """ - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this ExtensionsV1beta1Scale. - current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. - - :return: The status of this ExtensionsV1beta1Scale. - :rtype: ExtensionsV1beta1ScaleStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this ExtensionsV1beta1Scale. - current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. - - :param status: The status of this ExtensionsV1beta1Scale. - :type: ExtensionsV1beta1ScaleStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, ExtensionsV1beta1Scale): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_scale_spec.py b/kubernetes/client/models/extensions_v1beta1_scale_spec.py deleted file mode 100644 index 0749aa505b..0000000000 --- a/kubernetes/client/models/extensions_v1beta1_scale_spec.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ExtensionsV1beta1ScaleSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, replicas=None): - """ - ExtensionsV1beta1ScaleSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'replicas': 'int' - } - - self.attribute_map = { - 'replicas': 'replicas' - } - - self._replicas = replicas - - @property - def replicas(self): - """ - Gets the replicas of this ExtensionsV1beta1ScaleSpec. - desired number of instances for the scaled object. - - :return: The replicas of this ExtensionsV1beta1ScaleSpec. - :rtype: int - """ - return self._replicas - - @replicas.setter - def replicas(self, replicas): - """ - Sets the replicas of this ExtensionsV1beta1ScaleSpec. - desired number of instances for the scaled object. - - :param replicas: The replicas of this ExtensionsV1beta1ScaleSpec. - :type: int - """ - - self._replicas = replicas - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, ExtensionsV1beta1ScaleSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_scale_status.py b/kubernetes/client/models/extensions_v1beta1_scale_status.py deleted file mode 100644 index 83f7710430..0000000000 --- a/kubernetes/client/models/extensions_v1beta1_scale_status.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ExtensionsV1beta1ScaleStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, replicas=None, selector=None, target_selector=None): - """ - ExtensionsV1beta1ScaleStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'replicas': 'int', - 'selector': 'dict(str, str)', - 'target_selector': 'str' - } - - self.attribute_map = { - 'replicas': 'replicas', - 'selector': 'selector', - 'target_selector': 'targetSelector' - } - - self._replicas = replicas - self._selector = selector - self._target_selector = target_selector - - @property - def replicas(self): - """ - Gets the replicas of this ExtensionsV1beta1ScaleStatus. - actual number of observed instances of the scaled object. - - :return: The replicas of this ExtensionsV1beta1ScaleStatus. - :rtype: int - """ - return self._replicas - - @replicas.setter - def replicas(self, replicas): - """ - Sets the replicas of this ExtensionsV1beta1ScaleStatus. - actual number of observed instances of the scaled object. - - :param replicas: The replicas of this ExtensionsV1beta1ScaleStatus. - :type: int - """ - if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") - - self._replicas = replicas - - @property - def selector(self): - """ - Gets the selector of this ExtensionsV1beta1ScaleStatus. - label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - - :return: The selector of this ExtensionsV1beta1ScaleStatus. - :rtype: dict(str, str) - """ - return self._selector - - @selector.setter - def selector(self, selector): - """ - Sets the selector of this ExtensionsV1beta1ScaleStatus. - label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - - :param selector: The selector of this ExtensionsV1beta1ScaleStatus. - :type: dict(str, str) - """ - - self._selector = selector - - @property - def target_selector(self): - """ - Gets the target_selector of this ExtensionsV1beta1ScaleStatus. - label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - - :return: The target_selector of this ExtensionsV1beta1ScaleStatus. - :rtype: str - """ - return self._target_selector - - @target_selector.setter - def target_selector(self, target_selector): - """ - Sets the target_selector of this ExtensionsV1beta1ScaleStatus. - label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - - :param target_selector: The target_selector of this ExtensionsV1beta1ScaleStatus. - :type: str - """ - - self._target_selector = target_selector - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, ExtensionsV1beta1ScaleStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/runtime_raw_extension.py b/kubernetes/client/models/runtime_raw_extension.py index a2f9317324..169c2ba428 100644 --- a/kubernetes/client/models/runtime_raw_extension.py +++ b/kubernetes/client/models/runtime_raw_extension.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/unversioned_api_group.py b/kubernetes/client/models/unversioned_api_group.py new file mode 100644 index 0000000000..090df48343 --- /dev/null +++ b/kubernetes/client/models/unversioned_api_group.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedAPIGroup(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, name=None, preferred_version=None, server_address_by_client_cid_rs=None, versions=None): + """ + UnversionedAPIGroup - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'name': 'str', + 'preferred_version': 'UnversionedGroupVersionForDiscovery', + 'server_address_by_client_cid_rs': 'list[UnversionedServerAddressByClientCIDR]', + 'versions': 'list[UnversionedGroupVersionForDiscovery]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'name': 'name', + 'preferred_version': 'preferredVersion', + 'server_address_by_client_cid_rs': 'serverAddressByClientCIDRs', + 'versions': 'versions' + } + + self._api_version = api_version + self._kind = kind + self._name = name + self._preferred_version = preferred_version + 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 UnversionedAPIGroup. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this UnversionedAPIGroup. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this UnversionedAPIGroup. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this UnversionedAPIGroup. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this UnversionedAPIGroup. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this UnversionedAPIGroup. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this UnversionedAPIGroup. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this UnversionedAPIGroup. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this UnversionedAPIGroup. + name is the name of the group. + + :return: The name of this UnversionedAPIGroup. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this UnversionedAPIGroup. + name is the name of the group. + + :param name: The name of this UnversionedAPIGroup. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def preferred_version(self): + """ + Gets the preferred_version of this UnversionedAPIGroup. + preferredVersion is the version preferred by the API server, which probably is the storage version. + + :return: The preferred_version of this UnversionedAPIGroup. + :rtype: UnversionedGroupVersionForDiscovery + """ + return self._preferred_version + + @preferred_version.setter + def preferred_version(self, preferred_version): + """ + Sets the preferred_version of this UnversionedAPIGroup. + preferredVersion is the version preferred by the API server, which probably is the storage version. + + :param preferred_version: The preferred_version of this UnversionedAPIGroup. + :type: UnversionedGroupVersionForDiscovery + """ + + self._preferred_version = preferred_version + + @property + def server_address_by_client_cid_rs(self): + """ + Gets the server_address_by_client_cid_rs of this UnversionedAPIGroup. + 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. + + :return: The server_address_by_client_cid_rs of this UnversionedAPIGroup. + :rtype: list[UnversionedServerAddressByClientCIDR] + """ + 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 UnversionedAPIGroup. + 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. + + :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this UnversionedAPIGroup. + :type: list[UnversionedServerAddressByClientCIDR] + """ + if server_address_by_client_cid_rs is None: + raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") + + self._server_address_by_client_cid_rs = server_address_by_client_cid_rs + + @property + def versions(self): + """ + Gets the versions of this UnversionedAPIGroup. + versions are the versions supported in this group. + + :return: The versions of this UnversionedAPIGroup. + :rtype: list[UnversionedGroupVersionForDiscovery] + """ + return self._versions + + @versions.setter + def versions(self, versions): + """ + Sets the versions of this UnversionedAPIGroup. + versions are the versions supported in this group. + + :param versions: The versions of this UnversionedAPIGroup. + :type: list[UnversionedGroupVersionForDiscovery] + """ + if versions is None: + raise ValueError("Invalid value for `versions`, must not be `None`") + + self._versions = versions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedAPIGroup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/unversioned_api_group_list.py b/kubernetes/client/models/unversioned_api_group_list.py new file mode 100644 index 0000000000..5ca4597a1b --- /dev/null +++ b/kubernetes/client/models/unversioned_api_group_list.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedAPIGroupList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, groups=None, kind=None): + """ + UnversionedAPIGroupList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'groups': 'list[UnversionedAPIGroup]', + 'kind': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'groups': 'groups', + 'kind': 'kind' + } + + self._api_version = api_version + self._groups = groups + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this UnversionedAPIGroupList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this UnversionedAPIGroupList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this UnversionedAPIGroupList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this UnversionedAPIGroupList. + :type: str + """ + + self._api_version = api_version + + @property + def groups(self): + """ + Gets the groups of this UnversionedAPIGroupList. + groups is a list of APIGroup. + + :return: The groups of this UnversionedAPIGroupList. + :rtype: list[UnversionedAPIGroup] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this UnversionedAPIGroupList. + groups is a list of APIGroup. + + :param groups: The groups of this UnversionedAPIGroupList. + :type: list[UnversionedAPIGroup] + """ + if groups is None: + raise ValueError("Invalid value for `groups`, must not be `None`") + + self._groups = groups + + @property + def kind(self): + """ + Gets the kind of this UnversionedAPIGroupList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this UnversionedAPIGroupList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this UnversionedAPIGroupList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this UnversionedAPIGroupList. + :type: str + """ + + self._kind = kind + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedAPIGroupList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/unversioned_api_resource.py b/kubernetes/client/models/unversioned_api_resource.py new file mode 100644 index 0000000000..9965f74b31 --- /dev/null +++ b/kubernetes/client/models/unversioned_api_resource.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedAPIResource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, kind=None, name=None, namespaced=None): + """ + UnversionedAPIResource - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'name': 'str', + 'namespaced': 'bool' + } + + self.attribute_map = { + 'kind': 'kind', + 'name': 'name', + 'namespaced': 'namespaced' + } + + self._kind = kind + self._name = name + self._namespaced = namespaced + + @property + def kind(self): + """ + Gets the kind of this UnversionedAPIResource. + kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + + :return: The kind of this UnversionedAPIResource. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this UnversionedAPIResource. + kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + + :param kind: The kind of this UnversionedAPIResource. + :type: str + """ + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this UnversionedAPIResource. + name is the name of the resource. + + :return: The name of this UnversionedAPIResource. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this UnversionedAPIResource. + name is the name of the resource. + + :param name: The name of this UnversionedAPIResource. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def namespaced(self): + """ + Gets the namespaced of this UnversionedAPIResource. + namespaced indicates if a resource is namespaced or not. + + :return: The namespaced of this UnversionedAPIResource. + :rtype: bool + """ + return self._namespaced + + @namespaced.setter + def namespaced(self, namespaced): + """ + Sets the namespaced of this UnversionedAPIResource. + namespaced indicates if a resource is namespaced or not. + + :param namespaced: The namespaced of this UnversionedAPIResource. + :type: bool + """ + if namespaced is None: + raise ValueError("Invalid value for `namespaced`, must not be `None`") + + self._namespaced = namespaced + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedAPIResource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/unversioned_api_resource_list.py b/kubernetes/client/models/unversioned_api_resource_list.py new file mode 100644 index 0000000000..30fe9838b7 --- /dev/null +++ b/kubernetes/client/models/unversioned_api_resource_list.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedAPIResourceList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, group_version=None, kind=None, resources=None): + """ + UnversionedAPIResourceList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'group_version': 'str', + 'kind': 'str', + 'resources': 'list[UnversionedAPIResource]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'group_version': 'groupVersion', + 'kind': 'kind', + 'resources': 'resources' + } + + self._api_version = api_version + self._group_version = group_version + self._kind = kind + self._resources = resources + + @property + def api_version(self): + """ + Gets the api_version of this UnversionedAPIResourceList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this UnversionedAPIResourceList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this UnversionedAPIResourceList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this UnversionedAPIResourceList. + :type: str + """ + + self._api_version = api_version + + @property + def group_version(self): + """ + Gets the group_version of this UnversionedAPIResourceList. + groupVersion is the group and version this APIResourceList is for. + + :return: The group_version of this UnversionedAPIResourceList. + :rtype: str + """ + return self._group_version + + @group_version.setter + def group_version(self, group_version): + """ + Sets the group_version of this UnversionedAPIResourceList. + groupVersion is the group and version this APIResourceList is for. + + :param group_version: The group_version of this UnversionedAPIResourceList. + :type: str + """ + if group_version is None: + raise ValueError("Invalid value for `group_version`, must not be `None`") + + self._group_version = group_version + + @property + def kind(self): + """ + Gets the kind of this UnversionedAPIResourceList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this UnversionedAPIResourceList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this UnversionedAPIResourceList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this UnversionedAPIResourceList. + :type: str + """ + + self._kind = kind + + @property + def resources(self): + """ + Gets the resources of this UnversionedAPIResourceList. + resources contains the name of the resources and if they are namespaced. + + :return: The resources of this UnversionedAPIResourceList. + :rtype: list[UnversionedAPIResource] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this UnversionedAPIResourceList. + resources contains the name of the resources and if they are namespaced. + + :param resources: The resources of this UnversionedAPIResourceList. + :type: list[UnversionedAPIResource] + """ + if resources is None: + raise ValueError("Invalid value for `resources`, must not be `None`") + + self._resources = resources + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedAPIResourceList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/unversioned_api_versions.py b/kubernetes/client/models/unversioned_api_versions.py new file mode 100644 index 0000000000..0e71ca9a74 --- /dev/null +++ b/kubernetes/client/models/unversioned_api_versions.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedAPIVersions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, server_address_by_client_cid_rs=None, versions=None): + """ + UnversionedAPIVersions - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'server_address_by_client_cid_rs': 'list[UnversionedServerAddressByClientCIDR]', + 'versions': 'list[str]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'server_address_by_client_cid_rs': 'serverAddressByClientCIDRs', + 'versions': 'versions' + } + + self._api_version = api_version + 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 UnversionedAPIVersions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this UnversionedAPIVersions. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this UnversionedAPIVersions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this UnversionedAPIVersions. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this UnversionedAPIVersions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this UnversionedAPIVersions. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this UnversionedAPIVersions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this UnversionedAPIVersions. + :type: str + """ + + self._kind = kind + + @property + def server_address_by_client_cid_rs(self): + """ + Gets the server_address_by_client_cid_rs of this UnversionedAPIVersions. + 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. + + :return: The server_address_by_client_cid_rs of this UnversionedAPIVersions. + :rtype: list[UnversionedServerAddressByClientCIDR] + """ + 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 UnversionedAPIVersions. + 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. + + :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this UnversionedAPIVersions. + :type: list[UnversionedServerAddressByClientCIDR] + """ + if server_address_by_client_cid_rs is None: + raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") + + self._server_address_by_client_cid_rs = server_address_by_client_cid_rs + + @property + def versions(self): + """ + Gets the versions of this UnversionedAPIVersions. + versions are the api versions that are available. + + :return: The versions of this UnversionedAPIVersions. + :rtype: list[str] + """ + return self._versions + + @versions.setter + def versions(self, versions): + """ + Sets the versions of this UnversionedAPIVersions. + versions are the api versions that are available. + + :param versions: The versions of this UnversionedAPIVersions. + :type: list[str] + """ + if versions is None: + raise ValueError("Invalid value for `versions`, must not be `None`") + + self._versions = versions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedAPIVersions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/unversioned_group_version_for_discovery.py b/kubernetes/client/models/unversioned_group_version_for_discovery.py new file mode 100644 index 0000000000..0dcb916234 --- /dev/null +++ b/kubernetes/client/models/unversioned_group_version_for_discovery.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedGroupVersionForDiscovery(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, group_version=None, version=None): + """ + UnversionedGroupVersionForDiscovery - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'group_version': 'str', + 'version': 'str' + } + + self.attribute_map = { + 'group_version': 'groupVersion', + 'version': 'version' + } + + self._group_version = group_version + self._version = version + + @property + def group_version(self): + """ + Gets the group_version of this UnversionedGroupVersionForDiscovery. + groupVersion specifies the API group and version in the form \"group/version\" + + :return: The group_version of this UnversionedGroupVersionForDiscovery. + :rtype: str + """ + return self._group_version + + @group_version.setter + def group_version(self, group_version): + """ + Sets the group_version of this UnversionedGroupVersionForDiscovery. + groupVersion specifies the API group and version in the form \"group/version\" + + :param group_version: The group_version of this UnversionedGroupVersionForDiscovery. + :type: str + """ + if group_version is None: + raise ValueError("Invalid value for `group_version`, must not be `None`") + + self._group_version = group_version + + @property + def version(self): + """ + Gets the version of this UnversionedGroupVersionForDiscovery. + version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. + + :return: The version of this UnversionedGroupVersionForDiscovery. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this UnversionedGroupVersionForDiscovery. + version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. + + :param version: The version of this UnversionedGroupVersionForDiscovery. + :type: str + """ + if version is None: + raise ValueError("Invalid value for `version`, must not be `None`") + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedGroupVersionForDiscovery): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/unversioned_label_selector.py b/kubernetes/client/models/unversioned_label_selector.py new file mode 100644 index 0000000000..fed3f7457b --- /dev/null +++ b/kubernetes/client/models/unversioned_label_selector.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedLabelSelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, match_expressions=None, match_labels=None): + """ + UnversionedLabelSelector - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'match_expressions': 'list[UnversionedLabelSelectorRequirement]', + 'match_labels': 'dict(str, str)' + } + + self.attribute_map = { + 'match_expressions': 'matchExpressions', + 'match_labels': 'matchLabels' + } + + self._match_expressions = match_expressions + self._match_labels = match_labels + + @property + def match_expressions(self): + """ + Gets the match_expressions of this UnversionedLabelSelector. + matchExpressions is a list of label selector requirements. The requirements are ANDed. + + :return: The match_expressions of this UnversionedLabelSelector. + :rtype: list[UnversionedLabelSelectorRequirement] + """ + return self._match_expressions + + @match_expressions.setter + def match_expressions(self, match_expressions): + """ + Sets the match_expressions of this UnversionedLabelSelector. + matchExpressions is a list of label selector requirements. The requirements are ANDed. + + :param match_expressions: The match_expressions of this UnversionedLabelSelector. + :type: list[UnversionedLabelSelectorRequirement] + """ + + self._match_expressions = match_expressions + + @property + def match_labels(self): + """ + Gets the match_labels of this UnversionedLabelSelector. + matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. + + :return: The match_labels of this UnversionedLabelSelector. + :rtype: dict(str, str) + """ + return self._match_labels + + @match_labels.setter + def match_labels(self, match_labels): + """ + Sets the match_labels of this UnversionedLabelSelector. + matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. + + :param match_labels: The match_labels of this UnversionedLabelSelector. + :type: dict(str, str) + """ + + self._match_labels = match_labels + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedLabelSelector): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/unversioned_label_selector_requirement.py b/kubernetes/client/models/unversioned_label_selector_requirement.py new file mode 100644 index 0000000000..48ea6db931 --- /dev/null +++ b/kubernetes/client/models/unversioned_label_selector_requirement.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedLabelSelectorRequirement(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, key=None, operator=None, values=None): + """ + UnversionedLabelSelectorRequirement - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'key': 'str', + 'operator': 'str', + 'values': 'list[str]' + } + + self.attribute_map = { + 'key': 'key', + 'operator': 'operator', + 'values': 'values' + } + + self._key = key + self._operator = operator + self._values = values + + @property + def key(self): + """ + Gets the key of this UnversionedLabelSelectorRequirement. + key is the label key that the selector applies to. + + :return: The key of this UnversionedLabelSelectorRequirement. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this UnversionedLabelSelectorRequirement. + key is the label key that the selector applies to. + + :param key: The key of this UnversionedLabelSelectorRequirement. + :type: str + """ + if key is None: + raise ValueError("Invalid value for `key`, must not be `None`") + + self._key = key + + @property + def operator(self): + """ + Gets the operator of this UnversionedLabelSelectorRequirement. + operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. + + :return: The operator of this UnversionedLabelSelectorRequirement. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """ + Sets the operator of this UnversionedLabelSelectorRequirement. + operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. + + :param operator: The operator of this UnversionedLabelSelectorRequirement. + :type: str + """ + if operator is None: + raise ValueError("Invalid value for `operator`, must not be `None`") + + self._operator = operator + + @property + def values(self): + """ + Gets the values of this UnversionedLabelSelectorRequirement. + values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + + :return: The values of this UnversionedLabelSelectorRequirement. + :rtype: list[str] + """ + return self._values + + @values.setter + def values(self, values): + """ + Sets the values of this UnversionedLabelSelectorRequirement. + values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + + :param values: The values of this UnversionedLabelSelectorRequirement. + :type: list[str] + """ + + self._values = values + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedLabelSelectorRequirement): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/unversioned_list_meta.py b/kubernetes/client/models/unversioned_list_meta.py new file mode 100644 index 0000000000..967f151c5e --- /dev/null +++ b/kubernetes/client/models/unversioned_list_meta.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedListMeta(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, resource_version=None, self_link=None): + """ + UnversionedListMeta - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'resource_version': 'str', + 'self_link': 'str' + } + + self.attribute_map = { + 'resource_version': 'resourceVersion', + 'self_link': 'selfLink' + } + + self._resource_version = resource_version + self._self_link = self_link + + @property + def resource_version(self): + """ + Gets the resource_version of this UnversionedListMeta. + String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + + :return: The resource_version of this UnversionedListMeta. + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """ + Sets the resource_version of this UnversionedListMeta. + String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + + :param resource_version: The resource_version of this UnversionedListMeta. + :type: str + """ + + self._resource_version = resource_version + + @property + def self_link(self): + """ + Gets the self_link of this UnversionedListMeta. + SelfLink is a URL representing this object. Populated by the system. Read-only. + + :return: The self_link of this UnversionedListMeta. + :rtype: str + """ + return self._self_link + + @self_link.setter + def self_link(self, self_link): + """ + Sets the self_link of this UnversionedListMeta. + SelfLink is a URL representing this object. Populated by the system. Read-only. + + :param self_link: The self_link of this UnversionedListMeta. + :type: str + """ + + self._self_link = self_link + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedListMeta): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/unversioned_server_address_by_client_cidr.py b/kubernetes/client/models/unversioned_server_address_by_client_cidr.py new file mode 100644 index 0000000000..3cd468a530 --- /dev/null +++ b/kubernetes/client/models/unversioned_server_address_by_client_cidr.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedServerAddressByClientCIDR(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, client_cidr=None, server_address=None): + """ + UnversionedServerAddressByClientCIDR - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'client_cidr': 'str', + 'server_address': 'str' + } + + self.attribute_map = { + 'client_cidr': 'clientCIDR', + 'server_address': 'serverAddress' + } + + self._client_cidr = client_cidr + self._server_address = server_address + + @property + def client_cidr(self): + """ + Gets the client_cidr of this UnversionedServerAddressByClientCIDR. + The CIDR with which clients can match their IP to figure out the server address that they should use. + + :return: The client_cidr of this UnversionedServerAddressByClientCIDR. + :rtype: str + """ + return self._client_cidr + + @client_cidr.setter + def client_cidr(self, client_cidr): + """ + Sets the client_cidr of this UnversionedServerAddressByClientCIDR. + The CIDR with which clients can match their IP to figure out the server address that they should use. + + :param client_cidr: The client_cidr of this UnversionedServerAddressByClientCIDR. + :type: str + """ + if client_cidr is None: + raise ValueError("Invalid value for `client_cidr`, must not be `None`") + + self._client_cidr = client_cidr + + @property + def server_address(self): + """ + Gets the server_address of this UnversionedServerAddressByClientCIDR. + Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. + + :return: The server_address of this UnversionedServerAddressByClientCIDR. + :rtype: str + """ + return self._server_address + + @server_address.setter + def server_address(self, server_address): + """ + Sets the server_address of this UnversionedServerAddressByClientCIDR. + Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. + + :param server_address: The server_address of this UnversionedServerAddressByClientCIDR. + :type: str + """ + if server_address is None: + raise ValueError("Invalid value for `server_address`, must not be `None`") + + self._server_address = server_address + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedServerAddressByClientCIDR): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/unversioned_status.py b/kubernetes/client/models/unversioned_status.py new file mode 100644 index 0000000000..7764b41933 --- /dev/null +++ b/kubernetes/client/models/unversioned_status.py @@ -0,0 +1,299 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, code=None, details=None, kind=None, message=None, metadata=None, reason=None, status=None): + """ + UnversionedStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'code': 'int', + 'details': 'UnversionedStatusDetails', + 'kind': 'str', + 'message': 'str', + 'metadata': 'UnversionedListMeta', + 'reason': 'str', + 'status': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'code': 'code', + 'details': 'details', + 'kind': 'kind', + 'message': 'message', + 'metadata': 'metadata', + 'reason': 'reason', + 'status': 'status' + } + + self._api_version = api_version + self._code = code + self._details = details + self._kind = kind + self._message = message + self._metadata = metadata + self._reason = reason + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this UnversionedStatus. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this UnversionedStatus. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this UnversionedStatus. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this UnversionedStatus. + :type: str + """ + + self._api_version = api_version + + @property + def code(self): + """ + Gets the code of this UnversionedStatus. + Suggested HTTP return code for this status, 0 if not set. + + :return: The code of this UnversionedStatus. + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this UnversionedStatus. + Suggested HTTP return code for this status, 0 if not set. + + :param code: The code of this UnversionedStatus. + :type: int + """ + + self._code = code + + @property + def details(self): + """ + Gets the details of this UnversionedStatus. + Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + + :return: The details of this UnversionedStatus. + :rtype: UnversionedStatusDetails + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this UnversionedStatus. + Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + + :param details: The details of this UnversionedStatus. + :type: UnversionedStatusDetails + """ + + self._details = details + + @property + def kind(self): + """ + Gets the kind of this UnversionedStatus. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this UnversionedStatus. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this UnversionedStatus. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this UnversionedStatus. + :type: str + """ + + self._kind = kind + + @property + def message(self): + """ + Gets the message of this UnversionedStatus. + A human-readable description of the status of this operation. + + :return: The message of this UnversionedStatus. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this UnversionedStatus. + A human-readable description of the status of this operation. + + :param message: The message of this UnversionedStatus. + :type: str + """ + + self._message = message + + @property + def metadata(self): + """ + Gets the metadata of this UnversionedStatus. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The metadata of this UnversionedStatus. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this UnversionedStatus. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param metadata: The metadata of this UnversionedStatus. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + @property + def reason(self): + """ + Gets the reason of this UnversionedStatus. + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + + :return: The reason of this UnversionedStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this UnversionedStatus. + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + + :param reason: The reason of this UnversionedStatus. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this UnversionedStatus. + Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this UnversionedStatus. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this UnversionedStatus. + Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this UnversionedStatus. + :type: str + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/unversioned_status_cause.py b/kubernetes/client/models/unversioned_status_cause.py new file mode 100644 index 0000000000..737dcffbbc --- /dev/null +++ b/kubernetes/client/models/unversioned_status_cause.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedStatusCause(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, field=None, message=None, reason=None): + """ + UnversionedStatusCause - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'field': 'str', + 'message': 'str', + 'reason': 'str' + } + + self.attribute_map = { + 'field': 'field', + 'message': 'message', + 'reason': 'reason' + } + + self._field = field + self._message = message + self._reason = reason + + @property + def field(self): + """ + Gets the field of this UnversionedStatusCause. + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" + + :return: The field of this UnversionedStatusCause. + :rtype: str + """ + return self._field + + @field.setter + def field(self, field): + """ + Sets the field of this UnversionedStatusCause. + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" + + :param field: The field of this UnversionedStatusCause. + :type: str + """ + + self._field = field + + @property + def message(self): + """ + Gets the message of this UnversionedStatusCause. + A human-readable description of the cause of the error. This field may be presented as-is to a reader. + + :return: The message of this UnversionedStatusCause. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this UnversionedStatusCause. + A human-readable description of the cause of the error. This field may be presented as-is to a reader. + + :param message: The message of this UnversionedStatusCause. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this UnversionedStatusCause. + A machine-readable description of the cause of the error. If this value is empty there is no information available. + + :return: The reason of this UnversionedStatusCause. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this UnversionedStatusCause. + A machine-readable description of the cause of the error. If this value is empty there is no information available. + + :param reason: The reason of this UnversionedStatusCause. + :type: str + """ + + self._reason = reason + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedStatusCause): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/unversioned_status_details.py b/kubernetes/client/models/unversioned_status_details.py new file mode 100644 index 0000000000..2b179cba2b --- /dev/null +++ b/kubernetes/client/models/unversioned_status_details.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UnversionedStatusDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_seconds=None): + """ + UnversionedStatusDetails - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'causes': 'list[UnversionedStatusCause]', + 'group': 'str', + 'kind': 'str', + 'name': 'str', + 'retry_after_seconds': 'int' + } + + self.attribute_map = { + 'causes': 'causes', + 'group': 'group', + 'kind': 'kind', + 'name': 'name', + 'retry_after_seconds': 'retryAfterSeconds' + } + + self._causes = causes + self._group = group + self._kind = kind + self._name = name + self._retry_after_seconds = retry_after_seconds + + @property + def causes(self): + """ + Gets the causes of this UnversionedStatusDetails. + The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + + :return: The causes of this UnversionedStatusDetails. + :rtype: list[UnversionedStatusCause] + """ + return self._causes + + @causes.setter + def causes(self, causes): + """ + Sets the causes of this UnversionedStatusDetails. + The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + + :param causes: The causes of this UnversionedStatusDetails. + :type: list[UnversionedStatusCause] + """ + + self._causes = causes + + @property + def group(self): + """ + Gets the group of this UnversionedStatusDetails. + The group attribute of the resource associated with the status StatusReason. + + :return: The group of this UnversionedStatusDetails. + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """ + Sets the group of this UnversionedStatusDetails. + The group attribute of the resource associated with the status StatusReason. + + :param group: The group of this UnversionedStatusDetails. + :type: str + """ + + self._group = group + + @property + def kind(self): + """ + Gets the kind of this UnversionedStatusDetails. + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this UnversionedStatusDetails. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this UnversionedStatusDetails. + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this UnversionedStatusDetails. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this UnversionedStatusDetails. + The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + + :return: The name of this UnversionedStatusDetails. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this UnversionedStatusDetails. + The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + + :param name: The name of this UnversionedStatusDetails. + :type: str + """ + + self._name = name + + @property + def retry_after_seconds(self): + """ + Gets the retry_after_seconds of this UnversionedStatusDetails. + If specified, the time in seconds before the operation should be retried. + + :return: The retry_after_seconds of this UnversionedStatusDetails. + :rtype: int + """ + return self._retry_after_seconds + + @retry_after_seconds.setter + def retry_after_seconds(self, retry_after_seconds): + """ + Sets the retry_after_seconds of this UnversionedStatusDetails. + If specified, the time in seconds before the operation should be retried. + + :param retry_after_seconds: The retry_after_seconds of this UnversionedStatusDetails. + :type: int + """ + + self._retry_after_seconds = retry_after_seconds + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, UnversionedStatusDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_affinity.py b/kubernetes/client/models/v1_affinity.py deleted file mode 100644 index ebe88605d2..0000000000 --- a/kubernetes/client/models/v1_affinity.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1Affinity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None): - """ - V1Affinity - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'node_affinity': 'V1NodeAffinity', - 'pod_affinity': 'V1PodAffinity', - 'pod_anti_affinity': 'V1PodAntiAffinity' - } - - self.attribute_map = { - 'node_affinity': 'nodeAffinity', - 'pod_affinity': 'podAffinity', - 'pod_anti_affinity': 'podAntiAffinity' - } - - self._node_affinity = node_affinity - self._pod_affinity = pod_affinity - self._pod_anti_affinity = pod_anti_affinity - - @property - def node_affinity(self): - """ - Gets the node_affinity of this V1Affinity. - Describes node affinity scheduling rules for the pod. - - :return: The node_affinity of this V1Affinity. - :rtype: V1NodeAffinity - """ - return self._node_affinity - - @node_affinity.setter - def node_affinity(self, node_affinity): - """ - Sets the node_affinity of this V1Affinity. - Describes node affinity scheduling rules for the pod. - - :param node_affinity: The node_affinity of this V1Affinity. - :type: V1NodeAffinity - """ - - self._node_affinity = node_affinity - - @property - def pod_affinity(self): - """ - Gets the pod_affinity of this V1Affinity. - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - - :return: The pod_affinity of this V1Affinity. - :rtype: V1PodAffinity - """ - return self._pod_affinity - - @pod_affinity.setter - def pod_affinity(self, pod_affinity): - """ - Sets the pod_affinity of this V1Affinity. - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - - :param pod_affinity: The pod_affinity of this V1Affinity. - :type: V1PodAffinity - """ - - self._pod_affinity = pod_affinity - - @property - def pod_anti_affinity(self): - """ - Gets the pod_anti_affinity of this V1Affinity. - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - - :return: The pod_anti_affinity of this V1Affinity. - :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. - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - - :param pod_anti_affinity: The pod_anti_affinity of this V1Affinity. - :type: V1PodAntiAffinity - """ - - self._pod_anti_affinity = pod_anti_affinity - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_api_group.py b/kubernetes/client/models/v1_api_group.py deleted file mode 100644 index c9eaade4ba..0000000000 --- a/kubernetes/client/models/v1_api_group.py +++ /dev/null @@ -1,253 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1APIGroup(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, name=None, preferred_version=None, server_address_by_client_cid_rs=None, versions=None): - """ - V1APIGroup - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'name': 'str', - 'preferred_version': 'V1GroupVersionForDiscovery', - 'server_address_by_client_cid_rs': 'list[V1ServerAddressByClientCIDR]', - 'versions': 'list[V1GroupVersionForDiscovery]' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'name': 'name', - 'preferred_version': 'preferredVersion', - 'server_address_by_client_cid_rs': 'serverAddressByClientCIDRs', - 'versions': 'versions' - } - - self._api_version = api_version - self._kind = kind - self._name = name - self._preferred_version = preferred_version - 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. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1APIGroup. - :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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1APIGroup. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets 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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1APIGroup. - :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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1APIGroup. - :type: str - """ - - self._kind = kind - - @property - def name(self): - """ - Gets the name of this V1APIGroup. - name is the name of the group. - - :return: The name of this V1APIGroup. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1APIGroup. - name is the name of the group. - - :param name: The name of this V1APIGroup. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - @property - def preferred_version(self): - """ - Gets the preferred_version of this V1APIGroup. - preferredVersion is the version preferred by the API server, which probably is the storage version. - - :return: The preferred_version of this V1APIGroup. - :rtype: V1GroupVersionForDiscovery - """ - return self._preferred_version - - @preferred_version.setter - def preferred_version(self, preferred_version): - """ - Sets the preferred_version of this V1APIGroup. - preferredVersion is the version preferred by the API server, which probably is the storage version. - - :param preferred_version: The preferred_version of this V1APIGroup. - :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. - 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. - - :return: The server_address_by_client_cid_rs of this V1APIGroup. - :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. - - :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIGroup. - :type: list[V1ServerAddressByClientCIDR] - """ - if server_address_by_client_cid_rs is None: - raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") - - self._server_address_by_client_cid_rs = server_address_by_client_cid_rs - - @property - def versions(self): - """ - Gets the versions of this V1APIGroup. - versions are the versions supported in this group. - - :return: The versions of this V1APIGroup. - :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. - - :param versions: The versions of this V1APIGroup. - :type: list[V1GroupVersionForDiscovery] - """ - if versions is None: - raise ValueError("Invalid value for `versions`, must not be `None`") - - self._versions = versions - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_api_group_list.py b/kubernetes/client/models/v1_api_group_list.py deleted file mode 100644 index 5614e46351..0000000000 --- a/kubernetes/client/models/v1_api_group_list.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1APIGroupList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, groups=None, kind=None): - """ - V1APIGroupList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'groups': 'list[V1APIGroup]', - 'kind': 'str' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'groups': 'groups', - 'kind': 'kind' - } - - self._api_version = api_version - self._groups = groups - self._kind = kind - - @property - def api_version(self): - """ - Gets 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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1APIGroupList. - :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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1APIGroupList. - :type: str - """ - - self._api_version = api_version - - @property - def groups(self): - """ - Gets the groups of this V1APIGroupList. - groups is a list of APIGroup. - - :return: The groups of this V1APIGroupList. - :rtype: list[V1APIGroup] - """ - return self._groups - - @groups.setter - def groups(self, groups): - """ - Sets the groups of this V1APIGroupList. - groups is a list of APIGroup. - - :param groups: The groups of this V1APIGroupList. - :type: list[V1APIGroup] - """ - if groups is None: - raise ValueError("Invalid value for `groups`, must not be `None`") - - self._groups = groups - - @property - def kind(self): - """ - Gets 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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1APIGroupList. - :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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1APIGroupList. - :type: str - """ - - self._kind = kind - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_api_resource.py b/kubernetes/client/models/v1_api_resource.py deleted file mode 100644 index fec6fcc098..0000000000 --- a/kubernetes/client/models/v1_api_resource.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1APIResource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, kind=None, name=None, namespaced=None, short_names=None, verbs=None): - """ - V1APIResource - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'kind': 'str', - 'name': 'str', - 'namespaced': 'bool', - 'short_names': 'list[str]', - 'verbs': 'list[str]' - } - - self.attribute_map = { - 'kind': 'kind', - 'name': 'name', - 'namespaced': 'namespaced', - 'short_names': 'shortNames', - 'verbs': 'verbs' - } - - self._kind = kind - self._name = name - self._namespaced = namespaced - self._short_names = short_names - self._verbs = verbs - - @property - def kind(self): - """ - Gets the kind of this V1APIResource. - kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') - - :return: The kind of this V1APIResource. - :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') - - :param kind: The kind of this V1APIResource. - :type: str - """ - if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") - - self._kind = kind - - @property - def name(self): - """ - Gets the name of this V1APIResource. - name is the name of the resource. - - :return: The name of this V1APIResource. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1APIResource. - name is the name of the resource. - - :param name: The name of this V1APIResource. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - @property - def namespaced(self): - """ - Gets the namespaced of this V1APIResource. - namespaced indicates if a resource is namespaced or not. - - :return: The namespaced of this V1APIResource. - :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. - - :param namespaced: The namespaced of this V1APIResource. - :type: bool - """ - if namespaced is None: - raise ValueError("Invalid value for `namespaced`, must not be `None`") - - self._namespaced = namespaced - - @property - def short_names(self): - """ - Gets the short_names of this V1APIResource. - shortNames is a list of suggested short names of the resource. - - :return: The short_names of this V1APIResource. - :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. - - :param short_names: The short_names of this V1APIResource. - :type: list[str] - """ - - self._short_names = short_names - - @property - def verbs(self): - """ - Gets 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) - - :return: The verbs of this V1APIResource. - :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) - - :param verbs: The verbs of this V1APIResource. - :type: list[str] - """ - if verbs is None: - raise ValueError("Invalid value for `verbs`, must not be `None`") - - self._verbs = verbs - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_api_resource_list.py b/kubernetes/client/models/v1_api_resource_list.py deleted file mode 100644 index 6897b6224a..0000000000 --- a/kubernetes/client/models/v1_api_resource_list.py +++ /dev/null @@ -1,199 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1APIResourceList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, group_version=None, kind=None, resources=None): - """ - V1APIResourceList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'group_version': 'str', - 'kind': 'str', - 'resources': 'list[V1APIResource]' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'group_version': 'groupVersion', - 'kind': 'kind', - 'resources': 'resources' - } - - self._api_version = api_version - self._group_version = group_version - self._kind = kind - self._resources = resources - - @property - def api_version(self): - """ - Gets 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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1APIResourceList. - :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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1APIResourceList. - :type: str - """ - - self._api_version = api_version - - @property - def group_version(self): - """ - Gets the group_version of this V1APIResourceList. - groupVersion is the group and version this APIResourceList is for. - - :return: The group_version of this V1APIResourceList. - :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. - - :param group_version: The group_version of this V1APIResourceList. - :type: str - """ - if group_version is None: - raise ValueError("Invalid value for `group_version`, must not be `None`") - - self._group_version = group_version - - @property - def kind(self): - """ - Gets 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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1APIResourceList. - :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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1APIResourceList. - :type: str - """ - - self._kind = kind - - @property - def resources(self): - """ - Gets the resources of this V1APIResourceList. - resources contains the name of the resources and if they are namespaced. - - :return: The resources of this V1APIResourceList. - :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. - - :param resources: The resources of this V1APIResourceList. - :type: list[V1APIResource] - """ - if resources is None: - raise ValueError("Invalid value for `resources`, must not be `None`") - - self._resources = resources - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_api_versions.py b/kubernetes/client/models/v1_api_versions.py deleted file mode 100644 index 6f3199bc7a..0000000000 --- a/kubernetes/client/models/v1_api_versions.py +++ /dev/null @@ -1,199 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1APIVersions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, server_address_by_client_cid_rs=None, versions=None): - """ - V1APIVersions - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'server_address_by_client_cid_rs': 'list[V1ServerAddressByClientCIDR]', - 'versions': 'list[str]' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'server_address_by_client_cid_rs': 'serverAddressByClientCIDRs', - 'versions': 'versions' - } - - self._api_version = api_version - 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. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1APIVersions. - :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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1APIVersions. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets 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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1APIVersions. - :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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1APIVersions. - :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. - 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. - - :return: The server_address_by_client_cid_rs of this V1APIVersions. - :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. - - :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIVersions. - :type: list[V1ServerAddressByClientCIDR] - """ - if server_address_by_client_cid_rs is None: - raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") - - self._server_address_by_client_cid_rs = server_address_by_client_cid_rs - - @property - def versions(self): - """ - Gets the versions of this V1APIVersions. - versions are the api versions that are available. - - :return: The versions of this V1APIVersions. - :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. - - :param versions: The versions of this V1APIVersions. - :type: list[str] - """ - if versions is None: - raise ValueError("Invalid value for `versions`, must not be `None`") - - self._versions = versions - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_applied_cluster_resource_quota.py b/kubernetes/client/models/v1_applied_cluster_resource_quota.py new file mode 100644 index 0000000000..19558982ac --- /dev/null +++ b/kubernetes/client/models/v1_applied_cluster_resource_quota.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1AppliedClusterResourceQuota(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1AppliedClusterResourceQuota - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ClusterResourceQuotaSpec', + 'status': 'V1ClusterResourceQuotaStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1AppliedClusterResourceQuota. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1AppliedClusterResourceQuota. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1AppliedClusterResourceQuota. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1AppliedClusterResourceQuota. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1AppliedClusterResourceQuota. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1AppliedClusterResourceQuota. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1AppliedClusterResourceQuota. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1AppliedClusterResourceQuota. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1AppliedClusterResourceQuota. + Standard object's metadata. + + :return: The metadata of this V1AppliedClusterResourceQuota. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1AppliedClusterResourceQuota. + Standard object's metadata. + + :param metadata: The metadata of this V1AppliedClusterResourceQuota. + :type: V1ObjectMeta + """ + if metadata is None: + raise ValueError("Invalid value for `metadata`, must not be `None`") + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1AppliedClusterResourceQuota. + Spec defines the desired quota + + :return: The spec of this V1AppliedClusterResourceQuota. + :rtype: V1ClusterResourceQuotaSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1AppliedClusterResourceQuota. + Spec defines the desired quota + + :param spec: The spec of this V1AppliedClusterResourceQuota. + :type: V1ClusterResourceQuotaSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1AppliedClusterResourceQuota. + Status defines the actual enforced quota and its current usage + + :return: The status of this V1AppliedClusterResourceQuota. + :rtype: V1ClusterResourceQuotaStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1AppliedClusterResourceQuota. + Status defines the actual enforced quota and its current usage + + :param status: The status of this V1AppliedClusterResourceQuota. + :type: V1ClusterResourceQuotaStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1AppliedClusterResourceQuota): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_applied_cluster_resource_quota_list.py b/kubernetes/client/models/v1_applied_cluster_resource_quota_list.py new file mode 100644 index 0000000000..27ca1f6eca --- /dev/null +++ b/kubernetes/client/models/v1_applied_cluster_resource_quota_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1AppliedClusterResourceQuotaList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1AppliedClusterResourceQuotaList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1AppliedClusterResourceQuota]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1AppliedClusterResourceQuotaList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1AppliedClusterResourceQuotaList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1AppliedClusterResourceQuotaList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1AppliedClusterResourceQuotaList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1AppliedClusterResourceQuotaList. + Items is a list of AppliedClusterResourceQuota + + :return: The items of this V1AppliedClusterResourceQuotaList. + :rtype: list[V1AppliedClusterResourceQuota] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1AppliedClusterResourceQuotaList. + Items is a list of AppliedClusterResourceQuota + + :param items: The items of this V1AppliedClusterResourceQuotaList. + :type: list[V1AppliedClusterResourceQuota] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1AppliedClusterResourceQuotaList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1AppliedClusterResourceQuotaList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1AppliedClusterResourceQuotaList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1AppliedClusterResourceQuotaList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1AppliedClusterResourceQuotaList. + Standard object's metadata. + + :return: The metadata of this V1AppliedClusterResourceQuotaList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1AppliedClusterResourceQuotaList. + Standard object's metadata. + + :param metadata: The metadata of this V1AppliedClusterResourceQuotaList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1AppliedClusterResourceQuotaList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_attached_volume.py b/kubernetes/client/models/v1_attached_volume.py index 3ea7963729..bfe7f3d520 100644 --- a/kubernetes/client/models/v1_attached_volume.py +++ b/kubernetes/client/models/v1_attached_volume.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py b/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py index 8a4413d235..6cb2fa3a0f 100644 --- a/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py +++ b/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_azure_disk_volume_source.py b/kubernetes/client/models/v1_azure_disk_volume_source.py index f937266da2..17bda3ad38 100644 --- a/kubernetes/client/models/v1_azure_disk_volume_source.py +++ b/kubernetes/client/models/v1_azure_disk_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_azure_file_volume_source.py b/kubernetes/client/models/v1_azure_file_volume_source.py index 361764e42f..82bb11386a 100644 --- a/kubernetes/client/models/v1_azure_file_volume_source.py +++ b/kubernetes/client/models/v1_azure_file_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_binary_build_source.py b/kubernetes/client/models/v1_binary_build_source.py new file mode 100644 index 0000000000..6090491e47 --- /dev/null +++ b/kubernetes/client/models/v1_binary_build_source.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BinaryBuildSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, as_file=None): + """ + V1BinaryBuildSource - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'as_file': 'str' + } + + self.attribute_map = { + 'as_file': 'asFile' + } + + self._as_file = as_file + + @property + def as_file(self): + """ + Gets the as_file of this V1BinaryBuildSource. + asFile indicates that the provided binary input should be considered a single file within the build input. For example, specifying \"webapp.war\" would place the provided binary as `/webapp.war` for the builder. If left empty, the Docker and Source build strategies assume this file is a zip, tar, or tar.gz file and extract it as the source. The custom strategy receives this binary as standard input. This filename may not contain slashes or be '..' or '.'. + + :return: The as_file of this V1BinaryBuildSource. + :rtype: str + """ + return self._as_file + + @as_file.setter + def as_file(self, as_file): + """ + Sets the as_file of this V1BinaryBuildSource. + asFile indicates that the provided binary input should be considered a single file within the build input. For example, specifying \"webapp.war\" would place the provided binary as `/webapp.war` for the builder. If left empty, the Docker and Source build strategies assume this file is a zip, tar, or tar.gz file and extract it as the source. The custom strategy receives this binary as standard input. This filename may not contain slashes or be '..' or '.'. + + :param as_file: The as_file of this V1BinaryBuildSource. + :type: str + """ + + self._as_file = as_file + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BinaryBuildSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_binding.py b/kubernetes/client/models/v1_binding.py index 4e24ffdf43..31f16edc6d 100644 --- a/kubernetes/client/models/v1_binding.py +++ b/kubernetes/client/models/v1_binding.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_build.py b/kubernetes/client/models/v1_build.py new file mode 100644 index 0000000000..f5e6be8273 --- /dev/null +++ b/kubernetes/client/models/v1_build.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Build(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1Build - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1BuildSpec', + 'status': 'V1BuildStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1Build. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1Build. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Build. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1Build. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1Build. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1Build. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Build. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1Build. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1Build. + Standard object's metadata. + + :return: The metadata of this V1Build. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Build. + Standard object's metadata. + + :param metadata: The metadata of this V1Build. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Build. + spec is all the inputs used to execute the build. + + :return: The spec of this V1Build. + :rtype: V1BuildSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Build. + spec is all the inputs used to execute the build. + + :param spec: The spec of this V1Build. + :type: V1BuildSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Build. + status is the current status of the build. + + :return: The status of this V1Build. + :rtype: V1BuildStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Build. + status is the current status of the build. + + :param status: The status of this V1Build. + :type: V1BuildStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1Build): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_config.py b/kubernetes/client/models/v1_build_config.py new file mode 100644 index 0000000000..8c9e8fd329 --- /dev/null +++ b/kubernetes/client/models/v1_build_config.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1BuildConfig - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1BuildConfigSpec', + 'status': 'V1BuildConfigStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1BuildConfig. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1BuildConfig. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1BuildConfig. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1BuildConfig. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1BuildConfig. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1BuildConfig. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1BuildConfig. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1BuildConfig. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1BuildConfig. + metadata for BuildConfig. + + :return: The metadata of this V1BuildConfig. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1BuildConfig. + metadata for BuildConfig. + + :param metadata: The metadata of this V1BuildConfig. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1BuildConfig. + spec holds all the input necessary to produce a new build, and the conditions when to trigger them. + + :return: The spec of this V1BuildConfig. + :rtype: V1BuildConfigSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1BuildConfig. + spec holds all the input necessary to produce a new build, and the conditions when to trigger them. + + :param spec: The spec of this V1BuildConfig. + :type: V1BuildConfigSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1BuildConfig. + status holds any relevant information about a build config + + :return: The status of this V1BuildConfig. + :rtype: V1BuildConfigStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1BuildConfig. + status holds any relevant information about a build config + + :param status: The status of this V1BuildConfig. + :type: V1BuildConfigStatus + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_config_list.py b/kubernetes/client/models/v1_build_config_list.py new file mode 100644 index 0000000000..aff6f08f4e --- /dev/null +++ b/kubernetes/client/models/v1_build_config_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildConfigList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1BuildConfigList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1BuildConfig]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1BuildConfigList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1BuildConfigList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1BuildConfigList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1BuildConfigList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1BuildConfigList. + items is a list of build configs + + :return: The items of this V1BuildConfigList. + :rtype: list[V1BuildConfig] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1BuildConfigList. + items is a list of build configs + + :param items: The items of this V1BuildConfigList. + :type: list[V1BuildConfig] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1BuildConfigList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1BuildConfigList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1BuildConfigList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1BuildConfigList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1BuildConfigList. + metadata for BuildConfigList. + + :return: The metadata of this V1BuildConfigList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1BuildConfigList. + metadata for BuildConfigList. + + :param metadata: The metadata of this V1BuildConfigList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildConfigList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_config_spec.py b/kubernetes/client/models/v1_build_config_spec.py new file mode 100644 index 0000000000..bd27bbae99 --- /dev/null +++ b/kubernetes/client/models/v1_build_config_spec.py @@ -0,0 +1,383 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildConfigSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, completion_deadline_seconds=None, node_selector=None, output=None, post_commit=None, resources=None, revision=None, run_policy=None, service_account=None, source=None, strategy=None, triggers=None): + """ + V1BuildConfigSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'completion_deadline_seconds': 'int', + 'node_selector': 'dict(str, str)', + 'output': 'V1BuildOutput', + 'post_commit': 'V1BuildPostCommitSpec', + 'resources': 'V1ResourceRequirements', + 'revision': 'V1SourceRevision', + 'run_policy': 'str', + 'service_account': 'str', + 'source': 'V1BuildSource', + 'strategy': 'V1BuildStrategy', + 'triggers': 'list[V1BuildTriggerPolicy]' + } + + self.attribute_map = { + 'completion_deadline_seconds': 'completionDeadlineSeconds', + 'node_selector': 'nodeSelector', + 'output': 'output', + 'post_commit': 'postCommit', + 'resources': 'resources', + 'revision': 'revision', + 'run_policy': 'runPolicy', + 'service_account': 'serviceAccount', + 'source': 'source', + 'strategy': 'strategy', + 'triggers': 'triggers' + } + + self._completion_deadline_seconds = completion_deadline_seconds + self._node_selector = node_selector + self._output = output + self._post_commit = post_commit + self._resources = resources + self._revision = revision + self._run_policy = run_policy + self._service_account = service_account + self._source = source + self._strategy = strategy + self._triggers = triggers + + @property + def completion_deadline_seconds(self): + """ + Gets the completion_deadline_seconds of this V1BuildConfigSpec. + completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets scheduled in the system, that the build may be active on a node before the system actively tries to terminate the build; value must be positive integer + + :return: The completion_deadline_seconds of this V1BuildConfigSpec. + :rtype: int + """ + return self._completion_deadline_seconds + + @completion_deadline_seconds.setter + def completion_deadline_seconds(self, completion_deadline_seconds): + """ + Sets the completion_deadline_seconds of this V1BuildConfigSpec. + completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets scheduled in the system, that the build may be active on a node before the system actively tries to terminate the build; value must be positive integer + + :param completion_deadline_seconds: The completion_deadline_seconds of this V1BuildConfigSpec. + :type: int + """ + + self._completion_deadline_seconds = completion_deadline_seconds + + @property + def node_selector(self): + """ + Gets the node_selector of this V1BuildConfigSpec. + nodeSelector is a selector which must be true for the build pod to fit on a node If nil, it can be overridden by default build nodeselector values for the cluster. If set to an empty map or a map with any values, default build nodeselector values are ignored. + + :return: The node_selector of this V1BuildConfigSpec. + :rtype: dict(str, str) + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """ + Sets the node_selector of this V1BuildConfigSpec. + nodeSelector is a selector which must be true for the build pod to fit on a node If nil, it can be overridden by default build nodeselector values for the cluster. If set to an empty map or a map with any values, default build nodeselector values are ignored. + + :param node_selector: The node_selector of this V1BuildConfigSpec. + :type: dict(str, str) + """ + if node_selector is None: + raise ValueError("Invalid value for `node_selector`, must not be `None`") + + self._node_selector = node_selector + + @property + def output(self): + """ + Gets the output of this V1BuildConfigSpec. + output describes the Docker image the Strategy should produce. + + :return: The output of this V1BuildConfigSpec. + :rtype: V1BuildOutput + """ + return self._output + + @output.setter + def output(self, output): + """ + Sets the output of this V1BuildConfigSpec. + output describes the Docker image the Strategy should produce. + + :param output: The output of this V1BuildConfigSpec. + :type: V1BuildOutput + """ + + self._output = output + + @property + def post_commit(self): + """ + Gets the post_commit of this V1BuildConfigSpec. + postCommit is a build hook executed after the build output image is committed, before it is pushed to a registry. + + :return: The post_commit of this V1BuildConfigSpec. + :rtype: V1BuildPostCommitSpec + """ + return self._post_commit + + @post_commit.setter + def post_commit(self, post_commit): + """ + Sets the post_commit of this V1BuildConfigSpec. + postCommit is a build hook executed after the build output image is committed, before it is pushed to a registry. + + :param post_commit: The post_commit of this V1BuildConfigSpec. + :type: V1BuildPostCommitSpec + """ + + self._post_commit = post_commit + + @property + def resources(self): + """ + Gets the resources of this V1BuildConfigSpec. + resources computes resource requirements to execute the build. + + :return: The resources of this V1BuildConfigSpec. + :rtype: V1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1BuildConfigSpec. + resources computes resource requirements to execute the build. + + :param resources: The resources of this V1BuildConfigSpec. + :type: V1ResourceRequirements + """ + + self._resources = resources + + @property + def revision(self): + """ + Gets the revision of this V1BuildConfigSpec. + revision is the information from the source for a specific repo snapshot. This is optional. + + :return: The revision of this V1BuildConfigSpec. + :rtype: V1SourceRevision + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this V1BuildConfigSpec. + revision is the information from the source for a specific repo snapshot. This is optional. + + :param revision: The revision of this V1BuildConfigSpec. + :type: V1SourceRevision + """ + + self._revision = revision + + @property + def run_policy(self): + """ + Gets the run_policy of this V1BuildConfigSpec. + RunPolicy describes how the new build created from this build configuration will be scheduled for execution. This is optional, if not specified we default to \"Serial\". + + :return: The run_policy of this V1BuildConfigSpec. + :rtype: str + """ + return self._run_policy + + @run_policy.setter + def run_policy(self, run_policy): + """ + Sets the run_policy of this V1BuildConfigSpec. + RunPolicy describes how the new build created from this build configuration will be scheduled for execution. This is optional, if not specified we default to \"Serial\". + + :param run_policy: The run_policy of this V1BuildConfigSpec. + :type: str + """ + + self._run_policy = run_policy + + @property + def service_account(self): + """ + Gets the service_account of this V1BuildConfigSpec. + serviceAccount is the name of the ServiceAccount to use to run the pod created by this build. The pod will be allowed to use secrets referenced by the ServiceAccount + + :return: The service_account of this V1BuildConfigSpec. + :rtype: str + """ + return self._service_account + + @service_account.setter + def service_account(self, service_account): + """ + Sets the service_account of this V1BuildConfigSpec. + serviceAccount is the name of the ServiceAccount to use to run the pod created by this build. The pod will be allowed to use secrets referenced by the ServiceAccount + + :param service_account: The service_account of this V1BuildConfigSpec. + :type: str + """ + + self._service_account = service_account + + @property + def source(self): + """ + Gets the source of this V1BuildConfigSpec. + source describes the SCM in use. + + :return: The source of this V1BuildConfigSpec. + :rtype: V1BuildSource + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1BuildConfigSpec. + source describes the SCM in use. + + :param source: The source of this V1BuildConfigSpec. + :type: V1BuildSource + """ + + self._source = source + + @property + def strategy(self): + """ + Gets the strategy of this V1BuildConfigSpec. + strategy defines how to perform a build. + + :return: The strategy of this V1BuildConfigSpec. + :rtype: V1BuildStrategy + """ + return self._strategy + + @strategy.setter + def strategy(self, strategy): + """ + Sets the strategy of this V1BuildConfigSpec. + strategy defines how to perform a build. + + :param strategy: The strategy of this V1BuildConfigSpec. + :type: V1BuildStrategy + """ + if strategy is None: + raise ValueError("Invalid value for `strategy`, must not be `None`") + + self._strategy = strategy + + @property + def triggers(self): + """ + Gets the triggers of this V1BuildConfigSpec. + triggers determine how new Builds can be launched from a BuildConfig. If no triggers are defined, a new build can only occur as a result of an explicit client build creation. + + :return: The triggers of this V1BuildConfigSpec. + :rtype: list[V1BuildTriggerPolicy] + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """ + Sets the triggers of this V1BuildConfigSpec. + triggers determine how new Builds can be launched from a BuildConfig. If no triggers are defined, a new build can only occur as a result of an explicit client build creation. + + :param triggers: The triggers of this V1BuildConfigSpec. + :type: list[V1BuildTriggerPolicy] + """ + if triggers is None: + raise ValueError("Invalid value for `triggers`, must not be `None`") + + self._triggers = triggers + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildConfigSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_config_status.py b/kubernetes/client/models/v1_build_config_status.py new file mode 100644 index 0000000000..c55b70ae1d --- /dev/null +++ b/kubernetes/client/models/v1_build_config_status.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildConfigStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_version=None): + """ + V1BuildConfigStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_version': 'int' + } + + self.attribute_map = { + 'last_version': 'lastVersion' + } + + self._last_version = last_version + + @property + def last_version(self): + """ + Gets the last_version of this V1BuildConfigStatus. + lastVersion is used to inform about number of last triggered build. + + :return: The last_version of this V1BuildConfigStatus. + :rtype: int + """ + return self._last_version + + @last_version.setter + def last_version(self, last_version): + """ + Sets the last_version of this V1BuildConfigStatus. + lastVersion is used to inform about number of last triggered build. + + :param last_version: The last_version of this V1BuildConfigStatus. + :type: int + """ + if last_version is None: + raise ValueError("Invalid value for `last_version`, must not be `None`") + + self._last_version = last_version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildConfigStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_list.py b/kubernetes/client/models/v1_build_list.py new file mode 100644 index 0000000000..237f59094a --- /dev/null +++ b/kubernetes/client/models/v1_build_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1BuildList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1Build]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1BuildList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1BuildList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1BuildList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1BuildList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1BuildList. + items is a list of builds + + :return: The items of this V1BuildList. + :rtype: list[V1Build] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1BuildList. + items is a list of builds + + :param items: The items of this V1BuildList. + :type: list[V1Build] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1BuildList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1BuildList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1BuildList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1BuildList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1BuildList. + metadata for BuildList. + + :return: The metadata of this V1BuildList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1BuildList. + metadata for BuildList. + + :param metadata: The metadata of this V1BuildList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_log.py b/kubernetes/client/models/v1_build_log.py new file mode 100644 index 0000000000..b8fc96869f --- /dev/null +++ b/kubernetes/client/models/v1_build_log.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildLog(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None): + """ + V1BuildLog - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind' + } + + self._api_version = api_version + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1BuildLog. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1BuildLog. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1BuildLog. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1BuildLog. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1BuildLog. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1BuildLog. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1BuildLog. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1BuildLog. + :type: str + """ + + self._kind = kind + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildLog): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_output.py b/kubernetes/client/models/v1_build_output.py new file mode 100644 index 0000000000..d87f3fa215 --- /dev/null +++ b/kubernetes/client/models/v1_build_output.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildOutput(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, image_labels=None, push_secret=None, to=None): + """ + V1BuildOutput - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'image_labels': 'list[V1ImageLabel]', + 'push_secret': 'V1LocalObjectReference', + 'to': 'V1ObjectReference' + } + + self.attribute_map = { + 'image_labels': 'imageLabels', + 'push_secret': 'pushSecret', + 'to': 'to' + } + + self._image_labels = image_labels + self._push_secret = push_secret + self._to = to + + @property + def image_labels(self): + """ + Gets the image_labels of this V1BuildOutput. + imageLabels define a list of labels that are applied to the resulting image. If there are multiple labels with the same name then the last one in the list is used. + + :return: The image_labels of this V1BuildOutput. + :rtype: list[V1ImageLabel] + """ + return self._image_labels + + @image_labels.setter + def image_labels(self, image_labels): + """ + Sets the image_labels of this V1BuildOutput. + imageLabels define a list of labels that are applied to the resulting image. If there are multiple labels with the same name then the last one in the list is used. + + :param image_labels: The image_labels of this V1BuildOutput. + :type: list[V1ImageLabel] + """ + + self._image_labels = image_labels + + @property + def push_secret(self): + """ + Gets the push_secret of this V1BuildOutput. + PushSecret is the name of a Secret that would be used for setting up the authentication for executing the Docker push to authentication enabled Docker Registry (or Docker Hub). + + :return: The push_secret of this V1BuildOutput. + :rtype: V1LocalObjectReference + """ + return self._push_secret + + @push_secret.setter + def push_secret(self, push_secret): + """ + Sets the push_secret of this V1BuildOutput. + PushSecret is the name of a Secret that would be used for setting up the authentication for executing the Docker push to authentication enabled Docker Registry (or Docker Hub). + + :param push_secret: The push_secret of this V1BuildOutput. + :type: V1LocalObjectReference + """ + + self._push_secret = push_secret + + @property + def to(self): + """ + Gets the to of this V1BuildOutput. + to defines an optional location to push the output of this build to. Kind must be one of 'ImageStreamTag' or 'DockerImage'. This value will be used to look up a Docker image repository to push to. In the case of an ImageStreamTag, the ImageStreamTag will be looked for in the namespace of the build unless Namespace is specified. + + :return: The to of this V1BuildOutput. + :rtype: V1ObjectReference + """ + return self._to + + @to.setter + def to(self, to): + """ + Sets the to of this V1BuildOutput. + to defines an optional location to push the output of this build to. Kind must be one of 'ImageStreamTag' or 'DockerImage'. This value will be used to look up a Docker image repository to push to. In the case of an ImageStreamTag, the ImageStreamTag will be looked for in the namespace of the build unless Namespace is specified. + + :param to: The to of this V1BuildOutput. + :type: V1ObjectReference + """ + + self._to = to + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildOutput): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_post_commit_spec.py b/kubernetes/client/models/v1_build_post_commit_spec.py new file mode 100644 index 0000000000..80f5d7062a --- /dev/null +++ b/kubernetes/client/models/v1_build_post_commit_spec.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildPostCommitSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, args=None, command=None, script=None): + """ + V1BuildPostCommitSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'args': 'list[str]', + 'command': 'list[str]', + 'script': 'str' + } + + self.attribute_map = { + 'args': 'args', + 'command': 'command', + 'script': 'script' + } + + self._args = args + self._command = command + self._script = script + + @property + def args(self): + """ + Gets the args of this V1BuildPostCommitSpec. + args is a list of arguments that are provided to either Command, Script or the Docker image's default entrypoint. The arguments are placed immediately after the command to be run. + + :return: The args of this V1BuildPostCommitSpec. + :rtype: list[str] + """ + return self._args + + @args.setter + def args(self, args): + """ + Sets the args of this V1BuildPostCommitSpec. + args is a list of arguments that are provided to either Command, Script or the Docker image's default entrypoint. The arguments are placed immediately after the command to be run. + + :param args: The args of this V1BuildPostCommitSpec. + :type: list[str] + """ + + self._args = args + + @property + def command(self): + """ + Gets the command of this V1BuildPostCommitSpec. + command is the command to run. It may not be specified with Script. This might be needed if the image doesn't have `/bin/sh`, or if you do not want to use a shell. In all other cases, using Script might be more convenient. + + :return: The command of this V1BuildPostCommitSpec. + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """ + Sets the command of this V1BuildPostCommitSpec. + command is the command to run. It may not be specified with Script. This might be needed if the image doesn't have `/bin/sh`, or if you do not want to use a shell. In all other cases, using Script might be more convenient. + + :param command: The command of this V1BuildPostCommitSpec. + :type: list[str] + """ + + self._command = command + + @property + def script(self): + """ + Gets the script of this V1BuildPostCommitSpec. + script is a shell script to be run with `/bin/sh -ic`. It may not be specified with Command. Use Script when a shell script is appropriate to execute the post build hook, for example for running unit tests with `rake test`. If you need control over the image entrypoint, or if the image does not have `/bin/sh`, use Command and/or Args. The `-i` flag is needed to support CentOS and RHEL images that use Software Collections (SCL), in order to have the appropriate collections enabled in the shell. E.g., in the Ruby image, this is necessary to make `ruby`, `bundle` and other binaries available in the PATH. + + :return: The script of this V1BuildPostCommitSpec. + :rtype: str + """ + return self._script + + @script.setter + def script(self, script): + """ + Sets the script of this V1BuildPostCommitSpec. + script is a shell script to be run with `/bin/sh -ic`. It may not be specified with Command. Use Script when a shell script is appropriate to execute the post build hook, for example for running unit tests with `rake test`. If you need control over the image entrypoint, or if the image does not have `/bin/sh`, use Command and/or Args. The `-i` flag is needed to support CentOS and RHEL images that use Software Collections (SCL), in order to have the appropriate collections enabled in the shell. E.g., in the Ruby image, this is necessary to make `ruby`, `bundle` and other binaries available in the PATH. + + :param script: The script of this V1BuildPostCommitSpec. + :type: str + """ + + self._script = script + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildPostCommitSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_request.py b/kubernetes/client/models/v1_build_request.py new file mode 100644 index 0000000000..9a725ec524 --- /dev/null +++ b/kubernetes/client/models/v1_build_request.py @@ -0,0 +1,353 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildRequest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, binary=None, env=None, _from=None, kind=None, last_version=None, metadata=None, revision=None, triggered_by=None, triggered_by_image=None): + """ + V1BuildRequest - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'binary': 'V1BinaryBuildSource', + 'env': 'list[V1EnvVar]', + '_from': 'V1ObjectReference', + 'kind': 'str', + 'last_version': 'int', + 'metadata': 'V1ObjectMeta', + 'revision': 'V1SourceRevision', + 'triggered_by': 'list[V1BuildTriggerCause]', + 'triggered_by_image': 'V1ObjectReference' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'binary': 'binary', + 'env': 'env', + '_from': 'from', + 'kind': 'kind', + 'last_version': 'lastVersion', + 'metadata': 'metadata', + 'revision': 'revision', + 'triggered_by': 'triggeredBy', + 'triggered_by_image': 'triggeredByImage' + } + + self._api_version = api_version + self._binary = binary + self._env = env + self.__from = _from + self._kind = kind + self._last_version = last_version + self._metadata = metadata + self._revision = revision + self._triggered_by = triggered_by + self._triggered_by_image = triggered_by_image + + @property + def api_version(self): + """ + Gets the api_version of this V1BuildRequest. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1BuildRequest. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1BuildRequest. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1BuildRequest. + :type: str + """ + + self._api_version = api_version + + @property + def binary(self): + """ + Gets the binary of this V1BuildRequest. + binary indicates a request to build from a binary provided to the builder + + :return: The binary of this V1BuildRequest. + :rtype: V1BinaryBuildSource + """ + return self._binary + + @binary.setter + def binary(self, binary): + """ + Sets the binary of this V1BuildRequest. + binary indicates a request to build from a binary provided to the builder + + :param binary: The binary of this V1BuildRequest. + :type: V1BinaryBuildSource + """ + + self._binary = binary + + @property + def env(self): + """ + Gets the env of this V1BuildRequest. + env contains additional environment variables you want to pass into a builder container + + :return: The env of this V1BuildRequest. + :rtype: list[V1EnvVar] + """ + return self._env + + @env.setter + def env(self, env): + """ + Sets the env of this V1BuildRequest. + env contains additional environment variables you want to pass into a builder container + + :param env: The env of this V1BuildRequest. + :type: list[V1EnvVar] + """ + + self._env = env + + @property + def _from(self): + """ + Gets the _from of this V1BuildRequest. + from is the reference to the ImageStreamTag that triggered the build. + + :return: The _from of this V1BuildRequest. + :rtype: V1ObjectReference + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1BuildRequest. + from is the reference to the ImageStreamTag that triggered the build. + + :param _from: The _from of this V1BuildRequest. + :type: V1ObjectReference + """ + + self.__from = _from + + @property + def kind(self): + """ + Gets the kind of this V1BuildRequest. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1BuildRequest. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1BuildRequest. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1BuildRequest. + :type: str + """ + + self._kind = kind + + @property + def last_version(self): + """ + Gets the last_version of this V1BuildRequest. + lastVersion (optional) is the LastVersion of the BuildConfig that was used to generate the build. If the BuildConfig in the generator doesn't match, a build will not be generated. + + :return: The last_version of this V1BuildRequest. + :rtype: int + """ + return self._last_version + + @last_version.setter + def last_version(self, last_version): + """ + Sets the last_version of this V1BuildRequest. + lastVersion (optional) is the LastVersion of the BuildConfig that was used to generate the build. If the BuildConfig in the generator doesn't match, a build will not be generated. + + :param last_version: The last_version of this V1BuildRequest. + :type: int + """ + + self._last_version = last_version + + @property + def metadata(self): + """ + Gets the metadata of this V1BuildRequest. + metadata for BuildRequest. + + :return: The metadata of this V1BuildRequest. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1BuildRequest. + metadata for BuildRequest. + + :param metadata: The metadata of this V1BuildRequest. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def revision(self): + """ + Gets the revision of this V1BuildRequest. + revision is the information from the source for a specific repo snapshot. + + :return: The revision of this V1BuildRequest. + :rtype: V1SourceRevision + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this V1BuildRequest. + revision is the information from the source for a specific repo snapshot. + + :param revision: The revision of this V1BuildRequest. + :type: V1SourceRevision + """ + + self._revision = revision + + @property + def triggered_by(self): + """ + Gets the triggered_by of this V1BuildRequest. + triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers. + + :return: The triggered_by of this V1BuildRequest. + :rtype: list[V1BuildTriggerCause] + """ + return self._triggered_by + + @triggered_by.setter + def triggered_by(self, triggered_by): + """ + Sets the triggered_by of this V1BuildRequest. + triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers. + + :param triggered_by: The triggered_by of this V1BuildRequest. + :type: list[V1BuildTriggerCause] + """ + if triggered_by is None: + raise ValueError("Invalid value for `triggered_by`, must not be `None`") + + self._triggered_by = triggered_by + + @property + def triggered_by_image(self): + """ + Gets the triggered_by_image of this V1BuildRequest. + triggeredByImage is the Image that triggered this build. + + :return: The triggered_by_image of this V1BuildRequest. + :rtype: V1ObjectReference + """ + return self._triggered_by_image + + @triggered_by_image.setter + def triggered_by_image(self, triggered_by_image): + """ + Sets the triggered_by_image of this V1BuildRequest. + triggeredByImage is the Image that triggered this build. + + :param triggered_by_image: The triggered_by_image of this V1BuildRequest. + :type: V1ObjectReference + """ + + self._triggered_by_image = triggered_by_image + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_source.py b/kubernetes/client/models/v1_build_source.py new file mode 100644 index 0000000000..3af9b11205 --- /dev/null +++ b/kubernetes/client/models/v1_build_source.py @@ -0,0 +1,301 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, binary=None, context_dir=None, dockerfile=None, git=None, images=None, secrets=None, source_secret=None, type=None): + """ + V1BuildSource - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'binary': 'V1BinaryBuildSource', + 'context_dir': 'str', + 'dockerfile': 'str', + 'git': 'V1GitBuildSource', + 'images': 'list[V1ImageSource]', + 'secrets': 'list[V1SecretBuildSource]', + 'source_secret': 'V1LocalObjectReference', + 'type': 'str' + } + + self.attribute_map = { + 'binary': 'binary', + 'context_dir': 'contextDir', + 'dockerfile': 'dockerfile', + 'git': 'git', + 'images': 'images', + 'secrets': 'secrets', + 'source_secret': 'sourceSecret', + 'type': 'type' + } + + self._binary = binary + self._context_dir = context_dir + self._dockerfile = dockerfile + self._git = git + self._images = images + self._secrets = secrets + self._source_secret = source_secret + self._type = type + + @property + def binary(self): + """ + Gets the binary of this V1BuildSource. + binary builds accept a binary as their input. The binary is generally assumed to be a tar, gzipped tar, or zip file depending on the strategy. For Docker builds, this is the build context and an optional Dockerfile may be specified to override any Dockerfile in the build context. For Source builds, this is assumed to be an archive as described above. For Source and Docker builds, if binary.asFile is set the build will receive a directory with a single file. contextDir may be used when an archive is provided. Custom builds will receive this binary as input on STDIN. + + :return: The binary of this V1BuildSource. + :rtype: V1BinaryBuildSource + """ + return self._binary + + @binary.setter + def binary(self, binary): + """ + Sets the binary of this V1BuildSource. + binary builds accept a binary as their input. The binary is generally assumed to be a tar, gzipped tar, or zip file depending on the strategy. For Docker builds, this is the build context and an optional Dockerfile may be specified to override any Dockerfile in the build context. For Source builds, this is assumed to be an archive as described above. For Source and Docker builds, if binary.asFile is set the build will receive a directory with a single file. contextDir may be used when an archive is provided. Custom builds will receive this binary as input on STDIN. + + :param binary: The binary of this V1BuildSource. + :type: V1BinaryBuildSource + """ + + self._binary = binary + + @property + def context_dir(self): + """ + Gets the context_dir of this V1BuildSource. + contextDir specifies the sub-directory where the source code for the application exists. This allows to have buildable sources in directory other than root of repository. + + :return: The context_dir of this V1BuildSource. + :rtype: str + """ + return self._context_dir + + @context_dir.setter + def context_dir(self, context_dir): + """ + Sets the context_dir of this V1BuildSource. + contextDir specifies the sub-directory where the source code for the application exists. This allows to have buildable sources in directory other than root of repository. + + :param context_dir: The context_dir of this V1BuildSource. + :type: str + """ + + self._context_dir = context_dir + + @property + def dockerfile(self): + """ + Gets the dockerfile of this V1BuildSource. + dockerfile is the raw contents of a Dockerfile which should be built. When this option is specified, the FROM may be modified based on your strategy base image and additional ENV stanzas from your strategy environment will be added after the FROM, but before the rest of your Dockerfile stanzas. The Dockerfile source type may be used with other options like git - in those cases the Git repo will have any innate Dockerfile replaced in the context dir. + + :return: The dockerfile of this V1BuildSource. + :rtype: str + """ + return self._dockerfile + + @dockerfile.setter + def dockerfile(self, dockerfile): + """ + Sets the dockerfile of this V1BuildSource. + dockerfile is the raw contents of a Dockerfile which should be built. When this option is specified, the FROM may be modified based on your strategy base image and additional ENV stanzas from your strategy environment will be added after the FROM, but before the rest of your Dockerfile stanzas. The Dockerfile source type may be used with other options like git - in those cases the Git repo will have any innate Dockerfile replaced in the context dir. + + :param dockerfile: The dockerfile of this V1BuildSource. + :type: str + """ + + self._dockerfile = dockerfile + + @property + def git(self): + """ + Gets the git of this V1BuildSource. + git contains optional information about git build source + + :return: The git of this V1BuildSource. + :rtype: V1GitBuildSource + """ + return self._git + + @git.setter + def git(self, git): + """ + Sets the git of this V1BuildSource. + git contains optional information about git build source + + :param git: The git of this V1BuildSource. + :type: V1GitBuildSource + """ + + self._git = git + + @property + def images(self): + """ + Gets the images of this V1BuildSource. + images describes a set of images to be used to provide source for the build + + :return: The images of this V1BuildSource. + :rtype: list[V1ImageSource] + """ + return self._images + + @images.setter + def images(self, images): + """ + Sets the images of this V1BuildSource. + images describes a set of images to be used to provide source for the build + + :param images: The images of this V1BuildSource. + :type: list[V1ImageSource] + """ + + self._images = images + + @property + def secrets(self): + """ + Gets the secrets of this V1BuildSource. + secrets represents a list of secrets and their destinations that will be used only for the build. + + :return: The secrets of this V1BuildSource. + :rtype: list[V1SecretBuildSource] + """ + return self._secrets + + @secrets.setter + def secrets(self, secrets): + """ + Sets the secrets of this V1BuildSource. + secrets represents a list of secrets and their destinations that will be used only for the build. + + :param secrets: The secrets of this V1BuildSource. + :type: list[V1SecretBuildSource] + """ + + self._secrets = secrets + + @property + def source_secret(self): + """ + Gets the source_secret of this V1BuildSource. + sourceSecret is the name of a Secret that would be used for setting up the authentication for cloning private repository. The secret contains valid credentials for remote repository, where the data's key represent the authentication method to be used and value is the base64 encoded credentials. Supported auth methods are: ssh-privatekey. + + :return: The source_secret of this V1BuildSource. + :rtype: V1LocalObjectReference + """ + return self._source_secret + + @source_secret.setter + def source_secret(self, source_secret): + """ + Sets the source_secret of this V1BuildSource. + sourceSecret is the name of a Secret that would be used for setting up the authentication for cloning private repository. The secret contains valid credentials for remote repository, where the data's key represent the authentication method to be used and value is the base64 encoded credentials. Supported auth methods are: ssh-privatekey. + + :param source_secret: The source_secret of this V1BuildSource. + :type: V1LocalObjectReference + """ + + self._source_secret = source_secret + + @property + def type(self): + """ + Gets the type of this V1BuildSource. + type of build input to accept + + :return: The type of this V1BuildSource. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1BuildSource. + type of build input to accept + + :param type: The type of this V1BuildSource. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_spec.py b/kubernetes/client/models/v1_build_spec.py new file mode 100644 index 0000000000..3690b66c66 --- /dev/null +++ b/kubernetes/client/models/v1_build_spec.py @@ -0,0 +1,357 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, completion_deadline_seconds=None, node_selector=None, output=None, post_commit=None, resources=None, revision=None, service_account=None, source=None, strategy=None, triggered_by=None): + """ + V1BuildSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'completion_deadline_seconds': 'int', + 'node_selector': 'dict(str, str)', + 'output': 'V1BuildOutput', + 'post_commit': 'V1BuildPostCommitSpec', + 'resources': 'V1ResourceRequirements', + 'revision': 'V1SourceRevision', + 'service_account': 'str', + 'source': 'V1BuildSource', + 'strategy': 'V1BuildStrategy', + 'triggered_by': 'list[V1BuildTriggerCause]' + } + + self.attribute_map = { + 'completion_deadline_seconds': 'completionDeadlineSeconds', + 'node_selector': 'nodeSelector', + 'output': 'output', + 'post_commit': 'postCommit', + 'resources': 'resources', + 'revision': 'revision', + 'service_account': 'serviceAccount', + 'source': 'source', + 'strategy': 'strategy', + 'triggered_by': 'triggeredBy' + } + + self._completion_deadline_seconds = completion_deadline_seconds + self._node_selector = node_selector + self._output = output + self._post_commit = post_commit + self._resources = resources + self._revision = revision + self._service_account = service_account + self._source = source + self._strategy = strategy + self._triggered_by = triggered_by + + @property + def completion_deadline_seconds(self): + """ + Gets the completion_deadline_seconds of this V1BuildSpec. + completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets scheduled in the system, that the build may be active on a node before the system actively tries to terminate the build; value must be positive integer + + :return: The completion_deadline_seconds of this V1BuildSpec. + :rtype: int + """ + return self._completion_deadline_seconds + + @completion_deadline_seconds.setter + def completion_deadline_seconds(self, completion_deadline_seconds): + """ + Sets the completion_deadline_seconds of this V1BuildSpec. + completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets scheduled in the system, that the build may be active on a node before the system actively tries to terminate the build; value must be positive integer + + :param completion_deadline_seconds: The completion_deadline_seconds of this V1BuildSpec. + :type: int + """ + + self._completion_deadline_seconds = completion_deadline_seconds + + @property + def node_selector(self): + """ + Gets the node_selector of this V1BuildSpec. + nodeSelector is a selector which must be true for the build pod to fit on a node If nil, it can be overridden by default build nodeselector values for the cluster. If set to an empty map or a map with any values, default build nodeselector values are ignored. + + :return: The node_selector of this V1BuildSpec. + :rtype: dict(str, str) + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """ + Sets the node_selector of this V1BuildSpec. + nodeSelector is a selector which must be true for the build pod to fit on a node If nil, it can be overridden by default build nodeselector values for the cluster. If set to an empty map or a map with any values, default build nodeselector values are ignored. + + :param node_selector: The node_selector of this V1BuildSpec. + :type: dict(str, str) + """ + if node_selector is None: + raise ValueError("Invalid value for `node_selector`, must not be `None`") + + self._node_selector = node_selector + + @property + def output(self): + """ + Gets the output of this V1BuildSpec. + output describes the Docker image the Strategy should produce. + + :return: The output of this V1BuildSpec. + :rtype: V1BuildOutput + """ + return self._output + + @output.setter + def output(self, output): + """ + Sets the output of this V1BuildSpec. + output describes the Docker image the Strategy should produce. + + :param output: The output of this V1BuildSpec. + :type: V1BuildOutput + """ + + self._output = output + + @property + def post_commit(self): + """ + Gets the post_commit of this V1BuildSpec. + postCommit is a build hook executed after the build output image is committed, before it is pushed to a registry. + + :return: The post_commit of this V1BuildSpec. + :rtype: V1BuildPostCommitSpec + """ + return self._post_commit + + @post_commit.setter + def post_commit(self, post_commit): + """ + Sets the post_commit of this V1BuildSpec. + postCommit is a build hook executed after the build output image is committed, before it is pushed to a registry. + + :param post_commit: The post_commit of this V1BuildSpec. + :type: V1BuildPostCommitSpec + """ + + self._post_commit = post_commit + + @property + def resources(self): + """ + Gets the resources of this V1BuildSpec. + resources computes resource requirements to execute the build. + + :return: The resources of this V1BuildSpec. + :rtype: V1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1BuildSpec. + resources computes resource requirements to execute the build. + + :param resources: The resources of this V1BuildSpec. + :type: V1ResourceRequirements + """ + + self._resources = resources + + @property + def revision(self): + """ + Gets the revision of this V1BuildSpec. + revision is the information from the source for a specific repo snapshot. This is optional. + + :return: The revision of this V1BuildSpec. + :rtype: V1SourceRevision + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this V1BuildSpec. + revision is the information from the source for a specific repo snapshot. This is optional. + + :param revision: The revision of this V1BuildSpec. + :type: V1SourceRevision + """ + + self._revision = revision + + @property + def service_account(self): + """ + Gets the service_account of this V1BuildSpec. + serviceAccount is the name of the ServiceAccount to use to run the pod created by this build. The pod will be allowed to use secrets referenced by the ServiceAccount + + :return: The service_account of this V1BuildSpec. + :rtype: str + """ + return self._service_account + + @service_account.setter + def service_account(self, service_account): + """ + Sets the service_account of this V1BuildSpec. + serviceAccount is the name of the ServiceAccount to use to run the pod created by this build. The pod will be allowed to use secrets referenced by the ServiceAccount + + :param service_account: The service_account of this V1BuildSpec. + :type: str + """ + + self._service_account = service_account + + @property + def source(self): + """ + Gets the source of this V1BuildSpec. + source describes the SCM in use. + + :return: The source of this V1BuildSpec. + :rtype: V1BuildSource + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1BuildSpec. + source describes the SCM in use. + + :param source: The source of this V1BuildSpec. + :type: V1BuildSource + """ + + self._source = source + + @property + def strategy(self): + """ + Gets the strategy of this V1BuildSpec. + strategy defines how to perform a build. + + :return: The strategy of this V1BuildSpec. + :rtype: V1BuildStrategy + """ + return self._strategy + + @strategy.setter + def strategy(self, strategy): + """ + Sets the strategy of this V1BuildSpec. + strategy defines how to perform a build. + + :param strategy: The strategy of this V1BuildSpec. + :type: V1BuildStrategy + """ + if strategy is None: + raise ValueError("Invalid value for `strategy`, must not be `None`") + + self._strategy = strategy + + @property + def triggered_by(self): + """ + Gets the triggered_by of this V1BuildSpec. + triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers. + + :return: The triggered_by of this V1BuildSpec. + :rtype: list[V1BuildTriggerCause] + """ + return self._triggered_by + + @triggered_by.setter + def triggered_by(self, triggered_by): + """ + Sets the triggered_by of this V1BuildSpec. + triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers. + + :param triggered_by: The triggered_by of this V1BuildSpec. + :type: list[V1BuildTriggerCause] + """ + if triggered_by is None: + raise ValueError("Invalid value for `triggered_by`, must not be `None`") + + self._triggered_by = triggered_by + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_status.py b/kubernetes/client/models/v1_build_status.py new file mode 100644 index 0000000000..d0661815f2 --- /dev/null +++ b/kubernetes/client/models/v1_build_status.py @@ -0,0 +1,353 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, cancelled=None, completion_timestamp=None, config=None, duration=None, message=None, output=None, output_docker_image_reference=None, phase=None, reason=None, start_timestamp=None): + """ + V1BuildStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'cancelled': 'bool', + 'completion_timestamp': 'datetime', + 'config': 'V1ObjectReference', + 'duration': 'int', + 'message': 'str', + 'output': 'V1BuildStatusOutput', + 'output_docker_image_reference': 'str', + 'phase': 'str', + 'reason': 'str', + 'start_timestamp': 'datetime' + } + + self.attribute_map = { + 'cancelled': 'cancelled', + 'completion_timestamp': 'completionTimestamp', + 'config': 'config', + 'duration': 'duration', + 'message': 'message', + 'output': 'output', + 'output_docker_image_reference': 'outputDockerImageReference', + 'phase': 'phase', + 'reason': 'reason', + 'start_timestamp': 'startTimestamp' + } + + self._cancelled = cancelled + self._completion_timestamp = completion_timestamp + self._config = config + self._duration = duration + self._message = message + self._output = output + self._output_docker_image_reference = output_docker_image_reference + self._phase = phase + self._reason = reason + self._start_timestamp = start_timestamp + + @property + def cancelled(self): + """ + Gets the cancelled of this V1BuildStatus. + cancelled describes if a cancel event was triggered for the build. + + :return: The cancelled of this V1BuildStatus. + :rtype: bool + """ + return self._cancelled + + @cancelled.setter + def cancelled(self, cancelled): + """ + Sets the cancelled of this V1BuildStatus. + cancelled describes if a cancel event was triggered for the build. + + :param cancelled: The cancelled of this V1BuildStatus. + :type: bool + """ + + self._cancelled = cancelled + + @property + def completion_timestamp(self): + """ + Gets the completion_timestamp of this V1BuildStatus. + completionTimestamp is a timestamp representing the server time when this Build was finished, whether that build failed or succeeded. It reflects the time at which the Pod running the Build terminated. It is represented in RFC3339 form and is in UTC. + + :return: The completion_timestamp of this V1BuildStatus. + :rtype: datetime + """ + return self._completion_timestamp + + @completion_timestamp.setter + def completion_timestamp(self, completion_timestamp): + """ + Sets the completion_timestamp of this V1BuildStatus. + completionTimestamp is a timestamp representing the server time when this Build was finished, whether that build failed or succeeded. It reflects the time at which the Pod running the Build terminated. It is represented in RFC3339 form and is in UTC. + + :param completion_timestamp: The completion_timestamp of this V1BuildStatus. + :type: datetime + """ + + self._completion_timestamp = completion_timestamp + + @property + def config(self): + """ + Gets the config of this V1BuildStatus. + config is an ObjectReference to the BuildConfig this Build is based on. + + :return: The config of this V1BuildStatus. + :rtype: V1ObjectReference + """ + return self._config + + @config.setter + def config(self, config): + """ + Sets the config of this V1BuildStatus. + config is an ObjectReference to the BuildConfig this Build is based on. + + :param config: The config of this V1BuildStatus. + :type: V1ObjectReference + """ + + self._config = config + + @property + def duration(self): + """ + Gets the duration of this V1BuildStatus. + duration contains time.Duration object describing build time. + + :return: The duration of this V1BuildStatus. + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """ + Sets the duration of this V1BuildStatus. + duration contains time.Duration object describing build time. + + :param duration: The duration of this V1BuildStatus. + :type: int + """ + + self._duration = duration + + @property + def message(self): + """ + Gets the message of this V1BuildStatus. + message is a human-readable message indicating details about why the build has this status. + + :return: The message of this V1BuildStatus. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1BuildStatus. + message is a human-readable message indicating details about why the build has this status. + + :param message: The message of this V1BuildStatus. + :type: str + """ + + self._message = message + + @property + def output(self): + """ + Gets the output of this V1BuildStatus. + output describes the Docker image the build has produced. + + :return: The output of this V1BuildStatus. + :rtype: V1BuildStatusOutput + """ + return self._output + + @output.setter + def output(self, output): + """ + Sets the output of this V1BuildStatus. + output describes the Docker image the build has produced. + + :param output: The output of this V1BuildStatus. + :type: V1BuildStatusOutput + """ + + self._output = output + + @property + def output_docker_image_reference(self): + """ + Gets the output_docker_image_reference of this V1BuildStatus. + outputDockerImageReference contains a reference to the Docker image that will be built by this build. Its value is computed from Build.Spec.Output.To, and should include the registry address, so that it can be used to push and pull the image. + + :return: The output_docker_image_reference of this V1BuildStatus. + :rtype: str + """ + return self._output_docker_image_reference + + @output_docker_image_reference.setter + def output_docker_image_reference(self, output_docker_image_reference): + """ + Sets the output_docker_image_reference of this V1BuildStatus. + outputDockerImageReference contains a reference to the Docker image that will be built by this build. Its value is computed from Build.Spec.Output.To, and should include the registry address, so that it can be used to push and pull the image. + + :param output_docker_image_reference: The output_docker_image_reference of this V1BuildStatus. + :type: str + """ + + self._output_docker_image_reference = output_docker_image_reference + + @property + def phase(self): + """ + Gets the phase of this V1BuildStatus. + phase is the point in the build lifecycle. + + :return: The phase of this V1BuildStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1BuildStatus. + phase is the point in the build lifecycle. + + :param phase: The phase of this V1BuildStatus. + :type: str + """ + if phase is None: + raise ValueError("Invalid value for `phase`, must not be `None`") + + self._phase = phase + + @property + def reason(self): + """ + Gets the reason of this V1BuildStatus. + reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. + + :return: The reason of this V1BuildStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1BuildStatus. + reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. + + :param reason: The reason of this V1BuildStatus. + :type: str + """ + + self._reason = reason + + @property + def start_timestamp(self): + """ + Gets the start_timestamp of this V1BuildStatus. + startTimestamp is a timestamp representing the server time when this Build started running in a Pod. It is represented in RFC3339 form and is in UTC. + + :return: The start_timestamp of this V1BuildStatus. + :rtype: datetime + """ + return self._start_timestamp + + @start_timestamp.setter + def start_timestamp(self, start_timestamp): + """ + Sets the start_timestamp of this V1BuildStatus. + startTimestamp is a timestamp representing the server time when this Build started running in a Pod. It is represented in RFC3339 form and is in UTC. + + :param start_timestamp: The start_timestamp of this V1BuildStatus. + :type: datetime + """ + + self._start_timestamp = start_timestamp + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_status_output.py b/kubernetes/client/models/v1_build_status_output.py new file mode 100644 index 0000000000..66448e59c7 --- /dev/null +++ b/kubernetes/client/models/v1_build_status_output.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildStatusOutput(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, to=None): + """ + V1BuildStatusOutput - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'to': 'V1BuildStatusOutputTo' + } + + self.attribute_map = { + 'to': 'to' + } + + self._to = to + + @property + def to(self): + """ + Gets the to of this V1BuildStatusOutput. + to describes the status of the built image being pushed to a registry. + + :return: The to of this V1BuildStatusOutput. + :rtype: V1BuildStatusOutputTo + """ + return self._to + + @to.setter + def to(self, to): + """ + Sets the to of this V1BuildStatusOutput. + to describes the status of the built image being pushed to a registry. + + :param to: The to of this V1BuildStatusOutput. + :type: V1BuildStatusOutputTo + """ + + self._to = to + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildStatusOutput): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_status_output_to.py b/kubernetes/client/models/v1_build_status_output_to.py new file mode 100644 index 0000000000..813d795a56 --- /dev/null +++ b/kubernetes/client/models/v1_build_status_output_to.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildStatusOutputTo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, image_digest=None): + """ + V1BuildStatusOutputTo - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'image_digest': 'str' + } + + self.attribute_map = { + 'image_digest': 'imageDigest' + } + + self._image_digest = image_digest + + @property + def image_digest(self): + """ + Gets the image_digest of this V1BuildStatusOutputTo. + imageDigest is the digest of the built Docker image. The digest uniquely identifies the image in the registry to which it was pushed. Please note that this field may not always be set even if the push completes successfully - e.g. when the registry returns no digest or returns it in a format that the builder doesn't understand. + + :return: The image_digest of this V1BuildStatusOutputTo. + :rtype: str + """ + return self._image_digest + + @image_digest.setter + def image_digest(self, image_digest): + """ + Sets the image_digest of this V1BuildStatusOutputTo. + imageDigest is the digest of the built Docker image. The digest uniquely identifies the image in the registry to which it was pushed. Please note that this field may not always be set even if the push completes successfully - e.g. when the registry returns no digest or returns it in a format that the builder doesn't understand. + + :param image_digest: The image_digest of this V1BuildStatusOutputTo. + :type: str + """ + + self._image_digest = image_digest + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildStatusOutputTo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_strategy.py b/kubernetes/client/models/v1_build_strategy.py new file mode 100644 index 0000000000..1d4fecee08 --- /dev/null +++ b/kubernetes/client/models/v1_build_strategy.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, custom_strategy=None, docker_strategy=None, jenkins_pipeline_strategy=None, source_strategy=None, type=None): + """ + V1BuildStrategy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'custom_strategy': 'V1CustomBuildStrategy', + 'docker_strategy': 'V1DockerBuildStrategy', + 'jenkins_pipeline_strategy': 'V1JenkinsPipelineBuildStrategy', + 'source_strategy': 'V1SourceBuildStrategy', + 'type': 'str' + } + + self.attribute_map = { + 'custom_strategy': 'customStrategy', + 'docker_strategy': 'dockerStrategy', + 'jenkins_pipeline_strategy': 'jenkinsPipelineStrategy', + 'source_strategy': 'sourceStrategy', + 'type': 'type' + } + + self._custom_strategy = custom_strategy + self._docker_strategy = docker_strategy + self._jenkins_pipeline_strategy = jenkins_pipeline_strategy + self._source_strategy = source_strategy + self._type = type + + @property + def custom_strategy(self): + """ + Gets the custom_strategy of this V1BuildStrategy. + customStrategy holds the parameters to the Custom build strategy + + :return: The custom_strategy of this V1BuildStrategy. + :rtype: V1CustomBuildStrategy + """ + return self._custom_strategy + + @custom_strategy.setter + def custom_strategy(self, custom_strategy): + """ + Sets the custom_strategy of this V1BuildStrategy. + customStrategy holds the parameters to the Custom build strategy + + :param custom_strategy: The custom_strategy of this V1BuildStrategy. + :type: V1CustomBuildStrategy + """ + + self._custom_strategy = custom_strategy + + @property + def docker_strategy(self): + """ + Gets the docker_strategy of this V1BuildStrategy. + dockerStrategy holds the parameters to the Docker build strategy. + + :return: The docker_strategy of this V1BuildStrategy. + :rtype: V1DockerBuildStrategy + """ + return self._docker_strategy + + @docker_strategy.setter + def docker_strategy(self, docker_strategy): + """ + Sets the docker_strategy of this V1BuildStrategy. + dockerStrategy holds the parameters to the Docker build strategy. + + :param docker_strategy: The docker_strategy of this V1BuildStrategy. + :type: V1DockerBuildStrategy + """ + + self._docker_strategy = docker_strategy + + @property + def jenkins_pipeline_strategy(self): + """ + Gets the jenkins_pipeline_strategy of this V1BuildStrategy. + JenkinsPipelineStrategy holds the parameters to the Jenkins Pipeline build strategy. This strategy is in tech preview. + + :return: The jenkins_pipeline_strategy of this V1BuildStrategy. + :rtype: V1JenkinsPipelineBuildStrategy + """ + return self._jenkins_pipeline_strategy + + @jenkins_pipeline_strategy.setter + def jenkins_pipeline_strategy(self, jenkins_pipeline_strategy): + """ + Sets the jenkins_pipeline_strategy of this V1BuildStrategy. + JenkinsPipelineStrategy holds the parameters to the Jenkins Pipeline build strategy. This strategy is in tech preview. + + :param jenkins_pipeline_strategy: The jenkins_pipeline_strategy of this V1BuildStrategy. + :type: V1JenkinsPipelineBuildStrategy + """ + + self._jenkins_pipeline_strategy = jenkins_pipeline_strategy + + @property + def source_strategy(self): + """ + Gets the source_strategy of this V1BuildStrategy. + sourceStrategy holds the parameters to the Source build strategy. + + :return: The source_strategy of this V1BuildStrategy. + :rtype: V1SourceBuildStrategy + """ + return self._source_strategy + + @source_strategy.setter + def source_strategy(self, source_strategy): + """ + Sets the source_strategy of this V1BuildStrategy. + sourceStrategy holds the parameters to the Source build strategy. + + :param source_strategy: The source_strategy of this V1BuildStrategy. + :type: V1SourceBuildStrategy + """ + + self._source_strategy = source_strategy + + @property + def type(self): + """ + Gets the type of this V1BuildStrategy. + type is the kind of build strategy. + + :return: The type of this V1BuildStrategy. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1BuildStrategy. + type is the kind of build strategy. + + :param type: The type of this V1BuildStrategy. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_trigger_cause.py b/kubernetes/client/models/v1_build_trigger_cause.py new file mode 100644 index 0000000000..2accddd1d1 --- /dev/null +++ b/kubernetes/client/models/v1_build_trigger_cause.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildTriggerCause(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, generic_web_hook=None, github_web_hook=None, image_change_build=None, message=None): + """ + V1BuildTriggerCause - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'generic_web_hook': 'V1GenericWebHookCause', + 'github_web_hook': 'V1GitHubWebHookCause', + 'image_change_build': 'V1ImageChangeCause', + 'message': 'str' + } + + self.attribute_map = { + 'generic_web_hook': 'genericWebHook', + 'github_web_hook': 'githubWebHook', + 'image_change_build': 'imageChangeBuild', + 'message': 'message' + } + + self._generic_web_hook = generic_web_hook + self._github_web_hook = github_web_hook + self._image_change_build = image_change_build + self._message = message + + @property + def generic_web_hook(self): + """ + Gets the generic_web_hook of this V1BuildTriggerCause. + genericWebHook holds data about a builds generic webhook trigger. + + :return: The generic_web_hook of this V1BuildTriggerCause. + :rtype: V1GenericWebHookCause + """ + return self._generic_web_hook + + @generic_web_hook.setter + def generic_web_hook(self, generic_web_hook): + """ + Sets the generic_web_hook of this V1BuildTriggerCause. + genericWebHook holds data about a builds generic webhook trigger. + + :param generic_web_hook: The generic_web_hook of this V1BuildTriggerCause. + :type: V1GenericWebHookCause + """ + + self._generic_web_hook = generic_web_hook + + @property + def github_web_hook(self): + """ + Gets the github_web_hook of this V1BuildTriggerCause. + gitHubWebHook represents data for a GitHub webhook that fired a specific build. + + :return: The github_web_hook of this V1BuildTriggerCause. + :rtype: V1GitHubWebHookCause + """ + return self._github_web_hook + + @github_web_hook.setter + def github_web_hook(self, github_web_hook): + """ + Sets the github_web_hook of this V1BuildTriggerCause. + gitHubWebHook represents data for a GitHub webhook that fired a specific build. + + :param github_web_hook: The github_web_hook of this V1BuildTriggerCause. + :type: V1GitHubWebHookCause + """ + + self._github_web_hook = github_web_hook + + @property + def image_change_build(self): + """ + Gets the image_change_build of this V1BuildTriggerCause. + imageChangeBuild stores information about an imagechange event that triggered a new build. + + :return: The image_change_build of this V1BuildTriggerCause. + :rtype: V1ImageChangeCause + """ + return self._image_change_build + + @image_change_build.setter + def image_change_build(self, image_change_build): + """ + Sets the image_change_build of this V1BuildTriggerCause. + imageChangeBuild stores information about an imagechange event that triggered a new build. + + :param image_change_build: The image_change_build of this V1BuildTriggerCause. + :type: V1ImageChangeCause + """ + + self._image_change_build = image_change_build + + @property + def message(self): + """ + Gets the message of this V1BuildTriggerCause. + message is used to store a human readable message for why the build was triggered. E.g.: \"Manually triggered by user\", \"Configuration change\",etc. + + :return: The message of this V1BuildTriggerCause. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1BuildTriggerCause. + message is used to store a human readable message for why the build was triggered. E.g.: \"Manually triggered by user\", \"Configuration change\",etc. + + :param message: The message of this V1BuildTriggerCause. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildTriggerCause): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_build_trigger_policy.py b/kubernetes/client/models/v1_build_trigger_policy.py new file mode 100644 index 0000000000..212a370d71 --- /dev/null +++ b/kubernetes/client/models/v1_build_trigger_policy.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BuildTriggerPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, generic=None, github=None, image_change=None, type=None): + """ + V1BuildTriggerPolicy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'generic': 'V1WebHookTrigger', + 'github': 'V1WebHookTrigger', + 'image_change': 'V1ImageChangeTrigger', + 'type': 'str' + } + + self.attribute_map = { + 'generic': 'generic', + 'github': 'github', + 'image_change': 'imageChange', + 'type': 'type' + } + + self._generic = generic + self._github = github + self._image_change = image_change + self._type = type + + @property + def generic(self): + """ + Gets the generic of this V1BuildTriggerPolicy. + generic contains the parameters for a Generic webhook type of trigger + + :return: The generic of this V1BuildTriggerPolicy. + :rtype: V1WebHookTrigger + """ + return self._generic + + @generic.setter + def generic(self, generic): + """ + Sets the generic of this V1BuildTriggerPolicy. + generic contains the parameters for a Generic webhook type of trigger + + :param generic: The generic of this V1BuildTriggerPolicy. + :type: V1WebHookTrigger + """ + + self._generic = generic + + @property + def github(self): + """ + Gets the github of this V1BuildTriggerPolicy. + github contains the parameters for a GitHub webhook type of trigger + + :return: The github of this V1BuildTriggerPolicy. + :rtype: V1WebHookTrigger + """ + return self._github + + @github.setter + def github(self, github): + """ + Sets the github of this V1BuildTriggerPolicy. + github contains the parameters for a GitHub webhook type of trigger + + :param github: The github of this V1BuildTriggerPolicy. + :type: V1WebHookTrigger + """ + + self._github = github + + @property + def image_change(self): + """ + Gets the image_change of this V1BuildTriggerPolicy. + imageChange contains parameters for an ImageChange type of trigger + + :return: The image_change of this V1BuildTriggerPolicy. + :rtype: V1ImageChangeTrigger + """ + return self._image_change + + @image_change.setter + def image_change(self, image_change): + """ + Sets the image_change of this V1BuildTriggerPolicy. + imageChange contains parameters for an ImageChange type of trigger + + :param image_change: The image_change of this V1BuildTriggerPolicy. + :type: V1ImageChangeTrigger + """ + + self._image_change = image_change + + @property + def type(self): + """ + Gets the type of this V1BuildTriggerPolicy. + type is the type of build trigger + + :return: The type of this V1BuildTriggerPolicy. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1BuildTriggerPolicy. + type is the type of build trigger + + :param type: The type of this V1BuildTriggerPolicy. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1BuildTriggerPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_capabilities.py b/kubernetes/client/models/v1_capabilities.py index ff8054805d..13a77d22e3 100644 --- a/kubernetes/client/models/v1_capabilities.py +++ b/kubernetes/client/models/v1_capabilities.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_ceph_fs_volume_source.py b/kubernetes/client/models/v1_ceph_fs_volume_source.py index cc675a7b04..2253339cd6 100644 --- a/kubernetes/client/models/v1_ceph_fs_volume_source.py +++ b/kubernetes/client/models/v1_ceph_fs_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_cinder_volume_source.py b/kubernetes/client/models/v1_cinder_volume_source.py index f5f8343384..945ff96245 100644 --- a/kubernetes/client/models/v1_cinder_volume_source.py +++ b/kubernetes/client/models/v1_cinder_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_cluster_network.py b/kubernetes/client/models/v1_cluster_network.py new file mode 100644 index 0000000000..5818cb42d6 --- /dev/null +++ b/kubernetes/client/models/v1_cluster_network.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterNetwork(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, hostsubnetlength=None, kind=None, metadata=None, network=None, plugin_name=None, service_network=None): + """ + V1ClusterNetwork - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'hostsubnetlength': 'int', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'network': 'str', + 'plugin_name': 'str', + 'service_network': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'hostsubnetlength': 'hostsubnetlength', + 'kind': 'kind', + 'metadata': 'metadata', + 'network': 'network', + 'plugin_name': 'pluginName', + 'service_network': 'serviceNetwork' + } + + self._api_version = api_version + self._hostsubnetlength = hostsubnetlength + self._kind = kind + self._metadata = metadata + self._network = network + self._plugin_name = plugin_name + self._service_network = service_network + + @property + def api_version(self): + """ + Gets the api_version of this V1ClusterNetwork. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ClusterNetwork. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ClusterNetwork. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ClusterNetwork. + :type: str + """ + + self._api_version = api_version + + @property + def hostsubnetlength(self): + """ + Gets the hostsubnetlength of this V1ClusterNetwork. + HostSubnetLength is the number of bits of network to allocate to each node. eg, 8 would mean that each node would have a /24 slice of the overlay network for its pods + + :return: The hostsubnetlength of this V1ClusterNetwork. + :rtype: int + """ + return self._hostsubnetlength + + @hostsubnetlength.setter + def hostsubnetlength(self, hostsubnetlength): + """ + Sets the hostsubnetlength of this V1ClusterNetwork. + HostSubnetLength is the number of bits of network to allocate to each node. eg, 8 would mean that each node would have a /24 slice of the overlay network for its pods + + :param hostsubnetlength: The hostsubnetlength of this V1ClusterNetwork. + :type: int + """ + if hostsubnetlength is None: + raise ValueError("Invalid value for `hostsubnetlength`, must not be `None`") + + self._hostsubnetlength = hostsubnetlength + + @property + def kind(self): + """ + Gets the kind of this V1ClusterNetwork. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ClusterNetwork. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ClusterNetwork. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ClusterNetwork. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ClusterNetwork. + Standard object's metadata. + + :return: The metadata of this V1ClusterNetwork. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ClusterNetwork. + Standard object's metadata. + + :param metadata: The metadata of this V1ClusterNetwork. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def network(self): + """ + Gets the network of this V1ClusterNetwork. + Network is a CIDR string specifying the global overlay network's L3 space + + :return: The network of this V1ClusterNetwork. + :rtype: str + """ + return self._network + + @network.setter + def network(self, network): + """ + Sets the network of this V1ClusterNetwork. + Network is a CIDR string specifying the global overlay network's L3 space + + :param network: The network of this V1ClusterNetwork. + :type: str + """ + if network is None: + raise ValueError("Invalid value for `network`, must not be `None`") + + self._network = network + + @property + def plugin_name(self): + """ + Gets the plugin_name of this V1ClusterNetwork. + PluginName is the name of the network plugin being used + + :return: The plugin_name of this V1ClusterNetwork. + :rtype: str + """ + return self._plugin_name + + @plugin_name.setter + def plugin_name(self, plugin_name): + """ + Sets the plugin_name of this V1ClusterNetwork. + PluginName is the name of the network plugin being used + + :param plugin_name: The plugin_name of this V1ClusterNetwork. + :type: str + """ + + self._plugin_name = plugin_name + + @property + def service_network(self): + """ + Gets the service_network of this V1ClusterNetwork. + ServiceNetwork is the CIDR range that Service IP addresses are allocated from + + :return: The service_network of this V1ClusterNetwork. + :rtype: str + """ + return self._service_network + + @service_network.setter + def service_network(self, service_network): + """ + Sets the service_network of this V1ClusterNetwork. + ServiceNetwork is the CIDR range that Service IP addresses are allocated from + + :param service_network: The service_network of this V1ClusterNetwork. + :type: str + """ + if service_network is None: + raise ValueError("Invalid value for `service_network`, must not be `None`") + + self._service_network = service_network + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ClusterNetwork): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_network_list.py b/kubernetes/client/models/v1_cluster_network_list.py new file mode 100644 index 0000000000..29e4a77449 --- /dev/null +++ b/kubernetes/client/models/v1_cluster_network_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterNetworkList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1ClusterNetworkList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1ClusterNetwork]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1ClusterNetworkList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ClusterNetworkList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ClusterNetworkList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ClusterNetworkList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1ClusterNetworkList. + Items is the list of cluster networks + + :return: The items of this V1ClusterNetworkList. + :rtype: list[V1ClusterNetwork] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ClusterNetworkList. + Items is the list of cluster networks + + :param items: The items of this V1ClusterNetworkList. + :type: list[V1ClusterNetwork] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1ClusterNetworkList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ClusterNetworkList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ClusterNetworkList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ClusterNetworkList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ClusterNetworkList. + Standard object's metadata. + + :return: The metadata of this V1ClusterNetworkList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ClusterNetworkList. + Standard object's metadata. + + :param metadata: The metadata of this V1ClusterNetworkList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ClusterNetworkList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_policy.py b/kubernetes/client/models/v1_cluster_policy.py new file mode 100644 index 0000000000..32285f79fe --- /dev/null +++ b/kubernetes/client/models/v1_cluster_policy.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, last_modified=None, metadata=None, roles=None): + """ + V1ClusterPolicy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'last_modified': 'datetime', + 'metadata': 'V1ObjectMeta', + 'roles': 'list[V1NamedClusterRole]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'last_modified': 'lastModified', + 'metadata': 'metadata', + 'roles': 'roles' + } + + self._api_version = api_version + self._kind = kind + self._last_modified = last_modified + self._metadata = metadata + self._roles = roles + + @property + def api_version(self): + """ + Gets the api_version of this V1ClusterPolicy. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ClusterPolicy. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ClusterPolicy. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ClusterPolicy. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1ClusterPolicy. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ClusterPolicy. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ClusterPolicy. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ClusterPolicy. + :type: str + """ + + self._kind = kind + + @property + def last_modified(self): + """ + Gets the last_modified of this V1ClusterPolicy. + LastModified is the last time that any part of the ClusterPolicy was created, updated, or deleted + + :return: The last_modified of this V1ClusterPolicy. + :rtype: datetime + """ + return self._last_modified + + @last_modified.setter + def last_modified(self, last_modified): + """ + Sets the last_modified of this V1ClusterPolicy. + LastModified is the last time that any part of the ClusterPolicy was created, updated, or deleted + + :param last_modified: The last_modified of this V1ClusterPolicy. + :type: datetime + """ + if last_modified is None: + raise ValueError("Invalid value for `last_modified`, must not be `None`") + + self._last_modified = last_modified + + @property + def metadata(self): + """ + Gets the metadata of this V1ClusterPolicy. + Standard object's metadata. + + :return: The metadata of this V1ClusterPolicy. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ClusterPolicy. + Standard object's metadata. + + :param metadata: The metadata of this V1ClusterPolicy. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def roles(self): + """ + Gets the roles of this V1ClusterPolicy. + Roles holds all the ClusterRoles held by this ClusterPolicy, mapped by ClusterRole.Name + + :return: The roles of this V1ClusterPolicy. + :rtype: list[V1NamedClusterRole] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """ + Sets the roles of this V1ClusterPolicy. + Roles holds all the ClusterRoles held by this ClusterPolicy, mapped by ClusterRole.Name + + :param roles: The roles of this V1ClusterPolicy. + :type: list[V1NamedClusterRole] + """ + if roles is None: + raise ValueError("Invalid value for `roles`, must not be `None`") + + self._roles = roles + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ClusterPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_policy_binding.py b/kubernetes/client/models/v1_cluster_policy_binding.py new file mode 100644 index 0000000000..c0dcbaa153 --- /dev/null +++ b/kubernetes/client/models/v1_cluster_policy_binding.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterPolicyBinding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, last_modified=None, metadata=None, policy_ref=None, role_bindings=None): + """ + V1ClusterPolicyBinding - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'last_modified': 'datetime', + 'metadata': 'V1ObjectMeta', + 'policy_ref': 'V1ObjectReference', + 'role_bindings': 'list[V1NamedClusterRoleBinding]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'last_modified': 'lastModified', + 'metadata': 'metadata', + 'policy_ref': 'policyRef', + 'role_bindings': 'roleBindings' + } + + self._api_version = api_version + self._kind = kind + self._last_modified = last_modified + self._metadata = metadata + self._policy_ref = policy_ref + self._role_bindings = role_bindings + + @property + def api_version(self): + """ + Gets the api_version of this V1ClusterPolicyBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ClusterPolicyBinding. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ClusterPolicyBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ClusterPolicyBinding. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1ClusterPolicyBinding. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ClusterPolicyBinding. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ClusterPolicyBinding. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ClusterPolicyBinding. + :type: str + """ + + self._kind = kind + + @property + def last_modified(self): + """ + Gets the last_modified of this V1ClusterPolicyBinding. + LastModified is the last time that any part of the ClusterPolicyBinding was created, updated, or deleted + + :return: The last_modified of this V1ClusterPolicyBinding. + :rtype: datetime + """ + return self._last_modified + + @last_modified.setter + def last_modified(self, last_modified): + """ + Sets the last_modified of this V1ClusterPolicyBinding. + LastModified is the last time that any part of the ClusterPolicyBinding was created, updated, or deleted + + :param last_modified: The last_modified of this V1ClusterPolicyBinding. + :type: datetime + """ + if last_modified is None: + raise ValueError("Invalid value for `last_modified`, must not be `None`") + + self._last_modified = last_modified + + @property + def metadata(self): + """ + Gets the metadata of this V1ClusterPolicyBinding. + Standard object's metadata. + + :return: The metadata of this V1ClusterPolicyBinding. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ClusterPolicyBinding. + Standard object's metadata. + + :param metadata: The metadata of this V1ClusterPolicyBinding. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def policy_ref(self): + """ + Gets the policy_ref of this V1ClusterPolicyBinding. + PolicyRef is a reference to the ClusterPolicy that contains all the ClusterRoles that this ClusterPolicyBinding's RoleBindings may reference + + :return: The policy_ref of this V1ClusterPolicyBinding. + :rtype: V1ObjectReference + """ + return self._policy_ref + + @policy_ref.setter + def policy_ref(self, policy_ref): + """ + Sets the policy_ref of this V1ClusterPolicyBinding. + PolicyRef is a reference to the ClusterPolicy that contains all the ClusterRoles that this ClusterPolicyBinding's RoleBindings may reference + + :param policy_ref: The policy_ref of this V1ClusterPolicyBinding. + :type: V1ObjectReference + """ + if policy_ref is None: + raise ValueError("Invalid value for `policy_ref`, must not be `None`") + + self._policy_ref = policy_ref + + @property + def role_bindings(self): + """ + Gets the role_bindings of this V1ClusterPolicyBinding. + RoleBindings holds all the ClusterRoleBindings held by this ClusterPolicyBinding, mapped by ClusterRoleBinding.Name + + :return: The role_bindings of this V1ClusterPolicyBinding. + :rtype: list[V1NamedClusterRoleBinding] + """ + return self._role_bindings + + @role_bindings.setter + def role_bindings(self, role_bindings): + """ + Sets the role_bindings of this V1ClusterPolicyBinding. + RoleBindings holds all the ClusterRoleBindings held by this ClusterPolicyBinding, mapped by ClusterRoleBinding.Name + + :param role_bindings: The role_bindings of this V1ClusterPolicyBinding. + :type: list[V1NamedClusterRoleBinding] + """ + if role_bindings is None: + raise ValueError("Invalid value for `role_bindings`, must not be `None`") + + self._role_bindings = role_bindings + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ClusterPolicyBinding): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_policy_binding_list.py b/kubernetes/client/models/v1_cluster_policy_binding_list.py new file mode 100644 index 0000000000..de3a880cbb --- /dev/null +++ b/kubernetes/client/models/v1_cluster_policy_binding_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterPolicyBindingList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1ClusterPolicyBindingList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1ClusterPolicyBinding]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1ClusterPolicyBindingList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ClusterPolicyBindingList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ClusterPolicyBindingList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ClusterPolicyBindingList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1ClusterPolicyBindingList. + Items is a list of ClusterPolicyBindings + + :return: The items of this V1ClusterPolicyBindingList. + :rtype: list[V1ClusterPolicyBinding] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ClusterPolicyBindingList. + Items is a list of ClusterPolicyBindings + + :param items: The items of this V1ClusterPolicyBindingList. + :type: list[V1ClusterPolicyBinding] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1ClusterPolicyBindingList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ClusterPolicyBindingList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ClusterPolicyBindingList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ClusterPolicyBindingList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ClusterPolicyBindingList. + Standard object's metadata. + + :return: The metadata of this V1ClusterPolicyBindingList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ClusterPolicyBindingList. + Standard object's metadata. + + :param metadata: The metadata of this V1ClusterPolicyBindingList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ClusterPolicyBindingList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_policy_list.py b/kubernetes/client/models/v1_cluster_policy_list.py new file mode 100644 index 0000000000..294ea97f34 --- /dev/null +++ b/kubernetes/client/models/v1_cluster_policy_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterPolicyList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1ClusterPolicyList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1ClusterPolicy]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1ClusterPolicyList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ClusterPolicyList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ClusterPolicyList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ClusterPolicyList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1ClusterPolicyList. + Items is a list of ClusterPolicies + + :return: The items of this V1ClusterPolicyList. + :rtype: list[V1ClusterPolicy] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ClusterPolicyList. + Items is a list of ClusterPolicies + + :param items: The items of this V1ClusterPolicyList. + :type: list[V1ClusterPolicy] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1ClusterPolicyList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ClusterPolicyList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ClusterPolicyList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ClusterPolicyList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ClusterPolicyList. + Standard object's metadata. + + :return: The metadata of this V1ClusterPolicyList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ClusterPolicyList. + Standard object's metadata. + + :param metadata: The metadata of this V1ClusterPolicyList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ClusterPolicyList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_resource_quota.py b/kubernetes/client/models/v1_cluster_resource_quota.py new file mode 100644 index 0000000000..34ea37466e --- /dev/null +++ b/kubernetes/client/models/v1_cluster_resource_quota.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterResourceQuota(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1ClusterResourceQuota - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ClusterResourceQuotaSpec', + 'status': 'V1ClusterResourceQuotaStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1ClusterResourceQuota. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ClusterResourceQuota. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ClusterResourceQuota. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ClusterResourceQuota. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1ClusterResourceQuota. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ClusterResourceQuota. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ClusterResourceQuota. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ClusterResourceQuota. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ClusterResourceQuota. + Standard object's metadata. + + :return: The metadata of this V1ClusterResourceQuota. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ClusterResourceQuota. + Standard object's metadata. + + :param metadata: The metadata of this V1ClusterResourceQuota. + :type: V1ObjectMeta + """ + if metadata is None: + raise ValueError("Invalid value for `metadata`, must not be `None`") + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1ClusterResourceQuota. + Spec defines the desired quota + + :return: The spec of this V1ClusterResourceQuota. + :rtype: V1ClusterResourceQuotaSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1ClusterResourceQuota. + Spec defines the desired quota + + :param spec: The spec of this V1ClusterResourceQuota. + :type: V1ClusterResourceQuotaSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1ClusterResourceQuota. + Status defines the actual enforced quota and its current usage + + :return: The status of this V1ClusterResourceQuota. + :rtype: V1ClusterResourceQuotaStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1ClusterResourceQuota. + Status defines the actual enforced quota and its current usage + + :param status: The status of this V1ClusterResourceQuota. + :type: V1ClusterResourceQuotaStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ClusterResourceQuota): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_resource_quota_list.py b/kubernetes/client/models/v1_cluster_resource_quota_list.py new file mode 100644 index 0000000000..e2b0e593ab --- /dev/null +++ b/kubernetes/client/models/v1_cluster_resource_quota_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterResourceQuotaList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1ClusterResourceQuotaList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1ClusterResourceQuota]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1ClusterResourceQuotaList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ClusterResourceQuotaList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ClusterResourceQuotaList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ClusterResourceQuotaList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1ClusterResourceQuotaList. + Items is a list of ClusterResourceQuotas + + :return: The items of this V1ClusterResourceQuotaList. + :rtype: list[V1ClusterResourceQuota] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ClusterResourceQuotaList. + Items is a list of ClusterResourceQuotas + + :param items: The items of this V1ClusterResourceQuotaList. + :type: list[V1ClusterResourceQuota] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1ClusterResourceQuotaList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ClusterResourceQuotaList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ClusterResourceQuotaList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ClusterResourceQuotaList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ClusterResourceQuotaList. + Standard object's metadata. + + :return: The metadata of this V1ClusterResourceQuotaList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ClusterResourceQuotaList. + Standard object's metadata. + + :param metadata: The metadata of this V1ClusterResourceQuotaList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ClusterResourceQuotaList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_resource_quota_selector.py b/kubernetes/client/models/v1_cluster_resource_quota_selector.py new file mode 100644 index 0000000000..3ff246751d --- /dev/null +++ b/kubernetes/client/models/v1_cluster_resource_quota_selector.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterResourceQuotaSelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, annotations=None, labels=None): + """ + V1ClusterResourceQuotaSelector - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'annotations': 'dict(str, str)', + 'labels': 'UnversionedLabelSelector' + } + + self.attribute_map = { + 'annotations': 'annotations', + 'labels': 'labels' + } + + self._annotations = annotations + self._labels = labels + + @property + def annotations(self): + """ + Gets the annotations of this V1ClusterResourceQuotaSelector. + AnnotationSelector is used to select projects by annotation. + + :return: The annotations of this V1ClusterResourceQuotaSelector. + :rtype: dict(str, str) + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """ + Sets the annotations of this V1ClusterResourceQuotaSelector. + AnnotationSelector is used to select projects by annotation. + + :param annotations: The annotations of this V1ClusterResourceQuotaSelector. + :type: dict(str, str) + """ + if annotations is None: + raise ValueError("Invalid value for `annotations`, must not be `None`") + + self._annotations = annotations + + @property + def labels(self): + """ + Gets the labels of this V1ClusterResourceQuotaSelector. + LabelSelector is used to select projects by label. + + :return: The labels of this V1ClusterResourceQuotaSelector. + :rtype: UnversionedLabelSelector + """ + return self._labels + + @labels.setter + def labels(self, labels): + """ + Sets the labels of this V1ClusterResourceQuotaSelector. + LabelSelector is used to select projects by label. + + :param labels: The labels of this V1ClusterResourceQuotaSelector. + :type: UnversionedLabelSelector + """ + if labels is None: + raise ValueError("Invalid value for `labels`, must not be `None`") + + self._labels = labels + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ClusterResourceQuotaSelector): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_resource_quota_spec.py b/kubernetes/client/models/v1_cluster_resource_quota_spec.py new file mode 100644 index 0000000000..318e780369 --- /dev/null +++ b/kubernetes/client/models/v1_cluster_resource_quota_spec.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterResourceQuotaSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, quota=None, selector=None): + """ + V1ClusterResourceQuotaSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'quota': 'V1ResourceQuotaSpec', + 'selector': 'V1ClusterResourceQuotaSelector' + } + + self.attribute_map = { + 'quota': 'quota', + 'selector': 'selector' + } + + self._quota = quota + self._selector = selector + + @property + def quota(self): + """ + Gets the quota of this V1ClusterResourceQuotaSpec. + Quota defines the desired quota + + :return: The quota of this V1ClusterResourceQuotaSpec. + :rtype: V1ResourceQuotaSpec + """ + return self._quota + + @quota.setter + def quota(self, quota): + """ + Sets the quota of this V1ClusterResourceQuotaSpec. + Quota defines the desired quota + + :param quota: The quota of this V1ClusterResourceQuotaSpec. + :type: V1ResourceQuotaSpec + """ + if quota is None: + raise ValueError("Invalid value for `quota`, must not be `None`") + + self._quota = quota + + @property + def selector(self): + """ + Gets the selector of this V1ClusterResourceQuotaSpec. + Selector is the selector used to match projects. It should only select active projects on the scale of dozens (though it can select many more less active projects). These projects will contend on object creation through this resource. + + :return: The selector of this V1ClusterResourceQuotaSpec. + :rtype: V1ClusterResourceQuotaSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1ClusterResourceQuotaSpec. + Selector is the selector used to match projects. It should only select active projects on the scale of dozens (though it can select many more less active projects). These projects will contend on object creation through this resource. + + :param selector: The selector of this V1ClusterResourceQuotaSpec. + :type: V1ClusterResourceQuotaSelector + """ + if selector is None: + raise ValueError("Invalid value for `selector`, must not be `None`") + + self._selector = selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ClusterResourceQuotaSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_resource_quota_status.py b/kubernetes/client/models/v1_cluster_resource_quota_status.py new file mode 100644 index 0000000000..1e289a3392 --- /dev/null +++ b/kubernetes/client/models/v1_cluster_resource_quota_status.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterResourceQuotaStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, namespaces=None, total=None): + """ + V1ClusterResourceQuotaStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'namespaces': 'list[V1ResourceQuotaStatusByNamespace]', + 'total': 'V1ResourceQuotaStatus' + } + + self.attribute_map = { + 'namespaces': 'namespaces', + 'total': 'total' + } + + self._namespaces = namespaces + self._total = total + + @property + def namespaces(self): + """ + Gets the namespaces of this V1ClusterResourceQuotaStatus. + Namespaces slices the usage by project. This division allows for quick resolution of deletion reconciliation inside of a single project without requiring a recalculation across all projects. This can be used to pull the deltas for a given project. + + :return: The namespaces of this V1ClusterResourceQuotaStatus. + :rtype: list[V1ResourceQuotaStatusByNamespace] + """ + return self._namespaces + + @namespaces.setter + def namespaces(self, namespaces): + """ + Sets the namespaces of this V1ClusterResourceQuotaStatus. + Namespaces slices the usage by project. This division allows for quick resolution of deletion reconciliation inside of a single project without requiring a recalculation across all projects. This can be used to pull the deltas for a given project. + + :param namespaces: The namespaces of this V1ClusterResourceQuotaStatus. + :type: list[V1ResourceQuotaStatusByNamespace] + """ + if namespaces is None: + raise ValueError("Invalid value for `namespaces`, must not be `None`") + + self._namespaces = namespaces + + @property + def total(self): + """ + Gets the total of this V1ClusterResourceQuotaStatus. + Total defines the actual enforced quota and its current usage across all projects + + :return: The total of this V1ClusterResourceQuotaStatus. + :rtype: V1ResourceQuotaStatus + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this V1ClusterResourceQuotaStatus. + Total defines the actual enforced quota and its current usage across all projects + + :param total: The total of this V1ClusterResourceQuotaStatus. + :type: V1ResourceQuotaStatus + """ + if total is None: + raise ValueError("Invalid value for `total`, must not be `None`") + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ClusterResourceQuotaStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_role.py b/kubernetes/client/models/v1_cluster_role.py new file mode 100644 index 0000000000..bd31e0b6ea --- /dev/null +++ b/kubernetes/client/models/v1_cluster_role.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterRole(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, rules=None): + """ + V1ClusterRole - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'rules': 'list[V1PolicyRule]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'rules': 'rules' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._rules = rules + + @property + def api_version(self): + """ + Gets the api_version of this V1ClusterRole. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ClusterRole. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ClusterRole. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ClusterRole. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1ClusterRole. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ClusterRole. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ClusterRole. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ClusterRole. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ClusterRole. + Standard object's metadata. + + :return: The metadata of this V1ClusterRole. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ClusterRole. + Standard object's metadata. + + :param metadata: The metadata of this V1ClusterRole. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def rules(self): + """ + Gets the rules of this V1ClusterRole. + Rules holds all the PolicyRules for this ClusterRole + + :return: The rules of this V1ClusterRole. + :rtype: list[V1PolicyRule] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """ + Sets the rules of this V1ClusterRole. + Rules holds all the PolicyRules for this ClusterRole + + :param rules: The rules of this V1ClusterRole. + :type: list[V1PolicyRule] + """ + if rules is None: + raise ValueError("Invalid value for `rules`, must not be `None`") + + self._rules = rules + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ClusterRole): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_role_binding.py b/kubernetes/client/models/v1_cluster_role_binding.py new file mode 100644 index 0000000000..170b6303c1 --- /dev/null +++ b/kubernetes/client/models/v1_cluster_role_binding.py @@ -0,0 +1,281 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterRoleBinding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, group_names=None, kind=None, metadata=None, role_ref=None, subjects=None, user_names=None): + """ + V1ClusterRoleBinding - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'group_names': 'list[str]', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'role_ref': 'V1ObjectReference', + 'subjects': 'list[V1ObjectReference]', + 'user_names': 'list[str]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'group_names': 'groupNames', + 'kind': 'kind', + 'metadata': 'metadata', + 'role_ref': 'roleRef', + 'subjects': 'subjects', + 'user_names': 'userNames' + } + + self._api_version = api_version + self._group_names = group_names + self._kind = kind + self._metadata = metadata + self._role_ref = role_ref + self._subjects = subjects + self._user_names = user_names + + @property + def api_version(self): + """ + Gets the api_version of this V1ClusterRoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ClusterRoleBinding. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ClusterRoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ClusterRoleBinding. + :type: str + """ + + self._api_version = api_version + + @property + def group_names(self): + """ + Gets the group_names of this V1ClusterRoleBinding. + GroupNames holds all the groups directly bound to the role. This field should only be specified when supporting legacy clients and servers. See Subjects for further details. + + :return: The group_names of this V1ClusterRoleBinding. + :rtype: list[str] + """ + return self._group_names + + @group_names.setter + def group_names(self, group_names): + """ + Sets the group_names of this V1ClusterRoleBinding. + GroupNames holds all the groups directly bound to the role. This field should only be specified when supporting legacy clients and servers. See Subjects for further details. + + :param group_names: The group_names of this V1ClusterRoleBinding. + :type: list[str] + """ + if group_names is None: + raise ValueError("Invalid value for `group_names`, must not be `None`") + + self._group_names = group_names + + @property + def kind(self): + """ + Gets the kind of this V1ClusterRoleBinding. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ClusterRoleBinding. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ClusterRoleBinding. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ClusterRoleBinding. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ClusterRoleBinding. + Standard object's metadata. + + :return: The metadata of this V1ClusterRoleBinding. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ClusterRoleBinding. + Standard object's metadata. + + :param metadata: The metadata of this V1ClusterRoleBinding. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def role_ref(self): + """ + Gets the role_ref of this V1ClusterRoleBinding. + RoleRef can only reference the current namespace and the global namespace. If the ClusterRoleRef cannot be resolved, the Authorizer must return an error. Since Policy is a singleton, this is sufficient knowledge to locate a role. + + :return: The role_ref of this V1ClusterRoleBinding. + :rtype: V1ObjectReference + """ + return self._role_ref + + @role_ref.setter + def role_ref(self, role_ref): + """ + Sets the role_ref of this V1ClusterRoleBinding. + RoleRef can only reference the current namespace and the global namespace. If the ClusterRoleRef cannot be resolved, the Authorizer must return an error. Since Policy is a singleton, this is sufficient knowledge to locate a role. + + :param role_ref: The role_ref of this V1ClusterRoleBinding. + :type: V1ObjectReference + """ + if role_ref is None: + raise ValueError("Invalid value for `role_ref`, must not be `None`") + + self._role_ref = role_ref + + @property + def subjects(self): + """ + Gets the subjects of this V1ClusterRoleBinding. + Subjects hold object references to authorize with this rule. This field is ignored if UserNames or GroupNames are specified to support legacy clients and servers. Thus newer clients that do not need to support backwards compatibility should send only fully qualified Subjects and should omit the UserNames and GroupNames fields. Clients that need to support backwards compatibility can use this field to build the UserNames and GroupNames. + + :return: The subjects of this V1ClusterRoleBinding. + :rtype: list[V1ObjectReference] + """ + return self._subjects + + @subjects.setter + def subjects(self, subjects): + """ + Sets the subjects of this V1ClusterRoleBinding. + Subjects hold object references to authorize with this rule. This field is ignored if UserNames or GroupNames are specified to support legacy clients and servers. Thus newer clients that do not need to support backwards compatibility should send only fully qualified Subjects and should omit the UserNames and GroupNames fields. Clients that need to support backwards compatibility can use this field to build the UserNames and GroupNames. + + :param subjects: The subjects of this V1ClusterRoleBinding. + :type: list[V1ObjectReference] + """ + if subjects is None: + raise ValueError("Invalid value for `subjects`, must not be `None`") + + self._subjects = subjects + + @property + def user_names(self): + """ + Gets the user_names of this V1ClusterRoleBinding. + UserNames holds all the usernames directly bound to the role. This field should only be specified when supporting legacy clients and servers. See Subjects for further details. + + :return: The user_names of this V1ClusterRoleBinding. + :rtype: list[str] + """ + return self._user_names + + @user_names.setter + def user_names(self, user_names): + """ + Sets the user_names of this V1ClusterRoleBinding. + UserNames holds all the usernames directly bound to the role. This field should only be specified when supporting legacy clients and servers. See Subjects for further details. + + :param user_names: The user_names of this V1ClusterRoleBinding. + :type: list[str] + """ + if user_names is None: + raise ValueError("Invalid value for `user_names`, must not be `None`") + + self._user_names = user_names + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ClusterRoleBinding): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_role_binding_list.py b/kubernetes/client/models/v1_cluster_role_binding_list.py new file mode 100644 index 0000000000..fa73a46421 --- /dev/null +++ b/kubernetes/client/models/v1_cluster_role_binding_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterRoleBindingList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1ClusterRoleBindingList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1ClusterRoleBinding]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1ClusterRoleBindingList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ClusterRoleBindingList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ClusterRoleBindingList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ClusterRoleBindingList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1ClusterRoleBindingList. + Items is a list of ClusterRoleBindings + + :return: The items of this V1ClusterRoleBindingList. + :rtype: list[V1ClusterRoleBinding] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ClusterRoleBindingList. + Items is a list of ClusterRoleBindings + + :param items: The items of this V1ClusterRoleBindingList. + :type: list[V1ClusterRoleBinding] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1ClusterRoleBindingList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ClusterRoleBindingList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ClusterRoleBindingList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ClusterRoleBindingList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ClusterRoleBindingList. + Standard object's metadata. + + :return: The metadata of this V1ClusterRoleBindingList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ClusterRoleBindingList. + Standard object's metadata. + + :param metadata: The metadata of this V1ClusterRoleBindingList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ClusterRoleBindingList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_role_list.py b/kubernetes/client/models/v1_cluster_role_list.py new file mode 100644 index 0000000000..9b9958d5c6 --- /dev/null +++ b/kubernetes/client/models/v1_cluster_role_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterRoleList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1ClusterRoleList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1ClusterRole]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1ClusterRoleList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ClusterRoleList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ClusterRoleList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ClusterRoleList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1ClusterRoleList. + Items is a list of ClusterRoles + + :return: The items of this V1ClusterRoleList. + :rtype: list[V1ClusterRole] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ClusterRoleList. + Items is a list of ClusterRoles + + :param items: The items of this V1ClusterRoleList. + :type: list[V1ClusterRole] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1ClusterRoleList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ClusterRoleList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ClusterRoleList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ClusterRoleList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ClusterRoleList. + Standard object's metadata. + + :return: The metadata of this V1ClusterRoleList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ClusterRoleList. + Standard object's metadata. + + :param metadata: The metadata of this V1ClusterRoleList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ClusterRoleList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_cluster_role_scope_restriction.py b/kubernetes/client/models/v1_cluster_role_scope_restriction.py new file mode 100644 index 0000000000..0173df8057 --- /dev/null +++ b/kubernetes/client/models/v1_cluster_role_scope_restriction.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClusterRoleScopeRestriction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, allow_escalation=None, namespaces=None, role_names=None): + """ + V1ClusterRoleScopeRestriction - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'allow_escalation': 'bool', + 'namespaces': 'list[str]', + 'role_names': 'list[str]' + } + + self.attribute_map = { + 'allow_escalation': 'allowEscalation', + 'namespaces': 'namespaces', + 'role_names': 'roleNames' + } + + self._allow_escalation = allow_escalation + self._namespaces = namespaces + self._role_names = role_names + + @property + def allow_escalation(self): + """ + Gets the allow_escalation of this V1ClusterRoleScopeRestriction. + AllowEscalation indicates whether you can request roles and their escalating resources + + :return: The allow_escalation of this V1ClusterRoleScopeRestriction. + :rtype: bool + """ + return self._allow_escalation + + @allow_escalation.setter + def allow_escalation(self, allow_escalation): + """ + Sets the allow_escalation of this V1ClusterRoleScopeRestriction. + AllowEscalation indicates whether you can request roles and their escalating resources + + :param allow_escalation: The allow_escalation of this V1ClusterRoleScopeRestriction. + :type: bool + """ + if allow_escalation is None: + raise ValueError("Invalid value for `allow_escalation`, must not be `None`") + + self._allow_escalation = allow_escalation + + @property + def namespaces(self): + """ + Gets the namespaces of this V1ClusterRoleScopeRestriction. + Namespaces is the list of namespaces that can be referenced. * means any of them (including *) + + :return: The namespaces of this V1ClusterRoleScopeRestriction. + :rtype: list[str] + """ + return self._namespaces + + @namespaces.setter + def namespaces(self, namespaces): + """ + Sets the namespaces of this V1ClusterRoleScopeRestriction. + Namespaces is the list of namespaces that can be referenced. * means any of them (including *) + + :param namespaces: The namespaces of this V1ClusterRoleScopeRestriction. + :type: list[str] + """ + if namespaces is None: + raise ValueError("Invalid value for `namespaces`, must not be `None`") + + self._namespaces = namespaces + + @property + def role_names(self): + """ + Gets the role_names of this V1ClusterRoleScopeRestriction. + RoleNames is the list of cluster roles that can referenced. * means anything + + :return: The role_names of this V1ClusterRoleScopeRestriction. + :rtype: list[str] + """ + return self._role_names + + @role_names.setter + def role_names(self, role_names): + """ + Sets the role_names of this V1ClusterRoleScopeRestriction. + RoleNames is the list of cluster roles that can referenced. * means anything + + :param role_names: The role_names of this V1ClusterRoleScopeRestriction. + :type: list[str] + """ + if role_names is None: + raise ValueError("Invalid value for `role_names`, must not be `None`") + + self._role_names = role_names + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ClusterRoleScopeRestriction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_component_condition.py b/kubernetes/client/models/v1_component_condition.py index 1a15a8d83f..a7bf281634 100644 --- a/kubernetes/client/models/v1_component_condition.py +++ b/kubernetes/client/models/v1_component_condition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_component_status.py b/kubernetes/client/models/v1_component_status.py index a5771356fe..a3dd413111 100644 --- a/kubernetes/client/models/v1_component_status.py +++ b/kubernetes/client/models/v1_component_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_component_status_list.py b/kubernetes/client/models/v1_component_status_list.py index a7abf7676f..3db85baa70 100644 --- a/kubernetes/client/models/v1_component_status_list.py +++ b/kubernetes/client/models/v1_component_status_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1ComponentStatus]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ComponentStatusList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ComponentStatusList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_config_map.py b/kubernetes/client/models/v1_config_map.py index c144f71a90..1cb2ac78bd 100644 --- a/kubernetes/client/models/v1_config_map.py +++ b/kubernetes/client/models/v1_config_map.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_config_map_env_source.py b/kubernetes/client/models/v1_config_map_env_source.py deleted file mode 100644 index c435a0d102..0000000000 --- a/kubernetes/client/models/v1_config_map_env_source.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1ConfigMapEnvSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, name=None, optional=None): - """ - V1ConfigMapEnvSource - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'name': 'str', - 'optional': 'bool' - } - - self.attribute_map = { - 'name': 'name', - 'optional': 'optional' - } - - self._name = name - self._optional = optional - - @property - def name(self): - """ - Gets the name of this V1ConfigMapEnvSource. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - - :return: The name of this V1ConfigMapEnvSource. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1ConfigMapEnvSource. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - - :param name: The name of this V1ConfigMapEnvSource. - :type: str - """ - - self._name = name - - @property - def optional(self): - """ - Gets the optional of this V1ConfigMapEnvSource. - Specify whether the ConfigMap must be defined - - :return: The optional of this V1ConfigMapEnvSource. - :rtype: bool - """ - return self._optional - - @optional.setter - def optional(self, optional): - """ - Sets the optional of this V1ConfigMapEnvSource. - Specify whether the ConfigMap must be defined - - :param optional: The optional of this V1ConfigMapEnvSource. - :type: bool - """ - - self._optional = optional - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1ConfigMapEnvSource): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_config_map_key_selector.py b/kubernetes/client/models/v1_config_map_key_selector.py index d8ff72021c..b0b19925fe 100644 --- a/kubernetes/client/models/v1_config_map_key_selector.py +++ b/kubernetes/client/models/v1_config_map_key_selector.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1ConfigMapKeySelector(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, key=None, name=None, optional=None): + def __init__(self, key=None, name=None): """ V1ConfigMapKeySelector - a model defined in Swagger @@ -32,19 +32,16 @@ def __init__(self, key=None, name=None, optional=None): """ self.swagger_types = { 'key': 'str', - 'name': 'str', - 'optional': 'bool' + 'name': 'str' } self.attribute_map = { 'key': 'key', - 'name': 'name', - 'optional': 'optional' + 'name': 'name' } self._key = key self._name = name - self._optional = optional @property def key(self): @@ -94,29 +91,6 @@ def name(self, name): self._name = name - @property - def optional(self): - """ - Gets the optional of this V1ConfigMapKeySelector. - Specify whether the ConfigMap or it's key must be defined - - :return: The optional of this V1ConfigMapKeySelector. - :rtype: bool - """ - return self._optional - - @optional.setter - def optional(self, optional): - """ - Sets the optional of this V1ConfigMapKeySelector. - Specify whether the ConfigMap or it's key must be defined - - :param optional: The optional of this V1ConfigMapKeySelector. - :type: bool - """ - - self._optional = optional - def to_dict(self): """ Returns the model properties as a dict diff --git a/kubernetes/client/models/v1_config_map_list.py b/kubernetes/client/models/v1_config_map_list.py index 6741800e1f..2a9dd88bb1 100644 --- a/kubernetes/client/models/v1_config_map_list.py +++ b/kubernetes/client/models/v1_config_map_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1ConfigMap]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V1ConfigMapList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1ConfigMapList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_config_map_projection.py b/kubernetes/client/models/v1_config_map_projection.py deleted file mode 100644 index 07b91b55bf..0000000000 --- a/kubernetes/client/models/v1_config_map_projection.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1ConfigMapProjection(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, items=None, name=None, optional=None): - """ - V1ConfigMapProjection - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[V1KeyToPath]', - 'name': 'str', - 'optional': 'bool' - } - - self.attribute_map = { - 'items': 'items', - 'name': 'name', - 'optional': 'optional' - } - - self._items = items - self._name = name - self._optional = optional - - @property - def items(self): - """ - Gets the items of this V1ConfigMapProjection. - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - - :return: The items of this V1ConfigMapProjection. - :rtype: list[V1KeyToPath] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1ConfigMapProjection. - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - - :param items: The items of this V1ConfigMapProjection. - :type: list[V1KeyToPath] - """ - - self._items = items - - @property - def name(self): - """ - Gets the name of this V1ConfigMapProjection. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - - :return: The name of this V1ConfigMapProjection. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1ConfigMapProjection. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - - :param name: The name of this V1ConfigMapProjection. - :type: str - """ - - self._name = name - - @property - def optional(self): - """ - Gets the optional of this V1ConfigMapProjection. - Specify whether the ConfigMap or it's keys must be defined - - :return: The optional of this V1ConfigMapProjection. - :rtype: bool - """ - return self._optional - - @optional.setter - def optional(self, optional): - """ - Sets the optional of this V1ConfigMapProjection. - Specify whether the ConfigMap or it's keys must be defined - - :param optional: The optional of this V1ConfigMapProjection. - :type: bool - """ - - self._optional = optional - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1ConfigMapProjection): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_config_map_volume_source.py b/kubernetes/client/models/v1_config_map_volume_source.py index 2038a8504f..ed2203e674 100644 --- a/kubernetes/client/models/v1_config_map_volume_source.py +++ b/kubernetes/client/models/v1_config_map_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1ConfigMapVolumeSource(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, default_mode=None, items=None, name=None, optional=None): + def __init__(self, default_mode=None, items=None, name=None): """ V1ConfigMapVolumeSource - a model defined in Swagger @@ -33,21 +33,18 @@ def __init__(self, default_mode=None, items=None, name=None, optional=None): self.swagger_types = { 'default_mode': 'int', 'items': 'list[V1KeyToPath]', - 'name': 'str', - 'optional': 'bool' + 'name': 'str' } self.attribute_map = { 'default_mode': 'defaultMode', 'items': 'items', - 'name': 'name', - 'optional': 'optional' + 'name': 'name' } self._default_mode = default_mode self._items = items self._name = name - self._optional = optional @property def default_mode(self): @@ -76,7 +73,7 @@ def default_mode(self, default_mode): def items(self): """ Gets the items of this V1ConfigMapVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. :return: The items of this V1ConfigMapVolumeSource. :rtype: list[V1KeyToPath] @@ -87,7 +84,7 @@ def items(self): def items(self, items): """ Sets the items of this V1ConfigMapVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. :param items: The items of this V1ConfigMapVolumeSource. :type: list[V1KeyToPath] @@ -118,29 +115,6 @@ def name(self, name): self._name = name - @property - def optional(self): - """ - Gets the optional of this V1ConfigMapVolumeSource. - Specify whether the ConfigMap or it's keys must be defined - - :return: The optional of this V1ConfigMapVolumeSource. - :rtype: bool - """ - return self._optional - - @optional.setter - def optional(self, optional): - """ - Sets the optional of this V1ConfigMapVolumeSource. - Specify whether the ConfigMap or it's keys must be defined - - :param optional: The optional of this V1ConfigMapVolumeSource. - :type: bool - """ - - self._optional = optional - def to_dict(self): """ Returns the model properties as a dict diff --git a/kubernetes/client/models/v1_container.py b/kubernetes/client/models/v1_container.py index c7cf3a027a..931ead2190 100644 --- a/kubernetes/client/models/v1_container.py +++ b/kubernetes/client/models/v1_container.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1Container(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resources=None, security_context=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_mounts=None, working_dir=None): + def __init__(self, args=None, command=None, env=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resources=None, security_context=None, stdin=None, stdin_once=None, termination_message_path=None, tty=None, volume_mounts=None, working_dir=None): """ V1Container - a model defined in Swagger @@ -34,7 +34,6 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, 'args': 'list[str]', 'command': 'list[str]', 'env': 'list[V1EnvVar]', - 'env_from': 'list[V1EnvFromSource]', 'image': 'str', 'image_pull_policy': 'str', 'lifecycle': 'V1Lifecycle', @@ -47,7 +46,6 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, 'stdin': 'bool', 'stdin_once': 'bool', 'termination_message_path': 'str', - 'termination_message_policy': 'str', 'tty': 'bool', 'volume_mounts': 'list[V1VolumeMount]', 'working_dir': 'str' @@ -57,7 +55,6 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, 'args': 'args', 'command': 'command', 'env': 'env', - 'env_from': 'envFrom', 'image': 'image', 'image_pull_policy': 'imagePullPolicy', 'lifecycle': 'lifecycle', @@ -70,7 +67,6 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, 'stdin': 'stdin', 'stdin_once': 'stdinOnce', 'termination_message_path': 'terminationMessagePath', - 'termination_message_policy': 'terminationMessagePolicy', 'tty': 'tty', 'volume_mounts': 'volumeMounts', 'working_dir': 'workingDir' @@ -79,7 +75,6 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self._args = args self._command = command self._env = env - self._env_from = env_from self._image = image self._image_pull_policy = image_pull_policy self._lifecycle = lifecycle @@ -92,7 +87,6 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self._stdin = stdin self._stdin_once = stdin_once self._termination_message_path = termination_message_path - self._termination_message_policy = termination_message_policy self._tty = tty self._volume_mounts = volume_mounts self._working_dir = working_dir @@ -166,29 +160,6 @@ def env(self, env): self._env = env - @property - def env_from(self): - """ - Gets the env_from of this V1Container. - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - - :return: The env_from of this V1Container. - :rtype: list[V1EnvFromSource] - """ - return self._env_from - - @env_from.setter - def env_from(self, env_from): - """ - Sets the env_from of this V1Container. - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - - :param env_from: The env_from of this V1Container. - :type: list[V1EnvFromSource] - """ - - self._env_from = env_from - @property def image(self): """ @@ -448,7 +419,7 @@ def stdin_once(self, stdin_once): def termination_message_path(self): """ Gets the termination_message_path of this V1Container. - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated. :return: The termination_message_path of this V1Container. :rtype: str @@ -459,7 +430,7 @@ def termination_message_path(self): def termination_message_path(self, termination_message_path): """ Sets the termination_message_path of this V1Container. - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated. :param termination_message_path: The termination_message_path of this V1Container. :type: str @@ -467,29 +438,6 @@ def termination_message_path(self, termination_message_path): self._termination_message_path = termination_message_path - @property - def termination_message_policy(self): - """ - Gets the termination_message_policy of this V1Container. - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - - :return: The termination_message_policy of this V1Container. - :rtype: str - """ - return self._termination_message_policy - - @termination_message_policy.setter - def termination_message_policy(self, termination_message_policy): - """ - Sets the termination_message_policy of this V1Container. - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - - :param termination_message_policy: The termination_message_policy of this V1Container. - :type: str - """ - - self._termination_message_policy = termination_message_policy - @property def tty(self): """ diff --git a/kubernetes/client/models/v1_container_image.py b/kubernetes/client/models/v1_container_image.py index 52ffcc206e..540b421bc1 100644 --- a/kubernetes/client/models/v1_container_image.py +++ b/kubernetes/client/models/v1_container_image.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_container_port.py b/kubernetes/client/models/v1_container_port.py index 365c714ced..1d6279c80e 100644 --- a/kubernetes/client/models/v1_container_port.py +++ b/kubernetes/client/models/v1_container_port.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_container_state.py b/kubernetes/client/models/v1_container_state.py index b6d10c5df4..9d9a83a7d7 100644 --- a/kubernetes/client/models/v1_container_state.py +++ b/kubernetes/client/models/v1_container_state.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_container_state_running.py b/kubernetes/client/models/v1_container_state_running.py index dcaf15190a..7f9c86fbd8 100644 --- a/kubernetes/client/models/v1_container_state_running.py +++ b/kubernetes/client/models/v1_container_state_running.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_container_state_terminated.py b/kubernetes/client/models/v1_container_state_terminated.py index 74395aff69..5986e5e590 100644 --- a/kubernetes/client/models/v1_container_state_terminated.py +++ b/kubernetes/client/models/v1_container_state_terminated.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_container_state_waiting.py b/kubernetes/client/models/v1_container_state_waiting.py index 940f0eeb3a..fa8aede028 100644 --- a/kubernetes/client/models/v1_container_state_waiting.py +++ b/kubernetes/client/models/v1_container_state_waiting.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_container_status.py b/kubernetes/client/models/v1_container_status.py index c5a40cedf4..09f1e1ccd9 100644 --- a/kubernetes/client/models/v1_container_status.py +++ b/kubernetes/client/models/v1_container_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_cross_version_object_reference.py b/kubernetes/client/models/v1_cross_version_object_reference.py index d219e927cb..724cb3d832 100644 --- a/kubernetes/client/models/v1_cross_version_object_reference.py +++ b/kubernetes/client/models/v1_cross_version_object_reference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_custom_build_strategy.py b/kubernetes/client/models/v1_custom_build_strategy.py new file mode 100644 index 0000000000..a5003a5821 --- /dev/null +++ b/kubernetes/client/models/v1_custom_build_strategy.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1CustomBuildStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, build_api_version=None, env=None, expose_docker_socket=None, force_pull=None, _from=None, pull_secret=None, secrets=None): + """ + V1CustomBuildStrategy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'build_api_version': 'str', + 'env': 'list[V1EnvVar]', + 'expose_docker_socket': 'bool', + 'force_pull': 'bool', + '_from': 'V1ObjectReference', + 'pull_secret': 'V1LocalObjectReference', + 'secrets': 'list[V1SecretSpec]' + } + + self.attribute_map = { + 'build_api_version': 'buildAPIVersion', + 'env': 'env', + 'expose_docker_socket': 'exposeDockerSocket', + 'force_pull': 'forcePull', + '_from': 'from', + 'pull_secret': 'pullSecret', + 'secrets': 'secrets' + } + + self._build_api_version = build_api_version + self._env = env + self._expose_docker_socket = expose_docker_socket + self._force_pull = force_pull + self.__from = _from + self._pull_secret = pull_secret + self._secrets = secrets + + @property + def build_api_version(self): + """ + Gets the build_api_version of this V1CustomBuildStrategy. + buildAPIVersion is the requested API version for the Build object serialized and passed to the custom builder + + :return: The build_api_version of this V1CustomBuildStrategy. + :rtype: str + """ + return self._build_api_version + + @build_api_version.setter + def build_api_version(self, build_api_version): + """ + Sets the build_api_version of this V1CustomBuildStrategy. + buildAPIVersion is the requested API version for the Build object serialized and passed to the custom builder + + :param build_api_version: The build_api_version of this V1CustomBuildStrategy. + :type: str + """ + + self._build_api_version = build_api_version + + @property + def env(self): + """ + Gets the env of this V1CustomBuildStrategy. + env contains additional environment variables you want to pass into a builder container + + :return: The env of this V1CustomBuildStrategy. + :rtype: list[V1EnvVar] + """ + return self._env + + @env.setter + def env(self, env): + """ + Sets the env of this V1CustomBuildStrategy. + env contains additional environment variables you want to pass into a builder container + + :param env: The env of this V1CustomBuildStrategy. + :type: list[V1EnvVar] + """ + + self._env = env + + @property + def expose_docker_socket(self): + """ + Gets the expose_docker_socket of this V1CustomBuildStrategy. + exposeDockerSocket will allow running Docker commands (and build Docker images) from inside the Docker container. + + :return: The expose_docker_socket of this V1CustomBuildStrategy. + :rtype: bool + """ + return self._expose_docker_socket + + @expose_docker_socket.setter + def expose_docker_socket(self, expose_docker_socket): + """ + Sets the expose_docker_socket of this V1CustomBuildStrategy. + exposeDockerSocket will allow running Docker commands (and build Docker images) from inside the Docker container. + + :param expose_docker_socket: The expose_docker_socket of this V1CustomBuildStrategy. + :type: bool + """ + + self._expose_docker_socket = expose_docker_socket + + @property + def force_pull(self): + """ + Gets the force_pull of this V1CustomBuildStrategy. + forcePull describes if the controller should configure the build pod to always pull the images for the builder or only pull if it is not present locally + + :return: The force_pull of this V1CustomBuildStrategy. + :rtype: bool + """ + return self._force_pull + + @force_pull.setter + def force_pull(self, force_pull): + """ + Sets the force_pull of this V1CustomBuildStrategy. + forcePull describes if the controller should configure the build pod to always pull the images for the builder or only pull if it is not present locally + + :param force_pull: The force_pull of this V1CustomBuildStrategy. + :type: bool + """ + + self._force_pull = force_pull + + @property + def _from(self): + """ + Gets the _from of this V1CustomBuildStrategy. + from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the docker image should be pulled + + :return: The _from of this V1CustomBuildStrategy. + :rtype: V1ObjectReference + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1CustomBuildStrategy. + from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the docker image should be pulled + + :param _from: The _from of this V1CustomBuildStrategy. + :type: V1ObjectReference + """ + if _from is None: + raise ValueError("Invalid value for `_from`, must not be `None`") + + self.__from = _from + + @property + def pull_secret(self): + """ + Gets the pull_secret of this V1CustomBuildStrategy. + pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the Docker images from the private Docker registries + + :return: The pull_secret of this V1CustomBuildStrategy. + :rtype: V1LocalObjectReference + """ + return self._pull_secret + + @pull_secret.setter + def pull_secret(self, pull_secret): + """ + Sets the pull_secret of this V1CustomBuildStrategy. + pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the Docker images from the private Docker registries + + :param pull_secret: The pull_secret of this V1CustomBuildStrategy. + :type: V1LocalObjectReference + """ + + self._pull_secret = pull_secret + + @property + def secrets(self): + """ + Gets the secrets of this V1CustomBuildStrategy. + secrets is a list of additional secrets that will be included in the build pod + + :return: The secrets of this V1CustomBuildStrategy. + :rtype: list[V1SecretSpec] + """ + return self._secrets + + @secrets.setter + def secrets(self, secrets): + """ + Sets the secrets of this V1CustomBuildStrategy. + secrets is a list of additional secrets that will be included in the build pod + + :param secrets: The secrets of this V1CustomBuildStrategy. + :type: list[V1SecretSpec] + """ + + self._secrets = secrets + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1CustomBuildStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_custom_deployment_strategy_params.py b/kubernetes/client/models/v1_custom_deployment_strategy_params.py new file mode 100644 index 0000000000..ca97e803c9 --- /dev/null +++ b/kubernetes/client/models/v1_custom_deployment_strategy_params.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1CustomDeploymentStrategyParams(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, command=None, environment=None, image=None): + """ + V1CustomDeploymentStrategyParams - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'command': 'list[str]', + 'environment': 'list[V1EnvVar]', + 'image': 'str' + } + + self.attribute_map = { + 'command': 'command', + 'environment': 'environment', + 'image': 'image' + } + + self._command = command + self._environment = environment + self._image = image + + @property + def command(self): + """ + Gets the command of this V1CustomDeploymentStrategyParams. + Command is optional and overrides CMD in the container Image. + + :return: The command of this V1CustomDeploymentStrategyParams. + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """ + Sets the command of this V1CustomDeploymentStrategyParams. + Command is optional and overrides CMD in the container Image. + + :param command: The command of this V1CustomDeploymentStrategyParams. + :type: list[str] + """ + + self._command = command + + @property + def environment(self): + """ + Gets the environment of this V1CustomDeploymentStrategyParams. + Environment holds the environment which will be given to the container for Image. + + :return: The environment of this V1CustomDeploymentStrategyParams. + :rtype: list[V1EnvVar] + """ + return self._environment + + @environment.setter + def environment(self, environment): + """ + Sets the environment of this V1CustomDeploymentStrategyParams. + Environment holds the environment which will be given to the container for Image. + + :param environment: The environment of this V1CustomDeploymentStrategyParams. + :type: list[V1EnvVar] + """ + + self._environment = environment + + @property + def image(self): + """ + Gets the image of this V1CustomDeploymentStrategyParams. + Image specifies a Docker image which can carry out a deployment. + + :return: The image of this V1CustomDeploymentStrategyParams. + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1CustomDeploymentStrategyParams. + Image specifies a Docker image which can carry out a deployment. + + :param image: The image of this V1CustomDeploymentStrategyParams. + :type: str + """ + + self._image = image + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1CustomDeploymentStrategyParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_daemon_endpoint.py b/kubernetes/client/models/v1_daemon_endpoint.py index d90fb22716..69ac3cc829 100644 --- a/kubernetes/client/models/v1_daemon_endpoint.py +++ b/kubernetes/client/models/v1_daemon_endpoint.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_delete_options.py b/kubernetes/client/models/v1_delete_options.py index eba44e385b..01811a9abf 100644 --- a/kubernetes/client/models/v1_delete_options.py +++ b/kubernetes/client/models/v1_delete_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1DeleteOptions(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, api_version=None, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None, propagation_policy=None): + def __init__(self, api_version=None, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None): """ V1DeleteOptions - a model defined in Swagger @@ -35,8 +35,7 @@ def __init__(self, api_version=None, grace_period_seconds=None, kind=None, orpha 'grace_period_seconds': 'int', 'kind': 'str', 'orphan_dependents': 'bool', - 'preconditions': 'V1Preconditions', - 'propagation_policy': 'str' + 'preconditions': 'V1Preconditions' } self.attribute_map = { @@ -44,8 +43,7 @@ def __init__(self, api_version=None, grace_period_seconds=None, kind=None, orpha 'grace_period_seconds': 'gracePeriodSeconds', 'kind': 'kind', 'orphan_dependents': 'orphanDependents', - 'preconditions': 'preconditions', - 'propagation_policy': 'propagationPolicy' + 'preconditions': 'preconditions' } self._api_version = api_version @@ -53,7 +51,6 @@ def __init__(self, api_version=None, grace_period_seconds=None, kind=None, orpha self._kind = kind self._orphan_dependents = orphan_dependents self._preconditions = preconditions - self._propagation_policy = propagation_policy @property def api_version(self): @@ -128,7 +125,7 @@ def kind(self, kind): def orphan_dependents(self): """ Gets the orphan_dependents of this V1DeleteOptions. - Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. :return: The orphan_dependents of this V1DeleteOptions. :rtype: bool @@ -139,7 +136,7 @@ def orphan_dependents(self): def orphan_dependents(self, orphan_dependents): """ Sets the orphan_dependents of this V1DeleteOptions. - Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. :param orphan_dependents: The orphan_dependents of this V1DeleteOptions. :type: bool @@ -170,29 +167,6 @@ def preconditions(self, preconditions): self._preconditions = preconditions - @property - def propagation_policy(self): - """ - Gets the propagation_policy of this V1DeleteOptions. - Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - - :return: The propagation_policy of this V1DeleteOptions. - :rtype: str - """ - return self._propagation_policy - - @propagation_policy.setter - def propagation_policy(self, propagation_policy): - """ - Sets the propagation_policy of this V1DeleteOptions. - Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - - :param propagation_policy: The propagation_policy of this V1DeleteOptions. - :type: str - """ - - self._propagation_policy = propagation_policy - def to_dict(self): """ Returns the model properties as a dict diff --git a/kubernetes/client/models/v1_deployment_cause.py b/kubernetes/client/models/v1_deployment_cause.py new file mode 100644 index 0000000000..c74ee7e5a3 --- /dev/null +++ b/kubernetes/client/models/v1_deployment_cause.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentCause(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, image_trigger=None, type=None): + """ + V1DeploymentCause - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'image_trigger': 'V1DeploymentCauseImageTrigger', + 'type': 'str' + } + + self.attribute_map = { + 'image_trigger': 'imageTrigger', + 'type': 'type' + } + + self._image_trigger = image_trigger + self._type = type + + @property + def image_trigger(self): + """ + Gets the image_trigger of this V1DeploymentCause. + ImageTrigger contains the image trigger details, if this trigger was fired based on an image change + + :return: The image_trigger of this V1DeploymentCause. + :rtype: V1DeploymentCauseImageTrigger + """ + return self._image_trigger + + @image_trigger.setter + def image_trigger(self, image_trigger): + """ + Sets the image_trigger of this V1DeploymentCause. + ImageTrigger contains the image trigger details, if this trigger was fired based on an image change + + :param image_trigger: The image_trigger of this V1DeploymentCause. + :type: V1DeploymentCauseImageTrigger + """ + + self._image_trigger = image_trigger + + @property + def type(self): + """ + Gets the type of this V1DeploymentCause. + Type of the trigger that resulted in the creation of a new deployment + + :return: The type of this V1DeploymentCause. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1DeploymentCause. + Type of the trigger that resulted in the creation of a new deployment + + :param type: The type of this V1DeploymentCause. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentCause): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_cause_image_trigger.py b/kubernetes/client/models/v1_deployment_cause_image_trigger.py new file mode 100644 index 0000000000..d1aa2391f7 --- /dev/null +++ b/kubernetes/client/models/v1_deployment_cause_image_trigger.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentCauseImageTrigger(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, _from=None): + """ + V1DeploymentCauseImageTrigger - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + '_from': 'V1ObjectReference' + } + + self.attribute_map = { + '_from': 'from' + } + + self.__from = _from + + @property + def _from(self): + """ + Gets the _from of this V1DeploymentCauseImageTrigger. + From is a reference to the changed object which triggered a deployment. The field may have the kinds DockerImage, ImageStreamTag, or ImageStreamImage. + + :return: The _from of this V1DeploymentCauseImageTrigger. + :rtype: V1ObjectReference + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1DeploymentCauseImageTrigger. + From is a reference to the changed object which triggered a deployment. The field may have the kinds DockerImage, ImageStreamTag, or ImageStreamImage. + + :param _from: The _from of this V1DeploymentCauseImageTrigger. + :type: V1ObjectReference + """ + if _from is None: + raise ValueError("Invalid value for `_from`, must not be `None`") + + self.__from = _from + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentCauseImageTrigger): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_condition.py b/kubernetes/client/models/v1_deployment_condition.py new file mode 100644 index 0000000000..dfc375bf11 --- /dev/null +++ b/kubernetes/client/models/v1_deployment_condition.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): + """ + V1DeploymentCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_transition_time': 'datetime', + 'last_update_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_transition_time': 'lastTransitionTime', + 'last_update_time': 'lastUpdateTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_transition_time = last_transition_time + self._last_update_time = last_update_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1DeploymentCondition. + The last time the condition transitioned from one status to another. + + :return: The last_transition_time of this V1DeploymentCondition. + :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 V1DeploymentCondition. + The last time the condition transitioned from one status to another. + + :param last_transition_time: The last_transition_time of this V1DeploymentCondition. + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def last_update_time(self): + """ + Gets the last_update_time of this V1DeploymentCondition. + The last time this condition was updated. + + :return: The last_update_time of this V1DeploymentCondition. + :rtype: datetime + """ + return self._last_update_time + + @last_update_time.setter + def last_update_time(self, last_update_time): + """ + Sets the last_update_time of this V1DeploymentCondition. + The last time this condition was updated. + + :param last_update_time: The last_update_time of this V1DeploymentCondition. + :type: datetime + """ + + self._last_update_time = last_update_time + + @property + def message(self): + """ + Gets the message of this V1DeploymentCondition. + A human readable message indicating details about the transition. + + :return: The message of this V1DeploymentCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1DeploymentCondition. + A human readable message indicating details about the transition. + + :param message: The message of this V1DeploymentCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1DeploymentCondition. + The reason for the condition's last transition. + + :return: The reason of this V1DeploymentCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1DeploymentCondition. + The reason for the condition's last transition. + + :param reason: The reason of this V1DeploymentCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1DeploymentCondition. + Status of the condition, one of True, False, Unknown. + + :return: The status of this V1DeploymentCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1DeploymentCondition. + Status of the condition, one of True, False, Unknown. + + :param status: The status of this V1DeploymentCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1DeploymentCondition. + Type of deployment condition. + + :return: The type of this V1DeploymentCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1DeploymentCondition. + Type of deployment condition. + + :param type: The type of this V1DeploymentCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_config.py b/kubernetes/client/models/v1_deployment_config.py new file mode 100644 index 0000000000..254c282f2b --- /dev/null +++ b/kubernetes/client/models/v1_deployment_config.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1DeploymentConfig - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1DeploymentConfigSpec', + 'status': 'V1DeploymentConfigStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1DeploymentConfig. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1DeploymentConfig. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1DeploymentConfig. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1DeploymentConfig. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1DeploymentConfig. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1DeploymentConfig. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1DeploymentConfig. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1DeploymentConfig. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1DeploymentConfig. + Standard object's metadata. + + :return: The metadata of this V1DeploymentConfig. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1DeploymentConfig. + Standard object's metadata. + + :param metadata: The metadata of this V1DeploymentConfig. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1DeploymentConfig. + Spec represents a desired deployment state and how to deploy to it. + + :return: The spec of this V1DeploymentConfig. + :rtype: V1DeploymentConfigSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1DeploymentConfig. + Spec represents a desired deployment state and how to deploy to it. + + :param spec: The spec of this V1DeploymentConfig. + :type: V1DeploymentConfigSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1DeploymentConfig. + Status represents the current deployment state. + + :return: The status of this V1DeploymentConfig. + :rtype: V1DeploymentConfigStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1DeploymentConfig. + Status represents the current deployment state. + + :param status: The status of this V1DeploymentConfig. + :type: V1DeploymentConfigStatus + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_config_list.py b/kubernetes/client/models/v1_deployment_config_list.py new file mode 100644 index 0000000000..cf5f18740b --- /dev/null +++ b/kubernetes/client/models/v1_deployment_config_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentConfigList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1DeploymentConfigList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1DeploymentConfig]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1DeploymentConfigList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1DeploymentConfigList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1DeploymentConfigList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1DeploymentConfigList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1DeploymentConfigList. + Items is a list of deployment configs + + :return: The items of this V1DeploymentConfigList. + :rtype: list[V1DeploymentConfig] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1DeploymentConfigList. + Items is a list of deployment configs + + :param items: The items of this V1DeploymentConfigList. + :type: list[V1DeploymentConfig] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1DeploymentConfigList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1DeploymentConfigList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1DeploymentConfigList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1DeploymentConfigList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1DeploymentConfigList. + Standard object's metadata. + + :return: The metadata of this V1DeploymentConfigList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1DeploymentConfigList. + Standard object's metadata. + + :param metadata: The metadata of this V1DeploymentConfigList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentConfigList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_config_rollback.py b/kubernetes/client/models/v1_deployment_config_rollback.py new file mode 100644 index 0000000000..5f10ac730c --- /dev/null +++ b/kubernetes/client/models/v1_deployment_config_rollback.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentConfigRollback(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, name=None, spec=None, updated_annotations=None): + """ + V1DeploymentConfigRollback - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'name': 'str', + 'spec': 'V1DeploymentConfigRollbackSpec', + 'updated_annotations': 'dict(str, str)' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'name': 'name', + 'spec': 'spec', + 'updated_annotations': 'updatedAnnotations' + } + + self._api_version = api_version + self._kind = kind + self._name = name + self._spec = spec + self._updated_annotations = updated_annotations + + @property + def api_version(self): + """ + Gets the api_version of this V1DeploymentConfigRollback. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1DeploymentConfigRollback. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1DeploymentConfigRollback. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1DeploymentConfigRollback. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1DeploymentConfigRollback. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1DeploymentConfigRollback. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1DeploymentConfigRollback. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1DeploymentConfigRollback. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1DeploymentConfigRollback. + Name of the deployment config that will be rolled back. + + :return: The name of this V1DeploymentConfigRollback. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1DeploymentConfigRollback. + Name of the deployment config that will be rolled back. + + :param name: The name of this V1DeploymentConfigRollback. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def spec(self): + """ + Gets the spec of this V1DeploymentConfigRollback. + Spec defines the options to rollback generation. + + :return: The spec of this V1DeploymentConfigRollback. + :rtype: V1DeploymentConfigRollbackSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1DeploymentConfigRollback. + Spec defines the options to rollback generation. + + :param spec: The spec of this V1DeploymentConfigRollback. + :type: V1DeploymentConfigRollbackSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def updated_annotations(self): + """ + Gets the updated_annotations of this V1DeploymentConfigRollback. + UpdatedAnnotations is a set of new annotations that will be added in the deployment config. + + :return: The updated_annotations of this V1DeploymentConfigRollback. + :rtype: dict(str, str) + """ + return self._updated_annotations + + @updated_annotations.setter + def updated_annotations(self, updated_annotations): + """ + Sets the updated_annotations of this V1DeploymentConfigRollback. + UpdatedAnnotations is a set of new annotations that will be added in the deployment config. + + :param updated_annotations: The updated_annotations of this V1DeploymentConfigRollback. + :type: dict(str, str) + """ + + self._updated_annotations = updated_annotations + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentConfigRollback): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_config_rollback_spec.py b/kubernetes/client/models/v1_deployment_config_rollback_spec.py new file mode 100644 index 0000000000..1fbe0711f9 --- /dev/null +++ b/kubernetes/client/models/v1_deployment_config_rollback_spec.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentConfigRollbackSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, _from=None, include_replication_meta=None, include_strategy=None, include_template=None, include_triggers=None, revision=None): + """ + V1DeploymentConfigRollbackSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + '_from': 'V1ObjectReference', + 'include_replication_meta': 'bool', + 'include_strategy': 'bool', + 'include_template': 'bool', + 'include_triggers': 'bool', + 'revision': 'int' + } + + self.attribute_map = { + '_from': 'from', + 'include_replication_meta': 'includeReplicationMeta', + 'include_strategy': 'includeStrategy', + 'include_template': 'includeTemplate', + 'include_triggers': 'includeTriggers', + 'revision': 'revision' + } + + self.__from = _from + self._include_replication_meta = include_replication_meta + self._include_strategy = include_strategy + self._include_template = include_template + self._include_triggers = include_triggers + self._revision = revision + + @property + def _from(self): + """ + Gets the _from of this V1DeploymentConfigRollbackSpec. + From points to a ReplicationController which is a deployment. + + :return: The _from of this V1DeploymentConfigRollbackSpec. + :rtype: V1ObjectReference + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1DeploymentConfigRollbackSpec. + From points to a ReplicationController which is a deployment. + + :param _from: The _from of this V1DeploymentConfigRollbackSpec. + :type: V1ObjectReference + """ + if _from is None: + raise ValueError("Invalid value for `_from`, must not be `None`") + + self.__from = _from + + @property + def include_replication_meta(self): + """ + Gets the include_replication_meta of this V1DeploymentConfigRollbackSpec. + IncludeReplicationMeta specifies whether to include the replica count and selector. + + :return: The include_replication_meta of this V1DeploymentConfigRollbackSpec. + :rtype: bool + """ + return self._include_replication_meta + + @include_replication_meta.setter + def include_replication_meta(self, include_replication_meta): + """ + Sets the include_replication_meta of this V1DeploymentConfigRollbackSpec. + IncludeReplicationMeta specifies whether to include the replica count and selector. + + :param include_replication_meta: The include_replication_meta of this V1DeploymentConfigRollbackSpec. + :type: bool + """ + if include_replication_meta is None: + raise ValueError("Invalid value for `include_replication_meta`, must not be `None`") + + self._include_replication_meta = include_replication_meta + + @property + def include_strategy(self): + """ + Gets the include_strategy of this V1DeploymentConfigRollbackSpec. + IncludeStrategy specifies whether to include the deployment Strategy. + + :return: The include_strategy of this V1DeploymentConfigRollbackSpec. + :rtype: bool + """ + return self._include_strategy + + @include_strategy.setter + def include_strategy(self, include_strategy): + """ + Sets the include_strategy of this V1DeploymentConfigRollbackSpec. + IncludeStrategy specifies whether to include the deployment Strategy. + + :param include_strategy: The include_strategy of this V1DeploymentConfigRollbackSpec. + :type: bool + """ + if include_strategy is None: + raise ValueError("Invalid value for `include_strategy`, must not be `None`") + + self._include_strategy = include_strategy + + @property + def include_template(self): + """ + Gets the include_template of this V1DeploymentConfigRollbackSpec. + IncludeTemplate specifies whether to include the PodTemplateSpec. + + :return: The include_template of this V1DeploymentConfigRollbackSpec. + :rtype: bool + """ + return self._include_template + + @include_template.setter + def include_template(self, include_template): + """ + Sets the include_template of this V1DeploymentConfigRollbackSpec. + IncludeTemplate specifies whether to include the PodTemplateSpec. + + :param include_template: The include_template of this V1DeploymentConfigRollbackSpec. + :type: bool + """ + if include_template is None: + raise ValueError("Invalid value for `include_template`, must not be `None`") + + self._include_template = include_template + + @property + def include_triggers(self): + """ + Gets the include_triggers of this V1DeploymentConfigRollbackSpec. + IncludeTriggers specifies whether to include config Triggers. + + :return: The include_triggers of this V1DeploymentConfigRollbackSpec. + :rtype: bool + """ + return self._include_triggers + + @include_triggers.setter + def include_triggers(self, include_triggers): + """ + Sets the include_triggers of this V1DeploymentConfigRollbackSpec. + IncludeTriggers specifies whether to include config Triggers. + + :param include_triggers: The include_triggers of this V1DeploymentConfigRollbackSpec. + :type: bool + """ + if include_triggers is None: + raise ValueError("Invalid value for `include_triggers`, must not be `None`") + + self._include_triggers = include_triggers + + @property + def revision(self): + """ + Gets the revision of this V1DeploymentConfigRollbackSpec. + Revision to rollback to. If set to 0, rollback to the last revision. + + :return: The revision of this V1DeploymentConfigRollbackSpec. + :rtype: int + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this V1DeploymentConfigRollbackSpec. + Revision to rollback to. If set to 0, rollback to the last revision. + + :param revision: The revision of this V1DeploymentConfigRollbackSpec. + :type: int + """ + + self._revision = revision + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentConfigRollbackSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_config_spec.py b/kubernetes/client/models/v1_deployment_config_spec.py new file mode 100644 index 0000000000..3f99b401a4 --- /dev/null +++ b/kubernetes/client/models/v1_deployment_config_spec.py @@ -0,0 +1,333 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentConfigSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, min_ready_seconds=None, paused=None, replicas=None, revision_history_limit=None, selector=None, strategy=None, template=None, test=None, triggers=None): + """ + V1DeploymentConfigSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'min_ready_seconds': 'int', + 'paused': 'bool', + 'replicas': 'int', + 'revision_history_limit': 'int', + 'selector': 'dict(str, str)', + 'strategy': 'V1DeploymentStrategy', + 'template': 'V1PodTemplateSpec', + 'test': 'bool', + 'triggers': 'list[V1DeploymentTriggerPolicy]' + } + + self.attribute_map = { + 'min_ready_seconds': 'minReadySeconds', + 'paused': 'paused', + 'replicas': 'replicas', + 'revision_history_limit': 'revisionHistoryLimit', + 'selector': 'selector', + 'strategy': 'strategy', + 'template': 'template', + 'test': 'test', + 'triggers': 'triggers' + } + + self._min_ready_seconds = min_ready_seconds + self._paused = paused + self._replicas = replicas + self._revision_history_limit = revision_history_limit + self._selector = selector + self._strategy = strategy + self._template = template + self._test = test + self._triggers = triggers + + @property + def min_ready_seconds(self): + """ + Gets the min_ready_seconds of this V1DeploymentConfigSpec. + MinReadySeconds is the minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + + :return: The min_ready_seconds of this V1DeploymentConfigSpec. + :rtype: int + """ + return self._min_ready_seconds + + @min_ready_seconds.setter + def min_ready_seconds(self, min_ready_seconds): + """ + Sets the min_ready_seconds of this V1DeploymentConfigSpec. + MinReadySeconds is the minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + + :param min_ready_seconds: The min_ready_seconds of this V1DeploymentConfigSpec. + :type: int + """ + + self._min_ready_seconds = min_ready_seconds + + @property + def paused(self): + """ + Gets the paused of this V1DeploymentConfigSpec. + Paused indicates that the deployment config is paused resulting in no new deployments on template changes or changes in the template caused by other triggers. + + :return: The paused of this V1DeploymentConfigSpec. + :rtype: bool + """ + return self._paused + + @paused.setter + def paused(self, paused): + """ + Sets the paused of this V1DeploymentConfigSpec. + Paused indicates that the deployment config is paused resulting in no new deployments on template changes or changes in the template caused by other triggers. + + :param paused: The paused of this V1DeploymentConfigSpec. + :type: bool + """ + + self._paused = paused + + @property + def replicas(self): + """ + Gets the replicas of this V1DeploymentConfigSpec. + Replicas is the number of desired replicas. + + :return: The replicas of this V1DeploymentConfigSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1DeploymentConfigSpec. + Replicas is the number of desired replicas. + + :param replicas: The replicas of this V1DeploymentConfigSpec. + :type: int + """ + if replicas is None: + raise ValueError("Invalid value for `replicas`, must not be `None`") + + self._replicas = replicas + + @property + def revision_history_limit(self): + """ + Gets the revision_history_limit of this V1DeploymentConfigSpec. + RevisionHistoryLimit is the number of old ReplicationControllers to retain to allow for rollbacks. This field is a pointer to allow for differentiation between an explicit zero and not specified. + + :return: The revision_history_limit of this V1DeploymentConfigSpec. + :rtype: int + """ + return self._revision_history_limit + + @revision_history_limit.setter + def revision_history_limit(self, revision_history_limit): + """ + Sets the revision_history_limit of this V1DeploymentConfigSpec. + RevisionHistoryLimit is the number of old ReplicationControllers to retain to allow for rollbacks. This field is a pointer to allow for differentiation between an explicit zero and not specified. + + :param revision_history_limit: The revision_history_limit of this V1DeploymentConfigSpec. + :type: int + """ + + self._revision_history_limit = revision_history_limit + + @property + def selector(self): + """ + Gets the selector of this V1DeploymentConfigSpec. + Selector is a label query over pods that should match the Replicas count. + + :return: The selector of this V1DeploymentConfigSpec. + :rtype: dict(str, str) + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1DeploymentConfigSpec. + Selector is a label query over pods that should match the Replicas count. + + :param selector: The selector of this V1DeploymentConfigSpec. + :type: dict(str, str) + """ + + self._selector = selector + + @property + def strategy(self): + """ + Gets the strategy of this V1DeploymentConfigSpec. + Strategy describes how a deployment is executed. + + :return: The strategy of this V1DeploymentConfigSpec. + :rtype: V1DeploymentStrategy + """ + return self._strategy + + @strategy.setter + def strategy(self, strategy): + """ + Sets the strategy of this V1DeploymentConfigSpec. + Strategy describes how a deployment is executed. + + :param strategy: The strategy of this V1DeploymentConfigSpec. + :type: V1DeploymentStrategy + """ + if strategy is None: + raise ValueError("Invalid value for `strategy`, must not be `None`") + + self._strategy = strategy + + @property + def template(self): + """ + Gets the template of this V1DeploymentConfigSpec. + Template is the object that describes the pod that will be created if insufficient replicas are detected. + + :return: The template of this V1DeploymentConfigSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1DeploymentConfigSpec. + Template is the object that describes the pod that will be created if insufficient replicas are detected. + + :param template: The template of this V1DeploymentConfigSpec. + :type: V1PodTemplateSpec + """ + + self._template = template + + @property + def test(self): + """ + Gets the test of this V1DeploymentConfigSpec. + Test ensures that this deployment config will have zero replicas except while a deployment is running. This allows the deployment config to be used as a continuous deployment test - triggering on images, running the deployment, and then succeeding or failing. Post strategy hooks and After actions can be used to integrate successful deployment with an action. + + :return: The test of this V1DeploymentConfigSpec. + :rtype: bool + """ + return self._test + + @test.setter + def test(self, test): + """ + Sets the test of this V1DeploymentConfigSpec. + Test ensures that this deployment config will have zero replicas except while a deployment is running. This allows the deployment config to be used as a continuous deployment test - triggering on images, running the deployment, and then succeeding or failing. Post strategy hooks and After actions can be used to integrate successful deployment with an action. + + :param test: The test of this V1DeploymentConfigSpec. + :type: bool + """ + if test is None: + raise ValueError("Invalid value for `test`, must not be `None`") + + self._test = test + + @property + def triggers(self): + """ + Gets the triggers of this V1DeploymentConfigSpec. + Triggers determine how updates to a DeploymentConfig result in new deployments. If no triggers are defined, a new deployment can only occur as a result of an explicit client update to the DeploymentConfig with a new LatestVersion. If null, defaults to having a config change trigger. + + :return: The triggers of this V1DeploymentConfigSpec. + :rtype: list[V1DeploymentTriggerPolicy] + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """ + Sets the triggers of this V1DeploymentConfigSpec. + Triggers determine how updates to a DeploymentConfig result in new deployments. If no triggers are defined, a new deployment can only occur as a result of an explicit client update to the DeploymentConfig with a new LatestVersion. If null, defaults to having a config change trigger. + + :param triggers: The triggers of this V1DeploymentConfigSpec. + :type: list[V1DeploymentTriggerPolicy] + """ + if triggers is None: + raise ValueError("Invalid value for `triggers`, must not be `None`") + + self._triggers = triggers + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentConfigSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_config_status.py b/kubernetes/client/models/v1_deployment_config_status.py new file mode 100644 index 0000000000..24e52d9bf9 --- /dev/null +++ b/kubernetes/client/models/v1_deployment_config_status.py @@ -0,0 +1,337 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentConfigStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, available_replicas=None, conditions=None, details=None, latest_version=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): + """ + V1DeploymentConfigStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'available_replicas': 'int', + 'conditions': 'list[V1DeploymentCondition]', + 'details': 'V1DeploymentDetails', + 'latest_version': 'int', + 'observed_generation': 'int', + 'ready_replicas': 'int', + 'replicas': 'int', + 'unavailable_replicas': 'int', + 'updated_replicas': 'int' + } + + self.attribute_map = { + 'available_replicas': 'availableReplicas', + 'conditions': 'conditions', + 'details': 'details', + 'latest_version': 'latestVersion', + 'observed_generation': 'observedGeneration', + 'ready_replicas': 'readyReplicas', + 'replicas': 'replicas', + 'unavailable_replicas': 'unavailableReplicas', + 'updated_replicas': 'updatedReplicas' + } + + self._available_replicas = available_replicas + self._conditions = conditions + self._details = details + self._latest_version = latest_version + self._observed_generation = observed_generation + self._ready_replicas = ready_replicas + self._replicas = replicas + self._unavailable_replicas = unavailable_replicas + self._updated_replicas = updated_replicas + + @property + def available_replicas(self): + """ + Gets the available_replicas of this V1DeploymentConfigStatus. + AvailableReplicas is the total number of available pods targeted by this deployment config. + + :return: The available_replicas of this V1DeploymentConfigStatus. + :rtype: int + """ + return self._available_replicas + + @available_replicas.setter + def available_replicas(self, available_replicas): + """ + Sets the available_replicas of this V1DeploymentConfigStatus. + AvailableReplicas is the total number of available pods targeted by this deployment config. + + :param available_replicas: The available_replicas of this V1DeploymentConfigStatus. + :type: int + """ + if available_replicas is None: + raise ValueError("Invalid value for `available_replicas`, must not be `None`") + + self._available_replicas = available_replicas + + @property + def conditions(self): + """ + Gets the conditions of this V1DeploymentConfigStatus. + Conditions represents the latest available observations of a deployment config's current state. + + :return: The conditions of this V1DeploymentConfigStatus. + :rtype: list[V1DeploymentCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1DeploymentConfigStatus. + Conditions represents the latest available observations of a deployment config's current state. + + :param conditions: The conditions of this V1DeploymentConfigStatus. + :type: list[V1DeploymentCondition] + """ + + self._conditions = conditions + + @property + def details(self): + """ + Gets the details of this V1DeploymentConfigStatus. + Details are the reasons for the update to this deployment config. This could be based on a change made by the user or caused by an automatic trigger + + :return: The details of this V1DeploymentConfigStatus. + :rtype: V1DeploymentDetails + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this V1DeploymentConfigStatus. + Details are the reasons for the update to this deployment config. This could be based on a change made by the user or caused by an automatic trigger + + :param details: The details of this V1DeploymentConfigStatus. + :type: V1DeploymentDetails + """ + + self._details = details + + @property + def latest_version(self): + """ + Gets the latest_version of this V1DeploymentConfigStatus. + LatestVersion is used to determine whether the current deployment associated with a deployment config is out of sync. + + :return: The latest_version of this V1DeploymentConfigStatus. + :rtype: int + """ + return self._latest_version + + @latest_version.setter + def latest_version(self, latest_version): + """ + Sets the latest_version of this V1DeploymentConfigStatus. + LatestVersion is used to determine whether the current deployment associated with a deployment config is out of sync. + + :param latest_version: The latest_version of this V1DeploymentConfigStatus. + :type: int + """ + if latest_version is None: + raise ValueError("Invalid value for `latest_version`, must not be `None`") + + self._latest_version = latest_version + + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1DeploymentConfigStatus. + ObservedGeneration is the most recent generation observed by the deployment config controller. + + :return: The observed_generation of this V1DeploymentConfigStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1DeploymentConfigStatus. + ObservedGeneration is the most recent generation observed by the deployment config controller. + + :param observed_generation: The observed_generation of this V1DeploymentConfigStatus. + :type: int + """ + if observed_generation is None: + raise ValueError("Invalid value for `observed_generation`, must not be `None`") + + self._observed_generation = observed_generation + + @property + def ready_replicas(self): + """ + Gets the ready_replicas of this V1DeploymentConfigStatus. + Total number of ready pods targeted by this deployment. + + :return: The ready_replicas of this V1DeploymentConfigStatus. + :rtype: int + """ + return self._ready_replicas + + @ready_replicas.setter + def ready_replicas(self, ready_replicas): + """ + Sets the ready_replicas of this V1DeploymentConfigStatus. + Total number of ready pods targeted by this deployment. + + :param ready_replicas: The ready_replicas of this V1DeploymentConfigStatus. + :type: int + """ + + self._ready_replicas = ready_replicas + + @property + def replicas(self): + """ + Gets the replicas of this V1DeploymentConfigStatus. + Replicas is the total number of pods targeted by this deployment config. + + :return: The replicas of this V1DeploymentConfigStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1DeploymentConfigStatus. + Replicas is the total number of pods targeted by this deployment config. + + :param replicas: The replicas of this V1DeploymentConfigStatus. + :type: int + """ + if replicas is None: + raise ValueError("Invalid value for `replicas`, must not be `None`") + + self._replicas = replicas + + @property + def unavailable_replicas(self): + """ + Gets the unavailable_replicas of this V1DeploymentConfigStatus. + UnavailableReplicas is the total number of unavailable pods targeted by this deployment config. + + :return: The unavailable_replicas of this V1DeploymentConfigStatus. + :rtype: int + """ + return self._unavailable_replicas + + @unavailable_replicas.setter + def unavailable_replicas(self, unavailable_replicas): + """ + Sets the unavailable_replicas of this V1DeploymentConfigStatus. + UnavailableReplicas is the total number of unavailable pods targeted by this deployment config. + + :param unavailable_replicas: The unavailable_replicas of this V1DeploymentConfigStatus. + :type: int + """ + if unavailable_replicas is None: + raise ValueError("Invalid value for `unavailable_replicas`, must not be `None`") + + self._unavailable_replicas = unavailable_replicas + + @property + def updated_replicas(self): + """ + Gets the updated_replicas of this V1DeploymentConfigStatus. + UpdatedReplicas is the total number of non-terminated pods targeted by this deployment config that have the desired template spec. + + :return: The updated_replicas of this V1DeploymentConfigStatus. + :rtype: int + """ + return self._updated_replicas + + @updated_replicas.setter + def updated_replicas(self, updated_replicas): + """ + Sets the updated_replicas of this V1DeploymentConfigStatus. + UpdatedReplicas is the total number of non-terminated pods targeted by this deployment config that have the desired template spec. + + :param updated_replicas: The updated_replicas of this V1DeploymentConfigStatus. + :type: int + """ + if updated_replicas is None: + raise ValueError("Invalid value for `updated_replicas`, must not be `None`") + + self._updated_replicas = updated_replicas + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentConfigStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_details.py b/kubernetes/client/models/v1_deployment_details.py new file mode 100644 index 0000000000..67a5aad0c4 --- /dev/null +++ b/kubernetes/client/models/v1_deployment_details.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, causes=None, message=None): + """ + V1DeploymentDetails - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'causes': 'list[V1DeploymentCause]', + 'message': 'str' + } + + self.attribute_map = { + 'causes': 'causes', + 'message': 'message' + } + + self._causes = causes + self._message = message + + @property + def causes(self): + """ + Gets the causes of this V1DeploymentDetails. + Causes are extended data associated with all the causes for creating a new deployment + + :return: The causes of this V1DeploymentDetails. + :rtype: list[V1DeploymentCause] + """ + return self._causes + + @causes.setter + def causes(self, causes): + """ + Sets the causes of this V1DeploymentDetails. + Causes are extended data associated with all the causes for creating a new deployment + + :param causes: The causes of this V1DeploymentDetails. + :type: list[V1DeploymentCause] + """ + if causes is None: + raise ValueError("Invalid value for `causes`, must not be `None`") + + self._causes = causes + + @property + def message(self): + """ + Gets the message of this V1DeploymentDetails. + Message is the user specified change message, if this deployment was triggered manually by the user + + :return: The message of this V1DeploymentDetails. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1DeploymentDetails. + Message is the user specified change message, if this deployment was triggered manually by the user + + :param message: The message of this V1DeploymentDetails. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_log.py b/kubernetes/client/models/v1_deployment_log.py new file mode 100644 index 0000000000..101cabc150 --- /dev/null +++ b/kubernetes/client/models/v1_deployment_log.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentLog(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None): + """ + V1DeploymentLog - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind' + } + + self._api_version = api_version + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1DeploymentLog. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1DeploymentLog. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1DeploymentLog. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1DeploymentLog. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1DeploymentLog. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1DeploymentLog. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1DeploymentLog. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1DeploymentLog. + :type: str + """ + + self._kind = kind + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentLog): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_request.py b/kubernetes/client/models/v1_deployment_request.py new file mode 100644 index 0000000000..5cee444fee --- /dev/null +++ b/kubernetes/client/models/v1_deployment_request.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentRequest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, force=None, kind=None, latest=None, name=None): + """ + V1DeploymentRequest - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'force': 'bool', + 'kind': 'str', + 'latest': 'bool', + 'name': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'force': 'force', + 'kind': 'kind', + 'latest': 'latest', + 'name': 'name' + } + + self._api_version = api_version + self._force = force + self._kind = kind + self._latest = latest + self._name = name + + @property + def api_version(self): + """ + Gets the api_version of this V1DeploymentRequest. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1DeploymentRequest. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1DeploymentRequest. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1DeploymentRequest. + :type: str + """ + + self._api_version = api_version + + @property + def force(self): + """ + Gets the force of this V1DeploymentRequest. + Force will try to force a new deployment to run. If the deployment config is paused, then setting this to true will return an Invalid error. + + :return: The force of this V1DeploymentRequest. + :rtype: bool + """ + return self._force + + @force.setter + def force(self, force): + """ + Sets the force of this V1DeploymentRequest. + Force will try to force a new deployment to run. If the deployment config is paused, then setting this to true will return an Invalid error. + + :param force: The force of this V1DeploymentRequest. + :type: bool + """ + if force is None: + raise ValueError("Invalid value for `force`, must not be `None`") + + self._force = force + + @property + def kind(self): + """ + Gets the kind of this V1DeploymentRequest. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1DeploymentRequest. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1DeploymentRequest. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1DeploymentRequest. + :type: str + """ + + self._kind = kind + + @property + def latest(self): + """ + Gets the latest of this V1DeploymentRequest. + Latest will update the deployment config with the latest state from all triggers. + + :return: The latest of this V1DeploymentRequest. + :rtype: bool + """ + return self._latest + + @latest.setter + def latest(self, latest): + """ + Sets the latest of this V1DeploymentRequest. + Latest will update the deployment config with the latest state from all triggers. + + :param latest: The latest of this V1DeploymentRequest. + :type: bool + """ + if latest is None: + raise ValueError("Invalid value for `latest`, must not be `None`") + + self._latest = latest + + @property + def name(self): + """ + Gets the name of this V1DeploymentRequest. + Name of the deployment config for requesting a new deployment. + + :return: The name of this V1DeploymentRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1DeploymentRequest. + Name of the deployment config for requesting a new deployment. + + :param name: The name of this V1DeploymentRequest. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_strategy.py b/kubernetes/client/models/v1_deployment_strategy.py new file mode 100644 index 0000000000..d55aef4046 --- /dev/null +++ b/kubernetes/client/models/v1_deployment_strategy.py @@ -0,0 +1,299 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, active_deadline_seconds=None, annotations=None, custom_params=None, labels=None, recreate_params=None, resources=None, rolling_params=None, type=None): + """ + V1DeploymentStrategy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'active_deadline_seconds': 'int', + 'annotations': 'dict(str, str)', + 'custom_params': 'V1CustomDeploymentStrategyParams', + 'labels': 'dict(str, str)', + 'recreate_params': 'V1RecreateDeploymentStrategyParams', + 'resources': 'V1ResourceRequirements', + 'rolling_params': 'V1RollingDeploymentStrategyParams', + 'type': 'str' + } + + self.attribute_map = { + 'active_deadline_seconds': 'activeDeadlineSeconds', + 'annotations': 'annotations', + 'custom_params': 'customParams', + 'labels': 'labels', + 'recreate_params': 'recreateParams', + 'resources': 'resources', + 'rolling_params': 'rollingParams', + 'type': 'type' + } + + self._active_deadline_seconds = active_deadline_seconds + self._annotations = annotations + self._custom_params = custom_params + self._labels = labels + self._recreate_params = recreate_params + self._resources = resources + self._rolling_params = rolling_params + self._type = type + + @property + def active_deadline_seconds(self): + """ + Gets the active_deadline_seconds of this V1DeploymentStrategy. + ActiveDeadlineSeconds is the duration in seconds that the deployer pods for this deployment config may be active on a node before the system actively tries to terminate them. + + :return: The active_deadline_seconds of this V1DeploymentStrategy. + :rtype: int + """ + return self._active_deadline_seconds + + @active_deadline_seconds.setter + def active_deadline_seconds(self, active_deadline_seconds): + """ + Sets the active_deadline_seconds of this V1DeploymentStrategy. + ActiveDeadlineSeconds is the duration in seconds that the deployer pods for this deployment config may be active on a node before the system actively tries to terminate them. + + :param active_deadline_seconds: The active_deadline_seconds of this V1DeploymentStrategy. + :type: int + """ + + self._active_deadline_seconds = active_deadline_seconds + + @property + def annotations(self): + """ + Gets the annotations of this V1DeploymentStrategy. + Annotations is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods. + + :return: The annotations of this V1DeploymentStrategy. + :rtype: dict(str, str) + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """ + Sets the annotations of this V1DeploymentStrategy. + Annotations is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods. + + :param annotations: The annotations of this V1DeploymentStrategy. + :type: dict(str, str) + """ + + self._annotations = annotations + + @property + def custom_params(self): + """ + Gets the custom_params of this V1DeploymentStrategy. + CustomParams are the input to the Custom deployment strategy, and may also be specified for the Recreate and Rolling strategies to customize the execution process that runs the deployment. + + :return: The custom_params of this V1DeploymentStrategy. + :rtype: V1CustomDeploymentStrategyParams + """ + return self._custom_params + + @custom_params.setter + def custom_params(self, custom_params): + """ + Sets the custom_params of this V1DeploymentStrategy. + CustomParams are the input to the Custom deployment strategy, and may also be specified for the Recreate and Rolling strategies to customize the execution process that runs the deployment. + + :param custom_params: The custom_params of this V1DeploymentStrategy. + :type: V1CustomDeploymentStrategyParams + """ + + self._custom_params = custom_params + + @property + def labels(self): + """ + Gets the labels of this V1DeploymentStrategy. + Labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods. + + :return: The labels of this V1DeploymentStrategy. + :rtype: dict(str, str) + """ + return self._labels + + @labels.setter + def labels(self, labels): + """ + Sets the labels of this V1DeploymentStrategy. + Labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods. + + :param labels: The labels of this V1DeploymentStrategy. + :type: dict(str, str) + """ + + self._labels = labels + + @property + def recreate_params(self): + """ + Gets the recreate_params of this V1DeploymentStrategy. + RecreateParams are the input to the Recreate deployment strategy. + + :return: The recreate_params of this V1DeploymentStrategy. + :rtype: V1RecreateDeploymentStrategyParams + """ + return self._recreate_params + + @recreate_params.setter + def recreate_params(self, recreate_params): + """ + Sets the recreate_params of this V1DeploymentStrategy. + RecreateParams are the input to the Recreate deployment strategy. + + :param recreate_params: The recreate_params of this V1DeploymentStrategy. + :type: V1RecreateDeploymentStrategyParams + """ + + self._recreate_params = recreate_params + + @property + def resources(self): + """ + Gets the resources of this V1DeploymentStrategy. + Resources contains resource requirements to execute the deployment and any hooks. + + :return: The resources of this V1DeploymentStrategy. + :rtype: V1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1DeploymentStrategy. + Resources contains resource requirements to execute the deployment and any hooks. + + :param resources: The resources of this V1DeploymentStrategy. + :type: V1ResourceRequirements + """ + + self._resources = resources + + @property + def rolling_params(self): + """ + Gets the rolling_params of this V1DeploymentStrategy. + RollingParams are the input to the Rolling deployment strategy. + + :return: The rolling_params of this V1DeploymentStrategy. + :rtype: V1RollingDeploymentStrategyParams + """ + return self._rolling_params + + @rolling_params.setter + def rolling_params(self, rolling_params): + """ + Sets the rolling_params of this V1DeploymentStrategy. + RollingParams are the input to the Rolling deployment strategy. + + :param rolling_params: The rolling_params of this V1DeploymentStrategy. + :type: V1RollingDeploymentStrategyParams + """ + + self._rolling_params = rolling_params + + @property + def type(self): + """ + Gets the type of this V1DeploymentStrategy. + Type is the name of a deployment strategy. + + :return: The type of this V1DeploymentStrategy. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1DeploymentStrategy. + Type is the name of a deployment strategy. + + :param type: The type of this V1DeploymentStrategy. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_trigger_image_change_params.py b/kubernetes/client/models/v1_deployment_trigger_image_change_params.py new file mode 100644 index 0000000000..67a97e4b03 --- /dev/null +++ b/kubernetes/client/models/v1_deployment_trigger_image_change_params.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentTriggerImageChangeParams(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, automatic=None, container_names=None, _from=None, last_triggered_image=None): + """ + V1DeploymentTriggerImageChangeParams - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'automatic': 'bool', + 'container_names': 'list[str]', + '_from': 'V1ObjectReference', + 'last_triggered_image': 'str' + } + + self.attribute_map = { + 'automatic': 'automatic', + 'container_names': 'containerNames', + '_from': 'from', + 'last_triggered_image': 'lastTriggeredImage' + } + + self._automatic = automatic + self._container_names = container_names + self.__from = _from + self._last_triggered_image = last_triggered_image + + @property + def automatic(self): + """ + Gets the automatic of this V1DeploymentTriggerImageChangeParams. + Automatic means that the detection of a new tag value should result in an image update inside the pod template. + + :return: The automatic of this V1DeploymentTriggerImageChangeParams. + :rtype: bool + """ + return self._automatic + + @automatic.setter + def automatic(self, automatic): + """ + Sets the automatic of this V1DeploymentTriggerImageChangeParams. + Automatic means that the detection of a new tag value should result in an image update inside the pod template. + + :param automatic: The automatic of this V1DeploymentTriggerImageChangeParams. + :type: bool + """ + + self._automatic = automatic + + @property + def container_names(self): + """ + Gets the container_names of this V1DeploymentTriggerImageChangeParams. + ContainerNames is used to restrict tag updates to the specified set of container names in a pod. + + :return: The container_names of this V1DeploymentTriggerImageChangeParams. + :rtype: list[str] + """ + return self._container_names + + @container_names.setter + def container_names(self, container_names): + """ + Sets the container_names of this V1DeploymentTriggerImageChangeParams. + ContainerNames is used to restrict tag updates to the specified set of container names in a pod. + + :param container_names: The container_names of this V1DeploymentTriggerImageChangeParams. + :type: list[str] + """ + + self._container_names = container_names + + @property + def _from(self): + """ + Gets the _from of this V1DeploymentTriggerImageChangeParams. + From is a reference to an image stream tag to watch for changes. From.Name is the only required subfield - if From.Namespace is blank, the namespace of the current deployment trigger will be used. + + :return: The _from of this V1DeploymentTriggerImageChangeParams. + :rtype: V1ObjectReference + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1DeploymentTriggerImageChangeParams. + From is a reference to an image stream tag to watch for changes. From.Name is the only required subfield - if From.Namespace is blank, the namespace of the current deployment trigger will be used. + + :param _from: The _from of this V1DeploymentTriggerImageChangeParams. + :type: V1ObjectReference + """ + if _from is None: + raise ValueError("Invalid value for `_from`, must not be `None`") + + self.__from = _from + + @property + def last_triggered_image(self): + """ + Gets the last_triggered_image of this V1DeploymentTriggerImageChangeParams. + LastTriggeredImage is the last image to be triggered. + + :return: The last_triggered_image of this V1DeploymentTriggerImageChangeParams. + :rtype: str + """ + return self._last_triggered_image + + @last_triggered_image.setter + def last_triggered_image(self, last_triggered_image): + """ + Sets the last_triggered_image of this V1DeploymentTriggerImageChangeParams. + LastTriggeredImage is the last image to be triggered. + + :param last_triggered_image: The last_triggered_image of this V1DeploymentTriggerImageChangeParams. + :type: str + """ + + self._last_triggered_image = last_triggered_image + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentTriggerImageChangeParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deployment_trigger_policy.py b/kubernetes/client/models/v1_deployment_trigger_policy.py new file mode 100644 index 0000000000..500d4531f4 --- /dev/null +++ b/kubernetes/client/models/v1_deployment_trigger_policy.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeploymentTriggerPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, image_change_params=None, type=None): + """ + V1DeploymentTriggerPolicy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'image_change_params': 'V1DeploymentTriggerImageChangeParams', + 'type': 'str' + } + + self.attribute_map = { + 'image_change_params': 'imageChangeParams', + 'type': 'type' + } + + self._image_change_params = image_change_params + self._type = type + + @property + def image_change_params(self): + """ + Gets the image_change_params of this V1DeploymentTriggerPolicy. + ImageChangeParams represents the parameters for the ImageChange trigger. + + :return: The image_change_params of this V1DeploymentTriggerPolicy. + :rtype: V1DeploymentTriggerImageChangeParams + """ + return self._image_change_params + + @image_change_params.setter + def image_change_params(self, image_change_params): + """ + Sets the image_change_params of this V1DeploymentTriggerPolicy. + ImageChangeParams represents the parameters for the ImageChange trigger. + + :param image_change_params: The image_change_params of this V1DeploymentTriggerPolicy. + :type: V1DeploymentTriggerImageChangeParams + """ + + self._image_change_params = image_change_params + + @property + def type(self): + """ + Gets the type of this V1DeploymentTriggerPolicy. + Type of the trigger + + :return: The type of this V1DeploymentTriggerPolicy. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1DeploymentTriggerPolicy. + Type of the trigger + + :param type: The type of this V1DeploymentTriggerPolicy. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeploymentTriggerPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deprecated_downward_api_volume_file.py b/kubernetes/client/models/v1_deprecated_downward_api_volume_file.py new file mode 100644 index 0000000000..43a80aab4b --- /dev/null +++ b/kubernetes/client/models/v1_deprecated_downward_api_volume_file.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeprecatedDownwardAPIVolumeFile(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, field_ref=None, mode=None, name=None, resource_field_ref=None): + """ + V1DeprecatedDownwardAPIVolumeFile - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'field_ref': 'V1ObjectFieldSelector', + 'mode': 'int', + 'name': 'str', + 'resource_field_ref': 'V1ResourceFieldSelector' + } + + self.attribute_map = { + 'field_ref': 'fieldRef', + 'mode': 'mode', + 'name': 'name', + 'resource_field_ref': 'resourceFieldRef' + } + + self._field_ref = field_ref + self._mode = mode + self._name = name + self._resource_field_ref = resource_field_ref + + @property + def field_ref(self): + """ + Gets the field_ref of this V1DeprecatedDownwardAPIVolumeFile. + Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + + :return: The field_ref of this V1DeprecatedDownwardAPIVolumeFile. + :rtype: V1ObjectFieldSelector + """ + return self._field_ref + + @field_ref.setter + def field_ref(self, field_ref): + """ + Sets the field_ref of this V1DeprecatedDownwardAPIVolumeFile. + Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + + :param field_ref: The field_ref of this V1DeprecatedDownwardAPIVolumeFile. + :type: V1ObjectFieldSelector + """ + + self._field_ref = field_ref + + @property + def mode(self): + """ + Gets the mode of this V1DeprecatedDownwardAPIVolumeFile. + Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + + :return: The mode of this V1DeprecatedDownwardAPIVolumeFile. + :rtype: int + """ + return self._mode + + @mode.setter + def mode(self, mode): + """ + Sets the mode of this V1DeprecatedDownwardAPIVolumeFile. + Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + + :param mode: The mode of this V1DeprecatedDownwardAPIVolumeFile. + :type: int + """ + + self._mode = mode + + @property + def name(self): + """ + Gets the name of this V1DeprecatedDownwardAPIVolumeFile. + Required: Name is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + + :return: The name of this V1DeprecatedDownwardAPIVolumeFile. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1DeprecatedDownwardAPIVolumeFile. + Required: Name is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + + :param name: The name of this V1DeprecatedDownwardAPIVolumeFile. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def resource_field_ref(self): + """ + Gets the resource_field_ref of this V1DeprecatedDownwardAPIVolumeFile. + Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + :return: The resource_field_ref of this V1DeprecatedDownwardAPIVolumeFile. + :rtype: V1ResourceFieldSelector + """ + return self._resource_field_ref + + @resource_field_ref.setter + def resource_field_ref(self, resource_field_ref): + """ + Sets the resource_field_ref of this V1DeprecatedDownwardAPIVolumeFile. + Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + :param resource_field_ref: The resource_field_ref of this V1DeprecatedDownwardAPIVolumeFile. + :type: V1ResourceFieldSelector + """ + + self._resource_field_ref = resource_field_ref + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeprecatedDownwardAPIVolumeFile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_deprecated_downward_api_volume_source.py b/kubernetes/client/models/v1_deprecated_downward_api_volume_source.py new file mode 100644 index 0000000000..1a5c3e822d --- /dev/null +++ b/kubernetes/client/models/v1_deprecated_downward_api_volume_source.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeprecatedDownwardAPIVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, default_mode=None, items=None): + """ + V1DeprecatedDownwardAPIVolumeSource - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'default_mode': 'int', + 'items': 'list[V1DeprecatedDownwardAPIVolumeFile]' + } + + self.attribute_map = { + 'default_mode': 'defaultMode', + 'items': 'items' + } + + self._default_mode = default_mode + self._items = items + + @property + def default_mode(self): + """ + Gets the default_mode of this V1DeprecatedDownwardAPIVolumeSource. + Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + + :return: The default_mode of this V1DeprecatedDownwardAPIVolumeSource. + :rtype: int + """ + return self._default_mode + + @default_mode.setter + def default_mode(self, default_mode): + """ + Sets the default_mode of this V1DeprecatedDownwardAPIVolumeSource. + Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + + :param default_mode: The default_mode of this V1DeprecatedDownwardAPIVolumeSource. + :type: int + """ + + self._default_mode = default_mode + + @property + def items(self): + """ + Gets the items of this V1DeprecatedDownwardAPIVolumeSource. + Items is a list of downward API volume file + + :return: The items of this V1DeprecatedDownwardAPIVolumeSource. + :rtype: list[V1DeprecatedDownwardAPIVolumeFile] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1DeprecatedDownwardAPIVolumeSource. + Items is a list of downward API volume file + + :param items: The items of this V1DeprecatedDownwardAPIVolumeSource. + :type: list[V1DeprecatedDownwardAPIVolumeFile] + """ + + self._items = items + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DeprecatedDownwardAPIVolumeSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_docker_build_strategy.py b/kubernetes/client/models/v1_docker_build_strategy.py new file mode 100644 index 0000000000..8dcb6c05f6 --- /dev/null +++ b/kubernetes/client/models/v1_docker_build_strategy.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DockerBuildStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, dockerfile_path=None, env=None, force_pull=None, _from=None, no_cache=None, pull_secret=None): + """ + V1DockerBuildStrategy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'dockerfile_path': 'str', + 'env': 'list[V1EnvVar]', + 'force_pull': 'bool', + '_from': 'V1ObjectReference', + 'no_cache': 'bool', + 'pull_secret': 'V1LocalObjectReference' + } + + self.attribute_map = { + 'dockerfile_path': 'dockerfilePath', + 'env': 'env', + 'force_pull': 'forcePull', + '_from': 'from', + 'no_cache': 'noCache', + 'pull_secret': 'pullSecret' + } + + self._dockerfile_path = dockerfile_path + self._env = env + self._force_pull = force_pull + self.__from = _from + self._no_cache = no_cache + self._pull_secret = pull_secret + + @property + def dockerfile_path(self): + """ + Gets the dockerfile_path of this V1DockerBuildStrategy. + dockerfilePath is the path of the Dockerfile that will be used to build the Docker image, relative to the root of the context (contextDir). + + :return: The dockerfile_path of this V1DockerBuildStrategy. + :rtype: str + """ + return self._dockerfile_path + + @dockerfile_path.setter + def dockerfile_path(self, dockerfile_path): + """ + Sets the dockerfile_path of this V1DockerBuildStrategy. + dockerfilePath is the path of the Dockerfile that will be used to build the Docker image, relative to the root of the context (contextDir). + + :param dockerfile_path: The dockerfile_path of this V1DockerBuildStrategy. + :type: str + """ + + self._dockerfile_path = dockerfile_path + + @property + def env(self): + """ + Gets the env of this V1DockerBuildStrategy. + env contains additional environment variables you want to pass into a builder container + + :return: The env of this V1DockerBuildStrategy. + :rtype: list[V1EnvVar] + """ + return self._env + + @env.setter + def env(self, env): + """ + Sets the env of this V1DockerBuildStrategy. + env contains additional environment variables you want to pass into a builder container + + :param env: The env of this V1DockerBuildStrategy. + :type: list[V1EnvVar] + """ + + self._env = env + + @property + def force_pull(self): + """ + Gets the force_pull of this V1DockerBuildStrategy. + forcePull describes if the builder should pull the images from registry prior to building. + + :return: The force_pull of this V1DockerBuildStrategy. + :rtype: bool + """ + return self._force_pull + + @force_pull.setter + def force_pull(self, force_pull): + """ + Sets the force_pull of this V1DockerBuildStrategy. + forcePull describes if the builder should pull the images from registry prior to building. + + :param force_pull: The force_pull of this V1DockerBuildStrategy. + :type: bool + """ + + self._force_pull = force_pull + + @property + def _from(self): + """ + Gets the _from of this V1DockerBuildStrategy. + from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the docker image should be pulled the resulting image will be used in the FROM line of the Dockerfile for this build. + + :return: The _from of this V1DockerBuildStrategy. + :rtype: V1ObjectReference + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1DockerBuildStrategy. + from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the docker image should be pulled the resulting image will be used in the FROM line of the Dockerfile for this build. + + :param _from: The _from of this V1DockerBuildStrategy. + :type: V1ObjectReference + """ + + self.__from = _from + + @property + def no_cache(self): + """ + Gets the no_cache of this V1DockerBuildStrategy. + noCache if set to true indicates that the docker build must be executed with the --no-cache=true flag + + :return: The no_cache of this V1DockerBuildStrategy. + :rtype: bool + """ + return self._no_cache + + @no_cache.setter + def no_cache(self, no_cache): + """ + Sets the no_cache of this V1DockerBuildStrategy. + noCache if set to true indicates that the docker build must be executed with the --no-cache=true flag + + :param no_cache: The no_cache of this V1DockerBuildStrategy. + :type: bool + """ + + self._no_cache = no_cache + + @property + def pull_secret(self): + """ + Gets the pull_secret of this V1DockerBuildStrategy. + pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the Docker images from the private Docker registries + + :return: The pull_secret of this V1DockerBuildStrategy. + :rtype: V1LocalObjectReference + """ + return self._pull_secret + + @pull_secret.setter + def pull_secret(self, pull_secret): + """ + Sets the pull_secret of this V1DockerBuildStrategy. + pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the Docker images from the private Docker registries + + :param pull_secret: The pull_secret of this V1DockerBuildStrategy. + :type: V1LocalObjectReference + """ + + self._pull_secret = pull_secret + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1DockerBuildStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_downward_api_projection.py b/kubernetes/client/models/v1_downward_api_projection.py deleted file mode 100644 index 16d4d150dc..0000000000 --- a/kubernetes/client/models/v1_downward_api_projection.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1DownwardAPIProjection(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, items=None): - """ - V1DownwardAPIProjection - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[V1DownwardAPIVolumeFile]' - } - - self.attribute_map = { - 'items': 'items' - } - - self._items = items - - @property - def items(self): - """ - Gets the items of this V1DownwardAPIProjection. - Items is a list of DownwardAPIVolume file - - :return: The items of this V1DownwardAPIProjection. - :rtype: list[V1DownwardAPIVolumeFile] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1DownwardAPIProjection. - Items is a list of DownwardAPIVolume file - - :param items: The items of this V1DownwardAPIProjection. - :type: list[V1DownwardAPIVolumeFile] - """ - - self._items = items - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1DownwardAPIProjection): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_downward_api_volume_file.py b/kubernetes/client/models/v1_downward_api_volume_file.py index a7a46ff30e..4191a5338b 100644 --- a/kubernetes/client/models/v1_downward_api_volume_file.py +++ b/kubernetes/client/models/v1_downward_api_volume_file.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_downward_api_volume_source.py b/kubernetes/client/models/v1_downward_api_volume_source.py index e3ab4dbc4b..c157379bf1 100644 --- a/kubernetes/client/models/v1_downward_api_volume_source.py +++ b/kubernetes/client/models/v1_downward_api_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_egress_network_policy.py b/kubernetes/client/models/v1_egress_network_policy.py new file mode 100644 index 0000000000..1a4a4f5952 --- /dev/null +++ b/kubernetes/client/models/v1_egress_network_policy.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1EgressNetworkPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): + """ + V1EgressNetworkPolicy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1EgressNetworkPolicySpec' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + + @property + def api_version(self): + """ + Gets the api_version of this V1EgressNetworkPolicy. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1EgressNetworkPolicy. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1EgressNetworkPolicy. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1EgressNetworkPolicy. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1EgressNetworkPolicy. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1EgressNetworkPolicy. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1EgressNetworkPolicy. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1EgressNetworkPolicy. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1EgressNetworkPolicy. + metadata for EgressNetworkPolicy + + :return: The metadata of this V1EgressNetworkPolicy. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1EgressNetworkPolicy. + metadata for EgressNetworkPolicy + + :param metadata: The metadata of this V1EgressNetworkPolicy. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1EgressNetworkPolicy. + spec is the specification of the current egress network policy + + :return: The spec of this V1EgressNetworkPolicy. + :rtype: V1EgressNetworkPolicySpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1EgressNetworkPolicy. + spec is the specification of the current egress network policy + + :param spec: The spec of this V1EgressNetworkPolicy. + :type: V1EgressNetworkPolicySpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1EgressNetworkPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_egress_network_policy_list.py b/kubernetes/client/models/v1_egress_network_policy_list.py new file mode 100644 index 0000000000..2591774fbd --- /dev/null +++ b/kubernetes/client/models/v1_egress_network_policy_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1EgressNetworkPolicyList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1EgressNetworkPolicyList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1EgressNetworkPolicy]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1EgressNetworkPolicyList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1EgressNetworkPolicyList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1EgressNetworkPolicyList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1EgressNetworkPolicyList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1EgressNetworkPolicyList. + items is the list of policies + + :return: The items of this V1EgressNetworkPolicyList. + :rtype: list[V1EgressNetworkPolicy] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1EgressNetworkPolicyList. + items is the list of policies + + :param items: The items of this V1EgressNetworkPolicyList. + :type: list[V1EgressNetworkPolicy] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1EgressNetworkPolicyList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1EgressNetworkPolicyList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1EgressNetworkPolicyList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1EgressNetworkPolicyList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1EgressNetworkPolicyList. + metadata for EgressNetworkPolicyList + + :return: The metadata of this V1EgressNetworkPolicyList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1EgressNetworkPolicyList. + metadata for EgressNetworkPolicyList + + :param metadata: The metadata of this V1EgressNetworkPolicyList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1EgressNetworkPolicyList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_egress_network_policy_peer.py b/kubernetes/client/models/v1_egress_network_policy_peer.py new file mode 100644 index 0000000000..e369fe25d2 --- /dev/null +++ b/kubernetes/client/models/v1_egress_network_policy_peer.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1EgressNetworkPolicyPeer(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, cidr_selector=None): + """ + V1EgressNetworkPolicyPeer - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'cidr_selector': 'str' + } + + self.attribute_map = { + 'cidr_selector': 'cidrSelector' + } + + self._cidr_selector = cidr_selector + + @property + def cidr_selector(self): + """ + Gets the cidr_selector of this V1EgressNetworkPolicyPeer. + cidrSelector is the CIDR range to allow/deny traffic to + + :return: The cidr_selector of this V1EgressNetworkPolicyPeer. + :rtype: str + """ + return self._cidr_selector + + @cidr_selector.setter + def cidr_selector(self, cidr_selector): + """ + Sets the cidr_selector of this V1EgressNetworkPolicyPeer. + cidrSelector is the CIDR range to allow/deny traffic to + + :param cidr_selector: The cidr_selector of this V1EgressNetworkPolicyPeer. + :type: str + """ + if cidr_selector is None: + raise ValueError("Invalid value for `cidr_selector`, must not be `None`") + + self._cidr_selector = cidr_selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1EgressNetworkPolicyPeer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_egress_network_policy_rule.py b/kubernetes/client/models/v1_egress_network_policy_rule.py new file mode 100644 index 0000000000..32db92084c --- /dev/null +++ b/kubernetes/client/models/v1_egress_network_policy_rule.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1EgressNetworkPolicyRule(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, to=None, type=None): + """ + V1EgressNetworkPolicyRule - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'to': 'V1EgressNetworkPolicyPeer', + 'type': 'str' + } + + self.attribute_map = { + 'to': 'to', + 'type': 'type' + } + + self._to = to + self._type = type + + @property + def to(self): + """ + Gets the to of this V1EgressNetworkPolicyRule. + to is the target that traffic is allowed/denied to + + :return: The to of this V1EgressNetworkPolicyRule. + :rtype: V1EgressNetworkPolicyPeer + """ + return self._to + + @to.setter + def to(self, to): + """ + Sets the to of this V1EgressNetworkPolicyRule. + to is the target that traffic is allowed/denied to + + :param to: The to of this V1EgressNetworkPolicyRule. + :type: V1EgressNetworkPolicyPeer + """ + if to is None: + raise ValueError("Invalid value for `to`, must not be `None`") + + self._to = to + + @property + def type(self): + """ + Gets the type of this V1EgressNetworkPolicyRule. + type marks this as an \"Allow\" or \"Deny\" rule + + :return: The type of this V1EgressNetworkPolicyRule. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1EgressNetworkPolicyRule. + type marks this as an \"Allow\" or \"Deny\" rule + + :param type: The type of this V1EgressNetworkPolicyRule. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1EgressNetworkPolicyRule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_egress_network_policy_spec.py b/kubernetes/client/models/v1_egress_network_policy_spec.py new file mode 100644 index 0000000000..ce49dafd89 --- /dev/null +++ b/kubernetes/client/models/v1_egress_network_policy_spec.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1EgressNetworkPolicySpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, egress=None): + """ + V1EgressNetworkPolicySpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'egress': 'list[V1EgressNetworkPolicyRule]' + } + + self.attribute_map = { + 'egress': 'egress' + } + + self._egress = egress + + @property + def egress(self): + """ + Gets the egress of this V1EgressNetworkPolicySpec. + egress contains the list of egress policy rules + + :return: The egress of this V1EgressNetworkPolicySpec. + :rtype: list[V1EgressNetworkPolicyRule] + """ + return self._egress + + @egress.setter + def egress(self, egress): + """ + Sets the egress of this V1EgressNetworkPolicySpec. + egress contains the list of egress policy rules + + :param egress: The egress of this V1EgressNetworkPolicySpec. + :type: list[V1EgressNetworkPolicyRule] + """ + if egress is None: + raise ValueError("Invalid value for `egress`, must not be `None`") + + self._egress = egress + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1EgressNetworkPolicySpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_empty_dir_volume_source.py b/kubernetes/client/models/v1_empty_dir_volume_source.py index 0bfa8a0fd5..a94232a7d4 100644 --- a/kubernetes/client/models/v1_empty_dir_volume_source.py +++ b/kubernetes/client/models/v1_empty_dir_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_endpoint_address.py b/kubernetes/client/models/v1_endpoint_address.py index 64756738c5..3342336ee7 100644 --- a/kubernetes/client/models/v1_endpoint_address.py +++ b/kubernetes/client/models/v1_endpoint_address.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_endpoint_port.py b/kubernetes/client/models/v1_endpoint_port.py index e239ed3841..1b8b422c77 100644 --- a/kubernetes/client/models/v1_endpoint_port.py +++ b/kubernetes/client/models/v1_endpoint_port.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_endpoint_subset.py b/kubernetes/client/models/v1_endpoint_subset.py index ea8dc77104..fc70212ec1 100644 --- a/kubernetes/client/models/v1_endpoint_subset.py +++ b/kubernetes/client/models/v1_endpoint_subset.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_endpoints.py b/kubernetes/client/models/v1_endpoints.py index 09876472e9..933c424a35 100644 --- a/kubernetes/client/models/v1_endpoints.py +++ b/kubernetes/client/models/v1_endpoints.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_endpoints_list.py b/kubernetes/client/models/v1_endpoints_list.py index 45f80c197e..3428893d4f 100644 --- a/kubernetes/client/models/v1_endpoints_list.py +++ b/kubernetes/client/models/v1_endpoints_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Endpoints]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1EndpointsList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1EndpointsList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_env_from_source.py b/kubernetes/client/models/v1_env_from_source.py deleted file mode 100644 index 71671d7d38..0000000000 --- a/kubernetes/client/models/v1_env_from_source.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1EnvFromSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, config_map_ref=None, prefix=None, secret_ref=None): - """ - V1EnvFromSource - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'config_map_ref': 'V1ConfigMapEnvSource', - 'prefix': 'str', - 'secret_ref': 'V1SecretEnvSource' - } - - self.attribute_map = { - 'config_map_ref': 'configMapRef', - 'prefix': 'prefix', - 'secret_ref': 'secretRef' - } - - self._config_map_ref = config_map_ref - self._prefix = prefix - self._secret_ref = secret_ref - - @property - def config_map_ref(self): - """ - Gets the config_map_ref of this V1EnvFromSource. - The ConfigMap to select from - - :return: The config_map_ref of this V1EnvFromSource. - :rtype: V1ConfigMapEnvSource - """ - return self._config_map_ref - - @config_map_ref.setter - def config_map_ref(self, config_map_ref): - """ - Sets the config_map_ref of this V1EnvFromSource. - The ConfigMap to select from - - :param config_map_ref: The config_map_ref of this V1EnvFromSource. - :type: V1ConfigMapEnvSource - """ - - self._config_map_ref = config_map_ref - - @property - def prefix(self): - """ - Gets the prefix of this V1EnvFromSource. - An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - - :return: The prefix of this V1EnvFromSource. - :rtype: str - """ - return self._prefix - - @prefix.setter - def prefix(self, prefix): - """ - Sets the prefix of this V1EnvFromSource. - An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - - :param prefix: The prefix of this V1EnvFromSource. - :type: str - """ - - self._prefix = prefix - - @property - def secret_ref(self): - """ - Gets the secret_ref of this V1EnvFromSource. - The Secret to select from - - :return: The secret_ref of this V1EnvFromSource. - :rtype: V1SecretEnvSource - """ - return self._secret_ref - - @secret_ref.setter - def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1EnvFromSource. - The Secret to select from - - :param secret_ref: The secret_ref of this V1EnvFromSource. - :type: V1SecretEnvSource - """ - - self._secret_ref = secret_ref - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1EnvFromSource): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_env_var.py b/kubernetes/client/models/v1_env_var.py index 436e52247a..2d98a08330 100644 --- a/kubernetes/client/models/v1_env_var.py +++ b/kubernetes/client/models/v1_env_var.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_env_var_source.py b/kubernetes/client/models/v1_env_var_source.py index 1ced7752bf..a36a200df1 100644 --- a/kubernetes/client/models/v1_env_var_source.py +++ b/kubernetes/client/models/v1_env_var_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_event.py b/kubernetes/client/models/v1_event.py index 1cbb1e4703..f02814e47e 100644 --- a/kubernetes/client/models/v1_event.py +++ b/kubernetes/client/models/v1_event.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_event_list.py b/kubernetes/client/models/v1_event_list.py index 984730224d..227cf68e0c 100644 --- a/kubernetes/client/models/v1_event_list.py +++ b/kubernetes/client/models/v1_event_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Event]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1EventList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1EventList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_event_source.py b/kubernetes/client/models/v1_event_source.py index 08ad1fe0a0..2e173fa1e7 100644 --- a/kubernetes/client/models/v1_event_source.py +++ b/kubernetes/client/models/v1_event_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_exec_action.py b/kubernetes/client/models/v1_exec_action.py index b7d5646054..a7e5e87b75 100644 --- a/kubernetes/client/models/v1_exec_action.py +++ b/kubernetes/client/models/v1_exec_action.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_exec_new_pod_hook.py b/kubernetes/client/models/v1_exec_new_pod_hook.py new file mode 100644 index 0000000000..b79b7e6248 --- /dev/null +++ b/kubernetes/client/models/v1_exec_new_pod_hook.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ExecNewPodHook(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, command=None, container_name=None, env=None, volumes=None): + """ + V1ExecNewPodHook - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'command': 'list[str]', + 'container_name': 'str', + 'env': 'list[V1EnvVar]', + 'volumes': 'list[str]' + } + + self.attribute_map = { + 'command': 'command', + 'container_name': 'containerName', + 'env': 'env', + 'volumes': 'volumes' + } + + self._command = command + self._container_name = container_name + self._env = env + self._volumes = volumes + + @property + def command(self): + """ + Gets the command of this V1ExecNewPodHook. + Command is the action command and its arguments. + + :return: The command of this V1ExecNewPodHook. + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """ + Sets the command of this V1ExecNewPodHook. + Command is the action command and its arguments. + + :param command: The command of this V1ExecNewPodHook. + :type: list[str] + """ + if command is None: + raise ValueError("Invalid value for `command`, must not be `None`") + + self._command = command + + @property + def container_name(self): + """ + Gets the container_name of this V1ExecNewPodHook. + ContainerName is the name of a container in the deployment pod template whose Docker image will be used for the hook pod's container. + + :return: The container_name of this V1ExecNewPodHook. + :rtype: str + """ + return self._container_name + + @container_name.setter + def container_name(self, container_name): + """ + Sets the container_name of this V1ExecNewPodHook. + ContainerName is the name of a container in the deployment pod template whose Docker image will be used for the hook pod's container. + + :param container_name: The container_name of this V1ExecNewPodHook. + :type: str + """ + if container_name is None: + raise ValueError("Invalid value for `container_name`, must not be `None`") + + self._container_name = container_name + + @property + def env(self): + """ + Gets the env of this V1ExecNewPodHook. + Env is a set of environment variables to supply to the hook pod's container. + + :return: The env of this V1ExecNewPodHook. + :rtype: list[V1EnvVar] + """ + return self._env + + @env.setter + def env(self, env): + """ + Sets the env of this V1ExecNewPodHook. + Env is a set of environment variables to supply to the hook pod's container. + + :param env: The env of this V1ExecNewPodHook. + :type: list[V1EnvVar] + """ + + self._env = env + + @property + def volumes(self): + """ + Gets the volumes of this V1ExecNewPodHook. + Volumes is a list of named volumes from the pod template which should be copied to the hook pod. Volumes names not found in pod spec are ignored. An empty list means no volumes will be copied. + + :return: The volumes of this V1ExecNewPodHook. + :rtype: list[str] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + Sets the volumes of this V1ExecNewPodHook. + Volumes is a list of named volumes from the pod template which should be copied to the hook pod. Volumes names not found in pod spec are ignored. An empty list means no volumes will be copied. + + :param volumes: The volumes of this V1ExecNewPodHook. + :type: list[str] + """ + + self._volumes = volumes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ExecNewPodHook): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_fc_volume_source.py b/kubernetes/client/models/v1_fc_volume_source.py index e01aded270..e1957073e0 100644 --- a/kubernetes/client/models/v1_fc_volume_source.py +++ b/kubernetes/client/models/v1_fc_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_flex_volume_source.py b/kubernetes/client/models/v1_flex_volume_source.py index 539eff7128..ae48e3e3ca 100644 --- a/kubernetes/client/models/v1_flex_volume_source.py +++ b/kubernetes/client/models/v1_flex_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_flocker_volume_source.py b/kubernetes/client/models/v1_flocker_volume_source.py index 08a3a83f5f..816020dfb8 100644 --- a/kubernetes/client/models/v1_flocker_volume_source.py +++ b/kubernetes/client/models/v1_flocker_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_fs_group_strategy_options.py b/kubernetes/client/models/v1_fs_group_strategy_options.py new file mode 100644 index 0000000000..fe4a48cd9e --- /dev/null +++ b/kubernetes/client/models/v1_fs_group_strategy_options.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1FSGroupStrategyOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, ranges=None, type=None): + """ + V1FSGroupStrategyOptions - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'ranges': 'list[V1IDRange]', + 'type': 'str' + } + + self.attribute_map = { + 'ranges': 'ranges', + 'type': 'type' + } + + self._ranges = ranges + self._type = type + + @property + def ranges(self): + """ + Gets the ranges of this V1FSGroupStrategyOptions. + Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. + + :return: The ranges of this V1FSGroupStrategyOptions. + :rtype: list[V1IDRange] + """ + return self._ranges + + @ranges.setter + def ranges(self, ranges): + """ + Sets the ranges of this V1FSGroupStrategyOptions. + Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. + + :param ranges: The ranges of this V1FSGroupStrategyOptions. + :type: list[V1IDRange] + """ + + self._ranges = ranges + + @property + def type(self): + """ + Gets the type of this V1FSGroupStrategyOptions. + Type is the strategy that will dictate what FSGroup is used in the SecurityContext. + + :return: The type of this V1FSGroupStrategyOptions. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1FSGroupStrategyOptions. + Type is the strategy that will dictate what FSGroup is used in the SecurityContext. + + :param type: The type of this V1FSGroupStrategyOptions. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1FSGroupStrategyOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py b/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py index 6c27f1e978..5d3bda24c1 100644 --- a/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py +++ b/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_generic_web_hook_cause.py b/kubernetes/client/models/v1_generic_web_hook_cause.py new file mode 100644 index 0000000000..e9cb526d8b --- /dev/null +++ b/kubernetes/client/models/v1_generic_web_hook_cause.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1GenericWebHookCause(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, revision=None, secret=None): + """ + V1GenericWebHookCause - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'revision': 'V1SourceRevision', + 'secret': 'str' + } + + self.attribute_map = { + 'revision': 'revision', + 'secret': 'secret' + } + + self._revision = revision + self._secret = secret + + @property + def revision(self): + """ + Gets the revision of this V1GenericWebHookCause. + revision is an optional field that stores the git source revision information of the generic webhook trigger when it is available. + + :return: The revision of this V1GenericWebHookCause. + :rtype: V1SourceRevision + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this V1GenericWebHookCause. + revision is an optional field that stores the git source revision information of the generic webhook trigger when it is available. + + :param revision: The revision of this V1GenericWebHookCause. + :type: V1SourceRevision + """ + + self._revision = revision + + @property + def secret(self): + """ + Gets the secret of this V1GenericWebHookCause. + secret is the obfuscated webhook secret that triggered a build. + + :return: The secret of this V1GenericWebHookCause. + :rtype: str + """ + return self._secret + + @secret.setter + def secret(self, secret): + """ + Sets the secret of this V1GenericWebHookCause. + secret is the obfuscated webhook secret that triggered a build. + + :param secret: The secret of this V1GenericWebHookCause. + :type: str + """ + + self._secret = secret + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1GenericWebHookCause): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_git_build_source.py b/kubernetes/client/models/v1_git_build_source.py new file mode 100644 index 0000000000..353e0127f7 --- /dev/null +++ b/kubernetes/client/models/v1_git_build_source.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1GitBuildSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, http_proxy=None, https_proxy=None, no_proxy=None, ref=None, uri=None): + """ + V1GitBuildSource - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'http_proxy': 'str', + 'https_proxy': 'str', + 'no_proxy': 'str', + 'ref': 'str', + 'uri': 'str' + } + + self.attribute_map = { + 'http_proxy': 'httpProxy', + 'https_proxy': 'httpsProxy', + 'no_proxy': 'noProxy', + 'ref': 'ref', + 'uri': 'uri' + } + + self._http_proxy = http_proxy + self._https_proxy = https_proxy + self._no_proxy = no_proxy + self._ref = ref + self._uri = uri + + @property + def http_proxy(self): + """ + Gets the http_proxy of this V1GitBuildSource. + httpProxy is a proxy used to reach the git repository over http + + :return: The http_proxy of this V1GitBuildSource. + :rtype: str + """ + return self._http_proxy + + @http_proxy.setter + def http_proxy(self, http_proxy): + """ + Sets the http_proxy of this V1GitBuildSource. + httpProxy is a proxy used to reach the git repository over http + + :param http_proxy: The http_proxy of this V1GitBuildSource. + :type: str + """ + + self._http_proxy = http_proxy + + @property + def https_proxy(self): + """ + Gets the https_proxy of this V1GitBuildSource. + httpsProxy is a proxy used to reach the git repository over https + + :return: The https_proxy of this V1GitBuildSource. + :rtype: str + """ + return self._https_proxy + + @https_proxy.setter + def https_proxy(self, https_proxy): + """ + Sets the https_proxy of this V1GitBuildSource. + httpsProxy is a proxy used to reach the git repository over https + + :param https_proxy: The https_proxy of this V1GitBuildSource. + :type: str + """ + + self._https_proxy = https_proxy + + @property + def no_proxy(self): + """ + Gets the no_proxy of this V1GitBuildSource. + noProxy is the list of domains for which the proxy should not be used + + :return: The no_proxy of this V1GitBuildSource. + :rtype: str + """ + return self._no_proxy + + @no_proxy.setter + def no_proxy(self, no_proxy): + """ + Sets the no_proxy of this V1GitBuildSource. + noProxy is the list of domains for which the proxy should not be used + + :param no_proxy: The no_proxy of this V1GitBuildSource. + :type: str + """ + + self._no_proxy = no_proxy + + @property + def ref(self): + """ + Gets the ref of this V1GitBuildSource. + ref is the branch/tag/ref to build. + + :return: The ref of this V1GitBuildSource. + :rtype: str + """ + return self._ref + + @ref.setter + def ref(self, ref): + """ + Sets the ref of this V1GitBuildSource. + ref is the branch/tag/ref to build. + + :param ref: The ref of this V1GitBuildSource. + :type: str + """ + + self._ref = ref + + @property + def uri(self): + """ + Gets the uri of this V1GitBuildSource. + uri points to the source that will be built. The structure of the source will depend on the type of build to run + + :return: The uri of this V1GitBuildSource. + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """ + Sets the uri of this V1GitBuildSource. + uri points to the source that will be built. The structure of the source will depend on the type of build to run + + :param uri: The uri of this V1GitBuildSource. + :type: str + """ + if uri is None: + raise ValueError("Invalid value for `uri`, must not be `None`") + + self._uri = uri + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1GitBuildSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_git_hub_web_hook_cause.py b/kubernetes/client/models/v1_git_hub_web_hook_cause.py new file mode 100644 index 0000000000..6aeda8c488 --- /dev/null +++ b/kubernetes/client/models/v1_git_hub_web_hook_cause.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1GitHubWebHookCause(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, revision=None, secret=None): + """ + V1GitHubWebHookCause - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'revision': 'V1SourceRevision', + 'secret': 'str' + } + + self.attribute_map = { + 'revision': 'revision', + 'secret': 'secret' + } + + self._revision = revision + self._secret = secret + + @property + def revision(self): + """ + Gets the revision of this V1GitHubWebHookCause. + revision is the git revision information of the trigger. + + :return: The revision of this V1GitHubWebHookCause. + :rtype: V1SourceRevision + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this V1GitHubWebHookCause. + revision is the git revision information of the trigger. + + :param revision: The revision of this V1GitHubWebHookCause. + :type: V1SourceRevision + """ + + self._revision = revision + + @property + def secret(self): + """ + Gets the secret of this V1GitHubWebHookCause. + secret is the obfuscated webhook secret that triggered a build. + + :return: The secret of this V1GitHubWebHookCause. + :rtype: str + """ + return self._secret + + @secret.setter + def secret(self, secret): + """ + Sets the secret of this V1GitHubWebHookCause. + secret is the obfuscated webhook secret that triggered a build. + + :param secret: The secret of this V1GitHubWebHookCause. + :type: str + """ + + self._secret = secret + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1GitHubWebHookCause): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_git_repo_volume_source.py b/kubernetes/client/models/v1_git_repo_volume_source.py index 9a34c838e0..77fb4cfb10 100644 --- a/kubernetes/client/models/v1_git_repo_volume_source.py +++ b/kubernetes/client/models/v1_git_repo_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_git_source_revision.py b/kubernetes/client/models/v1_git_source_revision.py new file mode 100644 index 0000000000..02f6a152ed --- /dev/null +++ b/kubernetes/client/models/v1_git_source_revision.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1GitSourceRevision(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, author=None, commit=None, committer=None, message=None): + """ + V1GitSourceRevision - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'author': 'V1SourceControlUser', + 'commit': 'str', + 'committer': 'V1SourceControlUser', + 'message': 'str' + } + + self.attribute_map = { + 'author': 'author', + 'commit': 'commit', + 'committer': 'committer', + 'message': 'message' + } + + self._author = author + self._commit = commit + self._committer = committer + self._message = message + + @property + def author(self): + """ + Gets the author of this V1GitSourceRevision. + author is the author of a specific commit + + :return: The author of this V1GitSourceRevision. + :rtype: V1SourceControlUser + """ + return self._author + + @author.setter + def author(self, author): + """ + Sets the author of this V1GitSourceRevision. + author is the author of a specific commit + + :param author: The author of this V1GitSourceRevision. + :type: V1SourceControlUser + """ + + self._author = author + + @property + def commit(self): + """ + Gets the commit of this V1GitSourceRevision. + commit is the commit hash identifying a specific commit + + :return: The commit of this V1GitSourceRevision. + :rtype: str + """ + return self._commit + + @commit.setter + def commit(self, commit): + """ + Sets the commit of this V1GitSourceRevision. + commit is the commit hash identifying a specific commit + + :param commit: The commit of this V1GitSourceRevision. + :type: str + """ + + self._commit = commit + + @property + def committer(self): + """ + Gets the committer of this V1GitSourceRevision. + committer is the committer of a specific commit + + :return: The committer of this V1GitSourceRevision. + :rtype: V1SourceControlUser + """ + return self._committer + + @committer.setter + def committer(self, committer): + """ + Sets the committer of this V1GitSourceRevision. + committer is the committer of a specific commit + + :param committer: The committer of this V1GitSourceRevision. + :type: V1SourceControlUser + """ + + self._committer = committer + + @property + def message(self): + """ + Gets the message of this V1GitSourceRevision. + message is the description of a specific commit + + :return: The message of this V1GitSourceRevision. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1GitSourceRevision. + message is the description of a specific commit + + :param message: The message of this V1GitSourceRevision. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1GitSourceRevision): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_glusterfs_volume_source.py b/kubernetes/client/models/v1_glusterfs_volume_source.py index d8a20d1ce6..ecb9a3395b 100644 --- a/kubernetes/client/models/v1_glusterfs_volume_source.py +++ b/kubernetes/client/models/v1_glusterfs_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_group.py b/kubernetes/client/models/v1_group.py new file mode 100644 index 0000000000..25b8aa4469 --- /dev/null +++ b/kubernetes/client/models/v1_group.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Group(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, users=None): + """ + V1Group - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'users': 'list[str]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'users': 'users' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._users = users + + @property + def api_version(self): + """ + Gets the api_version of this V1Group. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1Group. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Group. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1Group. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1Group. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1Group. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Group. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1Group. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1Group. + Standard object's metadata. + + :return: The metadata of this V1Group. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Group. + Standard object's metadata. + + :param metadata: The metadata of this V1Group. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def users(self): + """ + Gets the users of this V1Group. + Users is the list of users in this group. + + :return: The users of this V1Group. + :rtype: list[str] + """ + return self._users + + @users.setter + def users(self, users): + """ + Sets the users of this V1Group. + Users is the list of users in this group. + + :param users: The users of this V1Group. + :type: list[str] + """ + if users is None: + raise ValueError("Invalid value for `users`, must not be `None`") + + self._users = users + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1Group): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_group_list.py b/kubernetes/client/models/v1_group_list.py new file mode 100644 index 0000000000..39ceac464b --- /dev/null +++ b/kubernetes/client/models/v1_group_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1GroupList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1GroupList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1Group]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1GroupList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1GroupList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1GroupList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1GroupList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1GroupList. + Items is the list of groups + + :return: The items of this V1GroupList. + :rtype: list[V1Group] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1GroupList. + Items is the list of groups + + :param items: The items of this V1GroupList. + :type: list[V1Group] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1GroupList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1GroupList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1GroupList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1GroupList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1GroupList. + Standard object's metadata. + + :return: The metadata of this V1GroupList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1GroupList. + Standard object's metadata. + + :param metadata: The metadata of this V1GroupList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1GroupList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_group_restriction.py b/kubernetes/client/models/v1_group_restriction.py new file mode 100644 index 0000000000..55730e7cad --- /dev/null +++ b/kubernetes/client/models/v1_group_restriction.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1GroupRestriction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, groups=None, labels=None): + """ + V1GroupRestriction - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'groups': 'list[str]', + 'labels': 'list[UnversionedLabelSelector]' + } + + self.attribute_map = { + 'groups': 'groups', + 'labels': 'labels' + } + + self._groups = groups + self._labels = labels + + @property + def groups(self): + """ + Gets the groups of this V1GroupRestriction. + Groups is a list of groups used to match against an individual user's groups. If the user is a member of one of the whitelisted groups, the user is allowed to be bound to a role. + + :return: The groups of this V1GroupRestriction. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1GroupRestriction. + Groups is a list of groups used to match against an individual user's groups. If the user is a member of one of the whitelisted groups, the user is allowed to be bound to a role. + + :param groups: The groups of this V1GroupRestriction. + :type: list[str] + """ + if groups is None: + raise ValueError("Invalid value for `groups`, must not be `None`") + + self._groups = groups + + @property + def labels(self): + """ + Gets the labels of this V1GroupRestriction. + Selectors specifies a list of label selectors over group labels. + + :return: The labels of this V1GroupRestriction. + :rtype: list[UnversionedLabelSelector] + """ + return self._labels + + @labels.setter + def labels(self, labels): + """ + Sets the labels of this V1GroupRestriction. + Selectors specifies a list of label selectors over group labels. + + :param labels: The labels of this V1GroupRestriction. + :type: list[UnversionedLabelSelector] + """ + if labels is None: + raise ValueError("Invalid value for `labels`, must not be `None`") + + self._labels = labels + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1GroupRestriction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_group_version_for_discovery.py b/kubernetes/client/models/v1_group_version_for_discovery.py deleted file mode 100644 index 5033f54485..0000000000 --- a/kubernetes/client/models/v1_group_version_for_discovery.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1GroupVersionForDiscovery(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, group_version=None, version=None): - """ - V1GroupVersionForDiscovery - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'group_version': 'str', - 'version': 'str' - } - - self.attribute_map = { - 'group_version': 'groupVersion', - 'version': 'version' - } - - self._group_version = group_version - self._version = version - - @property - def group_version(self): - """ - Gets the group_version of this V1GroupVersionForDiscovery. - groupVersion specifies the API group and version in the form \"group/version\" - - :return: The group_version of this V1GroupVersionForDiscovery. - :rtype: str - """ - return self._group_version - - @group_version.setter - def group_version(self, group_version): - """ - Sets the group_version of this V1GroupVersionForDiscovery. - groupVersion specifies the API group and version in the form \"group/version\" - - :param group_version: The group_version of this V1GroupVersionForDiscovery. - :type: str - """ - if group_version is None: - raise ValueError("Invalid value for `group_version`, must not be `None`") - - self._group_version = group_version - - @property - def version(self): - """ - Gets the version of this V1GroupVersionForDiscovery. - version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. - - :return: The version of this V1GroupVersionForDiscovery. - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """ - Sets the version of this V1GroupVersionForDiscovery. - version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. - - :param version: The version of this V1GroupVersionForDiscovery. - :type: str - """ - if version is None: - raise ValueError("Invalid value for `version`, must not be `None`") - - self._version = version - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1GroupVersionForDiscovery): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_handler.py b/kubernetes/client/models/v1_handler.py index 172cc03d8c..2a1e719233 100644 --- a/kubernetes/client/models/v1_handler.py +++ b/kubernetes/client/models/v1_handler.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler.py index 340e32a8b0..de3855fdeb 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py index 02417b3bc0..59a46b50c8 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1HorizontalPodAutoscaler]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. :return: The metadata of this V1HorizontalPodAutoscalerList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. :param metadata: The metadata of this V1HorizontalPodAutoscalerList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py index 54ccbcfa1b..085c1907ee 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py index 1128f35821..6ebb1bb80f 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_host_path_volume_source.py b/kubernetes/client/models/v1_host_path_volume_source.py index 3c20e047e9..74522a71cb 100644 --- a/kubernetes/client/models/v1_host_path_volume_source.py +++ b/kubernetes/client/models/v1_host_path_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_host_subnet.py b/kubernetes/client/models/v1_host_subnet.py new file mode 100644 index 0000000000..1e075a2ae2 --- /dev/null +++ b/kubernetes/client/models/v1_host_subnet.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1HostSubnet(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, host=None, host_ip=None, kind=None, metadata=None, subnet=None): + """ + V1HostSubnet - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'host': 'str', + 'host_ip': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'subnet': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'host': 'host', + 'host_ip': 'hostIP', + 'kind': 'kind', + 'metadata': 'metadata', + 'subnet': 'subnet' + } + + self._api_version = api_version + self._host = host + self._host_ip = host_ip + self._kind = kind + self._metadata = metadata + self._subnet = subnet + + @property + def api_version(self): + """ + Gets the api_version of this V1HostSubnet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1HostSubnet. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1HostSubnet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1HostSubnet. + :type: str + """ + + self._api_version = api_version + + @property + def host(self): + """ + Gets the host of this V1HostSubnet. + Host is the name of the node. (This is redundant with the object's name, and this field is not actually used any more.) + + :return: The host of this V1HostSubnet. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + Sets the host of this V1HostSubnet. + Host is the name of the node. (This is redundant with the object's name, and this field is not actually used any more.) + + :param host: The host of this V1HostSubnet. + :type: str + """ + if host is None: + raise ValueError("Invalid value for `host`, must not be `None`") + + self._host = host + + @property + def host_ip(self): + """ + Gets the host_ip of this V1HostSubnet. + HostIP is the IP address to be used as a VTEP by other nodes in the overlay network + + :return: The host_ip of this V1HostSubnet. + :rtype: str + """ + return self._host_ip + + @host_ip.setter + def host_ip(self, host_ip): + """ + Sets the host_ip of this V1HostSubnet. + HostIP is the IP address to be used as a VTEP by other nodes in the overlay network + + :param host_ip: The host_ip of this V1HostSubnet. + :type: str + """ + if host_ip is None: + raise ValueError("Invalid value for `host_ip`, must not be `None`") + + self._host_ip = host_ip + + @property + def kind(self): + """ + Gets the kind of this V1HostSubnet. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1HostSubnet. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1HostSubnet. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1HostSubnet. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1HostSubnet. + Standard object's metadata. + + :return: The metadata of this V1HostSubnet. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1HostSubnet. + Standard object's metadata. + + :param metadata: The metadata of this V1HostSubnet. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def subnet(self): + """ + Gets the subnet of this V1HostSubnet. + Subnet is the CIDR range of the overlay network assigned to the node for its pods + + :return: The subnet of this V1HostSubnet. + :rtype: str + """ + return self._subnet + + @subnet.setter + def subnet(self, subnet): + """ + Sets the subnet of this V1HostSubnet. + Subnet is the CIDR range of the overlay network assigned to the node for its pods + + :param subnet: The subnet of this V1HostSubnet. + :type: str + """ + if subnet is None: + raise ValueError("Invalid value for `subnet`, must not be `None`") + + self._subnet = subnet + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1HostSubnet): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_host_subnet_list.py b/kubernetes/client/models/v1_host_subnet_list.py new file mode 100644 index 0000000000..68c470c565 --- /dev/null +++ b/kubernetes/client/models/v1_host_subnet_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1HostSubnetList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1HostSubnetList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1HostSubnet]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1HostSubnetList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1HostSubnetList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1HostSubnetList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1HostSubnetList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1HostSubnetList. + Items is the list of host subnets + + :return: The items of this V1HostSubnetList. + :rtype: list[V1HostSubnet] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1HostSubnetList. + Items is the list of host subnets + + :param items: The items of this V1HostSubnetList. + :type: list[V1HostSubnet] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1HostSubnetList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1HostSubnetList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1HostSubnetList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1HostSubnetList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1HostSubnetList. + Standard object's metadata. + + :return: The metadata of this V1HostSubnetList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1HostSubnetList. + Standard object's metadata. + + :param metadata: The metadata of this V1HostSubnetList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1HostSubnetList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_http_get_action.py b/kubernetes/client/models/v1_http_get_action.py index 9e38f4c009..a205735c93 100644 --- a/kubernetes/client/models/v1_http_get_action.py +++ b/kubernetes/client/models/v1_http_get_action.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_http_header.py b/kubernetes/client/models/v1_http_header.py index 50e9c483d1..2d92d09056 100644 --- a/kubernetes/client/models/v1_http_header.py +++ b/kubernetes/client/models/v1_http_header.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_id_range.py b/kubernetes/client/models/v1_id_range.py new file mode 100644 index 0000000000..dbacb7ac1a --- /dev/null +++ b/kubernetes/client/models/v1_id_range.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1IDRange(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, max=None, min=None): + """ + V1IDRange - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'max': 'int', + 'min': 'int' + } + + self.attribute_map = { + 'max': 'max', + 'min': 'min' + } + + self._max = max + self._min = min + + @property + def max(self): + """ + Gets the max of this V1IDRange. + Max is the end of the range, inclusive. + + :return: The max of this V1IDRange. + :rtype: int + """ + return self._max + + @max.setter + def max(self, max): + """ + Sets the max of this V1IDRange. + Max is the end of the range, inclusive. + + :param max: The max of this V1IDRange. + :type: int + """ + + self._max = max + + @property + def min(self): + """ + Gets the min of this V1IDRange. + Min is the start of the range, inclusive. + + :return: The min of this V1IDRange. + :rtype: int + """ + return self._min + + @min.setter + def min(self, min): + """ + Sets the min of this V1IDRange. + Min is the start of the range, inclusive. + + :param min: The min of this V1IDRange. + :type: int + """ + + self._min = min + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1IDRange): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_identity.py b/kubernetes/client/models/v1_identity.py new file mode 100644 index 0000000000..55760f2b2c --- /dev/null +++ b/kubernetes/client/models/v1_identity.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Identity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, extra=None, kind=None, metadata=None, provider_name=None, provider_user_name=None, user=None): + """ + V1Identity - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'extra': 'dict(str, str)', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'provider_name': 'str', + 'provider_user_name': 'str', + 'user': 'V1ObjectReference' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'extra': 'extra', + 'kind': 'kind', + 'metadata': 'metadata', + 'provider_name': 'providerName', + 'provider_user_name': 'providerUserName', + 'user': 'user' + } + + self._api_version = api_version + self._extra = extra + self._kind = kind + self._metadata = metadata + self._provider_name = provider_name + self._provider_user_name = provider_user_name + self._user = user + + @property + def api_version(self): + """ + Gets the api_version of this V1Identity. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1Identity. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Identity. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1Identity. + :type: str + """ + + self._api_version = api_version + + @property + def extra(self): + """ + Gets the extra of this V1Identity. + Extra holds extra information about this identity + + :return: The extra of this V1Identity. + :rtype: dict(str, str) + """ + return self._extra + + @extra.setter + def extra(self, extra): + """ + Sets the extra of this V1Identity. + Extra holds extra information about this identity + + :param extra: The extra of this V1Identity. + :type: dict(str, str) + """ + + self._extra = extra + + @property + def kind(self): + """ + Gets the kind of this V1Identity. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1Identity. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Identity. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1Identity. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1Identity. + Standard object's metadata. + + :return: The metadata of this V1Identity. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Identity. + Standard object's metadata. + + :param metadata: The metadata of this V1Identity. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def provider_name(self): + """ + Gets the provider_name of this V1Identity. + ProviderName is the source of identity information + + :return: The provider_name of this V1Identity. + :rtype: str + """ + return self._provider_name + + @provider_name.setter + def provider_name(self, provider_name): + """ + Sets the provider_name of this V1Identity. + ProviderName is the source of identity information + + :param provider_name: The provider_name of this V1Identity. + :type: str + """ + if provider_name is None: + raise ValueError("Invalid value for `provider_name`, must not be `None`") + + self._provider_name = provider_name + + @property + def provider_user_name(self): + """ + Gets the provider_user_name of this V1Identity. + ProviderUserName uniquely represents this identity in the scope of the provider + + :return: The provider_user_name of this V1Identity. + :rtype: str + """ + return self._provider_user_name + + @provider_user_name.setter + def provider_user_name(self, provider_user_name): + """ + Sets the provider_user_name of this V1Identity. + ProviderUserName uniquely represents this identity in the scope of the provider + + :param provider_user_name: The provider_user_name of this V1Identity. + :type: str + """ + if provider_user_name is None: + raise ValueError("Invalid value for `provider_user_name`, must not be `None`") + + self._provider_user_name = provider_user_name + + @property + def user(self): + """ + Gets the user of this V1Identity. + User is a reference to the user this identity is associated with Both Name and UID must be set + + :return: The user of this V1Identity. + :rtype: V1ObjectReference + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1Identity. + User is a reference to the user this identity is associated with Both Name and UID must be set + + :param user: The user of this V1Identity. + :type: V1ObjectReference + """ + if user is None: + raise ValueError("Invalid value for `user`, must not be `None`") + + self._user = user + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1Identity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_identity_list.py b/kubernetes/client/models/v1_identity_list.py new file mode 100644 index 0000000000..4289107874 --- /dev/null +++ b/kubernetes/client/models/v1_identity_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1IdentityList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1IdentityList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1Identity]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1IdentityList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1IdentityList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1IdentityList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1IdentityList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1IdentityList. + Items is the list of identities + + :return: The items of this V1IdentityList. + :rtype: list[V1Identity] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1IdentityList. + Items is the list of identities + + :param items: The items of this V1IdentityList. + :type: list[V1Identity] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1IdentityList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1IdentityList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1IdentityList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1IdentityList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1IdentityList. + Standard object's metadata. + + :return: The metadata of this V1IdentityList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1IdentityList. + Standard object's metadata. + + :param metadata: The metadata of this V1IdentityList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1IdentityList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image.py b/kubernetes/client/models/v1_image.py new file mode 100644 index 0000000000..c4aa36b9da --- /dev/null +++ b/kubernetes/client/models/v1_image.py @@ -0,0 +1,405 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Image(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, docker_image_config=None, docker_image_layers=None, docker_image_manifest=None, docker_image_manifest_media_type=None, docker_image_metadata=None, docker_image_metadata_version=None, docker_image_reference=None, docker_image_signatures=None, kind=None, metadata=None, signatures=None): + """ + V1Image - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'docker_image_config': 'str', + 'docker_image_layers': 'list[V1ImageLayer]', + 'docker_image_manifest': 'str', + 'docker_image_manifest_media_type': 'str', + 'docker_image_metadata': 'RuntimeRawExtension', + 'docker_image_metadata_version': 'str', + 'docker_image_reference': 'str', + 'docker_image_signatures': 'list[str]', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'signatures': 'list[V1ImageSignature]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'docker_image_config': 'dockerImageConfig', + 'docker_image_layers': 'dockerImageLayers', + 'docker_image_manifest': 'dockerImageManifest', + 'docker_image_manifest_media_type': 'dockerImageManifestMediaType', + 'docker_image_metadata': 'dockerImageMetadata', + 'docker_image_metadata_version': 'dockerImageMetadataVersion', + 'docker_image_reference': 'dockerImageReference', + 'docker_image_signatures': 'dockerImageSignatures', + 'kind': 'kind', + 'metadata': 'metadata', + 'signatures': 'signatures' + } + + self._api_version = api_version + self._docker_image_config = docker_image_config + self._docker_image_layers = docker_image_layers + self._docker_image_manifest = docker_image_manifest + self._docker_image_manifest_media_type = docker_image_manifest_media_type + self._docker_image_metadata = docker_image_metadata + self._docker_image_metadata_version = docker_image_metadata_version + self._docker_image_reference = docker_image_reference + self._docker_image_signatures = docker_image_signatures + self._kind = kind + self._metadata = metadata + self._signatures = signatures + + @property + def api_version(self): + """ + Gets the api_version of this V1Image. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1Image. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Image. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1Image. + :type: str + """ + + self._api_version = api_version + + @property + def docker_image_config(self): + """ + Gets the docker_image_config of this V1Image. + DockerImageConfig is a JSON blob that the runtime uses to set up the container. This is a part of manifest schema v2. + + :return: The docker_image_config of this V1Image. + :rtype: str + """ + return self._docker_image_config + + @docker_image_config.setter + def docker_image_config(self, docker_image_config): + """ + Sets the docker_image_config of this V1Image. + DockerImageConfig is a JSON blob that the runtime uses to set up the container. This is a part of manifest schema v2. + + :param docker_image_config: The docker_image_config of this V1Image. + :type: str + """ + + self._docker_image_config = docker_image_config + + @property + def docker_image_layers(self): + """ + Gets the docker_image_layers of this V1Image. + DockerImageLayers represents the layers in the image. May not be set if the image does not define that data. + + :return: The docker_image_layers of this V1Image. + :rtype: list[V1ImageLayer] + """ + return self._docker_image_layers + + @docker_image_layers.setter + def docker_image_layers(self, docker_image_layers): + """ + Sets the docker_image_layers of this V1Image. + DockerImageLayers represents the layers in the image. May not be set if the image does not define that data. + + :param docker_image_layers: The docker_image_layers of this V1Image. + :type: list[V1ImageLayer] + """ + if docker_image_layers is None: + raise ValueError("Invalid value for `docker_image_layers`, must not be `None`") + + self._docker_image_layers = docker_image_layers + + @property + def docker_image_manifest(self): + """ + Gets the docker_image_manifest of this V1Image. + DockerImageManifest is the raw JSON of the manifest + + :return: The docker_image_manifest of this V1Image. + :rtype: str + """ + return self._docker_image_manifest + + @docker_image_manifest.setter + def docker_image_manifest(self, docker_image_manifest): + """ + Sets the docker_image_manifest of this V1Image. + DockerImageManifest is the raw JSON of the manifest + + :param docker_image_manifest: The docker_image_manifest of this V1Image. + :type: str + """ + + self._docker_image_manifest = docker_image_manifest + + @property + def docker_image_manifest_media_type(self): + """ + Gets the docker_image_manifest_media_type of this V1Image. + DockerImageManifestMediaType specifies the mediaType of manifest. This is a part of manifest schema v2. + + :return: The docker_image_manifest_media_type of this V1Image. + :rtype: str + """ + return self._docker_image_manifest_media_type + + @docker_image_manifest_media_type.setter + def docker_image_manifest_media_type(self, docker_image_manifest_media_type): + """ + Sets the docker_image_manifest_media_type of this V1Image. + DockerImageManifestMediaType specifies the mediaType of manifest. This is a part of manifest schema v2. + + :param docker_image_manifest_media_type: The docker_image_manifest_media_type of this V1Image. + :type: str + """ + + self._docker_image_manifest_media_type = docker_image_manifest_media_type + + @property + def docker_image_metadata(self): + """ + Gets the docker_image_metadata of this V1Image. + DockerImageMetadata contains metadata about this image + + :return: The docker_image_metadata of this V1Image. + :rtype: RuntimeRawExtension + """ + return self._docker_image_metadata + + @docker_image_metadata.setter + def docker_image_metadata(self, docker_image_metadata): + """ + Sets the docker_image_metadata of this V1Image. + DockerImageMetadata contains metadata about this image + + :param docker_image_metadata: The docker_image_metadata of this V1Image. + :type: RuntimeRawExtension + """ + + self._docker_image_metadata = docker_image_metadata + + @property + def docker_image_metadata_version(self): + """ + Gets the docker_image_metadata_version of this V1Image. + DockerImageMetadataVersion conveys the version of the object, which if empty defaults to \"1.0\" + + :return: The docker_image_metadata_version of this V1Image. + :rtype: str + """ + return self._docker_image_metadata_version + + @docker_image_metadata_version.setter + def docker_image_metadata_version(self, docker_image_metadata_version): + """ + Sets the docker_image_metadata_version of this V1Image. + DockerImageMetadataVersion conveys the version of the object, which if empty defaults to \"1.0\" + + :param docker_image_metadata_version: The docker_image_metadata_version of this V1Image. + :type: str + """ + + self._docker_image_metadata_version = docker_image_metadata_version + + @property + def docker_image_reference(self): + """ + Gets the docker_image_reference of this V1Image. + DockerImageReference is the string that can be used to pull this image. + + :return: The docker_image_reference of this V1Image. + :rtype: str + """ + return self._docker_image_reference + + @docker_image_reference.setter + def docker_image_reference(self, docker_image_reference): + """ + Sets the docker_image_reference of this V1Image. + DockerImageReference is the string that can be used to pull this image. + + :param docker_image_reference: The docker_image_reference of this V1Image. + :type: str + """ + + self._docker_image_reference = docker_image_reference + + @property + def docker_image_signatures(self): + """ + Gets the docker_image_signatures of this V1Image. + DockerImageSignatures provides the signatures as opaque blobs. This is a part of manifest schema v1. + + :return: The docker_image_signatures of this V1Image. + :rtype: list[str] + """ + return self._docker_image_signatures + + @docker_image_signatures.setter + def docker_image_signatures(self, docker_image_signatures): + """ + Sets the docker_image_signatures of this V1Image. + DockerImageSignatures provides the signatures as opaque blobs. This is a part of manifest schema v1. + + :param docker_image_signatures: The docker_image_signatures of this V1Image. + :type: list[str] + """ + + self._docker_image_signatures = docker_image_signatures + + @property + def kind(self): + """ + Gets the kind of this V1Image. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1Image. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Image. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1Image. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1Image. + Standard object's metadata. + + :return: The metadata of this V1Image. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Image. + Standard object's metadata. + + :param metadata: The metadata of this V1Image. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def signatures(self): + """ + Gets the signatures of this V1Image. + Signatures holds all signatures of the image. + + :return: The signatures of this V1Image. + :rtype: list[V1ImageSignature] + """ + return self._signatures + + @signatures.setter + def signatures(self, signatures): + """ + Sets the signatures of this V1Image. + Signatures holds all signatures of the image. + + :param signatures: The signatures of this V1Image. + :type: list[V1ImageSignature] + """ + + self._signatures = signatures + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1Image): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_change_cause.py b/kubernetes/client/models/v1_image_change_cause.py new file mode 100644 index 0000000000..b2c3431d66 --- /dev/null +++ b/kubernetes/client/models/v1_image_change_cause.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageChangeCause(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, from_ref=None, image_id=None): + """ + V1ImageChangeCause - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'from_ref': 'V1ObjectReference', + 'image_id': 'str' + } + + self.attribute_map = { + 'from_ref': 'fromRef', + 'image_id': 'imageID' + } + + self._from_ref = from_ref + self._image_id = image_id + + @property + def from_ref(self): + """ + Gets the from_ref of this V1ImageChangeCause. + fromRef contains detailed information about an image that triggered a build. + + :return: The from_ref of this V1ImageChangeCause. + :rtype: V1ObjectReference + """ + return self._from_ref + + @from_ref.setter + def from_ref(self, from_ref): + """ + Sets the from_ref of this V1ImageChangeCause. + fromRef contains detailed information about an image that triggered a build. + + :param from_ref: The from_ref of this V1ImageChangeCause. + :type: V1ObjectReference + """ + + self._from_ref = from_ref + + @property + def image_id(self): + """ + Gets the image_id of this V1ImageChangeCause. + imageID is the ID of the image that triggered a a new build. + + :return: The image_id of this V1ImageChangeCause. + :rtype: str + """ + return self._image_id + + @image_id.setter + def image_id(self, image_id): + """ + Sets the image_id of this V1ImageChangeCause. + imageID is the ID of the image that triggered a a new build. + + :param image_id: The image_id of this V1ImageChangeCause. + :type: str + """ + + self._image_id = image_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageChangeCause): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_change_trigger.py b/kubernetes/client/models/v1_image_change_trigger.py new file mode 100644 index 0000000000..bd9be9ac64 --- /dev/null +++ b/kubernetes/client/models/v1_image_change_trigger.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageChangeTrigger(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, _from=None, last_triggered_image_id=None): + """ + V1ImageChangeTrigger - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + '_from': 'V1ObjectReference', + 'last_triggered_image_id': 'str' + } + + self.attribute_map = { + '_from': 'from', + 'last_triggered_image_id': 'lastTriggeredImageID' + } + + self.__from = _from + self._last_triggered_image_id = last_triggered_image_id + + @property + def _from(self): + """ + Gets the _from of this V1ImageChangeTrigger. + from is a reference to an ImageStreamTag that will trigger a build when updated It is optional. If no From is specified, the From image from the build strategy will be used. Only one ImageChangeTrigger with an empty From reference is allowed in a build configuration. + + :return: The _from of this V1ImageChangeTrigger. + :rtype: V1ObjectReference + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1ImageChangeTrigger. + from is a reference to an ImageStreamTag that will trigger a build when updated It is optional. If no From is specified, the From image from the build strategy will be used. Only one ImageChangeTrigger with an empty From reference is allowed in a build configuration. + + :param _from: The _from of this V1ImageChangeTrigger. + :type: V1ObjectReference + """ + + self.__from = _from + + @property + def last_triggered_image_id(self): + """ + Gets the last_triggered_image_id of this V1ImageChangeTrigger. + lastTriggeredImageID is used internally by the ImageChangeController to save last used image ID for build + + :return: The last_triggered_image_id of this V1ImageChangeTrigger. + :rtype: str + """ + return self._last_triggered_image_id + + @last_triggered_image_id.setter + def last_triggered_image_id(self, last_triggered_image_id): + """ + Sets the last_triggered_image_id of this V1ImageChangeTrigger. + lastTriggeredImageID is used internally by the ImageChangeController to save last used image ID for build + + :param last_triggered_image_id: The last_triggered_image_id of this V1ImageChangeTrigger. + :type: str + """ + + self._last_triggered_image_id = last_triggered_image_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageChangeTrigger): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_import_spec.py b/kubernetes/client/models/v1_image_import_spec.py new file mode 100644 index 0000000000..11320e97a5 --- /dev/null +++ b/kubernetes/client/models/v1_image_import_spec.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageImportSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, _from=None, import_policy=None, include_manifest=None, to=None): + """ + V1ImageImportSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + '_from': 'V1ObjectReference', + 'import_policy': 'V1TagImportPolicy', + 'include_manifest': 'bool', + 'to': 'V1LocalObjectReference' + } + + self.attribute_map = { + '_from': 'from', + 'import_policy': 'importPolicy', + 'include_manifest': 'includeManifest', + 'to': 'to' + } + + self.__from = _from + self._import_policy = import_policy + self._include_manifest = include_manifest + self._to = to + + @property + def _from(self): + """ + Gets the _from of this V1ImageImportSpec. + From is the source of an image to import; only kind DockerImage is allowed + + :return: The _from of this V1ImageImportSpec. + :rtype: V1ObjectReference + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1ImageImportSpec. + From is the source of an image to import; only kind DockerImage is allowed + + :param _from: The _from of this V1ImageImportSpec. + :type: V1ObjectReference + """ + if _from is None: + raise ValueError("Invalid value for `_from`, must not be `None`") + + self.__from = _from + + @property + def import_policy(self): + """ + Gets the import_policy of this V1ImageImportSpec. + ImportPolicy is the policy controlling how the image is imported + + :return: The import_policy of this V1ImageImportSpec. + :rtype: V1TagImportPolicy + """ + return self._import_policy + + @import_policy.setter + def import_policy(self, import_policy): + """ + Sets the import_policy of this V1ImageImportSpec. + ImportPolicy is the policy controlling how the image is imported + + :param import_policy: The import_policy of this V1ImageImportSpec. + :type: V1TagImportPolicy + """ + + self._import_policy = import_policy + + @property + def include_manifest(self): + """ + Gets the include_manifest of this V1ImageImportSpec. + IncludeManifest determines if the manifest for each image is returned in the response + + :return: The include_manifest of this V1ImageImportSpec. + :rtype: bool + """ + return self._include_manifest + + @include_manifest.setter + def include_manifest(self, include_manifest): + """ + Sets the include_manifest of this V1ImageImportSpec. + IncludeManifest determines if the manifest for each image is returned in the response + + :param include_manifest: The include_manifest of this V1ImageImportSpec. + :type: bool + """ + + self._include_manifest = include_manifest + + @property + def to(self): + """ + Gets the to of this V1ImageImportSpec. + To is a tag in the current image stream to assign the imported image to, if name is not specified the default tag from from.name will be used + + :return: The to of this V1ImageImportSpec. + :rtype: V1LocalObjectReference + """ + return self._to + + @to.setter + def to(self, to): + """ + Sets the to of this V1ImageImportSpec. + To is a tag in the current image stream to assign the imported image to, if name is not specified the default tag from from.name will be used + + :param to: The to of this V1ImageImportSpec. + :type: V1LocalObjectReference + """ + + self._to = to + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageImportSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_import_status.py b/kubernetes/client/models/v1_image_import_status.py new file mode 100644 index 0000000000..d6fa5c91c0 --- /dev/null +++ b/kubernetes/client/models/v1_image_import_status.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageImportStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, image=None, status=None, tag=None): + """ + V1ImageImportStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'image': 'V1Image', + 'status': 'UnversionedStatus', + 'tag': 'str' + } + + self.attribute_map = { + 'image': 'image', + 'status': 'status', + 'tag': 'tag' + } + + self._image = image + self._status = status + self._tag = tag + + @property + def image(self): + """ + Gets the image of this V1ImageImportStatus. + Image is the metadata of that image, if the image was located + + :return: The image of this V1ImageImportStatus. + :rtype: V1Image + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1ImageImportStatus. + Image is the metadata of that image, if the image was located + + :param image: The image of this V1ImageImportStatus. + :type: V1Image + """ + + self._image = image + + @property + def status(self): + """ + Gets the status of this V1ImageImportStatus. + Status is the status of the image import, including errors encountered while retrieving the image + + :return: The status of this V1ImageImportStatus. + :rtype: UnversionedStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1ImageImportStatus. + Status is the status of the image import, including errors encountered while retrieving the image + + :param status: The status of this V1ImageImportStatus. + :type: UnversionedStatus + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def tag(self): + """ + Gets the tag of this V1ImageImportStatus. + Tag is the tag this image was located under, if any + + :return: The tag of this V1ImageImportStatus. + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """ + Sets the tag of this V1ImageImportStatus. + Tag is the tag this image was located under, if any + + :param tag: The tag of this V1ImageImportStatus. + :type: str + """ + + self._tag = tag + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageImportStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_label.py b/kubernetes/client/models/v1_image_label.py new file mode 100644 index 0000000000..cb9cbfa723 --- /dev/null +++ b/kubernetes/client/models/v1_image_label.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageLabel(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, value=None): + """ + V1ImageLabel - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'value': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'value': 'value' + } + + self._name = name + self._value = value + + @property + def name(self): + """ + Gets the name of this V1ImageLabel. + name defines the name of the label. It must have non-zero length. + + :return: The name of this V1ImageLabel. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ImageLabel. + name defines the name of the label. It must have non-zero length. + + :param name: The name of this V1ImageLabel. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def value(self): + """ + Gets the value of this V1ImageLabel. + value defines the literal value of the label. + + :return: The value of this V1ImageLabel. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this V1ImageLabel. + value defines the literal value of the label. + + :param value: The value of this V1ImageLabel. + :type: str + """ + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageLabel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_layer.py b/kubernetes/client/models/v1_image_layer.py new file mode 100644 index 0000000000..5458582a09 --- /dev/null +++ b/kubernetes/client/models/v1_image_layer.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageLayer(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, media_type=None, name=None, size=None): + """ + V1ImageLayer - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'media_type': 'str', + 'name': 'str', + 'size': 'int' + } + + self.attribute_map = { + 'media_type': 'mediaType', + 'name': 'name', + 'size': 'size' + } + + self._media_type = media_type + self._name = name + self._size = size + + @property + def media_type(self): + """ + Gets the media_type of this V1ImageLayer. + MediaType of the referenced object. + + :return: The media_type of this V1ImageLayer. + :rtype: str + """ + return self._media_type + + @media_type.setter + def media_type(self, media_type): + """ + Sets the media_type of this V1ImageLayer. + MediaType of the referenced object. + + :param media_type: The media_type of this V1ImageLayer. + :type: str + """ + if media_type is None: + raise ValueError("Invalid value for `media_type`, must not be `None`") + + self._media_type = media_type + + @property + def name(self): + """ + Gets the name of this V1ImageLayer. + Name of the layer as defined by the underlying store. + + :return: The name of this V1ImageLayer. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ImageLayer. + Name of the layer as defined by the underlying store. + + :param name: The name of this V1ImageLayer. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def size(self): + """ + Gets the size of this V1ImageLayer. + Size of the layer in bytes as defined by the underlying store. + + :return: The size of this V1ImageLayer. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """ + Sets the size of this V1ImageLayer. + Size of the layer in bytes as defined by the underlying store. + + :param size: The size of this V1ImageLayer. + :type: int + """ + if size is None: + raise ValueError("Invalid value for `size`, must not be `None`") + + self._size = size + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageLayer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_list.py b/kubernetes/client/models/v1_image_list.py new file mode 100644 index 0000000000..00e080d461 --- /dev/null +++ b/kubernetes/client/models/v1_image_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1ImageList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1Image]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1ImageList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ImageList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ImageList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ImageList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1ImageList. + Items is a list of images + + :return: The items of this V1ImageList. + :rtype: list[V1Image] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ImageList. + Items is a list of images + + :param items: The items of this V1ImageList. + :type: list[V1Image] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1ImageList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ImageList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ImageList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ImageList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ImageList. + Standard object's metadata. + + :return: The metadata of this V1ImageList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ImageList. + Standard object's metadata. + + :param metadata: The metadata of this V1ImageList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_signature.py b/kubernetes/client/models/v1_image_signature.py new file mode 100644 index 0000000000..44f3548434 --- /dev/null +++ b/kubernetes/client/models/v1_image_signature.py @@ -0,0 +1,381 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageSignature(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, conditions=None, content=None, created=None, image_identity=None, issued_by=None, issued_to=None, kind=None, metadata=None, signed_claims=None, type=None): + """ + V1ImageSignature - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'conditions': 'list[V1SignatureCondition]', + 'content': 'str', + 'created': 'datetime', + 'image_identity': 'str', + 'issued_by': 'V1SignatureIssuer', + 'issued_to': 'V1SignatureSubject', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'signed_claims': 'dict(str, str)', + 'type': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'conditions': 'conditions', + 'content': 'content', + 'created': 'created', + 'image_identity': 'imageIdentity', + 'issued_by': 'issuedBy', + 'issued_to': 'issuedTo', + 'kind': 'kind', + 'metadata': 'metadata', + 'signed_claims': 'signedClaims', + 'type': 'type' + } + + self._api_version = api_version + self._conditions = conditions + self._content = content + self._created = created + self._image_identity = image_identity + self._issued_by = issued_by + self._issued_to = issued_to + self._kind = kind + self._metadata = metadata + self._signed_claims = signed_claims + self._type = type + + @property + def api_version(self): + """ + Gets the api_version of this V1ImageSignature. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ImageSignature. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ImageSignature. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ImageSignature. + :type: str + """ + + self._api_version = api_version + + @property + def conditions(self): + """ + Gets the conditions of this V1ImageSignature. + Conditions represent the latest available observations of a signature's current state. + + :return: The conditions of this V1ImageSignature. + :rtype: list[V1SignatureCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1ImageSignature. + Conditions represent the latest available observations of a signature's current state. + + :param conditions: The conditions of this V1ImageSignature. + :type: list[V1SignatureCondition] + """ + + self._conditions = conditions + + @property + def content(self): + """ + Gets the content of this V1ImageSignature. + Required: An opaque binary string which is an image's signature. + + :return: The content of this V1ImageSignature. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """ + Sets the content of this V1ImageSignature. + Required: An opaque binary string which is an image's signature. + + :param content: The content of this V1ImageSignature. + :type: str + """ + if content is None: + raise ValueError("Invalid value for `content`, must not be `None`") + + self._content = content + + @property + def created(self): + """ + Gets the created of this V1ImageSignature. + If specified, it is the time of signature's creation. + + :return: The created of this V1ImageSignature. + :rtype: datetime + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this V1ImageSignature. + If specified, it is the time of signature's creation. + + :param created: The created of this V1ImageSignature. + :type: datetime + """ + + self._created = created + + @property + def image_identity(self): + """ + Gets the image_identity of this V1ImageSignature. + A human readable string representing image's identity. It could be a product name and version, or an image pull spec (e.g. \"registry.access.redhat.com/rhel7/rhel:7.2\"). + + :return: The image_identity of this V1ImageSignature. + :rtype: str + """ + return self._image_identity + + @image_identity.setter + def image_identity(self, image_identity): + """ + Sets the image_identity of this V1ImageSignature. + A human readable string representing image's identity. It could be a product name and version, or an image pull spec (e.g. \"registry.access.redhat.com/rhel7/rhel:7.2\"). + + :param image_identity: The image_identity of this V1ImageSignature. + :type: str + """ + + self._image_identity = image_identity + + @property + def issued_by(self): + """ + Gets the issued_by of this V1ImageSignature. + If specified, it holds information about an issuer of signing certificate or key (a person or entity who signed the signing certificate or key). + + :return: The issued_by of this V1ImageSignature. + :rtype: V1SignatureIssuer + """ + return self._issued_by + + @issued_by.setter + def issued_by(self, issued_by): + """ + Sets the issued_by of this V1ImageSignature. + If specified, it holds information about an issuer of signing certificate or key (a person or entity who signed the signing certificate or key). + + :param issued_by: The issued_by of this V1ImageSignature. + :type: V1SignatureIssuer + """ + + self._issued_by = issued_by + + @property + def issued_to(self): + """ + Gets the issued_to of this V1ImageSignature. + If specified, it holds information about a subject of signing certificate or key (a person or entity who signed the image). + + :return: The issued_to of this V1ImageSignature. + :rtype: V1SignatureSubject + """ + return self._issued_to + + @issued_to.setter + def issued_to(self, issued_to): + """ + Sets the issued_to of this V1ImageSignature. + If specified, it holds information about a subject of signing certificate or key (a person or entity who signed the image). + + :param issued_to: The issued_to of this V1ImageSignature. + :type: V1SignatureSubject + """ + + self._issued_to = issued_to + + @property + def kind(self): + """ + Gets the kind of this V1ImageSignature. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ImageSignature. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ImageSignature. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ImageSignature. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ImageSignature. + Standard object's metadata. + + :return: The metadata of this V1ImageSignature. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ImageSignature. + Standard object's metadata. + + :param metadata: The metadata of this V1ImageSignature. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def signed_claims(self): + """ + Gets the signed_claims of this V1ImageSignature. + Contains claims from the signature. + + :return: The signed_claims of this V1ImageSignature. + :rtype: dict(str, str) + """ + return self._signed_claims + + @signed_claims.setter + def signed_claims(self, signed_claims): + """ + Sets the signed_claims of this V1ImageSignature. + Contains claims from the signature. + + :param signed_claims: The signed_claims of this V1ImageSignature. + :type: dict(str, str) + """ + + self._signed_claims = signed_claims + + @property + def type(self): + """ + Gets the type of this V1ImageSignature. + Required: Describes a type of stored blob. + + :return: The type of this V1ImageSignature. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1ImageSignature. + Required: Describes a type of stored blob. + + :param type: The type of this V1ImageSignature. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageSignature): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_source.py b/kubernetes/client/models/v1_image_source.py new file mode 100644 index 0000000000..6f319ef6c4 --- /dev/null +++ b/kubernetes/client/models/v1_image_source.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, _from=None, paths=None, pull_secret=None): + """ + V1ImageSource - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + '_from': 'V1ObjectReference', + 'paths': 'list[V1ImageSourcePath]', + 'pull_secret': 'V1LocalObjectReference' + } + + self.attribute_map = { + '_from': 'from', + 'paths': 'paths', + 'pull_secret': 'pullSecret' + } + + self.__from = _from + self._paths = paths + self._pull_secret = pull_secret + + @property + def _from(self): + """ + Gets the _from of this V1ImageSource. + from is a reference to an ImageStreamTag, ImageStreamImage, or DockerImage to copy source from. + + :return: The _from of this V1ImageSource. + :rtype: V1ObjectReference + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1ImageSource. + from is a reference to an ImageStreamTag, ImageStreamImage, or DockerImage to copy source from. + + :param _from: The _from of this V1ImageSource. + :type: V1ObjectReference + """ + if _from is None: + raise ValueError("Invalid value for `_from`, must not be `None`") + + self.__from = _from + + @property + def paths(self): + """ + Gets the paths of this V1ImageSource. + paths is a list of source and destination paths to copy from the image. + + :return: The paths of this V1ImageSource. + :rtype: list[V1ImageSourcePath] + """ + return self._paths + + @paths.setter + def paths(self, paths): + """ + Sets the paths of this V1ImageSource. + paths is a list of source and destination paths to copy from the image. + + :param paths: The paths of this V1ImageSource. + :type: list[V1ImageSourcePath] + """ + if paths is None: + raise ValueError("Invalid value for `paths`, must not be `None`") + + self._paths = paths + + @property + def pull_secret(self): + """ + Gets the pull_secret of this V1ImageSource. + pullSecret is a reference to a secret to be used to pull the image from a registry If the image is pulled from the OpenShift registry, this field does not need to be set. + + :return: The pull_secret of this V1ImageSource. + :rtype: V1LocalObjectReference + """ + return self._pull_secret + + @pull_secret.setter + def pull_secret(self, pull_secret): + """ + Sets the pull_secret of this V1ImageSource. + pullSecret is a reference to a secret to be used to pull the image from a registry If the image is pulled from the OpenShift registry, this field does not need to be set. + + :param pull_secret: The pull_secret of this V1ImageSource. + :type: V1LocalObjectReference + """ + + self._pull_secret = pull_secret + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_source_path.py b/kubernetes/client/models/v1_image_source_path.py new file mode 100644 index 0000000000..38ba05a1b5 --- /dev/null +++ b/kubernetes/client/models/v1_image_source_path.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageSourcePath(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, destination_dir=None, source_path=None): + """ + V1ImageSourcePath - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'destination_dir': 'str', + 'source_path': 'str' + } + + self.attribute_map = { + 'destination_dir': 'destinationDir', + 'source_path': 'sourcePath' + } + + self._destination_dir = destination_dir + self._source_path = source_path + + @property + def destination_dir(self): + """ + Gets the destination_dir of this V1ImageSourcePath. + destinationDir is the relative directory within the build directory where files copied from the image are placed. + + :return: The destination_dir of this V1ImageSourcePath. + :rtype: str + """ + return self._destination_dir + + @destination_dir.setter + def destination_dir(self, destination_dir): + """ + Sets the destination_dir of this V1ImageSourcePath. + destinationDir is the relative directory within the build directory where files copied from the image are placed. + + :param destination_dir: The destination_dir of this V1ImageSourcePath. + :type: str + """ + if destination_dir is None: + raise ValueError("Invalid value for `destination_dir`, must not be `None`") + + self._destination_dir = destination_dir + + @property + def source_path(self): + """ + Gets the source_path of this V1ImageSourcePath. + sourcePath is the absolute path of the file or directory inside the image to copy to the build directory. + + :return: The source_path of this V1ImageSourcePath. + :rtype: str + """ + return self._source_path + + @source_path.setter + def source_path(self, source_path): + """ + Sets the source_path of this V1ImageSourcePath. + sourcePath is the absolute path of the file or directory inside the image to copy to the build directory. + + :param source_path: The source_path of this V1ImageSourcePath. + :type: str + """ + if source_path is None: + raise ValueError("Invalid value for `source_path`, must not be `None`") + + self._source_path = source_path + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageSourcePath): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_stream.py b/kubernetes/client/models/v1_image_stream.py new file mode 100644 index 0000000000..909a910952 --- /dev/null +++ b/kubernetes/client/models/v1_image_stream.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageStream(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1ImageStream - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ImageStreamSpec', + 'status': 'V1ImageStreamStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1ImageStream. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ImageStream. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ImageStream. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ImageStream. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1ImageStream. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ImageStream. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ImageStream. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ImageStream. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ImageStream. + Standard object's metadata. + + :return: The metadata of this V1ImageStream. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ImageStream. + Standard object's metadata. + + :param metadata: The metadata of this V1ImageStream. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1ImageStream. + Spec describes the desired state of this stream + + :return: The spec of this V1ImageStream. + :rtype: V1ImageStreamSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1ImageStream. + Spec describes the desired state of this stream + + :param spec: The spec of this V1ImageStream. + :type: V1ImageStreamSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1ImageStream. + Status describes the current state of this stream + + :return: The status of this V1ImageStream. + :rtype: V1ImageStreamStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1ImageStream. + Status describes the current state of this stream + + :param status: The status of this V1ImageStream. + :type: V1ImageStreamStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageStream): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_stream_image.py b/kubernetes/client/models/v1_image_stream_image.py new file mode 100644 index 0000000000..6060d79b43 --- /dev/null +++ b/kubernetes/client/models/v1_image_stream_image.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageStreamImage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, image=None, kind=None, metadata=None): + """ + V1ImageStreamImage - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'image': 'V1Image', + 'kind': 'str', + 'metadata': 'V1ObjectMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'image': 'image', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._image = image + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1ImageStreamImage. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ImageStreamImage. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ImageStreamImage. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ImageStreamImage. + :type: str + """ + + self._api_version = api_version + + @property + def image(self): + """ + Gets the image of this V1ImageStreamImage. + Image associated with the ImageStream and image name. + + :return: The image of this V1ImageStreamImage. + :rtype: V1Image + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1ImageStreamImage. + Image associated with the ImageStream and image name. + + :param image: The image of this V1ImageStreamImage. + :type: V1Image + """ + if image is None: + raise ValueError("Invalid value for `image`, must not be `None`") + + self._image = image + + @property + def kind(self): + """ + Gets the kind of this V1ImageStreamImage. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ImageStreamImage. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ImageStreamImage. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ImageStreamImage. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ImageStreamImage. + Standard object's metadata. + + :return: The metadata of this V1ImageStreamImage. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ImageStreamImage. + Standard object's metadata. + + :param metadata: The metadata of this V1ImageStreamImage. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageStreamImage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_stream_import.py b/kubernetes/client/models/v1_image_stream_import.py new file mode 100644 index 0000000000..185778cddd --- /dev/null +++ b/kubernetes/client/models/v1_image_stream_import.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageStreamImport(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1ImageStreamImport - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ImageStreamImportSpec', + 'status': 'V1ImageStreamImportStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1ImageStreamImport. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ImageStreamImport. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ImageStreamImport. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ImageStreamImport. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1ImageStreamImport. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ImageStreamImport. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ImageStreamImport. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ImageStreamImport. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ImageStreamImport. + Standard object's metadata. + + :return: The metadata of this V1ImageStreamImport. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ImageStreamImport. + Standard object's metadata. + + :param metadata: The metadata of this V1ImageStreamImport. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1ImageStreamImport. + Spec is a description of the images that the user wishes to import + + :return: The spec of this V1ImageStreamImport. + :rtype: V1ImageStreamImportSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1ImageStreamImport. + Spec is a description of the images that the user wishes to import + + :param spec: The spec of this V1ImageStreamImport. + :type: V1ImageStreamImportSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1ImageStreamImport. + Status is the the result of importing the image + + :return: The status of this V1ImageStreamImport. + :rtype: V1ImageStreamImportStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1ImageStreamImport. + Status is the the result of importing the image + + :param status: The status of this V1ImageStreamImport. + :type: V1ImageStreamImportStatus + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageStreamImport): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_stream_import_spec.py b/kubernetes/client/models/v1_image_stream_import_spec.py new file mode 100644 index 0000000000..9d0992ad88 --- /dev/null +++ b/kubernetes/client/models/v1_image_stream_import_spec.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageStreamImportSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, images=None, _import=None, repository=None): + """ + V1ImageStreamImportSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'images': 'list[V1ImageImportSpec]', + '_import': 'bool', + 'repository': 'V1RepositoryImportSpec' + } + + self.attribute_map = { + 'images': 'images', + '_import': 'import', + 'repository': 'repository' + } + + self._images = images + self.__import = _import + self._repository = repository + + @property + def images(self): + """ + Gets the images of this V1ImageStreamImportSpec. + Images are a list of individual images to import. + + :return: The images of this V1ImageStreamImportSpec. + :rtype: list[V1ImageImportSpec] + """ + return self._images + + @images.setter + def images(self, images): + """ + Sets the images of this V1ImageStreamImportSpec. + Images are a list of individual images to import. + + :param images: The images of this V1ImageStreamImportSpec. + :type: list[V1ImageImportSpec] + """ + + self._images = images + + @property + def _import(self): + """ + Gets the _import of this V1ImageStreamImportSpec. + Import indicates whether to perform an import - if so, the specified tags are set on the spec and status of the image stream defined by the type meta. + + :return: The _import of this V1ImageStreamImportSpec. + :rtype: bool + """ + return self.__import + + @_import.setter + def _import(self, _import): + """ + Sets the _import of this V1ImageStreamImportSpec. + Import indicates whether to perform an import - if so, the specified tags are set on the spec and status of the image stream defined by the type meta. + + :param _import: The _import of this V1ImageStreamImportSpec. + :type: bool + """ + if _import is None: + raise ValueError("Invalid value for `_import`, must not be `None`") + + self.__import = _import + + @property + def repository(self): + """ + Gets the repository of this V1ImageStreamImportSpec. + Repository is an optional import of an entire Docker image repository. A maximum limit on the number of tags imported this way is imposed by the server. + + :return: The repository of this V1ImageStreamImportSpec. + :rtype: V1RepositoryImportSpec + """ + return self._repository + + @repository.setter + def repository(self, repository): + """ + Sets the repository of this V1ImageStreamImportSpec. + Repository is an optional import of an entire Docker image repository. A maximum limit on the number of tags imported this way is imposed by the server. + + :param repository: The repository of this V1ImageStreamImportSpec. + :type: V1RepositoryImportSpec + """ + + self._repository = repository + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageStreamImportSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_stream_import_status.py b/kubernetes/client/models/v1_image_stream_import_status.py new file mode 100644 index 0000000000..c2c884bd3d --- /dev/null +++ b/kubernetes/client/models/v1_image_stream_import_status.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageStreamImportStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, images=None, _import=None, repository=None): + """ + V1ImageStreamImportStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'images': 'list[V1ImageImportStatus]', + '_import': 'V1ImageStream', + 'repository': 'V1RepositoryImportStatus' + } + + self.attribute_map = { + 'images': 'images', + '_import': 'import', + 'repository': 'repository' + } + + self._images = images + self.__import = _import + self._repository = repository + + @property + def images(self): + """ + Gets the images of this V1ImageStreamImportStatus. + Images is set with the result of importing spec.images + + :return: The images of this V1ImageStreamImportStatus. + :rtype: list[V1ImageImportStatus] + """ + return self._images + + @images.setter + def images(self, images): + """ + Sets the images of this V1ImageStreamImportStatus. + Images is set with the result of importing spec.images + + :param images: The images of this V1ImageStreamImportStatus. + :type: list[V1ImageImportStatus] + """ + + self._images = images + + @property + def _import(self): + """ + Gets the _import of this V1ImageStreamImportStatus. + Import is the image stream that was successfully updated or created when 'to' was set. + + :return: The _import of this V1ImageStreamImportStatus. + :rtype: V1ImageStream + """ + return self.__import + + @_import.setter + def _import(self, _import): + """ + Sets the _import of this V1ImageStreamImportStatus. + Import is the image stream that was successfully updated or created when 'to' was set. + + :param _import: The _import of this V1ImageStreamImportStatus. + :type: V1ImageStream + """ + + self.__import = _import + + @property + def repository(self): + """ + Gets the repository of this V1ImageStreamImportStatus. + Repository is set if spec.repository was set to the outcome of the import + + :return: The repository of this V1ImageStreamImportStatus. + :rtype: V1RepositoryImportStatus + """ + return self._repository + + @repository.setter + def repository(self, repository): + """ + Sets the repository of this V1ImageStreamImportStatus. + Repository is set if spec.repository was set to the outcome of the import + + :param repository: The repository of this V1ImageStreamImportStatus. + :type: V1RepositoryImportStatus + """ + + self._repository = repository + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageStreamImportStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_stream_list.py b/kubernetes/client/models/v1_image_stream_list.py new file mode 100644 index 0000000000..cdb1d8b7a9 --- /dev/null +++ b/kubernetes/client/models/v1_image_stream_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageStreamList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1ImageStreamList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1ImageStream]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1ImageStreamList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ImageStreamList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ImageStreamList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ImageStreamList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1ImageStreamList. + Items is a list of imageStreams + + :return: The items of this V1ImageStreamList. + :rtype: list[V1ImageStream] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ImageStreamList. + Items is a list of imageStreams + + :param items: The items of this V1ImageStreamList. + :type: list[V1ImageStream] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1ImageStreamList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ImageStreamList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ImageStreamList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ImageStreamList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ImageStreamList. + Standard object's metadata. + + :return: The metadata of this V1ImageStreamList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ImageStreamList. + Standard object's metadata. + + :param metadata: The metadata of this V1ImageStreamList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageStreamList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_stream_mapping.py b/kubernetes/client/models/v1_image_stream_mapping.py new file mode 100644 index 0000000000..aa4bfe8ecc --- /dev/null +++ b/kubernetes/client/models/v1_image_stream_mapping.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageStreamMapping(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, image=None, kind=None, metadata=None, tag=None): + """ + V1ImageStreamMapping - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'image': 'V1Image', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'tag': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'image': 'image', + 'kind': 'kind', + 'metadata': 'metadata', + 'tag': 'tag' + } + + self._api_version = api_version + self._image = image + self._kind = kind + self._metadata = metadata + self._tag = tag + + @property + def api_version(self): + """ + Gets the api_version of this V1ImageStreamMapping. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ImageStreamMapping. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ImageStreamMapping. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ImageStreamMapping. + :type: str + """ + + self._api_version = api_version + + @property + def image(self): + """ + Gets the image of this V1ImageStreamMapping. + Image is a Docker image. + + :return: The image of this V1ImageStreamMapping. + :rtype: V1Image + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1ImageStreamMapping. + Image is a Docker image. + + :param image: The image of this V1ImageStreamMapping. + :type: V1Image + """ + if image is None: + raise ValueError("Invalid value for `image`, must not be `None`") + + self._image = image + + @property + def kind(self): + """ + Gets the kind of this V1ImageStreamMapping. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ImageStreamMapping. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ImageStreamMapping. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ImageStreamMapping. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ImageStreamMapping. + Standard object's metadata. + + :return: The metadata of this V1ImageStreamMapping. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ImageStreamMapping. + Standard object's metadata. + + :param metadata: The metadata of this V1ImageStreamMapping. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def tag(self): + """ + Gets the tag of this V1ImageStreamMapping. + Tag is a string value this image can be located with inside the stream. + + :return: The tag of this V1ImageStreamMapping. + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """ + Sets the tag of this V1ImageStreamMapping. + Tag is a string value this image can be located with inside the stream. + + :param tag: The tag of this V1ImageStreamMapping. + :type: str + """ + if tag is None: + raise ValueError("Invalid value for `tag`, must not be `None`") + + self._tag = tag + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageStreamMapping): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_stream_spec.py b/kubernetes/client/models/v1_image_stream_spec.py new file mode 100644 index 0000000000..261ff0670e --- /dev/null +++ b/kubernetes/client/models/v1_image_stream_spec.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageStreamSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, docker_image_repository=None, tags=None): + """ + V1ImageStreamSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'docker_image_repository': 'str', + 'tags': 'list[V1TagReference]' + } + + self.attribute_map = { + 'docker_image_repository': 'dockerImageRepository', + 'tags': 'tags' + } + + self._docker_image_repository = docker_image_repository + self._tags = tags + + @property + def docker_image_repository(self): + """ + Gets the docker_image_repository of this V1ImageStreamSpec. + DockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server + + :return: The docker_image_repository of this V1ImageStreamSpec. + :rtype: str + """ + return self._docker_image_repository + + @docker_image_repository.setter + def docker_image_repository(self, docker_image_repository): + """ + Sets the docker_image_repository of this V1ImageStreamSpec. + DockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server + + :param docker_image_repository: The docker_image_repository of this V1ImageStreamSpec. + :type: str + """ + + self._docker_image_repository = docker_image_repository + + @property + def tags(self): + """ + Gets the tags of this V1ImageStreamSpec. + Tags map arbitrary string values to specific image locators + + :return: The tags of this V1ImageStreamSpec. + :rtype: list[V1TagReference] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this V1ImageStreamSpec. + Tags map arbitrary string values to specific image locators + + :param tags: The tags of this V1ImageStreamSpec. + :type: list[V1TagReference] + """ + + self._tags = tags + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageStreamSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_stream_status.py b/kubernetes/client/models/v1_image_stream_status.py new file mode 100644 index 0000000000..5bbfa9ecba --- /dev/null +++ b/kubernetes/client/models/v1_image_stream_status.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageStreamStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, docker_image_repository=None, tags=None): + """ + V1ImageStreamStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'docker_image_repository': 'str', + 'tags': 'list[V1NamedTagEventList]' + } + + self.attribute_map = { + 'docker_image_repository': 'dockerImageRepository', + 'tags': 'tags' + } + + self._docker_image_repository = docker_image_repository + self._tags = tags + + @property + def docker_image_repository(self): + """ + Gets the docker_image_repository of this V1ImageStreamStatus. + DockerImageRepository represents the effective location this stream may be accessed at. May be empty until the server determines where the repository is located + + :return: The docker_image_repository of this V1ImageStreamStatus. + :rtype: str + """ + return self._docker_image_repository + + @docker_image_repository.setter + def docker_image_repository(self, docker_image_repository): + """ + Sets the docker_image_repository of this V1ImageStreamStatus. + DockerImageRepository represents the effective location this stream may be accessed at. May be empty until the server determines where the repository is located + + :param docker_image_repository: The docker_image_repository of this V1ImageStreamStatus. + :type: str + """ + if docker_image_repository is None: + raise ValueError("Invalid value for `docker_image_repository`, must not be `None`") + + self._docker_image_repository = docker_image_repository + + @property + def tags(self): + """ + Gets the tags of this V1ImageStreamStatus. + Tags are a historical record of images associated with each tag. The first entry in the TagEvent array is the currently tagged image. + + :return: The tags of this V1ImageStreamStatus. + :rtype: list[V1NamedTagEventList] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this V1ImageStreamStatus. + Tags are a historical record of images associated with each tag. The first entry in the TagEvent array is the currently tagged image. + + :param tags: The tags of this V1ImageStreamStatus. + :type: list[V1NamedTagEventList] + """ + + self._tags = tags + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageStreamStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_stream_tag.py b/kubernetes/client/models/v1_image_stream_tag.py new file mode 100644 index 0000000000..a7df979739 --- /dev/null +++ b/kubernetes/client/models/v1_image_stream_tag.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageStreamTag(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, conditions=None, generation=None, image=None, kind=None, metadata=None, tag=None): + """ + V1ImageStreamTag - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'conditions': 'list[V1TagEventCondition]', + 'generation': 'int', + 'image': 'V1Image', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'tag': 'V1TagReference' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'conditions': 'conditions', + 'generation': 'generation', + 'image': 'image', + 'kind': 'kind', + 'metadata': 'metadata', + 'tag': 'tag' + } + + self._api_version = api_version + self._conditions = conditions + self._generation = generation + self._image = image + self._kind = kind + self._metadata = metadata + self._tag = tag + + @property + def api_version(self): + """ + Gets the api_version of this V1ImageStreamTag. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ImageStreamTag. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ImageStreamTag. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ImageStreamTag. + :type: str + """ + + self._api_version = api_version + + @property + def conditions(self): + """ + Gets the conditions of this V1ImageStreamTag. + Conditions is an array of conditions that apply to the image stream tag. + + :return: The conditions of this V1ImageStreamTag. + :rtype: list[V1TagEventCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1ImageStreamTag. + Conditions is an array of conditions that apply to the image stream tag. + + :param conditions: The conditions of this V1ImageStreamTag. + :type: list[V1TagEventCondition] + """ + + self._conditions = conditions + + @property + def generation(self): + """ + Gets the generation of this V1ImageStreamTag. + Generation is the current generation of the tagged image - if tag is provided and this value is not equal to the tag generation, a user has requested an import that has not completed, or Conditions will be filled out indicating any error. + + :return: The generation of this V1ImageStreamTag. + :rtype: int + """ + return self._generation + + @generation.setter + def generation(self, generation): + """ + Sets the generation of this V1ImageStreamTag. + Generation is the current generation of the tagged image - if tag is provided and this value is not equal to the tag generation, a user has requested an import that has not completed, or Conditions will be filled out indicating any error. + + :param generation: The generation of this V1ImageStreamTag. + :type: int + """ + if generation is None: + raise ValueError("Invalid value for `generation`, must not be `None`") + + self._generation = generation + + @property + def image(self): + """ + Gets the image of this V1ImageStreamTag. + Image associated with the ImageStream and tag. + + :return: The image of this V1ImageStreamTag. + :rtype: V1Image + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1ImageStreamTag. + Image associated with the ImageStream and tag. + + :param image: The image of this V1ImageStreamTag. + :type: V1Image + """ + if image is None: + raise ValueError("Invalid value for `image`, must not be `None`") + + self._image = image + + @property + def kind(self): + """ + Gets the kind of this V1ImageStreamTag. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ImageStreamTag. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ImageStreamTag. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ImageStreamTag. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ImageStreamTag. + Standard object's metadata. + + :return: The metadata of this V1ImageStreamTag. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ImageStreamTag. + Standard object's metadata. + + :param metadata: The metadata of this V1ImageStreamTag. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def tag(self): + """ + Gets the tag of this V1ImageStreamTag. + Tag is the spec tag associated with this image stream tag, and it may be null if only pushes have occurred to this image stream. + + :return: The tag of this V1ImageStreamTag. + :rtype: V1TagReference + """ + return self._tag + + @tag.setter + def tag(self, tag): + """ + Sets the tag of this V1ImageStreamTag. + Tag is the spec tag associated with this image stream tag, and it may be null if only pushes have occurred to this image stream. + + :param tag: The tag of this V1ImageStreamTag. + :type: V1TagReference + """ + if tag is None: + raise ValueError("Invalid value for `tag`, must not be `None`") + + self._tag = tag + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageStreamTag): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_image_stream_tag_list.py b/kubernetes/client/models/v1_image_stream_tag_list.py new file mode 100644 index 0000000000..1c67de4b7f --- /dev/null +++ b/kubernetes/client/models/v1_image_stream_tag_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ImageStreamTagList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1ImageStreamTagList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1ImageStreamTag]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1ImageStreamTagList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ImageStreamTagList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ImageStreamTagList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ImageStreamTagList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1ImageStreamTagList. + Items is the list of image stream tags + + :return: The items of this V1ImageStreamTagList. + :rtype: list[V1ImageStreamTag] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ImageStreamTagList. + Items is the list of image stream tags + + :param items: The items of this V1ImageStreamTagList. + :type: list[V1ImageStreamTag] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1ImageStreamTagList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ImageStreamTagList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ImageStreamTagList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ImageStreamTagList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ImageStreamTagList. + Standard object's metadata. + + :return: The metadata of this V1ImageStreamTagList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ImageStreamTagList. + Standard object's metadata. + + :param metadata: The metadata of this V1ImageStreamTagList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ImageStreamTagList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_iscsi_volume_source.py b/kubernetes/client/models/v1_iscsi_volume_source.py index 054ebce58b..a84cb89064 100644 --- a/kubernetes/client/models/v1_iscsi_volume_source.py +++ b/kubernetes/client/models/v1_iscsi_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1ISCSIVolumeSource(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, fs_type=None, iqn=None, iscsi_interface=None, lun=None, portals=None, read_only=None, target_portal=None): + def __init__(self, fs_type=None, iqn=None, iscsi_interface=None, lun=None, read_only=None, target_portal=None): """ V1ISCSIVolumeSource - a model defined in Swagger @@ -35,7 +35,6 @@ def __init__(self, fs_type=None, iqn=None, iscsi_interface=None, lun=None, porta 'iqn': 'str', 'iscsi_interface': 'str', 'lun': 'int', - 'portals': 'list[str]', 'read_only': 'bool', 'target_portal': 'str' } @@ -45,7 +44,6 @@ def __init__(self, fs_type=None, iqn=None, iscsi_interface=None, lun=None, porta 'iqn': 'iqn', 'iscsi_interface': 'iscsiInterface', 'lun': 'lun', - 'portals': 'portals', 'read_only': 'readOnly', 'target_portal': 'targetPortal' } @@ -54,7 +52,6 @@ def __init__(self, fs_type=None, iqn=None, iscsi_interface=None, lun=None, porta self._iqn = iqn self._iscsi_interface = iscsi_interface self._lun = lun - self._portals = portals self._read_only = read_only self._target_portal = target_portal @@ -154,29 +151,6 @@ def lun(self, lun): self._lun = lun - @property - def portals(self): - """ - Gets the portals of this V1ISCSIVolumeSource. - iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - :return: The portals of this V1ISCSIVolumeSource. - :rtype: list[str] - """ - return self._portals - - @portals.setter - def portals(self, portals): - """ - Sets the portals of this V1ISCSIVolumeSource. - iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - :param portals: The portals of this V1ISCSIVolumeSource. - :type: list[str] - """ - - self._portals = portals - @property def read_only(self): """ diff --git a/kubernetes/client/models/v1_jenkins_pipeline_build_strategy.py b/kubernetes/client/models/v1_jenkins_pipeline_build_strategy.py new file mode 100644 index 0000000000..19141c754c --- /dev/null +++ b/kubernetes/client/models/v1_jenkins_pipeline_build_strategy.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1JenkinsPipelineBuildStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, jenkinsfile=None, jenkinsfile_path=None): + """ + V1JenkinsPipelineBuildStrategy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'jenkinsfile': 'str', + 'jenkinsfile_path': 'str' + } + + self.attribute_map = { + 'jenkinsfile': 'jenkinsfile', + 'jenkinsfile_path': 'jenkinsfilePath' + } + + self._jenkinsfile = jenkinsfile + self._jenkinsfile_path = jenkinsfile_path + + @property + def jenkinsfile(self): + """ + Gets the jenkinsfile of this V1JenkinsPipelineBuildStrategy. + Jenkinsfile defines the optional raw contents of a Jenkinsfile which defines a Jenkins pipeline build. + + :return: The jenkinsfile of this V1JenkinsPipelineBuildStrategy. + :rtype: str + """ + return self._jenkinsfile + + @jenkinsfile.setter + def jenkinsfile(self, jenkinsfile): + """ + Sets the jenkinsfile of this V1JenkinsPipelineBuildStrategy. + Jenkinsfile defines the optional raw contents of a Jenkinsfile which defines a Jenkins pipeline build. + + :param jenkinsfile: The jenkinsfile of this V1JenkinsPipelineBuildStrategy. + :type: str + """ + + self._jenkinsfile = jenkinsfile + + @property + def jenkinsfile_path(self): + """ + Gets the jenkinsfile_path of this V1JenkinsPipelineBuildStrategy. + JenkinsfilePath is the optional path of the Jenkinsfile that will be used to configure the pipeline relative to the root of the context (contextDir). If both JenkinsfilePath & Jenkinsfile are both not specified, this defaults to Jenkinsfile in the root of the specified contextDir. + + :return: The jenkinsfile_path of this V1JenkinsPipelineBuildStrategy. + :rtype: str + """ + return self._jenkinsfile_path + + @jenkinsfile_path.setter + def jenkinsfile_path(self, jenkinsfile_path): + """ + Sets the jenkinsfile_path of this V1JenkinsPipelineBuildStrategy. + JenkinsfilePath is the optional path of the Jenkinsfile that will be used to configure the pipeline relative to the root of the context (contextDir). If both JenkinsfilePath & Jenkinsfile are both not specified, this defaults to Jenkinsfile in the root of the specified contextDir. + + :param jenkinsfile_path: The jenkinsfile_path of this V1JenkinsPipelineBuildStrategy. + :type: str + """ + + self._jenkinsfile_path = jenkinsfile_path + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1JenkinsPipelineBuildStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_job.py b/kubernetes/client/models/v1_job.py index d5bdf04615..8e20fbbf21 100644 --- a/kubernetes/client/models/v1_job.py +++ b/kubernetes/client/models/v1_job.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_job_condition.py b/kubernetes/client/models/v1_job_condition.py index a930a5e862..79d8d83ece 100644 --- a/kubernetes/client/models/v1_job_condition.py +++ b/kubernetes/client/models/v1_job_condition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_job_list.py b/kubernetes/client/models/v1_job_list.py index 83f4c7c0f2..b80ddac139 100644 --- a/kubernetes/client/models/v1_job_list.py +++ b/kubernetes/client/models/v1_job_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Job]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V1JobList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1JobList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_job_spec.py b/kubernetes/client/models/v1_job_spec.py index d74184a449..07a1963a5f 100644 --- a/kubernetes/client/models/v1_job_spec.py +++ b/kubernetes/client/models/v1_job_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -35,7 +35,7 @@ def __init__(self, active_deadline_seconds=None, completions=None, manual_select 'completions': 'int', 'manual_selector': 'bool', 'parallelism': 'int', - 'selector': 'V1LabelSelector', + 'selector': 'UnversionedLabelSelector', 'template': 'V1PodTemplateSpec' } @@ -154,7 +154,7 @@ def selector(self): Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors :return: The selector of this V1JobSpec. - :rtype: V1LabelSelector + :rtype: UnversionedLabelSelector """ return self._selector @@ -165,7 +165,7 @@ def selector(self, selector): Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors :param selector: The selector of this V1JobSpec. - :type: V1LabelSelector + :type: UnversionedLabelSelector """ self._selector = selector diff --git a/kubernetes/client/models/v1_job_status.py b/kubernetes/client/models/v1_job_status.py index 2f1b4f886b..f15afe3a43 100644 --- a/kubernetes/client/models/v1_job_status.py +++ b/kubernetes/client/models/v1_job_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_key_to_path.py b/kubernetes/client/models/v1_key_to_path.py index 417deb0d91..4b745e4103 100644 --- a/kubernetes/client/models/v1_key_to_path.py +++ b/kubernetes/client/models/v1_key_to_path.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_label_selector.py b/kubernetes/client/models/v1_label_selector.py deleted file mode 100644 index c2d586f50e..0000000000 --- a/kubernetes/client/models/v1_label_selector.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1LabelSelector(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, match_expressions=None, match_labels=None): - """ - V1LabelSelector - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'match_expressions': 'list[V1LabelSelectorRequirement]', - 'match_labels': 'dict(str, str)' - } - - self.attribute_map = { - 'match_expressions': 'matchExpressions', - 'match_labels': 'matchLabels' - } - - self._match_expressions = match_expressions - self._match_labels = match_labels - - @property - def match_expressions(self): - """ - Gets the match_expressions of this V1LabelSelector. - matchExpressions is a list of label selector requirements. The requirements are ANDed. - - :return: The match_expressions of this V1LabelSelector. - :rtype: list[V1LabelSelectorRequirement] - """ - return self._match_expressions - - @match_expressions.setter - def match_expressions(self, match_expressions): - """ - Sets the match_expressions of this V1LabelSelector. - matchExpressions is a list of label selector requirements. The requirements are ANDed. - - :param match_expressions: The match_expressions of this V1LabelSelector. - :type: list[V1LabelSelectorRequirement] - """ - - self._match_expressions = match_expressions - - @property - def match_labels(self): - """ - Gets the match_labels of this V1LabelSelector. - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. - - :return: The match_labels of this V1LabelSelector. - :rtype: dict(str, str) - """ - return self._match_labels - - @match_labels.setter - def match_labels(self, match_labels): - """ - Sets the match_labels of this V1LabelSelector. - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. - - :param match_labels: The match_labels of this V1LabelSelector. - :type: dict(str, str) - """ - - self._match_labels = match_labels - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1LabelSelector): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_label_selector_requirement.py b/kubernetes/client/models/v1_label_selector_requirement.py deleted file mode 100644 index 5c1b9bdce1..0000000000 --- a/kubernetes/client/models/v1_label_selector_requirement.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1LabelSelectorRequirement(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, key=None, operator=None, values=None): - """ - V1LabelSelectorRequirement - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'key': 'str', - 'operator': 'str', - 'values': 'list[str]' - } - - self.attribute_map = { - 'key': 'key', - 'operator': 'operator', - 'values': 'values' - } - - self._key = key - self._operator = operator - self._values = values - - @property - def key(self): - """ - Gets the key of this V1LabelSelectorRequirement. - key is the label key that the selector applies to. - - :return: The key of this V1LabelSelectorRequirement. - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """ - Sets the key of this V1LabelSelectorRequirement. - key is the label key that the selector applies to. - - :param key: The key of this V1LabelSelectorRequirement. - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") - - self._key = key - - @property - def operator(self): - """ - Gets the operator of this V1LabelSelectorRequirement. - operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. - - :return: The operator of this V1LabelSelectorRequirement. - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """ - Sets the operator of this V1LabelSelectorRequirement. - operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. - - :param operator: The operator of this V1LabelSelectorRequirement. - :type: str - """ - if operator is None: - raise ValueError("Invalid value for `operator`, must not be `None`") - - self._operator = operator - - @property - def values(self): - """ - Gets the values of this V1LabelSelectorRequirement. - values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - - :return: The values of this V1LabelSelectorRequirement. - :rtype: list[str] - """ - return self._values - - @values.setter - def values(self, values): - """ - Sets the values of this V1LabelSelectorRequirement. - values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - - :param values: The values of this V1LabelSelectorRequirement. - :type: list[str] - """ - - self._values = values - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1LabelSelectorRequirement): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_lifecycle.py b/kubernetes/client/models/v1_lifecycle.py index 73aeef4699..9d3b92243d 100644 --- a/kubernetes/client/models/v1_lifecycle.py +++ b/kubernetes/client/models/v1_lifecycle.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_lifecycle_hook.py b/kubernetes/client/models/v1_lifecycle_hook.py new file mode 100644 index 0000000000..f8bd74909b --- /dev/null +++ b/kubernetes/client/models/v1_lifecycle_hook.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1LifecycleHook(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, exec_new_pod=None, failure_policy=None, tag_images=None): + """ + V1LifecycleHook - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'exec_new_pod': 'V1ExecNewPodHook', + 'failure_policy': 'str', + 'tag_images': 'list[V1TagImageHook]' + } + + self.attribute_map = { + 'exec_new_pod': 'execNewPod', + 'failure_policy': 'failurePolicy', + 'tag_images': 'tagImages' + } + + self._exec_new_pod = exec_new_pod + self._failure_policy = failure_policy + self._tag_images = tag_images + + @property + def exec_new_pod(self): + """ + Gets the exec_new_pod of this V1LifecycleHook. + ExecNewPod specifies the options for a lifecycle hook backed by a pod. + + :return: The exec_new_pod of this V1LifecycleHook. + :rtype: V1ExecNewPodHook + """ + return self._exec_new_pod + + @exec_new_pod.setter + def exec_new_pod(self, exec_new_pod): + """ + Sets the exec_new_pod of this V1LifecycleHook. + ExecNewPod specifies the options for a lifecycle hook backed by a pod. + + :param exec_new_pod: The exec_new_pod of this V1LifecycleHook. + :type: V1ExecNewPodHook + """ + + self._exec_new_pod = exec_new_pod + + @property + def failure_policy(self): + """ + Gets the failure_policy of this V1LifecycleHook. + FailurePolicy specifies what action to take if the hook fails. + + :return: The failure_policy of this V1LifecycleHook. + :rtype: str + """ + return self._failure_policy + + @failure_policy.setter + def failure_policy(self, failure_policy): + """ + Sets the failure_policy of this V1LifecycleHook. + FailurePolicy specifies what action to take if the hook fails. + + :param failure_policy: The failure_policy of this V1LifecycleHook. + :type: str + """ + if failure_policy is None: + raise ValueError("Invalid value for `failure_policy`, must not be `None`") + + self._failure_policy = failure_policy + + @property + def tag_images(self): + """ + Gets the tag_images of this V1LifecycleHook. + TagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag. + + :return: The tag_images of this V1LifecycleHook. + :rtype: list[V1TagImageHook] + """ + return self._tag_images + + @tag_images.setter + def tag_images(self, tag_images): + """ + Sets the tag_images of this V1LifecycleHook. + TagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag. + + :param tag_images: The tag_images of this V1LifecycleHook. + :type: list[V1TagImageHook] + """ + + self._tag_images = tag_images + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1LifecycleHook): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_limit_range.py b/kubernetes/client/models/v1_limit_range.py index a0fc134b6e..47ce929ae0 100644 --- a/kubernetes/client/models/v1_limit_range.py +++ b/kubernetes/client/models/v1_limit_range.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_limit_range_item.py b/kubernetes/client/models/v1_limit_range_item.py index 6dce60edf2..5befa41953 100644 --- a/kubernetes/client/models/v1_limit_range_item.py +++ b/kubernetes/client/models/v1_limit_range_item.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_limit_range_list.py b/kubernetes/client/models/v1_limit_range_list.py index 11caa1bf0f..8d17e828e6 100644 --- a/kubernetes/client/models/v1_limit_range_list.py +++ b/kubernetes/client/models/v1_limit_range_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1LimitRange]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1LimitRangeList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1LimitRangeList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_limit_range_spec.py b/kubernetes/client/models/v1_limit_range_spec.py index 9ae2816216..2bdb196714 100644 --- a/kubernetes/client/models/v1_limit_range_spec.py +++ b/kubernetes/client/models/v1_limit_range_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_list_meta.py b/kubernetes/client/models/v1_list_meta.py deleted file mode 100644 index 351ca83e6c..0000000000 --- a/kubernetes/client/models/v1_list_meta.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1ListMeta(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, resource_version=None, self_link=None): - """ - V1ListMeta - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'resource_version': 'str', - 'self_link': 'str' - } - - self.attribute_map = { - 'resource_version': 'resourceVersion', - 'self_link': 'selfLink' - } - - self._resource_version = resource_version - self._self_link = self_link - - @property - def resource_version(self): - """ - Gets the resource_version of this V1ListMeta. - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency - - :return: The resource_version of this V1ListMeta. - :rtype: str - """ - return self._resource_version - - @resource_version.setter - def resource_version(self, resource_version): - """ - Sets the resource_version of this V1ListMeta. - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency - - :param resource_version: The resource_version of this V1ListMeta. - :type: str - """ - - self._resource_version = resource_version - - @property - def self_link(self): - """ - Gets the self_link of this V1ListMeta. - SelfLink is a URL representing this object. Populated by the system. Read-only. - - :return: The self_link of this V1ListMeta. - :rtype: str - """ - return self._self_link - - @self_link.setter - def self_link(self, self_link): - """ - Sets the self_link of this V1ListMeta. - SelfLink is a URL representing this object. Populated by the system. Read-only. - - :param self_link: The self_link of this V1ListMeta. - :type: str - """ - - self._self_link = self_link - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1ListMeta): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_load_balancer_ingress.py b/kubernetes/client/models/v1_load_balancer_ingress.py index 8f8d1bbbc8..8d8794fdce 100644 --- a/kubernetes/client/models/v1_load_balancer_ingress.py +++ b/kubernetes/client/models/v1_load_balancer_ingress.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_load_balancer_status.py b/kubernetes/client/models/v1_load_balancer_status.py index af2a528dde..3f839ec630 100644 --- a/kubernetes/client/models/v1_load_balancer_status.py +++ b/kubernetes/client/models/v1_load_balancer_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_local_object_reference.py b/kubernetes/client/models/v1_local_object_reference.py index 20602e3ad4..920fa8d454 100644 --- a/kubernetes/client/models/v1_local_object_reference.py +++ b/kubernetes/client/models/v1_local_object_reference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_local_resource_access_review.py b/kubernetes/client/models/v1_local_resource_access_review.py new file mode 100644 index 0000000000..6986d75fe0 --- /dev/null +++ b/kubernetes/client/models/v1_local_resource_access_review.py @@ -0,0 +1,393 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1LocalResourceAccessReview(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, content=None, is_non_resource_url=None, kind=None, namespace=None, path=None, resource=None, resource_api_group=None, resource_api_version=None, resource_name=None, verb=None): + """ + V1LocalResourceAccessReview - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'content': 'RuntimeRawExtension', + 'is_non_resource_url': 'bool', + 'kind': 'str', + 'namespace': 'str', + 'path': 'str', + 'resource': 'str', + 'resource_api_group': 'str', + 'resource_api_version': 'str', + 'resource_name': 'str', + 'verb': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'content': 'content', + 'is_non_resource_url': 'isNonResourceURL', + 'kind': 'kind', + 'namespace': 'namespace', + 'path': 'path', + 'resource': 'resource', + 'resource_api_group': 'resourceAPIGroup', + 'resource_api_version': 'resourceAPIVersion', + 'resource_name': 'resourceName', + 'verb': 'verb' + } + + self._api_version = api_version + self._content = content + self._is_non_resource_url = is_non_resource_url + self._kind = kind + self._namespace = namespace + self._path = path + self._resource = resource + self._resource_api_group = resource_api_group + self._resource_api_version = resource_api_version + self._resource_name = resource_name + self._verb = verb + + @property + def api_version(self): + """ + Gets the api_version of this V1LocalResourceAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1LocalResourceAccessReview. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1LocalResourceAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1LocalResourceAccessReview. + :type: str + """ + + self._api_version = api_version + + @property + def content(self): + """ + Gets the content of this V1LocalResourceAccessReview. + Content is the actual content of the request for create and update + + :return: The content of this V1LocalResourceAccessReview. + :rtype: RuntimeRawExtension + """ + return self._content + + @content.setter + def content(self, content): + """ + Sets the content of this V1LocalResourceAccessReview. + Content is the actual content of the request for create and update + + :param content: The content of this V1LocalResourceAccessReview. + :type: RuntimeRawExtension + """ + + self._content = content + + @property + def is_non_resource_url(self): + """ + Gets the is_non_resource_url of this V1LocalResourceAccessReview. + IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) + + :return: The is_non_resource_url of this V1LocalResourceAccessReview. + :rtype: bool + """ + return self._is_non_resource_url + + @is_non_resource_url.setter + def is_non_resource_url(self, is_non_resource_url): + """ + Sets the is_non_resource_url of this V1LocalResourceAccessReview. + IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) + + :param is_non_resource_url: The is_non_resource_url of this V1LocalResourceAccessReview. + :type: bool + """ + if is_non_resource_url is None: + raise ValueError("Invalid value for `is_non_resource_url`, must not be `None`") + + self._is_non_resource_url = is_non_resource_url + + @property + def kind(self): + """ + Gets the kind of this V1LocalResourceAccessReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1LocalResourceAccessReview. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1LocalResourceAccessReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1LocalResourceAccessReview. + :type: str + """ + + self._kind = kind + + @property + def namespace(self): + """ + Gets the namespace of this V1LocalResourceAccessReview. + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces + + :return: The namespace of this V1LocalResourceAccessReview. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1LocalResourceAccessReview. + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces + + :param namespace: The namespace of this V1LocalResourceAccessReview. + :type: str + """ + if namespace is None: + raise ValueError("Invalid value for `namespace`, must not be `None`") + + self._namespace = namespace + + @property + def path(self): + """ + Gets the path of this V1LocalResourceAccessReview. + Path is the path of a non resource URL + + :return: The path of this V1LocalResourceAccessReview. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1LocalResourceAccessReview. + Path is the path of a non resource URL + + :param path: The path of this V1LocalResourceAccessReview. + :type: str + """ + if path is None: + raise ValueError("Invalid value for `path`, must not be `None`") + + self._path = path + + @property + def resource(self): + """ + Gets the resource of this V1LocalResourceAccessReview. + Resource is one of the existing resource types + + :return: The resource of this V1LocalResourceAccessReview. + :rtype: str + """ + return self._resource + + @resource.setter + def resource(self, resource): + """ + Sets the resource of this V1LocalResourceAccessReview. + Resource is one of the existing resource types + + :param resource: The resource of this V1LocalResourceAccessReview. + :type: str + """ + if resource is None: + raise ValueError("Invalid value for `resource`, must not be `None`") + + self._resource = resource + + @property + def resource_api_group(self): + """ + Gets the resource_api_group of this V1LocalResourceAccessReview. + Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined + + :return: The resource_api_group of this V1LocalResourceAccessReview. + :rtype: str + """ + return self._resource_api_group + + @resource_api_group.setter + def resource_api_group(self, resource_api_group): + """ + Sets the resource_api_group of this V1LocalResourceAccessReview. + Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined + + :param resource_api_group: The resource_api_group of this V1LocalResourceAccessReview. + :type: str + """ + if resource_api_group is None: + raise ValueError("Invalid value for `resource_api_group`, must not be `None`") + + self._resource_api_group = resource_api_group + + @property + def resource_api_version(self): + """ + Gets the resource_api_version of this V1LocalResourceAccessReview. + Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined + + :return: The resource_api_version of this V1LocalResourceAccessReview. + :rtype: str + """ + return self._resource_api_version + + @resource_api_version.setter + def resource_api_version(self, resource_api_version): + """ + Sets the resource_api_version of this V1LocalResourceAccessReview. + Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined + + :param resource_api_version: The resource_api_version of this V1LocalResourceAccessReview. + :type: str + """ + if resource_api_version is None: + raise ValueError("Invalid value for `resource_api_version`, must not be `None`") + + self._resource_api_version = resource_api_version + + @property + def resource_name(self): + """ + Gets the resource_name of this V1LocalResourceAccessReview. + ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\" + + :return: The resource_name of this V1LocalResourceAccessReview. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """ + Sets the resource_name of this V1LocalResourceAccessReview. + ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\" + + :param resource_name: The resource_name of this V1LocalResourceAccessReview. + :type: str + """ + if resource_name is None: + raise ValueError("Invalid value for `resource_name`, must not be `None`") + + self._resource_name = resource_name + + @property + def verb(self): + """ + Gets the verb of this V1LocalResourceAccessReview. + Verb is one of: get, list, watch, create, update, delete + + :return: The verb of this V1LocalResourceAccessReview. + :rtype: str + """ + return self._verb + + @verb.setter + def verb(self, verb): + """ + Sets the verb of this V1LocalResourceAccessReview. + Verb is one of: get, list, watch, create, update, delete + + :param verb: The verb of this V1LocalResourceAccessReview. + :type: str + """ + if verb is None: + raise ValueError("Invalid value for `verb`, must not be `None`") + + self._verb = verb + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1LocalResourceAccessReview): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_local_subject_access_review.py b/kubernetes/client/models/v1_local_subject_access_review.py index 3039a6a3a6..a866de91f4 100644 --- a/kubernetes/client/models/v1_local_subject_access_review.py +++ b/kubernetes/client/models/v1_local_subject_access_review.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1LocalSubjectAccessReview(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + def __init__(self, api_version=None, content=None, groups=None, is_non_resource_url=None, kind=None, namespace=None, path=None, resource=None, resource_api_group=None, resource_api_version=None, resource_name=None, scopes=None, user=None, verb=None): """ V1LocalSubjectAccessReview - a model defined in Swagger @@ -32,25 +32,52 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status """ self.swagger_types = { 'api_version': 'str', + 'content': 'RuntimeRawExtension', + 'groups': 'list[str]', + 'is_non_resource_url': 'bool', 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'V1SubjectAccessReviewSpec', - 'status': 'V1SubjectAccessReviewStatus' + 'namespace': 'str', + 'path': 'str', + 'resource': 'str', + 'resource_api_group': 'str', + 'resource_api_version': 'str', + 'resource_name': 'str', + 'scopes': 'list[str]', + 'user': 'str', + 'verb': 'str' } self.attribute_map = { 'api_version': 'apiVersion', + 'content': 'content', + 'groups': 'groups', + 'is_non_resource_url': 'isNonResourceURL', 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' + 'namespace': 'namespace', + 'path': 'path', + 'resource': 'resource', + 'resource_api_group': 'resourceAPIGroup', + 'resource_api_version': 'resourceAPIVersion', + 'resource_name': 'resourceName', + 'scopes': 'scopes', + 'user': 'user', + 'verb': 'verb' } self._api_version = api_version + self._content = content + self._groups = groups + self._is_non_resource_url = is_non_resource_url self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status + self._namespace = namespace + self._path = path + self._resource = resource + self._resource_api_group = resource_api_group + self._resource_api_version = resource_api_version + self._resource_name = resource_name + self._scopes = scopes + self._user = user + self._verb = verb @property def api_version(self): @@ -75,6 +102,79 @@ def api_version(self, api_version): self._api_version = api_version + @property + def content(self): + """ + Gets the content of this V1LocalSubjectAccessReview. + Content is the actual content of the request for create and update + + :return: The content of this V1LocalSubjectAccessReview. + :rtype: RuntimeRawExtension + """ + return self._content + + @content.setter + def content(self, content): + """ + Sets the content of this V1LocalSubjectAccessReview. + Content is the actual content of the request for create and update + + :param content: The content of this V1LocalSubjectAccessReview. + :type: RuntimeRawExtension + """ + + self._content = content + + @property + def groups(self): + """ + Gets the groups of this V1LocalSubjectAccessReview. + Groups is optional. Groups is the list of groups to which the User belongs. + + :return: The groups of this V1LocalSubjectAccessReview. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1LocalSubjectAccessReview. + Groups is optional. Groups is the list of groups to which the User belongs. + + :param groups: The groups of this V1LocalSubjectAccessReview. + :type: list[str] + """ + if groups is None: + raise ValueError("Invalid value for `groups`, must not be `None`") + + self._groups = groups + + @property + def is_non_resource_url(self): + """ + Gets the is_non_resource_url of this V1LocalSubjectAccessReview. + IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) + + :return: The is_non_resource_url of this V1LocalSubjectAccessReview. + :rtype: bool + """ + return self._is_non_resource_url + + @is_non_resource_url.setter + def is_non_resource_url(self, is_non_resource_url): + """ + Sets the is_non_resource_url of this V1LocalSubjectAccessReview. + IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) + + :param is_non_resource_url: The is_non_resource_url of this V1LocalSubjectAccessReview. + :type: bool + """ + if is_non_resource_url is None: + raise ValueError("Invalid value for `is_non_resource_url`, must not be `None`") + + self._is_non_resource_url = is_non_resource_url + @property def kind(self): """ @@ -99,73 +199,229 @@ def kind(self, kind): self._kind = kind @property - def metadata(self): + def namespace(self): + """ + Gets the namespace of this V1LocalSubjectAccessReview. + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces + + :return: The namespace of this V1LocalSubjectAccessReview. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1LocalSubjectAccessReview. + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces + + :param namespace: The namespace of this V1LocalSubjectAccessReview. + :type: str + """ + if namespace is None: + raise ValueError("Invalid value for `namespace`, must not be `None`") + + self._namespace = namespace + + @property + def path(self): + """ + Gets the path of this V1LocalSubjectAccessReview. + Path is the path of a non resource URL + + :return: The path of this V1LocalSubjectAccessReview. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1LocalSubjectAccessReview. + Path is the path of a non resource URL + + :param path: The path of this V1LocalSubjectAccessReview. + :type: str + """ + if path is None: + raise ValueError("Invalid value for `path`, must not be `None`") + + self._path = path + + @property + def resource(self): """ - Gets the metadata of this V1LocalSubjectAccessReview. + Gets the resource of this V1LocalSubjectAccessReview. + Resource is one of the existing resource types - :return: The metadata of this V1LocalSubjectAccessReview. - :rtype: V1ObjectMeta + :return: The resource of this V1LocalSubjectAccessReview. + :rtype: str """ - return self._metadata + return self._resource - @metadata.setter - def metadata(self, metadata): + @resource.setter + def resource(self, resource): """ - Sets the metadata of this V1LocalSubjectAccessReview. + Sets the resource of this V1LocalSubjectAccessReview. + Resource is one of the existing resource types - :param metadata: The metadata of this V1LocalSubjectAccessReview. - :type: V1ObjectMeta + :param resource: The resource of this V1LocalSubjectAccessReview. + :type: str """ + if resource is None: + raise ValueError("Invalid value for `resource`, must not be `None`") - self._metadata = metadata + self._resource = resource @property - def spec(self): + def resource_api_group(self): """ - Gets the spec of this V1LocalSubjectAccessReview. - Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + Gets the resource_api_group of this V1LocalSubjectAccessReview. + Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined - :return: The spec of this V1LocalSubjectAccessReview. - :rtype: V1SubjectAccessReviewSpec + :return: The resource_api_group of this V1LocalSubjectAccessReview. + :rtype: str """ - return self._spec + return self._resource_api_group - @spec.setter - def spec(self, spec): + @resource_api_group.setter + def resource_api_group(self, resource_api_group): """ - Sets the spec of this V1LocalSubjectAccessReview. - Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + Sets the resource_api_group of this V1LocalSubjectAccessReview. + Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined - :param spec: The spec of this V1LocalSubjectAccessReview. - :type: V1SubjectAccessReviewSpec + :param resource_api_group: The resource_api_group of this V1LocalSubjectAccessReview. + :type: str """ - if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + if resource_api_group is None: + raise ValueError("Invalid value for `resource_api_group`, must not be `None`") - self._spec = spec + self._resource_api_group = resource_api_group @property - def status(self): + def resource_api_version(self): + """ + Gets the resource_api_version of this V1LocalSubjectAccessReview. + Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined + + :return: The resource_api_version of this V1LocalSubjectAccessReview. + :rtype: str + """ + return self._resource_api_version + + @resource_api_version.setter + def resource_api_version(self, resource_api_version): """ - Gets the status of this V1LocalSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + Sets the resource_api_version of this V1LocalSubjectAccessReview. + Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined + + :param resource_api_version: The resource_api_version of this V1LocalSubjectAccessReview. + :type: str + """ + if resource_api_version is None: + raise ValueError("Invalid value for `resource_api_version`, must not be `None`") + + self._resource_api_version = resource_api_version - :return: The status of this V1LocalSubjectAccessReview. - :rtype: V1SubjectAccessReviewStatus + @property + def resource_name(self): + """ + Gets the resource_name of this V1LocalSubjectAccessReview. + ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\" + + :return: The resource_name of this V1LocalSubjectAccessReview. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """ + Sets the resource_name of this V1LocalSubjectAccessReview. + ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\" + + :param resource_name: The resource_name of this V1LocalSubjectAccessReview. + :type: str + """ + if resource_name is None: + raise ValueError("Invalid value for `resource_name`, must not be `None`") + + self._resource_name = resource_name + + @property + def scopes(self): """ - return self._status + Gets the scopes of this V1LocalSubjectAccessReview. + Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". Nil for a self-SAR, means \"use the scopes on this request\". Nil for a regular SAR, means the same as empty. - @status.setter - def status(self, status): + :return: The scopes of this V1LocalSubjectAccessReview. + :rtype: list[str] """ - Sets the status of this V1LocalSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + return self._scopes - :param status: The status of this V1LocalSubjectAccessReview. - :type: V1SubjectAccessReviewStatus + @scopes.setter + def scopes(self, scopes): + """ + Sets the scopes of this V1LocalSubjectAccessReview. + Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". Nil for a self-SAR, means \"use the scopes on this request\". Nil for a regular SAR, means the same as empty. + + :param scopes: The scopes of this V1LocalSubjectAccessReview. + :type: list[str] + """ + if scopes is None: + raise ValueError("Invalid value for `scopes`, must not be `None`") + + self._scopes = scopes + + @property + def user(self): + """ + Gets the user of this V1LocalSubjectAccessReview. + User is optional. If both User and Groups are empty, the current authenticated user is used. + + :return: The user of this V1LocalSubjectAccessReview. + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1LocalSubjectAccessReview. + User is optional. If both User and Groups are empty, the current authenticated user is used. + + :param user: The user of this V1LocalSubjectAccessReview. + :type: str + """ + if user is None: + raise ValueError("Invalid value for `user`, must not be `None`") + + self._user = user + + @property + def verb(self): + """ + Gets the verb of this V1LocalSubjectAccessReview. + Verb is one of: get, list, watch, create, update, delete + + :return: The verb of this V1LocalSubjectAccessReview. + :rtype: str + """ + return self._verb + + @verb.setter + def verb(self, verb): + """ + Sets the verb of this V1LocalSubjectAccessReview. + Verb is one of: get, list, watch, create, update, delete + + :param verb: The verb of this V1LocalSubjectAccessReview. + :type: str """ + if verb is None: + raise ValueError("Invalid value for `verb`, must not be `None`") - self._status = status + self._verb = verb def to_dict(self): """ diff --git a/kubernetes/client/models/v1_named_cluster_role.py b/kubernetes/client/models/v1_named_cluster_role.py new file mode 100644 index 0000000000..20e08c3f9f --- /dev/null +++ b/kubernetes/client/models/v1_named_cluster_role.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NamedClusterRole(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, role=None): + """ + V1NamedClusterRole - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'role': 'V1ClusterRole' + } + + self.attribute_map = { + 'name': 'name', + 'role': 'role' + } + + self._name = name + self._role = role + + @property + def name(self): + """ + Gets the name of this V1NamedClusterRole. + Name is the name of the cluster role + + :return: The name of this V1NamedClusterRole. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1NamedClusterRole. + Name is the name of the cluster role + + :param name: The name of this V1NamedClusterRole. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def role(self): + """ + Gets the role of this V1NamedClusterRole. + Role is the cluster role being named + + :return: The role of this V1NamedClusterRole. + :rtype: V1ClusterRole + """ + return self._role + + @role.setter + def role(self, role): + """ + Sets the role of this V1NamedClusterRole. + Role is the cluster role being named + + :param role: The role of this V1NamedClusterRole. + :type: V1ClusterRole + """ + if role is None: + raise ValueError("Invalid value for `role`, must not be `None`") + + self._role = role + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1NamedClusterRole): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_named_cluster_role_binding.py b/kubernetes/client/models/v1_named_cluster_role_binding.py new file mode 100644 index 0000000000..350520c6f4 --- /dev/null +++ b/kubernetes/client/models/v1_named_cluster_role_binding.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NamedClusterRoleBinding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, role_binding=None): + """ + V1NamedClusterRoleBinding - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'role_binding': 'V1ClusterRoleBinding' + } + + self.attribute_map = { + 'name': 'name', + 'role_binding': 'roleBinding' + } + + self._name = name + self._role_binding = role_binding + + @property + def name(self): + """ + Gets the name of this V1NamedClusterRoleBinding. + Name is the name of the cluster role binding + + :return: The name of this V1NamedClusterRoleBinding. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1NamedClusterRoleBinding. + Name is the name of the cluster role binding + + :param name: The name of this V1NamedClusterRoleBinding. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def role_binding(self): + """ + Gets the role_binding of this V1NamedClusterRoleBinding. + RoleBinding is the cluster role binding being named + + :return: The role_binding of this V1NamedClusterRoleBinding. + :rtype: V1ClusterRoleBinding + """ + return self._role_binding + + @role_binding.setter + def role_binding(self, role_binding): + """ + Sets the role_binding of this V1NamedClusterRoleBinding. + RoleBinding is the cluster role binding being named + + :param role_binding: The role_binding of this V1NamedClusterRoleBinding. + :type: V1ClusterRoleBinding + """ + if role_binding is None: + raise ValueError("Invalid value for `role_binding`, must not be `None`") + + self._role_binding = role_binding + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1NamedClusterRoleBinding): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_named_role.py b/kubernetes/client/models/v1_named_role.py new file mode 100644 index 0000000000..dcfc4b9bfe --- /dev/null +++ b/kubernetes/client/models/v1_named_role.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NamedRole(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, role=None): + """ + V1NamedRole - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'role': 'V1Role' + } + + self.attribute_map = { + 'name': 'name', + 'role': 'role' + } + + self._name = name + self._role = role + + @property + def name(self): + """ + Gets the name of this V1NamedRole. + Name is the name of the role + + :return: The name of this V1NamedRole. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1NamedRole. + Name is the name of the role + + :param name: The name of this V1NamedRole. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def role(self): + """ + Gets the role of this V1NamedRole. + Role is the role being named + + :return: The role of this V1NamedRole. + :rtype: V1Role + """ + return self._role + + @role.setter + def role(self, role): + """ + Sets the role of this V1NamedRole. + Role is the role being named + + :param role: The role of this V1NamedRole. + :type: V1Role + """ + if role is None: + raise ValueError("Invalid value for `role`, must not be `None`") + + self._role = role + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1NamedRole): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_named_role_binding.py b/kubernetes/client/models/v1_named_role_binding.py new file mode 100644 index 0000000000..6920a4c5a3 --- /dev/null +++ b/kubernetes/client/models/v1_named_role_binding.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NamedRoleBinding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, role_binding=None): + """ + V1NamedRoleBinding - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'role_binding': 'V1RoleBinding' + } + + self.attribute_map = { + 'name': 'name', + 'role_binding': 'roleBinding' + } + + self._name = name + self._role_binding = role_binding + + @property + def name(self): + """ + Gets the name of this V1NamedRoleBinding. + Name is the name of the role binding + + :return: The name of this V1NamedRoleBinding. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1NamedRoleBinding. + Name is the name of the role binding + + :param name: The name of this V1NamedRoleBinding. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def role_binding(self): + """ + Gets the role_binding of this V1NamedRoleBinding. + RoleBinding is the role binding being named + + :return: The role_binding of this V1NamedRoleBinding. + :rtype: V1RoleBinding + """ + return self._role_binding + + @role_binding.setter + def role_binding(self, role_binding): + """ + Sets the role_binding of this V1NamedRoleBinding. + RoleBinding is the role binding being named + + :param role_binding: The role_binding of this V1NamedRoleBinding. + :type: V1RoleBinding + """ + if role_binding is None: + raise ValueError("Invalid value for `role_binding`, must not be `None`") + + self._role_binding = role_binding + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1NamedRoleBinding): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_named_tag_event_list.py b/kubernetes/client/models/v1_named_tag_event_list.py new file mode 100644 index 0000000000..c7c25615e1 --- /dev/null +++ b/kubernetes/client/models/v1_named_tag_event_list.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NamedTagEventList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, conditions=None, items=None, tag=None): + """ + V1NamedTagEventList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'conditions': 'list[V1TagEventCondition]', + 'items': 'list[V1TagEvent]', + 'tag': 'str' + } + + self.attribute_map = { + 'conditions': 'conditions', + 'items': 'items', + 'tag': 'tag' + } + + self._conditions = conditions + self._items = items + self._tag = tag + + @property + def conditions(self): + """ + Gets the conditions of this V1NamedTagEventList. + Conditions is an array of conditions that apply to the tag event list. + + :return: The conditions of this V1NamedTagEventList. + :rtype: list[V1TagEventCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1NamedTagEventList. + Conditions is an array of conditions that apply to the tag event list. + + :param conditions: The conditions of this V1NamedTagEventList. + :type: list[V1TagEventCondition] + """ + + self._conditions = conditions + + @property + def items(self): + """ + Gets the items of this V1NamedTagEventList. + Standard object's metadata. + + :return: The items of this V1NamedTagEventList. + :rtype: list[V1TagEvent] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1NamedTagEventList. + Standard object's metadata. + + :param items: The items of this V1NamedTagEventList. + :type: list[V1TagEvent] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def tag(self): + """ + Gets the tag of this V1NamedTagEventList. + Tag is the tag for which the history is recorded + + :return: The tag of this V1NamedTagEventList. + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """ + Sets the tag of this V1NamedTagEventList. + Tag is the tag for which the history is recorded + + :param tag: The tag of this V1NamedTagEventList. + :type: str + """ + if tag is None: + raise ValueError("Invalid value for `tag`, must not be `None`") + + self._tag = tag + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1NamedTagEventList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_namespace.py b/kubernetes/client/models/v1_namespace.py index 0cb3e91504..75146d8ef7 100644 --- a/kubernetes/client/models/v1_namespace.py +++ b/kubernetes/client/models/v1_namespace.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_namespace_list.py b/kubernetes/client/models/v1_namespace_list.py index 1d696e994f..6e89825864 100644 --- a/kubernetes/client/models/v1_namespace_list.py +++ b/kubernetes/client/models/v1_namespace_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Namespace]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1NamespaceList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1NamespaceList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_namespace_spec.py b/kubernetes/client/models/v1_namespace_spec.py index 512e4bff62..022931c7e1 100644 --- a/kubernetes/client/models/v1_namespace_spec.py +++ b/kubernetes/client/models/v1_namespace_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_namespace_status.py b/kubernetes/client/models/v1_namespace_status.py index 6b1485af83..0383e4c500 100644 --- a/kubernetes/client/models/v1_namespace_status.py +++ b/kubernetes/client/models/v1_namespace_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_net_namespace.py b/kubernetes/client/models/v1_net_namespace.py new file mode 100644 index 0000000000..79d603e26a --- /dev/null +++ b/kubernetes/client/models/v1_net_namespace.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NetNamespace(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, netid=None, netname=None): + """ + V1NetNamespace - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'netid': 'int', + 'netname': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'netid': 'netid', + 'netname': 'netname' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._netid = netid + self._netname = netname + + @property + def api_version(self): + """ + Gets the api_version of this V1NetNamespace. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1NetNamespace. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1NetNamespace. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1NetNamespace. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1NetNamespace. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1NetNamespace. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1NetNamespace. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1NetNamespace. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1NetNamespace. + Standard object's metadata. + + :return: The metadata of this V1NetNamespace. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1NetNamespace. + Standard object's metadata. + + :param metadata: The metadata of this V1NetNamespace. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def netid(self): + """ + Gets the netid of this V1NetNamespace. + NetID is the network identifier of the network namespace assigned to each overlay network packet. This can be manipulated with the \"oadm pod-network\" commands. + + :return: The netid of this V1NetNamespace. + :rtype: int + """ + return self._netid + + @netid.setter + def netid(self, netid): + """ + Sets the netid of this V1NetNamespace. + NetID is the network identifier of the network namespace assigned to each overlay network packet. This can be manipulated with the \"oadm pod-network\" commands. + + :param netid: The netid of this V1NetNamespace. + :type: int + """ + if netid is None: + raise ValueError("Invalid value for `netid`, must not be `None`") + + self._netid = netid + + @property + def netname(self): + """ + Gets the netname of this V1NetNamespace. + NetName is the name of the network namespace. (This is the same as the object's name, but both fields must be set.) + + :return: The netname of this V1NetNamespace. + :rtype: str + """ + return self._netname + + @netname.setter + def netname(self, netname): + """ + Sets the netname of this V1NetNamespace. + NetName is the name of the network namespace. (This is the same as the object's name, but both fields must be set.) + + :param netname: The netname of this V1NetNamespace. + :type: str + """ + if netname is None: + raise ValueError("Invalid value for `netname`, must not be `None`") + + self._netname = netname + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1NetNamespace): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_net_namespace_list.py b/kubernetes/client/models/v1_net_namespace_list.py new file mode 100644 index 0000000000..6f4db4057c --- /dev/null +++ b/kubernetes/client/models/v1_net_namespace_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NetNamespaceList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1NetNamespaceList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1NetNamespace]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1NetNamespaceList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1NetNamespaceList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1NetNamespaceList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1NetNamespaceList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1NetNamespaceList. + Items is the list of net namespaces + + :return: The items of this V1NetNamespaceList. + :rtype: list[V1NetNamespace] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1NetNamespaceList. + Items is the list of net namespaces + + :param items: The items of this V1NetNamespaceList. + :type: list[V1NetNamespace] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1NetNamespaceList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1NetNamespaceList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1NetNamespaceList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1NetNamespaceList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1NetNamespaceList. + Standard object's metadata. + + :return: The metadata of this V1NetNamespaceList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1NetNamespaceList. + Standard object's metadata. + + :param metadata: The metadata of this V1NetNamespaceList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1NetNamespaceList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_nfs_volume_source.py b/kubernetes/client/models/v1_nfs_volume_source.py index c10773d1c3..e5cf524702 100644 --- a/kubernetes/client/models/v1_nfs_volume_source.py +++ b/kubernetes/client/models/v1_nfs_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_node.py b/kubernetes/client/models/v1_node.py index 3869e54dc5..0023d24f67 100644 --- a/kubernetes/client/models/v1_node.py +++ b/kubernetes/client/models/v1_node.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_node_address.py b/kubernetes/client/models/v1_node_address.py index 82bcb6b1d5..aa3dc175d6 100644 --- a/kubernetes/client/models/v1_node_address.py +++ b/kubernetes/client/models/v1_node_address.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_node_affinity.py b/kubernetes/client/models/v1_node_affinity.py deleted file mode 100644 index 94f5ba1d54..0000000000 --- a/kubernetes/client/models/v1_node_affinity.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1NodeAffinity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): - """ - V1NodeAffinity - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'preferred_during_scheduling_ignored_during_execution': 'list[V1PreferredSchedulingTerm]', - 'required_during_scheduling_ignored_during_execution': 'V1NodeSelector' - } - - self.attribute_map = { - 'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution', - 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' - } - - self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution - self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution - - @property - def preferred_during_scheduling_ignored_during_execution(self): - """ - Gets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - - :return: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. - :rtype: list[V1PreferredSchedulingTerm] - """ - return self._preferred_during_scheduling_ignored_during_execution - - @preferred_during_scheduling_ignored_during_execution.setter - def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): - """ - Sets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - - :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. - :type: list[V1PreferredSchedulingTerm] - """ - - self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution - - @property - def required_during_scheduling_ignored_during_execution(self): - """ - Gets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - - :return: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. - :rtype: V1NodeSelector - """ - return self._required_during_scheduling_ignored_during_execution - - @required_during_scheduling_ignored_during_execution.setter - def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): - """ - Sets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - - :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. - :type: V1NodeSelector - """ - - self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1NodeAffinity): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_node_condition.py b/kubernetes/client/models/v1_node_condition.py index 81e700146b..3cbe4cd48e 100644 --- a/kubernetes/client/models/v1_node_condition.py +++ b/kubernetes/client/models/v1_node_condition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_node_daemon_endpoints.py b/kubernetes/client/models/v1_node_daemon_endpoints.py index faadb3d2a9..32fdf68e36 100644 --- a/kubernetes/client/models/v1_node_daemon_endpoints.py +++ b/kubernetes/client/models/v1_node_daemon_endpoints.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_node_list.py b/kubernetes/client/models/v1_node_list.py index 5c4cc982e4..a365841a32 100644 --- a/kubernetes/client/models/v1_node_list.py +++ b/kubernetes/client/models/v1_node_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Node]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1NodeList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1NodeList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_node_selector.py b/kubernetes/client/models/v1_node_selector.py deleted file mode 100644 index d6a3d90b0d..0000000000 --- a/kubernetes/client/models/v1_node_selector.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1NodeSelector(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, node_selector_terms=None): - """ - V1NodeSelector - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'node_selector_terms': 'list[V1NodeSelectorTerm]' - } - - self.attribute_map = { - 'node_selector_terms': 'nodeSelectorTerms' - } - - self._node_selector_terms = node_selector_terms - - @property - def node_selector_terms(self): - """ - Gets the node_selector_terms of this V1NodeSelector. - Required. A list of node selector terms. The terms are ORed. - - :return: The node_selector_terms of this V1NodeSelector. - :rtype: list[V1NodeSelectorTerm] - """ - return self._node_selector_terms - - @node_selector_terms.setter - def node_selector_terms(self, node_selector_terms): - """ - Sets the node_selector_terms of this V1NodeSelector. - Required. A list of node selector terms. The terms are ORed. - - :param node_selector_terms: The node_selector_terms of this V1NodeSelector. - :type: list[V1NodeSelectorTerm] - """ - if node_selector_terms is None: - raise ValueError("Invalid value for `node_selector_terms`, must not be `None`") - - self._node_selector_terms = node_selector_terms - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1NodeSelector): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_node_selector_requirement.py b/kubernetes/client/models/v1_node_selector_requirement.py deleted file mode 100644 index 746bd8c297..0000000000 --- a/kubernetes/client/models/v1_node_selector_requirement.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1NodeSelectorRequirement(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, key=None, operator=None, values=None): - """ - V1NodeSelectorRequirement - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'key': 'str', - 'operator': 'str', - 'values': 'list[str]' - } - - self.attribute_map = { - 'key': 'key', - 'operator': 'operator', - 'values': 'values' - } - - self._key = key - self._operator = operator - self._values = values - - @property - def key(self): - """ - Gets the key of this V1NodeSelectorRequirement. - The label key that the selector applies to. - - :return: The key of this V1NodeSelectorRequirement. - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """ - Sets the key of this V1NodeSelectorRequirement. - The label key that the selector applies to. - - :param key: The key of this V1NodeSelectorRequirement. - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") - - self._key = key - - @property - def operator(self): - """ - Gets the operator of this V1NodeSelectorRequirement. - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - - :return: The operator of this V1NodeSelectorRequirement. - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """ - Sets the operator of this V1NodeSelectorRequirement. - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - - :param operator: The operator of this V1NodeSelectorRequirement. - :type: str - """ - if operator is None: - raise ValueError("Invalid value for `operator`, must not be `None`") - - self._operator = operator - - @property - def values(self): - """ - Gets the values of this V1NodeSelectorRequirement. - An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - - :return: The values of this V1NodeSelectorRequirement. - :rtype: list[str] - """ - return self._values - - @values.setter - def values(self, values): - """ - Sets the values of this V1NodeSelectorRequirement. - An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - - :param values: The values of this V1NodeSelectorRequirement. - :type: list[str] - """ - - self._values = values - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1NodeSelectorRequirement): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_node_selector_term.py b/kubernetes/client/models/v1_node_selector_term.py deleted file mode 100644 index cb277f1e67..0000000000 --- a/kubernetes/client/models/v1_node_selector_term.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1NodeSelectorTerm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, match_expressions=None): - """ - V1NodeSelectorTerm - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'match_expressions': 'list[V1NodeSelectorRequirement]' - } - - self.attribute_map = { - 'match_expressions': 'matchExpressions' - } - - self._match_expressions = match_expressions - - @property - def match_expressions(self): - """ - Gets the match_expressions of this V1NodeSelectorTerm. - Required. A list of node selector requirements. The requirements are ANDed. - - :return: The match_expressions of this V1NodeSelectorTerm. - :rtype: list[V1NodeSelectorRequirement] - """ - return self._match_expressions - - @match_expressions.setter - def match_expressions(self, match_expressions): - """ - Sets the match_expressions of this V1NodeSelectorTerm. - Required. A list of node selector requirements. The requirements are ANDed. - - :param match_expressions: The match_expressions of this V1NodeSelectorTerm. - :type: list[V1NodeSelectorRequirement] - """ - if match_expressions is None: - raise ValueError("Invalid value for `match_expressions`, must not be `None`") - - self._match_expressions = match_expressions - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1NodeSelectorTerm): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_node_spec.py b/kubernetes/client/models/v1_node_spec.py index c87873a7a6..26c0537124 100644 --- a/kubernetes/client/models/v1_node_spec.py +++ b/kubernetes/client/models/v1_node_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1NodeSpec(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, external_id=None, pod_cidr=None, provider_id=None, taints=None, unschedulable=None): + def __init__(self, external_id=None, pod_cidr=None, provider_id=None, unschedulable=None): """ V1NodeSpec - a model defined in Swagger @@ -34,7 +34,6 @@ def __init__(self, external_id=None, pod_cidr=None, provider_id=None, taints=Non 'external_id': 'str', 'pod_cidr': 'str', 'provider_id': 'str', - 'taints': 'list[V1Taint]', 'unschedulable': 'bool' } @@ -42,14 +41,12 @@ def __init__(self, external_id=None, pod_cidr=None, provider_id=None, taints=Non 'external_id': 'externalID', 'pod_cidr': 'podCIDR', 'provider_id': 'providerID', - 'taints': 'taints', 'unschedulable': 'unschedulable' } self._external_id = external_id self._pod_cidr = pod_cidr self._provider_id = provider_id - self._taints = taints self._unschedulable = unschedulable @property @@ -121,34 +118,11 @@ def provider_id(self, provider_id): self._provider_id = provider_id - @property - def taints(self): - """ - Gets the taints of this V1NodeSpec. - If specified, the node's taints. - - :return: The taints of this V1NodeSpec. - :rtype: list[V1Taint] - """ - return self._taints - - @taints.setter - def taints(self, taints): - """ - Sets the taints of this V1NodeSpec. - If specified, the node's taints. - - :param taints: The taints of this V1NodeSpec. - :type: list[V1Taint] - """ - - self._taints = taints - @property def unschedulable(self): """ Gets the unschedulable of this V1NodeSpec. - Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration + Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration\" :return: The unschedulable of this V1NodeSpec. :rtype: bool @@ -159,7 +133,7 @@ def unschedulable(self): def unschedulable(self, unschedulable): """ Sets the unschedulable of this V1NodeSpec. - Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration + Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration\" :param unschedulable: The unschedulable of this V1NodeSpec. :type: bool diff --git a/kubernetes/client/models/v1_node_status.py b/kubernetes/client/models/v1_node_status.py index f81fb31a27..899c27c230 100644 --- a/kubernetes/client/models/v1_node_status.py +++ b/kubernetes/client/models/v1_node_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_node_system_info.py b/kubernetes/client/models/v1_node_system_info.py index 331c120502..9527e56223 100644 --- a/kubernetes/client/models/v1_node_system_info.py +++ b/kubernetes/client/models/v1_node_system_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_non_resource_attributes.py b/kubernetes/client/models/v1_non_resource_attributes.py deleted file mode 100644 index f6fe86d078..0000000000 --- a/kubernetes/client/models/v1_non_resource_attributes.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1NonResourceAttributes(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, path=None, verb=None): - """ - V1NonResourceAttributes - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'path': 'str', - 'verb': 'str' - } - - self.attribute_map = { - 'path': 'path', - 'verb': 'verb' - } - - self._path = path - self._verb = verb - - @property - def path(self): - """ - Gets the path of this V1NonResourceAttributes. - Path is the URL path of the request - - :return: The path of this V1NonResourceAttributes. - :rtype: str - """ - return self._path - - @path.setter - def path(self, path): - """ - Sets the path of this V1NonResourceAttributes. - Path is the URL path of the request - - :param path: The path of this V1NonResourceAttributes. - :type: str - """ - - self._path = path - - @property - def verb(self): - """ - Gets the verb of this V1NonResourceAttributes. - Verb is the standard HTTP verb - - :return: The verb of this V1NonResourceAttributes. - :rtype: str - """ - return self._verb - - @verb.setter - def verb(self, verb): - """ - Sets the verb of this V1NonResourceAttributes. - Verb is the standard HTTP verb - - :param verb: The verb of this V1NonResourceAttributes. - :type: str - """ - - self._verb = verb - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1NonResourceAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_o_auth_access_token.py b/kubernetes/client/models/v1_o_auth_access_token.py new file mode 100644 index 0000000000..4a67b35b8f --- /dev/null +++ b/kubernetes/client/models/v1_o_auth_access_token.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1OAuthAccessToken(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, authorize_token=None, client_name=None, expires_in=None, kind=None, metadata=None, redirect_uri=None, refresh_token=None, scopes=None, user_name=None, user_uid=None): + """ + V1OAuthAccessToken - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'authorize_token': 'str', + 'client_name': 'str', + 'expires_in': 'int', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'redirect_uri': 'str', + 'refresh_token': 'str', + 'scopes': 'list[str]', + 'user_name': 'str', + 'user_uid': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'authorize_token': 'authorizeToken', + 'client_name': 'clientName', + 'expires_in': 'expiresIn', + 'kind': 'kind', + 'metadata': 'metadata', + 'redirect_uri': 'redirectURI', + 'refresh_token': 'refreshToken', + 'scopes': 'scopes', + 'user_name': 'userName', + 'user_uid': 'userUID' + } + + self._api_version = api_version + self._authorize_token = authorize_token + self._client_name = client_name + self._expires_in = expires_in + self._kind = kind + self._metadata = metadata + self._redirect_uri = redirect_uri + self._refresh_token = refresh_token + self._scopes = scopes + self._user_name = user_name + self._user_uid = user_uid + + @property + def api_version(self): + """ + Gets the api_version of this V1OAuthAccessToken. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1OAuthAccessToken. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1OAuthAccessToken. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1OAuthAccessToken. + :type: str + """ + + self._api_version = api_version + + @property + def authorize_token(self): + """ + Gets the authorize_token of this V1OAuthAccessToken. + AuthorizeToken contains the token that authorized this token + + :return: The authorize_token of this V1OAuthAccessToken. + :rtype: str + """ + return self._authorize_token + + @authorize_token.setter + def authorize_token(self, authorize_token): + """ + Sets the authorize_token of this V1OAuthAccessToken. + AuthorizeToken contains the token that authorized this token + + :param authorize_token: The authorize_token of this V1OAuthAccessToken. + :type: str + """ + + self._authorize_token = authorize_token + + @property + def client_name(self): + """ + Gets the client_name of this V1OAuthAccessToken. + ClientName references the client that created this token. + + :return: The client_name of this V1OAuthAccessToken. + :rtype: str + """ + return self._client_name + + @client_name.setter + def client_name(self, client_name): + """ + Sets the client_name of this V1OAuthAccessToken. + ClientName references the client that created this token. + + :param client_name: The client_name of this V1OAuthAccessToken. + :type: str + """ + + self._client_name = client_name + + @property + def expires_in(self): + """ + Gets the expires_in of this V1OAuthAccessToken. + ExpiresIn is the seconds from CreationTime before this token expires. + + :return: The expires_in of this V1OAuthAccessToken. + :rtype: int + """ + return self._expires_in + + @expires_in.setter + def expires_in(self, expires_in): + """ + Sets the expires_in of this V1OAuthAccessToken. + ExpiresIn is the seconds from CreationTime before this token expires. + + :param expires_in: The expires_in of this V1OAuthAccessToken. + :type: int + """ + + self._expires_in = expires_in + + @property + def kind(self): + """ + Gets the kind of this V1OAuthAccessToken. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1OAuthAccessToken. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1OAuthAccessToken. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1OAuthAccessToken. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1OAuthAccessToken. + Standard object's metadata. + + :return: The metadata of this V1OAuthAccessToken. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1OAuthAccessToken. + Standard object's metadata. + + :param metadata: The metadata of this V1OAuthAccessToken. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def redirect_uri(self): + """ + Gets the redirect_uri of this V1OAuthAccessToken. + RedirectURI is the redirection associated with the token. + + :return: The redirect_uri of this V1OAuthAccessToken. + :rtype: str + """ + return self._redirect_uri + + @redirect_uri.setter + def redirect_uri(self, redirect_uri): + """ + Sets the redirect_uri of this V1OAuthAccessToken. + RedirectURI is the redirection associated with the token. + + :param redirect_uri: The redirect_uri of this V1OAuthAccessToken. + :type: str + """ + + self._redirect_uri = redirect_uri + + @property + def refresh_token(self): + """ + Gets the refresh_token of this V1OAuthAccessToken. + RefreshToken is the value by which this token can be renewed. Can be blank. + + :return: The refresh_token of this V1OAuthAccessToken. + :rtype: str + """ + return self._refresh_token + + @refresh_token.setter + def refresh_token(self, refresh_token): + """ + Sets the refresh_token of this V1OAuthAccessToken. + RefreshToken is the value by which this token can be renewed. Can be blank. + + :param refresh_token: The refresh_token of this V1OAuthAccessToken. + :type: str + """ + + self._refresh_token = refresh_token + + @property + def scopes(self): + """ + Gets the scopes of this V1OAuthAccessToken. + Scopes is an array of the requested scopes. + + :return: The scopes of this V1OAuthAccessToken. + :rtype: list[str] + """ + return self._scopes + + @scopes.setter + def scopes(self, scopes): + """ + Sets the scopes of this V1OAuthAccessToken. + Scopes is an array of the requested scopes. + + :param scopes: The scopes of this V1OAuthAccessToken. + :type: list[str] + """ + + self._scopes = scopes + + @property + def user_name(self): + """ + Gets the user_name of this V1OAuthAccessToken. + UserName is the user name associated with this token + + :return: The user_name of this V1OAuthAccessToken. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """ + Sets the user_name of this V1OAuthAccessToken. + UserName is the user name associated with this token + + :param user_name: The user_name of this V1OAuthAccessToken. + :type: str + """ + + self._user_name = user_name + + @property + def user_uid(self): + """ + Gets the user_uid of this V1OAuthAccessToken. + UserUID is the unique UID associated with this token + + :return: The user_uid of this V1OAuthAccessToken. + :rtype: str + """ + return self._user_uid + + @user_uid.setter + def user_uid(self, user_uid): + """ + Sets the user_uid of this V1OAuthAccessToken. + UserUID is the unique UID associated with this token + + :param user_uid: The user_uid of this V1OAuthAccessToken. + :type: str + """ + + self._user_uid = user_uid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1OAuthAccessToken): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_o_auth_access_token_list.py b/kubernetes/client/models/v1_o_auth_access_token_list.py new file mode 100644 index 0000000000..1e266d9173 --- /dev/null +++ b/kubernetes/client/models/v1_o_auth_access_token_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1OAuthAccessTokenList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1OAuthAccessTokenList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1OAuthAccessToken]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1OAuthAccessTokenList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1OAuthAccessTokenList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1OAuthAccessTokenList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1OAuthAccessTokenList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1OAuthAccessTokenList. + Items is the list of OAuth access tokens + + :return: The items of this V1OAuthAccessTokenList. + :rtype: list[V1OAuthAccessToken] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1OAuthAccessTokenList. + Items is the list of OAuth access tokens + + :param items: The items of this V1OAuthAccessTokenList. + :type: list[V1OAuthAccessToken] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1OAuthAccessTokenList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1OAuthAccessTokenList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1OAuthAccessTokenList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1OAuthAccessTokenList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1OAuthAccessTokenList. + Standard object's metadata. + + :return: The metadata of this V1OAuthAccessTokenList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1OAuthAccessTokenList. + Standard object's metadata. + + :param metadata: The metadata of this V1OAuthAccessTokenList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1OAuthAccessTokenList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_o_auth_authorize_token.py b/kubernetes/client/models/v1_o_auth_authorize_token.py new file mode 100644 index 0000000000..da273e4758 --- /dev/null +++ b/kubernetes/client/models/v1_o_auth_authorize_token.py @@ -0,0 +1,403 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1OAuthAuthorizeToken(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, client_name=None, code_challenge=None, code_challenge_method=None, expires_in=None, kind=None, metadata=None, redirect_uri=None, scopes=None, state=None, user_name=None, user_uid=None): + """ + V1OAuthAuthorizeToken - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'client_name': 'str', + 'code_challenge': 'str', + 'code_challenge_method': 'str', + 'expires_in': 'int', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'redirect_uri': 'str', + 'scopes': 'list[str]', + 'state': 'str', + 'user_name': 'str', + 'user_uid': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'client_name': 'clientName', + 'code_challenge': 'codeChallenge', + 'code_challenge_method': 'codeChallengeMethod', + 'expires_in': 'expiresIn', + 'kind': 'kind', + 'metadata': 'metadata', + 'redirect_uri': 'redirectURI', + 'scopes': 'scopes', + 'state': 'state', + 'user_name': 'userName', + 'user_uid': 'userUID' + } + + self._api_version = api_version + self._client_name = client_name + self._code_challenge = code_challenge + self._code_challenge_method = code_challenge_method + self._expires_in = expires_in + self._kind = kind + self._metadata = metadata + self._redirect_uri = redirect_uri + self._scopes = scopes + self._state = state + self._user_name = user_name + self._user_uid = user_uid + + @property + def api_version(self): + """ + Gets the api_version of this V1OAuthAuthorizeToken. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1OAuthAuthorizeToken. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1OAuthAuthorizeToken. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1OAuthAuthorizeToken. + :type: str + """ + + self._api_version = api_version + + @property + def client_name(self): + """ + Gets the client_name of this V1OAuthAuthorizeToken. + ClientName references the client that created this token. + + :return: The client_name of this V1OAuthAuthorizeToken. + :rtype: str + """ + return self._client_name + + @client_name.setter + def client_name(self, client_name): + """ + Sets the client_name of this V1OAuthAuthorizeToken. + ClientName references the client that created this token. + + :param client_name: The client_name of this V1OAuthAuthorizeToken. + :type: str + """ + + self._client_name = client_name + + @property + def code_challenge(self): + """ + Gets the code_challenge of this V1OAuthAuthorizeToken. + CodeChallenge is the optional code_challenge associated with this authorization code, as described in rfc7636 + + :return: The code_challenge of this V1OAuthAuthorizeToken. + :rtype: str + """ + return self._code_challenge + + @code_challenge.setter + def code_challenge(self, code_challenge): + """ + Sets the code_challenge of this V1OAuthAuthorizeToken. + CodeChallenge is the optional code_challenge associated with this authorization code, as described in rfc7636 + + :param code_challenge: The code_challenge of this V1OAuthAuthorizeToken. + :type: str + """ + + self._code_challenge = code_challenge + + @property + def code_challenge_method(self): + """ + Gets the code_challenge_method of this V1OAuthAuthorizeToken. + CodeChallengeMethod is the optional code_challenge_method associated with this authorization code, as described in rfc7636 + + :return: The code_challenge_method of this V1OAuthAuthorizeToken. + :rtype: str + """ + return self._code_challenge_method + + @code_challenge_method.setter + def code_challenge_method(self, code_challenge_method): + """ + Sets the code_challenge_method of this V1OAuthAuthorizeToken. + CodeChallengeMethod is the optional code_challenge_method associated with this authorization code, as described in rfc7636 + + :param code_challenge_method: The code_challenge_method of this V1OAuthAuthorizeToken. + :type: str + """ + + self._code_challenge_method = code_challenge_method + + @property + def expires_in(self): + """ + Gets the expires_in of this V1OAuthAuthorizeToken. + ExpiresIn is the seconds from CreationTime before this token expires. + + :return: The expires_in of this V1OAuthAuthorizeToken. + :rtype: int + """ + return self._expires_in + + @expires_in.setter + def expires_in(self, expires_in): + """ + Sets the expires_in of this V1OAuthAuthorizeToken. + ExpiresIn is the seconds from CreationTime before this token expires. + + :param expires_in: The expires_in of this V1OAuthAuthorizeToken. + :type: int + """ + + self._expires_in = expires_in + + @property + def kind(self): + """ + Gets the kind of this V1OAuthAuthorizeToken. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1OAuthAuthorizeToken. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1OAuthAuthorizeToken. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1OAuthAuthorizeToken. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1OAuthAuthorizeToken. + Standard object's metadata. + + :return: The metadata of this V1OAuthAuthorizeToken. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1OAuthAuthorizeToken. + Standard object's metadata. + + :param metadata: The metadata of this V1OAuthAuthorizeToken. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def redirect_uri(self): + """ + Gets the redirect_uri of this V1OAuthAuthorizeToken. + RedirectURI is the redirection associated with the token. + + :return: The redirect_uri of this V1OAuthAuthorizeToken. + :rtype: str + """ + return self._redirect_uri + + @redirect_uri.setter + def redirect_uri(self, redirect_uri): + """ + Sets the redirect_uri of this V1OAuthAuthorizeToken. + RedirectURI is the redirection associated with the token. + + :param redirect_uri: The redirect_uri of this V1OAuthAuthorizeToken. + :type: str + """ + + self._redirect_uri = redirect_uri + + @property + def scopes(self): + """ + Gets the scopes of this V1OAuthAuthorizeToken. + Scopes is an array of the requested scopes. + + :return: The scopes of this V1OAuthAuthorizeToken. + :rtype: list[str] + """ + return self._scopes + + @scopes.setter + def scopes(self, scopes): + """ + Sets the scopes of this V1OAuthAuthorizeToken. + Scopes is an array of the requested scopes. + + :param scopes: The scopes of this V1OAuthAuthorizeToken. + :type: list[str] + """ + + self._scopes = scopes + + @property + def state(self): + """ + Gets the state of this V1OAuthAuthorizeToken. + State data from request + + :return: The state of this V1OAuthAuthorizeToken. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this V1OAuthAuthorizeToken. + State data from request + + :param state: The state of this V1OAuthAuthorizeToken. + :type: str + """ + + self._state = state + + @property + def user_name(self): + """ + Gets the user_name of this V1OAuthAuthorizeToken. + UserName is the user name associated with this token + + :return: The user_name of this V1OAuthAuthorizeToken. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """ + Sets the user_name of this V1OAuthAuthorizeToken. + UserName is the user name associated with this token + + :param user_name: The user_name of this V1OAuthAuthorizeToken. + :type: str + """ + + self._user_name = user_name + + @property + def user_uid(self): + """ + Gets the user_uid of this V1OAuthAuthorizeToken. + UserUID is the unique UID associated with this token. UserUID and UserName must both match for this token to be valid. + + :return: The user_uid of this V1OAuthAuthorizeToken. + :rtype: str + """ + return self._user_uid + + @user_uid.setter + def user_uid(self, user_uid): + """ + Sets the user_uid of this V1OAuthAuthorizeToken. + UserUID is the unique UID associated with this token. UserUID and UserName must both match for this token to be valid. + + :param user_uid: The user_uid of this V1OAuthAuthorizeToken. + :type: str + """ + + self._user_uid = user_uid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1OAuthAuthorizeToken): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_o_auth_authorize_token_list.py b/kubernetes/client/models/v1_o_auth_authorize_token_list.py new file mode 100644 index 0000000000..777ff97baf --- /dev/null +++ b/kubernetes/client/models/v1_o_auth_authorize_token_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1OAuthAuthorizeTokenList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1OAuthAuthorizeTokenList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1OAuthAuthorizeToken]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1OAuthAuthorizeTokenList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1OAuthAuthorizeTokenList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1OAuthAuthorizeTokenList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1OAuthAuthorizeTokenList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1OAuthAuthorizeTokenList. + Items is the list of OAuth authorization tokens + + :return: The items of this V1OAuthAuthorizeTokenList. + :rtype: list[V1OAuthAuthorizeToken] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1OAuthAuthorizeTokenList. + Items is the list of OAuth authorization tokens + + :param items: The items of this V1OAuthAuthorizeTokenList. + :type: list[V1OAuthAuthorizeToken] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1OAuthAuthorizeTokenList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1OAuthAuthorizeTokenList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1OAuthAuthorizeTokenList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1OAuthAuthorizeTokenList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1OAuthAuthorizeTokenList. + Standard object's metadata. + + :return: The metadata of this V1OAuthAuthorizeTokenList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1OAuthAuthorizeTokenList. + Standard object's metadata. + + :param metadata: The metadata of this V1OAuthAuthorizeTokenList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1OAuthAuthorizeTokenList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_o_auth_client.py b/kubernetes/client/models/v1_o_auth_client.py new file mode 100644 index 0000000000..e4e316f51d --- /dev/null +++ b/kubernetes/client/models/v1_o_auth_client.py @@ -0,0 +1,325 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1OAuthClient(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, additional_secrets=None, api_version=None, grant_method=None, kind=None, metadata=None, redirect_ur_is=None, respond_with_challenges=None, scope_restrictions=None, secret=None): + """ + V1OAuthClient - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'additional_secrets': 'list[str]', + 'api_version': 'str', + 'grant_method': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'redirect_ur_is': 'list[str]', + 'respond_with_challenges': 'bool', + 'scope_restrictions': 'list[V1ScopeRestriction]', + 'secret': 'str' + } + + self.attribute_map = { + 'additional_secrets': 'additionalSecrets', + 'api_version': 'apiVersion', + 'grant_method': 'grantMethod', + 'kind': 'kind', + 'metadata': 'metadata', + 'redirect_ur_is': 'redirectURIs', + 'respond_with_challenges': 'respondWithChallenges', + 'scope_restrictions': 'scopeRestrictions', + 'secret': 'secret' + } + + self._additional_secrets = additional_secrets + self._api_version = api_version + self._grant_method = grant_method + self._kind = kind + self._metadata = metadata + self._redirect_ur_is = redirect_ur_is + self._respond_with_challenges = respond_with_challenges + self._scope_restrictions = scope_restrictions + self._secret = secret + + @property + def additional_secrets(self): + """ + Gets the additional_secrets of this V1OAuthClient. + AdditionalSecrets holds other secrets that may be used to identify the client. This is useful for rotation and for service account token validation + + :return: The additional_secrets of this V1OAuthClient. + :rtype: list[str] + """ + return self._additional_secrets + + @additional_secrets.setter + def additional_secrets(self, additional_secrets): + """ + Sets the additional_secrets of this V1OAuthClient. + AdditionalSecrets holds other secrets that may be used to identify the client. This is useful for rotation and for service account token validation + + :param additional_secrets: The additional_secrets of this V1OAuthClient. + :type: list[str] + """ + + self._additional_secrets = additional_secrets + + @property + def api_version(self): + """ + Gets the api_version of this V1OAuthClient. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1OAuthClient. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1OAuthClient. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1OAuthClient. + :type: str + """ + + self._api_version = api_version + + @property + def grant_method(self): + """ + Gets the grant_method of this V1OAuthClient. + GrantMethod determines how to handle grants for this client. If no method is provided, the cluster default grant handling method will be used. Valid grant handling methods are: - auto: always approves grant requests, useful for trusted clients - prompt: prompts the end user for approval of grant requests, useful for third-party clients - deny: always denies grant requests, useful for black-listed clients + + :return: The grant_method of this V1OAuthClient. + :rtype: str + """ + return self._grant_method + + @grant_method.setter + def grant_method(self, grant_method): + """ + Sets the grant_method of this V1OAuthClient. + GrantMethod determines how to handle grants for this client. If no method is provided, the cluster default grant handling method will be used. Valid grant handling methods are: - auto: always approves grant requests, useful for trusted clients - prompt: prompts the end user for approval of grant requests, useful for third-party clients - deny: always denies grant requests, useful for black-listed clients + + :param grant_method: The grant_method of this V1OAuthClient. + :type: str + """ + + self._grant_method = grant_method + + @property + def kind(self): + """ + Gets the kind of this V1OAuthClient. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1OAuthClient. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1OAuthClient. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1OAuthClient. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1OAuthClient. + Standard object's metadata. + + :return: The metadata of this V1OAuthClient. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1OAuthClient. + Standard object's metadata. + + :param metadata: The metadata of this V1OAuthClient. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def redirect_ur_is(self): + """ + Gets the redirect_ur_is of this V1OAuthClient. + RedirectURIs is the valid redirection URIs associated with a client + + :return: The redirect_ur_is of this V1OAuthClient. + :rtype: list[str] + """ + return self._redirect_ur_is + + @redirect_ur_is.setter + def redirect_ur_is(self, redirect_ur_is): + """ + Sets the redirect_ur_is of this V1OAuthClient. + RedirectURIs is the valid redirection URIs associated with a client + + :param redirect_ur_is: The redirect_ur_is of this V1OAuthClient. + :type: list[str] + """ + + self._redirect_ur_is = redirect_ur_is + + @property + def respond_with_challenges(self): + """ + Gets the respond_with_challenges of this V1OAuthClient. + RespondWithChallenges indicates whether the client wants authentication needed responses made in the form of challenges instead of redirects + + :return: The respond_with_challenges of this V1OAuthClient. + :rtype: bool + """ + return self._respond_with_challenges + + @respond_with_challenges.setter + def respond_with_challenges(self, respond_with_challenges): + """ + Sets the respond_with_challenges of this V1OAuthClient. + RespondWithChallenges indicates whether the client wants authentication needed responses made in the form of challenges instead of redirects + + :param respond_with_challenges: The respond_with_challenges of this V1OAuthClient. + :type: bool + """ + + self._respond_with_challenges = respond_with_challenges + + @property + def scope_restrictions(self): + """ + Gets the scope_restrictions of this V1OAuthClient. + ScopeRestrictions describes which scopes this client can request. Each requested scope is checked against each restriction. If any restriction matches, then the scope is allowed. If no restriction matches, then the scope is denied. + + :return: The scope_restrictions of this V1OAuthClient. + :rtype: list[V1ScopeRestriction] + """ + return self._scope_restrictions + + @scope_restrictions.setter + def scope_restrictions(self, scope_restrictions): + """ + Sets the scope_restrictions of this V1OAuthClient. + ScopeRestrictions describes which scopes this client can request. Each requested scope is checked against each restriction. If any restriction matches, then the scope is allowed. If no restriction matches, then the scope is denied. + + :param scope_restrictions: The scope_restrictions of this V1OAuthClient. + :type: list[V1ScopeRestriction] + """ + + self._scope_restrictions = scope_restrictions + + @property + def secret(self): + """ + Gets the secret of this V1OAuthClient. + Secret is the unique secret associated with a client + + :return: The secret of this V1OAuthClient. + :rtype: str + """ + return self._secret + + @secret.setter + def secret(self, secret): + """ + Sets the secret of this V1OAuthClient. + Secret is the unique secret associated with a client + + :param secret: The secret of this V1OAuthClient. + :type: str + """ + + self._secret = secret + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1OAuthClient): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_o_auth_client_authorization.py b/kubernetes/client/models/v1_o_auth_client_authorization.py new file mode 100644 index 0000000000..7de5f7f315 --- /dev/null +++ b/kubernetes/client/models/v1_o_auth_client_authorization.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1OAuthClientAuthorization(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, client_name=None, kind=None, metadata=None, scopes=None, user_name=None, user_uid=None): + """ + V1OAuthClientAuthorization - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'client_name': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'scopes': 'list[str]', + 'user_name': 'str', + 'user_uid': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'client_name': 'clientName', + 'kind': 'kind', + 'metadata': 'metadata', + 'scopes': 'scopes', + 'user_name': 'userName', + 'user_uid': 'userUID' + } + + self._api_version = api_version + self._client_name = client_name + self._kind = kind + self._metadata = metadata + self._scopes = scopes + self._user_name = user_name + self._user_uid = user_uid + + @property + def api_version(self): + """ + Gets the api_version of this V1OAuthClientAuthorization. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1OAuthClientAuthorization. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1OAuthClientAuthorization. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1OAuthClientAuthorization. + :type: str + """ + + self._api_version = api_version + + @property + def client_name(self): + """ + Gets the client_name of this V1OAuthClientAuthorization. + ClientName references the client that created this authorization + + :return: The client_name of this V1OAuthClientAuthorization. + :rtype: str + """ + return self._client_name + + @client_name.setter + def client_name(self, client_name): + """ + Sets the client_name of this V1OAuthClientAuthorization. + ClientName references the client that created this authorization + + :param client_name: The client_name of this V1OAuthClientAuthorization. + :type: str + """ + + self._client_name = client_name + + @property + def kind(self): + """ + Gets the kind of this V1OAuthClientAuthorization. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1OAuthClientAuthorization. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1OAuthClientAuthorization. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1OAuthClientAuthorization. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1OAuthClientAuthorization. + Standard object's metadata. + + :return: The metadata of this V1OAuthClientAuthorization. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1OAuthClientAuthorization. + Standard object's metadata. + + :param metadata: The metadata of this V1OAuthClientAuthorization. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def scopes(self): + """ + Gets the scopes of this V1OAuthClientAuthorization. + Scopes is an array of the granted scopes. + + :return: The scopes of this V1OAuthClientAuthorization. + :rtype: list[str] + """ + return self._scopes + + @scopes.setter + def scopes(self, scopes): + """ + Sets the scopes of this V1OAuthClientAuthorization. + Scopes is an array of the granted scopes. + + :param scopes: The scopes of this V1OAuthClientAuthorization. + :type: list[str] + """ + + self._scopes = scopes + + @property + def user_name(self): + """ + Gets the user_name of this V1OAuthClientAuthorization. + UserName is the user name that authorized this client + + :return: The user_name of this V1OAuthClientAuthorization. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """ + Sets the user_name of this V1OAuthClientAuthorization. + UserName is the user name that authorized this client + + :param user_name: The user_name of this V1OAuthClientAuthorization. + :type: str + """ + + self._user_name = user_name + + @property + def user_uid(self): + """ + Gets the user_uid of this V1OAuthClientAuthorization. + UserUID is the unique UID associated with this authorization. UserUID and UserName must both match for this authorization to be valid. + + :return: The user_uid of this V1OAuthClientAuthorization. + :rtype: str + """ + return self._user_uid + + @user_uid.setter + def user_uid(self, user_uid): + """ + Sets the user_uid of this V1OAuthClientAuthorization. + UserUID is the unique UID associated with this authorization. UserUID and UserName must both match for this authorization to be valid. + + :param user_uid: The user_uid of this V1OAuthClientAuthorization. + :type: str + """ + + self._user_uid = user_uid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1OAuthClientAuthorization): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_o_auth_client_authorization_list.py b/kubernetes/client/models/v1_o_auth_client_authorization_list.py new file mode 100644 index 0000000000..4821163ad2 --- /dev/null +++ b/kubernetes/client/models/v1_o_auth_client_authorization_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1OAuthClientAuthorizationList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1OAuthClientAuthorizationList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1OAuthClientAuthorization]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1OAuthClientAuthorizationList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1OAuthClientAuthorizationList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1OAuthClientAuthorizationList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1OAuthClientAuthorizationList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1OAuthClientAuthorizationList. + Items is the list of OAuth client authorizations + + :return: The items of this V1OAuthClientAuthorizationList. + :rtype: list[V1OAuthClientAuthorization] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1OAuthClientAuthorizationList. + Items is the list of OAuth client authorizations + + :param items: The items of this V1OAuthClientAuthorizationList. + :type: list[V1OAuthClientAuthorization] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1OAuthClientAuthorizationList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1OAuthClientAuthorizationList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1OAuthClientAuthorizationList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1OAuthClientAuthorizationList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1OAuthClientAuthorizationList. + Standard object's metadata. + + :return: The metadata of this V1OAuthClientAuthorizationList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1OAuthClientAuthorizationList. + Standard object's metadata. + + :param metadata: The metadata of this V1OAuthClientAuthorizationList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1OAuthClientAuthorizationList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_o_auth_client_list.py b/kubernetes/client/models/v1_o_auth_client_list.py new file mode 100644 index 0000000000..91c84dd4d6 --- /dev/null +++ b/kubernetes/client/models/v1_o_auth_client_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1OAuthClientList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1OAuthClientList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1OAuthClient]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1OAuthClientList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1OAuthClientList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1OAuthClientList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1OAuthClientList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1OAuthClientList. + Items is the list of OAuth clients + + :return: The items of this V1OAuthClientList. + :rtype: list[V1OAuthClient] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1OAuthClientList. + Items is the list of OAuth clients + + :param items: The items of this V1OAuthClientList. + :type: list[V1OAuthClient] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1OAuthClientList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1OAuthClientList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1OAuthClientList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1OAuthClientList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1OAuthClientList. + Standard object's metadata. + + :return: The metadata of this V1OAuthClientList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1OAuthClientList. + Standard object's metadata. + + :param metadata: The metadata of this V1OAuthClientList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1OAuthClientList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_object_field_selector.py b/kubernetes/client/models/v1_object_field_selector.py index d0964b5089..5350677883 100644 --- a/kubernetes/client/models/v1_object_field_selector.py +++ b/kubernetes/client/models/v1_object_field_selector.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_object_meta.py b/kubernetes/client/models/v1_object_meta.py index b1e2fb8971..35dffc2abc 100644 --- a/kubernetes/client/models/v1_object_meta.py +++ b/kubernetes/client/models/v1_object_meta.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_object_reference.py b/kubernetes/client/models/v1_object_reference.py index 9e270e3a06..903ea7225f 100644 --- a/kubernetes/client/models/v1_object_reference.py +++ b/kubernetes/client/models/v1_object_reference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_owner_reference.py b/kubernetes/client/models/v1_owner_reference.py index d3777629b0..ec39e2b678 100644 --- a/kubernetes/client/models/v1_owner_reference.py +++ b/kubernetes/client/models/v1_owner_reference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1OwnerReference(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, api_version=None, block_owner_deletion=None, controller=None, kind=None, name=None, uid=None): + def __init__(self, api_version=None, controller=None, kind=None, name=None, uid=None): """ V1OwnerReference - a model defined in Swagger @@ -32,7 +32,6 @@ def __init__(self, api_version=None, block_owner_deletion=None, controller=None, """ self.swagger_types = { 'api_version': 'str', - 'block_owner_deletion': 'bool', 'controller': 'bool', 'kind': 'str', 'name': 'str', @@ -41,7 +40,6 @@ def __init__(self, api_version=None, block_owner_deletion=None, controller=None, self.attribute_map = { 'api_version': 'apiVersion', - 'block_owner_deletion': 'blockOwnerDeletion', 'controller': 'controller', 'kind': 'kind', 'name': 'name', @@ -49,7 +47,6 @@ def __init__(self, api_version=None, block_owner_deletion=None, controller=None, } self._api_version = api_version - self._block_owner_deletion = block_owner_deletion self._controller = controller self._kind = kind self._name = name @@ -80,29 +77,6 @@ def api_version(self, api_version): self._api_version = api_version - @property - def block_owner_deletion(self): - """ - Gets the block_owner_deletion of this V1OwnerReference. - If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - - :return: The block_owner_deletion of this V1OwnerReference. - :rtype: bool - """ - return self._block_owner_deletion - - @block_owner_deletion.setter - def block_owner_deletion(self, block_owner_deletion): - """ - Sets the block_owner_deletion of this V1OwnerReference. - If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - - :param block_owner_deletion: The block_owner_deletion of this V1OwnerReference. - :type: bool - """ - - self._block_owner_deletion = block_owner_deletion - @property def controller(self): """ diff --git a/kubernetes/client/models/v1_parameter.py b/kubernetes/client/models/v1_parameter.py new file mode 100644 index 0000000000..b7f2cfdf1d --- /dev/null +++ b/kubernetes/client/models/v1_parameter.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Parameter(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, description=None, display_name=None, _from=None, generate=None, name=None, required=None, value=None): + """ + V1Parameter - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'description': 'str', + 'display_name': 'str', + '_from': 'str', + 'generate': 'str', + 'name': 'str', + 'required': 'bool', + 'value': 'str' + } + + self.attribute_map = { + 'description': 'description', + 'display_name': 'displayName', + '_from': 'from', + 'generate': 'generate', + 'name': 'name', + 'required': 'required', + 'value': 'value' + } + + self._description = description + self._display_name = display_name + self.__from = _from + self._generate = generate + self._name = name + self._required = required + self._value = value + + @property + def description(self): + """ + Gets the description of this V1Parameter. + Description of a parameter. Optional. + + :return: The description of this V1Parameter. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this V1Parameter. + Description of a parameter. Optional. + + :param description: The description of this V1Parameter. + :type: str + """ + + self._description = description + + @property + def display_name(self): + """ + Gets the display_name of this V1Parameter. + Optional: The name that will show in UI instead of parameter 'Name' + + :return: The display_name of this V1Parameter. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this V1Parameter. + Optional: The name that will show in UI instead of parameter 'Name' + + :param display_name: The display_name of this V1Parameter. + :type: str + """ + + self._display_name = display_name + + @property + def _from(self): + """ + Gets the _from of this V1Parameter. + From is an input value for the generator. Optional. + + :return: The _from of this V1Parameter. + :rtype: str + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1Parameter. + From is an input value for the generator. Optional. + + :param _from: The _from of this V1Parameter. + :type: str + """ + + self.__from = _from + + @property + def generate(self): + """ + Gets the generate of this V1Parameter. + generate specifies the generator to be used to generate random string from an input value specified by From field. The result string is stored into Value field. If empty, no generator is being used, leaving the result Value untouched. Optional. The only supported generator is \"expression\", which accepts a \"from\" value in the form of a simple regular expression containing the range expression \"[a-zA-Z0-9]\", and the length expression \"a{length}\". Examples: from | value ----------------------------- \"test[0-9]{1}x\" | \"test7x\" \"[0-1]{8}\" | \"01001100\" \"0x[A-F0-9]{4}\" | \"0xB3AF\" \"[a-zA-Z0-9]{8}\" | \"hW4yQU5i\" + + :return: The generate of this V1Parameter. + :rtype: str + """ + return self._generate + + @generate.setter + def generate(self, generate): + """ + Sets the generate of this V1Parameter. + generate specifies the generator to be used to generate random string from an input value specified by From field. The result string is stored into Value field. If empty, no generator is being used, leaving the result Value untouched. Optional. The only supported generator is \"expression\", which accepts a \"from\" value in the form of a simple regular expression containing the range expression \"[a-zA-Z0-9]\", and the length expression \"a{length}\". Examples: from | value ----------------------------- \"test[0-9]{1}x\" | \"test7x\" \"[0-1]{8}\" | \"01001100\" \"0x[A-F0-9]{4}\" | \"0xB3AF\" \"[a-zA-Z0-9]{8}\" | \"hW4yQU5i\" + + :param generate: The generate of this V1Parameter. + :type: str + """ + + self._generate = generate + + @property + def name(self): + """ + Gets the name of this V1Parameter. + Name must be set and it can be referenced in Template Items using ${PARAMETER_NAME}. Required. + + :return: The name of this V1Parameter. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1Parameter. + Name must be set and it can be referenced in Template Items using ${PARAMETER_NAME}. Required. + + :param name: The name of this V1Parameter. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def required(self): + """ + Gets the required of this V1Parameter. + Optional: Indicates the parameter must have a value. Defaults to false. + + :return: The required of this V1Parameter. + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """ + Sets the required of this V1Parameter. + Optional: Indicates the parameter must have a value. Defaults to false. + + :param required: The required of this V1Parameter. + :type: bool + """ + + self._required = required + + @property + def value(self): + """ + Gets the value of this V1Parameter. + Value holds the Parameter data. If specified, the generator will be ignored. The value replaces all occurrences of the Parameter ${Name} expression during the Template to Config transformation. Optional. + + :return: The value of this V1Parameter. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this V1Parameter. + Value holds the Parameter data. If specified, the generator will be ignored. The value replaces all occurrences of the Parameter ${Name} expression during the Template to Config transformation. Optional. + + :param value: The value of this V1Parameter. + :type: str + """ + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1Parameter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_persistent_volume.py b/kubernetes/client/models/v1_persistent_volume.py index ccc13f5421..253080b09b 100644 --- a/kubernetes/client/models/v1_persistent_volume.py +++ b/kubernetes/client/models/v1_persistent_volume.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_persistent_volume_claim.py b/kubernetes/client/models/v1_persistent_volume_claim.py index 3dd3cda5f3..ff62215121 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim.py +++ b/kubernetes/client/models/v1_persistent_volume_claim.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_persistent_volume_claim_list.py b/kubernetes/client/models/v1_persistent_volume_claim_list.py index c1b280adc5..f5994e709a 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_list.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1PersistentVolumeClaim]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1PersistentVolumeClaimList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1PersistentVolumeClaimList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_persistent_volume_claim_spec.py b/kubernetes/client/models/v1_persistent_volume_claim_spec.py index ed18190f8a..9595dafeb1 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_spec.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1PersistentVolumeClaimSpec(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, access_modes=None, resources=None, selector=None, storage_class_name=None, volume_name=None): + def __init__(self, access_modes=None, resources=None, selector=None, volume_name=None): """ V1PersistentVolumeClaimSpec - a model defined in Swagger @@ -33,8 +33,7 @@ def __init__(self, access_modes=None, resources=None, selector=None, storage_cla self.swagger_types = { 'access_modes': 'list[str]', 'resources': 'V1ResourceRequirements', - 'selector': 'V1LabelSelector', - 'storage_class_name': 'str', + 'selector': 'UnversionedLabelSelector', 'volume_name': 'str' } @@ -42,14 +41,12 @@ def __init__(self, access_modes=None, resources=None, selector=None, storage_cla 'access_modes': 'accessModes', 'resources': 'resources', 'selector': 'selector', - 'storage_class_name': 'storageClassName', 'volume_name': 'volumeName' } self._access_modes = access_modes self._resources = resources self._selector = selector - self._storage_class_name = storage_class_name self._volume_name = volume_name @property @@ -105,7 +102,7 @@ def selector(self): A label query over volumes to consider for binding. :return: The selector of this V1PersistentVolumeClaimSpec. - :rtype: V1LabelSelector + :rtype: UnversionedLabelSelector """ return self._selector @@ -116,34 +113,11 @@ def selector(self, selector): A label query over volumes to consider for binding. :param selector: The selector of this V1PersistentVolumeClaimSpec. - :type: V1LabelSelector + :type: UnversionedLabelSelector """ self._selector = selector - @property - def storage_class_name(self): - """ - Gets the storage_class_name of this V1PersistentVolumeClaimSpec. - Name of the StorageClass required by the claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1 - - :return: The storage_class_name of this V1PersistentVolumeClaimSpec. - :rtype: str - """ - return self._storage_class_name - - @storage_class_name.setter - def storage_class_name(self, storage_class_name): - """ - Sets the storage_class_name of this V1PersistentVolumeClaimSpec. - Name of the StorageClass required by the claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1 - - :param storage_class_name: The storage_class_name of this V1PersistentVolumeClaimSpec. - :type: str - """ - - self._storage_class_name = storage_class_name - @property def volume_name(self): """ diff --git a/kubernetes/client/models/v1_persistent_volume_claim_status.py b/kubernetes/client/models/v1_persistent_volume_claim_status.py index 8fbf157396..df4c1b5964 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_status.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py b/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py index 062f820ee1..06d6dafc9f 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_persistent_volume_list.py b/kubernetes/client/models/v1_persistent_volume_list.py index 622e44ade5..ae8cc1d30c 100644 --- a/kubernetes/client/models/v1_persistent_volume_list.py +++ b/kubernetes/client/models/v1_persistent_volume_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1PersistentVolume]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1PersistentVolumeList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1PersistentVolumeList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_persistent_volume_spec.py b/kubernetes/client/models/v1_persistent_volume_spec.py index 82ef9303aa..efcb5e0763 100644 --- a/kubernetes/client/models/v1_persistent_volume_spec.py +++ b/kubernetes/client/models/v1_persistent_volume_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1PersistentVolumeSpec(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=None, azure_file=None, capacity=None, cephfs=None, cinder=None, claim_ref=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, glusterfs=None, host_path=None, iscsi=None, nfs=None, persistent_volume_reclaim_policy=None, photon_persistent_disk=None, portworx_volume=None, quobyte=None, rbd=None, scale_io=None, storage_class_name=None, vsphere_volume=None): + def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=None, azure_file=None, capacity=None, cephfs=None, cinder=None, claim_ref=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, glusterfs=None, host_path=None, iscsi=None, nfs=None, persistent_volume_reclaim_policy=None, photon_persistent_disk=None, quobyte=None, rbd=None, vsphere_volume=None): """ V1PersistentVolumeSpec - a model defined in Swagger @@ -49,11 +49,8 @@ def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=N 'nfs': 'V1NFSVolumeSource', 'persistent_volume_reclaim_policy': 'str', 'photon_persistent_disk': 'V1PhotonPersistentDiskVolumeSource', - 'portworx_volume': 'V1PortworxVolumeSource', 'quobyte': 'V1QuobyteVolumeSource', 'rbd': 'V1RBDVolumeSource', - 'scale_io': 'V1ScaleIOVolumeSource', - 'storage_class_name': 'str', 'vsphere_volume': 'V1VsphereVirtualDiskVolumeSource' } @@ -76,11 +73,8 @@ def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=N 'nfs': 'nfs', 'persistent_volume_reclaim_policy': 'persistentVolumeReclaimPolicy', 'photon_persistent_disk': 'photonPersistentDisk', - 'portworx_volume': 'portworxVolume', 'quobyte': 'quobyte', 'rbd': 'rbd', - 'scale_io': 'scaleIO', - 'storage_class_name': 'storageClassName', 'vsphere_volume': 'vsphereVolume' } @@ -102,11 +96,8 @@ def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=N self._nfs = nfs self._persistent_volume_reclaim_policy = persistent_volume_reclaim_policy self._photon_persistent_disk = photon_persistent_disk - self._portworx_volume = portworx_volume self._quobyte = quobyte self._rbd = rbd - self._scale_io = scale_io - self._storage_class_name = storage_class_name self._vsphere_volume = vsphere_volume @property @@ -523,29 +514,6 @@ def photon_persistent_disk(self, photon_persistent_disk): self._photon_persistent_disk = photon_persistent_disk - @property - def portworx_volume(self): - """ - Gets the portworx_volume of this V1PersistentVolumeSpec. - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - - :return: The portworx_volume of this V1PersistentVolumeSpec. - :rtype: V1PortworxVolumeSource - """ - return self._portworx_volume - - @portworx_volume.setter - def portworx_volume(self, portworx_volume): - """ - Sets the portworx_volume of this V1PersistentVolumeSpec. - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - - :param portworx_volume: The portworx_volume of this V1PersistentVolumeSpec. - :type: V1PortworxVolumeSource - """ - - self._portworx_volume = portworx_volume - @property def quobyte(self): """ @@ -592,52 +560,6 @@ def rbd(self, rbd): self._rbd = rbd - @property - def scale_io(self): - """ - Gets the scale_io of this V1PersistentVolumeSpec. - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - - :return: The scale_io of this V1PersistentVolumeSpec. - :rtype: V1ScaleIOVolumeSource - """ - return self._scale_io - - @scale_io.setter - def scale_io(self, scale_io): - """ - Sets the scale_io of this V1PersistentVolumeSpec. - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - - :param scale_io: The scale_io of this V1PersistentVolumeSpec. - :type: V1ScaleIOVolumeSource - """ - - self._scale_io = scale_io - - @property - def storage_class_name(self): - """ - Gets the storage_class_name of this V1PersistentVolumeSpec. - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - - :return: The storage_class_name of this V1PersistentVolumeSpec. - :rtype: str - """ - return self._storage_class_name - - @storage_class_name.setter - def storage_class_name(self, storage_class_name): - """ - Sets the storage_class_name of this V1PersistentVolumeSpec. - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - - :param storage_class_name: The storage_class_name of this V1PersistentVolumeSpec. - :type: str - """ - - self._storage_class_name = storage_class_name - @property def vsphere_volume(self): """ diff --git a/kubernetes/client/models/v1_persistent_volume_status.py b/kubernetes/client/models/v1_persistent_volume_status.py index b343ad8547..c00f28ba33 100644 --- a/kubernetes/client/models/v1_persistent_volume_status.py +++ b/kubernetes/client/models/v1_persistent_volume_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py b/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py index fa427b038f..0f9d629dcd 100644 --- a/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py +++ b/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_pod.py b/kubernetes/client/models/v1_pod.py index 42bcb30f09..2f6e4bbb61 100644 --- a/kubernetes/client/models/v1_pod.py +++ b/kubernetes/client/models/v1_pod.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_pod_affinity.py b/kubernetes/client/models/v1_pod_affinity.py deleted file mode 100644 index 381b5ff3da..0000000000 --- a/kubernetes/client/models/v1_pod_affinity.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1PodAffinity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): - """ - V1PodAffinity - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'preferred_during_scheduling_ignored_during_execution': 'list[V1WeightedPodAffinityTerm]', - 'required_during_scheduling_ignored_during_execution': 'list[V1PodAffinityTerm]' - } - - self.attribute_map = { - 'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution', - 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' - } - - self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution - self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution - - @property - def preferred_during_scheduling_ignored_during_execution(self): - """ - Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - - :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. - :rtype: list[V1WeightedPodAffinityTerm] - """ - return self._preferred_during_scheduling_ignored_during_execution - - @preferred_during_scheduling_ignored_during_execution.setter - def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): - """ - Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - - :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. - :type: list[V1WeightedPodAffinityTerm] - """ - - self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution - - @property - def required_during_scheduling_ignored_during_execution(self): - """ - Gets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. - NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - :return: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. - :rtype: list[V1PodAffinityTerm] - """ - return self._required_during_scheduling_ignored_during_execution - - @required_during_scheduling_ignored_during_execution.setter - def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): - """ - Sets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. - NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. - :type: list[V1PodAffinityTerm] - """ - - self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1PodAffinity): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_pod_affinity_term.py b/kubernetes/client/models/v1_pod_affinity_term.py deleted file mode 100644 index 82f791b71e..0000000000 --- a/kubernetes/client/models/v1_pod_affinity_term.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1PodAffinityTerm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, label_selector=None, namespaces=None, topology_key=None): - """ - V1PodAffinityTerm - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'label_selector': 'V1LabelSelector', - 'namespaces': 'list[str]', - 'topology_key': 'str' - } - - self.attribute_map = { - 'label_selector': 'labelSelector', - 'namespaces': 'namespaces', - 'topology_key': 'topologyKey' - } - - self._label_selector = label_selector - self._namespaces = namespaces - self._topology_key = topology_key - - @property - def label_selector(self): - """ - Gets the label_selector of this V1PodAffinityTerm. - A label query over a set of resources, in this case pods. - - :return: The label_selector of this V1PodAffinityTerm. - :rtype: V1LabelSelector - """ - return self._label_selector - - @label_selector.setter - def label_selector(self, label_selector): - """ - Sets the label_selector of this V1PodAffinityTerm. - A label query over a set of resources, in this case pods. - - :param label_selector: The label_selector of this V1PodAffinityTerm. - :type: V1LabelSelector - """ - - self._label_selector = label_selector - - @property - def namespaces(self): - """ - Gets the namespaces of this V1PodAffinityTerm. - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" - - :return: The namespaces of this V1PodAffinityTerm. - :rtype: list[str] - """ - return self._namespaces - - @namespaces.setter - def namespaces(self, namespaces): - """ - Sets the namespaces of this V1PodAffinityTerm. - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" - - :param namespaces: The namespaces of this V1PodAffinityTerm. - :type: list[str] - """ - - self._namespaces = namespaces - - @property - def topology_key(self): - """ - Gets the topology_key of this V1PodAffinityTerm. - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. - - :return: The topology_key of this V1PodAffinityTerm. - :rtype: str - """ - return self._topology_key - - @topology_key.setter - def topology_key(self, topology_key): - """ - Sets the topology_key of this V1PodAffinityTerm. - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. - - :param topology_key: The topology_key of this V1PodAffinityTerm. - :type: str - """ - - self._topology_key = topology_key - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1PodAffinityTerm): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_pod_anti_affinity.py b/kubernetes/client/models/v1_pod_anti_affinity.py deleted file mode 100644 index b41893ea9b..0000000000 --- a/kubernetes/client/models/v1_pod_anti_affinity.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1PodAntiAffinity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): - """ - V1PodAntiAffinity - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'preferred_during_scheduling_ignored_during_execution': 'list[V1WeightedPodAffinityTerm]', - 'required_during_scheduling_ignored_during_execution': 'list[V1PodAffinityTerm]' - } - - self.attribute_map = { - 'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution', - 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' - } - - self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution - self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution - - @property - def preferred_during_scheduling_ignored_during_execution(self): - """ - Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - - :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - :rtype: list[V1WeightedPodAffinityTerm] - """ - return self._preferred_during_scheduling_ignored_during_execution - - @preferred_during_scheduling_ignored_during_execution.setter - def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): - """ - Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - - :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - :type: list[V1WeightedPodAffinityTerm] - """ - - self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution - - @property - def required_during_scheduling_ignored_during_execution(self): - """ - Gets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - :return: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - :rtype: list[V1PodAffinityTerm] - """ - return self._required_during_scheduling_ignored_during_execution - - @required_during_scheduling_ignored_during_execution.setter - def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): - """ - Sets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - :type: list[V1PodAffinityTerm] - """ - - self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1PodAntiAffinity): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_pod_condition.py b/kubernetes/client/models/v1_pod_condition.py index 395700f548..e2478eb3db 100644 --- a/kubernetes/client/models/v1_pod_condition.py +++ b/kubernetes/client/models/v1_pod_condition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_pod_list.py b/kubernetes/client/models/v1_pod_list.py index 05de82bc2d..9aae9710ce 100644 --- a/kubernetes/client/models/v1_pod_list.py +++ b/kubernetes/client/models/v1_pod_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Pod]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1PodList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1PodList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_pod_security_context.py b/kubernetes/client/models/v1_pod_security_context.py index a43352e172..d280285cac 100644 --- a/kubernetes/client/models/v1_pod_security_context.py +++ b/kubernetes/client/models/v1_pod_security_context.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_pod_security_policy_review.py b/kubernetes/client/models/v1_pod_security_policy_review.py new file mode 100644 index 0000000000..344349d0e6 --- /dev/null +++ b/kubernetes/client/models/v1_pod_security_policy_review.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodSecurityPolicyReview(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, spec=None, status=None): + """ + V1PodSecurityPolicyReview - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'spec': 'V1PodSecurityPolicyReviewSpec', + 'status': 'V1PodSecurityPolicyReviewStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1PodSecurityPolicyReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1PodSecurityPolicyReview. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PodSecurityPolicyReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1PodSecurityPolicyReview. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1PodSecurityPolicyReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1PodSecurityPolicyReview. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PodSecurityPolicyReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1PodSecurityPolicyReview. + :type: str + """ + + self._kind = kind + + @property + def spec(self): + """ + Gets the spec of this V1PodSecurityPolicyReview. + spec is the PodSecurityPolicy to check. + + :return: The spec of this V1PodSecurityPolicyReview. + :rtype: V1PodSecurityPolicyReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1PodSecurityPolicyReview. + spec is the PodSecurityPolicy to check. + + :param spec: The spec of this V1PodSecurityPolicyReview. + :type: V1PodSecurityPolicyReviewSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1PodSecurityPolicyReview. + status represents the current information/status for the PodSecurityPolicyReview. + + :return: The status of this V1PodSecurityPolicyReview. + :rtype: V1PodSecurityPolicyReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1PodSecurityPolicyReview. + status represents the current information/status for the PodSecurityPolicyReview. + + :param status: The status of this V1PodSecurityPolicyReview. + :type: V1PodSecurityPolicyReviewStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1PodSecurityPolicyReview): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_pod_security_policy_review_spec.py b/kubernetes/client/models/v1_pod_security_policy_review_spec.py new file mode 100644 index 0000000000..3990001358 --- /dev/null +++ b/kubernetes/client/models/v1_pod_security_policy_review_spec.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodSecurityPolicyReviewSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, service_account_names=None, template=None): + """ + V1PodSecurityPolicyReviewSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'service_account_names': 'list[str]', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'service_account_names': 'serviceAccountNames', + 'template': 'template' + } + + self._service_account_names = service_account_names + self._template = template + + @property + def service_account_names(self): + """ + Gets the service_account_names of this V1PodSecurityPolicyReviewSpec. + serviceAccountNames is an optional set of ServiceAccounts to run the check with. If serviceAccountNames is empty, the template.spec.serviceAccountName is used, unless it's empty, in which case \"default\" is used instead. If serviceAccountNames is specified, template.spec.serviceAccountName is ignored. + + :return: The service_account_names of this V1PodSecurityPolicyReviewSpec. + :rtype: list[str] + """ + return self._service_account_names + + @service_account_names.setter + def service_account_names(self, service_account_names): + """ + Sets the service_account_names of this V1PodSecurityPolicyReviewSpec. + serviceAccountNames is an optional set of ServiceAccounts to run the check with. If serviceAccountNames is empty, the template.spec.serviceAccountName is used, unless it's empty, in which case \"default\" is used instead. If serviceAccountNames is specified, template.spec.serviceAccountName is ignored. + + :param service_account_names: The service_account_names of this V1PodSecurityPolicyReviewSpec. + :type: list[str] + """ + + self._service_account_names = service_account_names + + @property + def template(self): + """ + Gets the template of this V1PodSecurityPolicyReviewSpec. + template is the PodTemplateSpec to check. The template.spec.serviceAccountName field is used if serviceAccountNames is empty, unless the template.spec.serviceAccountName is empty, in which case \"default\" is used. If serviceAccountNames is specified, template.spec.serviceAccountName is ignored. + + :return: The template of this V1PodSecurityPolicyReviewSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1PodSecurityPolicyReviewSpec. + template is the PodTemplateSpec to check. The template.spec.serviceAccountName field is used if serviceAccountNames is empty, unless the template.spec.serviceAccountName is empty, in which case \"default\" is used. If serviceAccountNames is specified, template.spec.serviceAccountName is ignored. + + :param template: The template of this V1PodSecurityPolicyReviewSpec. + :type: V1PodTemplateSpec + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1PodSecurityPolicyReviewSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_pod_security_policy_review_status.py b/kubernetes/client/models/v1_pod_security_policy_review_status.py new file mode 100644 index 0000000000..3be4e6be0e --- /dev/null +++ b/kubernetes/client/models/v1_pod_security_policy_review_status.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodSecurityPolicyReviewStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, allowed_service_accounts=None): + """ + V1PodSecurityPolicyReviewStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'allowed_service_accounts': 'list[V1ServiceAccountPodSecurityPolicyReviewStatus]' + } + + self.attribute_map = { + 'allowed_service_accounts': 'allowedServiceAccounts' + } + + self._allowed_service_accounts = allowed_service_accounts + + @property + def allowed_service_accounts(self): + """ + Gets the allowed_service_accounts of this V1PodSecurityPolicyReviewStatus. + allowedServiceAccounts returns the list of service accounts in *this* namespace that have the power to create the PodTemplateSpec. + + :return: The allowed_service_accounts of this V1PodSecurityPolicyReviewStatus. + :rtype: list[V1ServiceAccountPodSecurityPolicyReviewStatus] + """ + return self._allowed_service_accounts + + @allowed_service_accounts.setter + def allowed_service_accounts(self, allowed_service_accounts): + """ + Sets the allowed_service_accounts of this V1PodSecurityPolicyReviewStatus. + allowedServiceAccounts returns the list of service accounts in *this* namespace that have the power to create the PodTemplateSpec. + + :param allowed_service_accounts: The allowed_service_accounts of this V1PodSecurityPolicyReviewStatus. + :type: list[V1ServiceAccountPodSecurityPolicyReviewStatus] + """ + if allowed_service_accounts is None: + raise ValueError("Invalid value for `allowed_service_accounts`, must not be `None`") + + self._allowed_service_accounts = allowed_service_accounts + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1PodSecurityPolicyReviewStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_pod_security_policy_self_subject_review.py b/kubernetes/client/models/v1_pod_security_policy_self_subject_review.py new file mode 100644 index 0000000000..f31075a898 --- /dev/null +++ b/kubernetes/client/models/v1_pod_security_policy_self_subject_review.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodSecurityPolicySelfSubjectReview(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, spec=None, status=None): + """ + V1PodSecurityPolicySelfSubjectReview - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'spec': 'V1PodSecurityPolicySelfSubjectReviewSpec', + 'status': 'V1PodSecurityPolicySubjectReviewStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1PodSecurityPolicySelfSubjectReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1PodSecurityPolicySelfSubjectReview. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PodSecurityPolicySelfSubjectReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1PodSecurityPolicySelfSubjectReview. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1PodSecurityPolicySelfSubjectReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1PodSecurityPolicySelfSubjectReview. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PodSecurityPolicySelfSubjectReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1PodSecurityPolicySelfSubjectReview. + :type: str + """ + + self._kind = kind + + @property + def spec(self): + """ + Gets the spec of this V1PodSecurityPolicySelfSubjectReview. + spec defines specification the PodSecurityPolicySelfSubjectReview. + + :return: The spec of this V1PodSecurityPolicySelfSubjectReview. + :rtype: V1PodSecurityPolicySelfSubjectReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1PodSecurityPolicySelfSubjectReview. + spec defines specification the PodSecurityPolicySelfSubjectReview. + + :param spec: The spec of this V1PodSecurityPolicySelfSubjectReview. + :type: V1PodSecurityPolicySelfSubjectReviewSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1PodSecurityPolicySelfSubjectReview. + status represents the current information/status for the PodSecurityPolicySelfSubjectReview. + + :return: The status of this V1PodSecurityPolicySelfSubjectReview. + :rtype: V1PodSecurityPolicySubjectReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1PodSecurityPolicySelfSubjectReview. + status represents the current information/status for the PodSecurityPolicySelfSubjectReview. + + :param status: The status of this V1PodSecurityPolicySelfSubjectReview. + :type: V1PodSecurityPolicySubjectReviewStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1PodSecurityPolicySelfSubjectReview): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_pod_security_policy_self_subject_review_spec.py b/kubernetes/client/models/v1_pod_security_policy_self_subject_review_spec.py new file mode 100644 index 0000000000..5ab886ddb2 --- /dev/null +++ b/kubernetes/client/models/v1_pod_security_policy_self_subject_review_spec.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodSecurityPolicySelfSubjectReviewSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, template=None): + """ + V1PodSecurityPolicySelfSubjectReviewSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'template': 'template' + } + + self._template = template + + @property + def template(self): + """ + Gets the template of this V1PodSecurityPolicySelfSubjectReviewSpec. + template is the PodTemplateSpec to check. + + :return: The template of this V1PodSecurityPolicySelfSubjectReviewSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1PodSecurityPolicySelfSubjectReviewSpec. + template is the PodTemplateSpec to check. + + :param template: The template of this V1PodSecurityPolicySelfSubjectReviewSpec. + :type: V1PodTemplateSpec + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1PodSecurityPolicySelfSubjectReviewSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_pod_security_policy_subject_review.py b/kubernetes/client/models/v1_pod_security_policy_subject_review.py new file mode 100644 index 0000000000..6f7325286a --- /dev/null +++ b/kubernetes/client/models/v1_pod_security_policy_subject_review.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodSecurityPolicySubjectReview(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, spec=None, status=None): + """ + V1PodSecurityPolicySubjectReview - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'spec': 'V1PodSecurityPolicySubjectReviewSpec', + 'status': 'V1PodSecurityPolicySubjectReviewStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1PodSecurityPolicySubjectReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1PodSecurityPolicySubjectReview. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PodSecurityPolicySubjectReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1PodSecurityPolicySubjectReview. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1PodSecurityPolicySubjectReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1PodSecurityPolicySubjectReview. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PodSecurityPolicySubjectReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1PodSecurityPolicySubjectReview. + :type: str + """ + + self._kind = kind + + @property + def spec(self): + """ + Gets the spec of this V1PodSecurityPolicySubjectReview. + spec defines specification for the PodSecurityPolicySubjectReview. + + :return: The spec of this V1PodSecurityPolicySubjectReview. + :rtype: V1PodSecurityPolicySubjectReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1PodSecurityPolicySubjectReview. + spec defines specification for the PodSecurityPolicySubjectReview. + + :param spec: The spec of this V1PodSecurityPolicySubjectReview. + :type: V1PodSecurityPolicySubjectReviewSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1PodSecurityPolicySubjectReview. + status represents the current information/status for the PodSecurityPolicySubjectReview. + + :return: The status of this V1PodSecurityPolicySubjectReview. + :rtype: V1PodSecurityPolicySubjectReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1PodSecurityPolicySubjectReview. + status represents the current information/status for the PodSecurityPolicySubjectReview. + + :param status: The status of this V1PodSecurityPolicySubjectReview. + :type: V1PodSecurityPolicySubjectReviewStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1PodSecurityPolicySubjectReview): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_pod_security_policy_subject_review_spec.py b/kubernetes/client/models/v1_pod_security_policy_subject_review_spec.py new file mode 100644 index 0000000000..7919354ae0 --- /dev/null +++ b/kubernetes/client/models/v1_pod_security_policy_subject_review_spec.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodSecurityPolicySubjectReviewSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, groups=None, template=None, user=None): + """ + V1PodSecurityPolicySubjectReviewSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'groups': 'list[str]', + 'template': 'V1PodTemplateSpec', + 'user': 'str' + } + + self.attribute_map = { + 'groups': 'groups', + 'template': 'template', + 'user': 'user' + } + + self._groups = groups + self._template = template + self._user = user + + @property + def groups(self): + """ + Gets the groups of this V1PodSecurityPolicySubjectReviewSpec. + groups is the groups you're testing for. + + :return: The groups of this V1PodSecurityPolicySubjectReviewSpec. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1PodSecurityPolicySubjectReviewSpec. + groups is the groups you're testing for. + + :param groups: The groups of this V1PodSecurityPolicySubjectReviewSpec. + :type: list[str] + """ + + self._groups = groups + + @property + def template(self): + """ + Gets the template of this V1PodSecurityPolicySubjectReviewSpec. + template is the PodTemplateSpec to check. If template.spec.serviceAccountName is empty it will not be defaulted. If its non-empty, it will be checked. + + :return: The template of this V1PodSecurityPolicySubjectReviewSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1PodSecurityPolicySubjectReviewSpec. + template is the PodTemplateSpec to check. If template.spec.serviceAccountName is empty it will not be defaulted. If its non-empty, it will be checked. + + :param template: The template of this V1PodSecurityPolicySubjectReviewSpec. + :type: V1PodTemplateSpec + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") + + self._template = template + + @property + def user(self): + """ + Gets the user of this V1PodSecurityPolicySubjectReviewSpec. + user is the user you're testing for. If you specify \"user\" but not \"group\", then is it interpreted as \"What if user were not a member of any groups. If user and groups are empty, then the check is performed using *only* the serviceAccountName in the template. + + :return: The user of this V1PodSecurityPolicySubjectReviewSpec. + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1PodSecurityPolicySubjectReviewSpec. + user is the user you're testing for. If you specify \"user\" but not \"group\", then is it interpreted as \"What if user were not a member of any groups. If user and groups are empty, then the check is performed using *only* the serviceAccountName in the template. + + :param user: The user of this V1PodSecurityPolicySubjectReviewSpec. + :type: str + """ + + self._user = user + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1PodSecurityPolicySubjectReviewSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_pod_security_policy_subject_review_status.py b/kubernetes/client/models/v1_pod_security_policy_subject_review_status.py new file mode 100644 index 0000000000..5618b97247 --- /dev/null +++ b/kubernetes/client/models/v1_pod_security_policy_subject_review_status.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodSecurityPolicySubjectReviewStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, allowed_by=None, reason=None, template=None): + """ + V1PodSecurityPolicySubjectReviewStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'allowed_by': 'V1ObjectReference', + 'reason': 'str', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'allowed_by': 'allowedBy', + 'reason': 'reason', + 'template': 'template' + } + + self._allowed_by = allowed_by + self._reason = reason + self._template = template + + @property + def allowed_by(self): + """ + Gets the allowed_by of this V1PodSecurityPolicySubjectReviewStatus. + allowedBy is a reference to the rule that allows the PodTemplateSpec. A rule can be a SecurityContextConstraint or a PodSecurityPolicy A `nil`, indicates that it was denied. + + :return: The allowed_by of this V1PodSecurityPolicySubjectReviewStatus. + :rtype: V1ObjectReference + """ + return self._allowed_by + + @allowed_by.setter + def allowed_by(self, allowed_by): + """ + Sets the allowed_by of this V1PodSecurityPolicySubjectReviewStatus. + allowedBy is a reference to the rule that allows the PodTemplateSpec. A rule can be a SecurityContextConstraint or a PodSecurityPolicy A `nil`, indicates that it was denied. + + :param allowed_by: The allowed_by of this V1PodSecurityPolicySubjectReviewStatus. + :type: V1ObjectReference + """ + + self._allowed_by = allowed_by + + @property + def reason(self): + """ + Gets the reason of this V1PodSecurityPolicySubjectReviewStatus. + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. + + :return: The reason of this V1PodSecurityPolicySubjectReviewStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1PodSecurityPolicySubjectReviewStatus. + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. + + :param reason: The reason of this V1PodSecurityPolicySubjectReviewStatus. + :type: str + """ + + self._reason = reason + + @property + def template(self): + """ + Gets the template of this V1PodSecurityPolicySubjectReviewStatus. + template is the PodTemplateSpec after the defaulting is applied. + + :return: The template of this V1PodSecurityPolicySubjectReviewStatus. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1PodSecurityPolicySubjectReviewStatus. + template is the PodTemplateSpec after the defaulting is applied. + + :param template: The template of this V1PodSecurityPolicySubjectReviewStatus. + :type: V1PodTemplateSpec + """ + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1PodSecurityPolicySubjectReviewStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_pod_spec.py b/kubernetes/client/models/v1_pod_spec.py index 683a0e81de..3a049dac1f 100644 --- a/kubernetes/client/models/v1_pod_spec.py +++ b/kubernetes/client/models/v1_pod_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1PodSpec(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, active_deadline_seconds=None, affinity=None, automount_service_account_token=None, containers=None, dns_policy=None, host_ipc=None, host_network=None, host_pid=None, hostname=None, image_pull_secrets=None, init_containers=None, node_name=None, node_selector=None, restart_policy=None, scheduler_name=None, security_context=None, service_account=None, service_account_name=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): + def __init__(self, active_deadline_seconds=None, containers=None, dns_policy=None, host_ipc=None, host_network=None, host_pid=None, hostname=None, image_pull_secrets=None, node_name=None, node_selector=None, restart_policy=None, security_context=None, service_account=None, service_account_name=None, subdomain=None, termination_grace_period_seconds=None, volumes=None): """ V1PodSpec - a model defined in Swagger @@ -32,8 +32,6 @@ def __init__(self, active_deadline_seconds=None, affinity=None, automount_servic """ self.swagger_types = { 'active_deadline_seconds': 'int', - 'affinity': 'V1Affinity', - 'automount_service_account_token': 'bool', 'containers': 'list[V1Container]', 'dns_policy': 'str', 'host_ipc': 'bool', @@ -41,24 +39,19 @@ def __init__(self, active_deadline_seconds=None, affinity=None, automount_servic 'host_pid': 'bool', 'hostname': 'str', 'image_pull_secrets': 'list[V1LocalObjectReference]', - 'init_containers': 'list[V1Container]', 'node_name': 'str', 'node_selector': 'dict(str, str)', 'restart_policy': 'str', - 'scheduler_name': 'str', 'security_context': 'V1PodSecurityContext', 'service_account': 'str', 'service_account_name': 'str', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', - 'tolerations': 'list[V1Toleration]', 'volumes': 'list[V1Volume]' } self.attribute_map = { 'active_deadline_seconds': 'activeDeadlineSeconds', - 'affinity': 'affinity', - 'automount_service_account_token': 'automountServiceAccountToken', 'containers': 'containers', 'dns_policy': 'dnsPolicy', 'host_ipc': 'hostIPC', @@ -66,23 +59,18 @@ def __init__(self, active_deadline_seconds=None, affinity=None, automount_servic 'host_pid': 'hostPID', 'hostname': 'hostname', 'image_pull_secrets': 'imagePullSecrets', - 'init_containers': 'initContainers', 'node_name': 'nodeName', 'node_selector': 'nodeSelector', 'restart_policy': 'restartPolicy', - 'scheduler_name': 'schedulerName', 'security_context': 'securityContext', 'service_account': 'serviceAccount', 'service_account_name': 'serviceAccountName', 'subdomain': 'subdomain', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', - 'tolerations': 'tolerations', 'volumes': 'volumes' } self._active_deadline_seconds = active_deadline_seconds - self._affinity = affinity - self._automount_service_account_token = automount_service_account_token self._containers = containers self._dns_policy = dns_policy self._host_ipc = host_ipc @@ -90,17 +78,14 @@ def __init__(self, active_deadline_seconds=None, affinity=None, automount_servic self._host_pid = host_pid self._hostname = hostname self._image_pull_secrets = image_pull_secrets - self._init_containers = init_containers self._node_name = node_name self._node_selector = node_selector self._restart_policy = restart_policy - self._scheduler_name = scheduler_name self._security_context = security_context self._service_account = service_account self._service_account_name = service_account_name self._subdomain = subdomain self._termination_grace_period_seconds = termination_grace_period_seconds - self._tolerations = tolerations self._volumes = volumes @property @@ -126,52 +111,6 @@ def active_deadline_seconds(self, active_deadline_seconds): self._active_deadline_seconds = active_deadline_seconds - @property - def affinity(self): - """ - Gets the affinity of this V1PodSpec. - If specified, the pod's scheduling constraints - - :return: The affinity of this V1PodSpec. - :rtype: V1Affinity - """ - return self._affinity - - @affinity.setter - def affinity(self, affinity): - """ - Sets the affinity of this V1PodSpec. - If specified, the pod's scheduling constraints - - :param affinity: The affinity of this V1PodSpec. - :type: V1Affinity - """ - - self._affinity = affinity - - @property - def automount_service_account_token(self): - """ - Gets the automount_service_account_token of this V1PodSpec. - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - - :return: The automount_service_account_token of this V1PodSpec. - :rtype: bool - """ - return self._automount_service_account_token - - @automount_service_account_token.setter - def automount_service_account_token(self, automount_service_account_token): - """ - Sets the automount_service_account_token of this V1PodSpec. - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - - :param automount_service_account_token: The automount_service_account_token of this V1PodSpec. - :type: bool - """ - - self._automount_service_account_token = automount_service_account_token - @property def containers(self): """ @@ -201,7 +140,7 @@ def containers(self, containers): def dns_policy(self): """ Gets the dns_policy of this V1PodSpec. - Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". :return: The dns_policy of this V1PodSpec. :rtype: str @@ -212,7 +151,7 @@ def dns_policy(self): def dns_policy(self, dns_policy): """ Sets the dns_policy of this V1PodSpec. - Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". :param dns_policy: The dns_policy of this V1PodSpec. :type: str @@ -335,29 +274,6 @@ def image_pull_secrets(self, image_pull_secrets): self._image_pull_secrets = image_pull_secrets - @property - def init_containers(self): - """ - Gets the init_containers of this V1PodSpec. - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers - - :return: The init_containers of this V1PodSpec. - :rtype: list[V1Container] - """ - return self._init_containers - - @init_containers.setter - def init_containers(self, init_containers): - """ - Sets the init_containers of this V1PodSpec. - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers - - :param init_containers: The init_containers of this V1PodSpec. - :type: list[V1Container] - """ - - self._init_containers = init_containers - @property def node_name(self): """ @@ -427,29 +343,6 @@ def restart_policy(self, restart_policy): self._restart_policy = restart_policy - @property - def scheduler_name(self): - """ - Gets the scheduler_name of this V1PodSpec. - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - - :return: The scheduler_name of this V1PodSpec. - :rtype: str - """ - return self._scheduler_name - - @scheduler_name.setter - def scheduler_name(self, scheduler_name): - """ - Sets the scheduler_name of this V1PodSpec. - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - - :param scheduler_name: The scheduler_name of this V1PodSpec. - :type: str - """ - - self._scheduler_name = scheduler_name - @property def security_context(self): """ @@ -565,29 +458,6 @@ def termination_grace_period_seconds(self, termination_grace_period_seconds): self._termination_grace_period_seconds = termination_grace_period_seconds - @property - def tolerations(self): - """ - Gets the tolerations of this V1PodSpec. - If specified, the pod's tolerations. - - :return: The tolerations of this V1PodSpec. - :rtype: list[V1Toleration] - """ - return self._tolerations - - @tolerations.setter - def tolerations(self, tolerations): - """ - Sets the tolerations of this V1PodSpec. - If specified, the pod's tolerations. - - :param tolerations: The tolerations of this V1PodSpec. - :type: list[V1Toleration] - """ - - self._tolerations = tolerations - @property def volumes(self): """ diff --git a/kubernetes/client/models/v1_pod_status.py b/kubernetes/client/models/v1_pod_status.py index 2a3a86a8b6..e334e3ba85 100644 --- a/kubernetes/client/models/v1_pod_status.py +++ b/kubernetes/client/models/v1_pod_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1PodStatus(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, conditions=None, container_statuses=None, host_ip=None, init_container_statuses=None, message=None, phase=None, pod_ip=None, qos_class=None, reason=None, start_time=None): + def __init__(self, conditions=None, container_statuses=None, host_ip=None, message=None, phase=None, pod_ip=None, reason=None, start_time=None): """ V1PodStatus - a model defined in Swagger @@ -34,11 +34,9 @@ def __init__(self, conditions=None, container_statuses=None, host_ip=None, init_ 'conditions': 'list[V1PodCondition]', 'container_statuses': 'list[V1ContainerStatus]', 'host_ip': 'str', - 'init_container_statuses': 'list[V1ContainerStatus]', 'message': 'str', 'phase': 'str', 'pod_ip': 'str', - 'qos_class': 'str', 'reason': 'str', 'start_time': 'datetime' } @@ -47,11 +45,9 @@ def __init__(self, conditions=None, container_statuses=None, host_ip=None, init_ 'conditions': 'conditions', 'container_statuses': 'containerStatuses', 'host_ip': 'hostIP', - 'init_container_statuses': 'initContainerStatuses', 'message': 'message', 'phase': 'phase', 'pod_ip': 'podIP', - 'qos_class': 'qosClass', 'reason': 'reason', 'start_time': 'startTime' } @@ -59,11 +55,9 @@ def __init__(self, conditions=None, container_statuses=None, host_ip=None, init_ self._conditions = conditions self._container_statuses = container_statuses self._host_ip = host_ip - self._init_container_statuses = init_container_statuses self._message = message self._phase = phase self._pod_ip = pod_ip - self._qos_class = qos_class self._reason = reason self._start_time = start_time @@ -136,29 +130,6 @@ def host_ip(self, host_ip): self._host_ip = host_ip - @property - def init_container_statuses(self): - """ - Gets the init_container_statuses of this V1PodStatus. - The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses - - :return: The init_container_statuses of this V1PodStatus. - :rtype: list[V1ContainerStatus] - """ - return self._init_container_statuses - - @init_container_statuses.setter - def init_container_statuses(self, init_container_statuses): - """ - Sets the init_container_statuses of this V1PodStatus. - The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses - - :param init_container_statuses: The init_container_statuses of this V1PodStatus. - :type: list[V1ContainerStatus] - """ - - self._init_container_statuses = init_container_statuses - @property def message(self): """ @@ -228,29 +199,6 @@ def pod_ip(self, pod_ip): self._pod_ip = pod_ip - @property - def qos_class(self): - """ - Gets the qos_class of this V1PodStatus. - The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md - - :return: The qos_class of this V1PodStatus. - :rtype: str - """ - return self._qos_class - - @qos_class.setter - def qos_class(self, qos_class): - """ - Sets the qos_class of this V1PodStatus. - The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md - - :param qos_class: The qos_class of this V1PodStatus. - :type: str - """ - - self._qos_class = qos_class - @property def reason(self): """ diff --git a/kubernetes/client/models/v1_pod_template.py b/kubernetes/client/models/v1_pod_template.py index c43ce671b0..cac04e0741 100644 --- a/kubernetes/client/models/v1_pod_template.py +++ b/kubernetes/client/models/v1_pod_template.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_pod_template_list.py b/kubernetes/client/models/v1_pod_template_list.py index 8d3b8e91b9..e261178c5e 100644 --- a/kubernetes/client/models/v1_pod_template_list.py +++ b/kubernetes/client/models/v1_pod_template_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1PodTemplate]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1PodTemplateList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1PodTemplateList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_pod_template_spec.py b/kubernetes/client/models/v1_pod_template_spec.py index 796f250c92..69207f2c30 100644 --- a/kubernetes/client/models/v1_pod_template_spec.py +++ b/kubernetes/client/models/v1_pod_template_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_policy.py b/kubernetes/client/models/v1_policy.py new file mode 100644 index 0000000000..c7c151f0da --- /dev/null +++ b/kubernetes/client/models/v1_policy.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Policy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, last_modified=None, metadata=None, roles=None): + """ + V1Policy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'last_modified': 'datetime', + 'metadata': 'V1ObjectMeta', + 'roles': 'list[V1NamedRole]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'last_modified': 'lastModified', + 'metadata': 'metadata', + 'roles': 'roles' + } + + self._api_version = api_version + self._kind = kind + self._last_modified = last_modified + self._metadata = metadata + self._roles = roles + + @property + def api_version(self): + """ + Gets the api_version of this V1Policy. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1Policy. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Policy. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1Policy. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1Policy. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1Policy. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Policy. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1Policy. + :type: str + """ + + self._kind = kind + + @property + def last_modified(self): + """ + Gets the last_modified of this V1Policy. + LastModified is the last time that any part of the Policy was created, updated, or deleted + + :return: The last_modified of this V1Policy. + :rtype: datetime + """ + return self._last_modified + + @last_modified.setter + def last_modified(self, last_modified): + """ + Sets the last_modified of this V1Policy. + LastModified is the last time that any part of the Policy was created, updated, or deleted + + :param last_modified: The last_modified of this V1Policy. + :type: datetime + """ + if last_modified is None: + raise ValueError("Invalid value for `last_modified`, must not be `None`") + + self._last_modified = last_modified + + @property + def metadata(self): + """ + Gets the metadata of this V1Policy. + Standard object's metadata. + + :return: The metadata of this V1Policy. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Policy. + Standard object's metadata. + + :param metadata: The metadata of this V1Policy. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def roles(self): + """ + Gets the roles of this V1Policy. + Roles holds all the Roles held by this Policy, mapped by Role.Name + + :return: The roles of this V1Policy. + :rtype: list[V1NamedRole] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """ + Sets the roles of this V1Policy. + Roles holds all the Roles held by this Policy, mapped by Role.Name + + :param roles: The roles of this V1Policy. + :type: list[V1NamedRole] + """ + if roles is None: + raise ValueError("Invalid value for `roles`, must not be `None`") + + self._roles = roles + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1Policy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_policy_binding.py b/kubernetes/client/models/v1_policy_binding.py new file mode 100644 index 0000000000..3eb3e7bd97 --- /dev/null +++ b/kubernetes/client/models/v1_policy_binding.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PolicyBinding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, last_modified=None, metadata=None, policy_ref=None, role_bindings=None): + """ + V1PolicyBinding - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'last_modified': 'datetime', + 'metadata': 'V1ObjectMeta', + 'policy_ref': 'V1ObjectReference', + 'role_bindings': 'list[V1NamedRoleBinding]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'last_modified': 'lastModified', + 'metadata': 'metadata', + 'policy_ref': 'policyRef', + 'role_bindings': 'roleBindings' + } + + self._api_version = api_version + self._kind = kind + self._last_modified = last_modified + self._metadata = metadata + self._policy_ref = policy_ref + self._role_bindings = role_bindings + + @property + def api_version(self): + """ + Gets the api_version of this V1PolicyBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1PolicyBinding. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PolicyBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1PolicyBinding. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1PolicyBinding. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1PolicyBinding. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PolicyBinding. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1PolicyBinding. + :type: str + """ + + self._kind = kind + + @property + def last_modified(self): + """ + Gets the last_modified of this V1PolicyBinding. + LastModified is the last time that any part of the PolicyBinding was created, updated, or deleted + + :return: The last_modified of this V1PolicyBinding. + :rtype: datetime + """ + return self._last_modified + + @last_modified.setter + def last_modified(self, last_modified): + """ + Sets the last_modified of this V1PolicyBinding. + LastModified is the last time that any part of the PolicyBinding was created, updated, or deleted + + :param last_modified: The last_modified of this V1PolicyBinding. + :type: datetime + """ + if last_modified is None: + raise ValueError("Invalid value for `last_modified`, must not be `None`") + + self._last_modified = last_modified + + @property + def metadata(self): + """ + Gets the metadata of this V1PolicyBinding. + Standard object's metadata. + + :return: The metadata of this V1PolicyBinding. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PolicyBinding. + Standard object's metadata. + + :param metadata: The metadata of this V1PolicyBinding. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def policy_ref(self): + """ + Gets the policy_ref of this V1PolicyBinding. + PolicyRef is a reference to the Policy that contains all the Roles that this PolicyBinding's RoleBindings may reference + + :return: The policy_ref of this V1PolicyBinding. + :rtype: V1ObjectReference + """ + return self._policy_ref + + @policy_ref.setter + def policy_ref(self, policy_ref): + """ + Sets the policy_ref of this V1PolicyBinding. + PolicyRef is a reference to the Policy that contains all the Roles that this PolicyBinding's RoleBindings may reference + + :param policy_ref: The policy_ref of this V1PolicyBinding. + :type: V1ObjectReference + """ + if policy_ref is None: + raise ValueError("Invalid value for `policy_ref`, must not be `None`") + + self._policy_ref = policy_ref + + @property + def role_bindings(self): + """ + Gets the role_bindings of this V1PolicyBinding. + RoleBindings holds all the RoleBindings held by this PolicyBinding, mapped by RoleBinding.Name + + :return: The role_bindings of this V1PolicyBinding. + :rtype: list[V1NamedRoleBinding] + """ + return self._role_bindings + + @role_bindings.setter + def role_bindings(self, role_bindings): + """ + Sets the role_bindings of this V1PolicyBinding. + RoleBindings holds all the RoleBindings held by this PolicyBinding, mapped by RoleBinding.Name + + :param role_bindings: The role_bindings of this V1PolicyBinding. + :type: list[V1NamedRoleBinding] + """ + if role_bindings is None: + raise ValueError("Invalid value for `role_bindings`, must not be `None`") + + self._role_bindings = role_bindings + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1PolicyBinding): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_policy_binding_list.py b/kubernetes/client/models/v1_policy_binding_list.py new file mode 100644 index 0000000000..97327bc43f --- /dev/null +++ b/kubernetes/client/models/v1_policy_binding_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PolicyBindingList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1PolicyBindingList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1PolicyBinding]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1PolicyBindingList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1PolicyBindingList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PolicyBindingList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1PolicyBindingList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1PolicyBindingList. + Items is a list of PolicyBindings + + :return: The items of this V1PolicyBindingList. + :rtype: list[V1PolicyBinding] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1PolicyBindingList. + Items is a list of PolicyBindings + + :param items: The items of this V1PolicyBindingList. + :type: list[V1PolicyBinding] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1PolicyBindingList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1PolicyBindingList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PolicyBindingList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1PolicyBindingList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1PolicyBindingList. + Standard object's metadata. + + :return: The metadata of this V1PolicyBindingList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PolicyBindingList. + Standard object's metadata. + + :param metadata: The metadata of this V1PolicyBindingList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1PolicyBindingList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_policy_list.py b/kubernetes/client/models/v1_policy_list.py new file mode 100644 index 0000000000..fdca673160 --- /dev/null +++ b/kubernetes/client/models/v1_policy_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PolicyList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1PolicyList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1Policy]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1PolicyList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1PolicyList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PolicyList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1PolicyList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1PolicyList. + Items is a list of Policies + + :return: The items of this V1PolicyList. + :rtype: list[V1Policy] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1PolicyList. + Items is a list of Policies + + :param items: The items of this V1PolicyList. + :type: list[V1Policy] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1PolicyList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1PolicyList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PolicyList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1PolicyList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1PolicyList. + Standard object's metadata. + + :return: The metadata of this V1PolicyList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PolicyList. + Standard object's metadata. + + :param metadata: The metadata of this V1PolicyList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1PolicyList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_policy_rule.py b/kubernetes/client/models/v1_policy_rule.py new file mode 100644 index 0000000000..ace4ef7472 --- /dev/null +++ b/kubernetes/client/models/v1_policy_rule.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PolicyRule(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_groups=None, attribute_restrictions=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): + """ + V1PolicyRule - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_groups': 'list[str]', + 'attribute_restrictions': 'RuntimeRawExtension', + 'non_resource_ur_ls': 'list[str]', + 'resource_names': 'list[str]', + 'resources': 'list[str]', + 'verbs': 'list[str]' + } + + self.attribute_map = { + 'api_groups': 'apiGroups', + 'attribute_restrictions': 'attributeRestrictions', + 'non_resource_ur_ls': 'nonResourceURLs', + 'resource_names': 'resourceNames', + 'resources': 'resources', + 'verbs': 'verbs' + } + + self._api_groups = api_groups + self._attribute_restrictions = attribute_restrictions + self._non_resource_ur_ls = non_resource_ur_ls + self._resource_names = resource_names + self._resources = resources + self._verbs = verbs + + @property + def api_groups(self): + """ + Gets the api_groups of this V1PolicyRule. + APIGroups is the name of the APIGroup that contains the resources. If this field is empty, then both kubernetes and origin API groups are assumed. That means that if an action is requested against one of the enumerated resources in either the kubernetes or the origin API group, the request will be allowed + + :return: The api_groups of this V1PolicyRule. + :rtype: list[str] + """ + return self._api_groups + + @api_groups.setter + def api_groups(self, api_groups): + """ + Sets the api_groups of this V1PolicyRule. + APIGroups is the name of the APIGroup that contains the resources. If this field is empty, then both kubernetes and origin API groups are assumed. That means that if an action is requested against one of the enumerated resources in either the kubernetes or the origin API group, the request will be allowed + + :param api_groups: The api_groups of this V1PolicyRule. + :type: list[str] + """ + if api_groups is None: + raise ValueError("Invalid value for `api_groups`, must not be `None`") + + self._api_groups = api_groups + + @property + def attribute_restrictions(self): + """ + Gets the attribute_restrictions of this V1PolicyRule. + AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error. + + :return: The attribute_restrictions of this V1PolicyRule. + :rtype: RuntimeRawExtension + """ + return self._attribute_restrictions + + @attribute_restrictions.setter + def attribute_restrictions(self, attribute_restrictions): + """ + Sets the attribute_restrictions of this V1PolicyRule. + AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error. + + :param attribute_restrictions: The attribute_restrictions of this V1PolicyRule. + :type: RuntimeRawExtension + """ + + self._attribute_restrictions = attribute_restrictions + + @property + def non_resource_ur_ls(self): + """ + Gets the non_resource_ur_ls of this V1PolicyRule. + NonResourceURLsSlice is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. + + :return: The non_resource_ur_ls of this V1PolicyRule. + :rtype: list[str] + """ + return self._non_resource_ur_ls + + @non_resource_ur_ls.setter + def non_resource_ur_ls(self, non_resource_ur_ls): + """ + Sets the non_resource_ur_ls of this V1PolicyRule. + NonResourceURLsSlice is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. + + :param non_resource_ur_ls: The non_resource_ur_ls of this V1PolicyRule. + :type: list[str] + """ + + self._non_resource_ur_ls = non_resource_ur_ls + + @property + def resource_names(self): + """ + Gets the resource_names of this V1PolicyRule. + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + + :return: The resource_names of this V1PolicyRule. + :rtype: list[str] + """ + return self._resource_names + + @resource_names.setter + def resource_names(self, resource_names): + """ + Sets the resource_names of this V1PolicyRule. + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + + :param resource_names: The resource_names of this V1PolicyRule. + :type: list[str] + """ + + self._resource_names = resource_names + + @property + def resources(self): + """ + Gets the resources of this V1PolicyRule. + Resources is a list of resources this rule applies to. ResourceAll represents all resources. + + :return: The resources of this V1PolicyRule. + :rtype: list[str] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1PolicyRule. + Resources is a list of resources this rule applies to. ResourceAll represents all resources. + + :param resources: The resources of this V1PolicyRule. + :type: list[str] + """ + if resources is None: + raise ValueError("Invalid value for `resources`, must not be `None`") + + self._resources = resources + + @property + def verbs(self): + """ + Gets the verbs of this V1PolicyRule. + Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + + :return: The verbs of this V1PolicyRule. + :rtype: list[str] + """ + return self._verbs + + @verbs.setter + def verbs(self, verbs): + """ + Sets the verbs of this V1PolicyRule. + Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + + :param verbs: The verbs of this V1PolicyRule. + :type: list[str] + """ + if verbs is None: + raise ValueError("Invalid value for `verbs`, must not be `None`") + + self._verbs = verbs + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1PolicyRule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_portworx_volume_source.py b/kubernetes/client/models/v1_portworx_volume_source.py deleted file mode 100644 index c1e9dbf6c8..0000000000 --- a/kubernetes/client/models/v1_portworx_volume_source.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1PortworxVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, fs_type=None, read_only=None, volume_id=None): - """ - V1PortworxVolumeSource - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'fs_type': 'str', - 'read_only': 'bool', - 'volume_id': 'str' - } - - self.attribute_map = { - 'fs_type': 'fsType', - 'read_only': 'readOnly', - 'volume_id': 'volumeID' - } - - self._fs_type = fs_type - self._read_only = read_only - self._volume_id = volume_id - - @property - def fs_type(self): - """ - Gets the fs_type of this V1PortworxVolumeSource. - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. - - :return: The fs_type of this V1PortworxVolumeSource. - :rtype: str - """ - return self._fs_type - - @fs_type.setter - def fs_type(self, fs_type): - """ - Sets the fs_type of this V1PortworxVolumeSource. - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. - - :param fs_type: The fs_type of this V1PortworxVolumeSource. - :type: str - """ - - self._fs_type = fs_type - - @property - def read_only(self): - """ - Gets the read_only of this V1PortworxVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - :return: The read_only of this V1PortworxVolumeSource. - :rtype: bool - """ - return self._read_only - - @read_only.setter - def read_only(self, read_only): - """ - Sets the read_only of this V1PortworxVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - :param read_only: The read_only of this V1PortworxVolumeSource. - :type: bool - """ - - self._read_only = read_only - - @property - def volume_id(self): - """ - Gets the volume_id of this V1PortworxVolumeSource. - VolumeID uniquely identifies a Portworx volume - - :return: The volume_id of this V1PortworxVolumeSource. - :rtype: str - """ - return self._volume_id - - @volume_id.setter - def volume_id(self, volume_id): - """ - Sets the volume_id of this V1PortworxVolumeSource. - VolumeID uniquely identifies a Portworx volume - - :param volume_id: The volume_id of this V1PortworxVolumeSource. - :type: str - """ - if volume_id is None: - raise ValueError("Invalid value for `volume_id`, must not be `None`") - - self._volume_id = volume_id - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1PortworxVolumeSource): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_preconditions.py b/kubernetes/client/models/v1_preconditions.py index c9323ec62b..5766ce4d34 100644 --- a/kubernetes/client/models/v1_preconditions.py +++ b/kubernetes/client/models/v1_preconditions.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_preferred_scheduling_term.py b/kubernetes/client/models/v1_preferred_scheduling_term.py deleted file mode 100644 index 5fda033d0e..0000000000 --- a/kubernetes/client/models/v1_preferred_scheduling_term.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1PreferredSchedulingTerm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, preference=None, weight=None): - """ - V1PreferredSchedulingTerm - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'preference': 'V1NodeSelectorTerm', - 'weight': 'int' - } - - self.attribute_map = { - 'preference': 'preference', - 'weight': 'weight' - } - - self._preference = preference - self._weight = weight - - @property - def preference(self): - """ - Gets the preference of this V1PreferredSchedulingTerm. - A node selector term, associated with the corresponding weight. - - :return: The preference of this V1PreferredSchedulingTerm. - :rtype: V1NodeSelectorTerm - """ - return self._preference - - @preference.setter - def preference(self, preference): - """ - Sets the preference of this V1PreferredSchedulingTerm. - A node selector term, associated with the corresponding weight. - - :param preference: The preference of this V1PreferredSchedulingTerm. - :type: V1NodeSelectorTerm - """ - if preference is None: - raise ValueError("Invalid value for `preference`, must not be `None`") - - self._preference = preference - - @property - def weight(self): - """ - Gets the weight of this V1PreferredSchedulingTerm. - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - :return: The weight of this V1PreferredSchedulingTerm. - :rtype: int - """ - return self._weight - - @weight.setter - def weight(self, weight): - """ - Sets the weight of this V1PreferredSchedulingTerm. - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - :param weight: The weight of this V1PreferredSchedulingTerm. - :type: int - """ - if weight is None: - raise ValueError("Invalid value for `weight`, must not be `None`") - - self._weight = weight - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1PreferredSchedulingTerm): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_probe.py b/kubernetes/client/models/v1_probe.py index eb8e166fc8..3b2a6e0d84 100644 --- a/kubernetes/client/models/v1_probe.py +++ b/kubernetes/client/models/v1_probe.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_project.py b/kubernetes/client/models/v1_project.py new file mode 100644 index 0000000000..3487ee66c9 --- /dev/null +++ b/kubernetes/client/models/v1_project.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Project(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1Project - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ProjectSpec', + 'status': 'V1ProjectStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1Project. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1Project. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Project. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1Project. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1Project. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1Project. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Project. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1Project. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1Project. + Standard object's metadata. + + :return: The metadata of this V1Project. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Project. + Standard object's metadata. + + :param metadata: The metadata of this V1Project. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Project. + Spec defines the behavior of the Namespace. + + :return: The spec of this V1Project. + :rtype: V1ProjectSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Project. + Spec defines the behavior of the Namespace. + + :param spec: The spec of this V1Project. + :type: V1ProjectSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Project. + Status describes the current status of a Namespace + + :return: The status of this V1Project. + :rtype: V1ProjectStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Project. + Status describes the current status of a Namespace + + :param status: The status of this V1Project. + :type: V1ProjectStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1Project): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_project_list.py b/kubernetes/client/models/v1_project_list.py new file mode 100644 index 0000000000..4ed795e54d --- /dev/null +++ b/kubernetes/client/models/v1_project_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ProjectList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1ProjectList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1Project]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1ProjectList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ProjectList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ProjectList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ProjectList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1ProjectList. + Items is the list of projects + + :return: The items of this V1ProjectList. + :rtype: list[V1Project] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ProjectList. + Items is the list of projects + + :param items: The items of this V1ProjectList. + :type: list[V1Project] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1ProjectList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ProjectList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ProjectList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ProjectList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ProjectList. + Standard object's metadata. + + :return: The metadata of this V1ProjectList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ProjectList. + Standard object's metadata. + + :param metadata: The metadata of this V1ProjectList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ProjectList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_project_request.py b/kubernetes/client/models/v1_project_request.py new file mode 100644 index 0000000000..cdcaef52ab --- /dev/null +++ b/kubernetes/client/models/v1_project_request.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ProjectRequest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, description=None, display_name=None, kind=None, metadata=None): + """ + V1ProjectRequest - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'description': 'str', + 'display_name': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'description': 'description', + 'display_name': 'displayName', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._description = description + self._display_name = display_name + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1ProjectRequest. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ProjectRequest. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ProjectRequest. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ProjectRequest. + :type: str + """ + + self._api_version = api_version + + @property + def description(self): + """ + Gets the description of this V1ProjectRequest. + Description is the description to apply to a project + + :return: The description of this V1ProjectRequest. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this V1ProjectRequest. + Description is the description to apply to a project + + :param description: The description of this V1ProjectRequest. + :type: str + """ + + self._description = description + + @property + def display_name(self): + """ + Gets the display_name of this V1ProjectRequest. + DisplayName is the display name to apply to a project + + :return: The display_name of this V1ProjectRequest. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this V1ProjectRequest. + DisplayName is the display name to apply to a project + + :param display_name: The display_name of this V1ProjectRequest. + :type: str + """ + + self._display_name = display_name + + @property + def kind(self): + """ + Gets the kind of this V1ProjectRequest. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ProjectRequest. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ProjectRequest. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ProjectRequest. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1ProjectRequest. + Standard object's metadata. + + :return: The metadata of this V1ProjectRequest. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ProjectRequest. + Standard object's metadata. + + :param metadata: The metadata of this V1ProjectRequest. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ProjectRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_project_spec.py b/kubernetes/client/models/v1_project_spec.py new file mode 100644 index 0000000000..e0cce2362c --- /dev/null +++ b/kubernetes/client/models/v1_project_spec.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ProjectSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, finalizers=None): + """ + V1ProjectSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'finalizers': 'list[str]' + } + + self.attribute_map = { + 'finalizers': 'finalizers' + } + + self._finalizers = finalizers + + @property + def finalizers(self): + """ + Gets the finalizers of this V1ProjectSpec. + Finalizers is an opaque list of values that must be empty to permanently remove object from storage + + :return: The finalizers of this V1ProjectSpec. + :rtype: list[str] + """ + return self._finalizers + + @finalizers.setter + def finalizers(self, finalizers): + """ + Sets the finalizers of this V1ProjectSpec. + Finalizers is an opaque list of values that must be empty to permanently remove object from storage + + :param finalizers: The finalizers of this V1ProjectSpec. + :type: list[str] + """ + + self._finalizers = finalizers + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ProjectSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_project_status.py b/kubernetes/client/models/v1_project_status.py new file mode 100644 index 0000000000..13ac98b78e --- /dev/null +++ b/kubernetes/client/models/v1_project_status.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ProjectStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, phase=None): + """ + V1ProjectStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'phase': 'str' + } + + self.attribute_map = { + 'phase': 'phase' + } + + self._phase = phase + + @property + def phase(self): + """ + Gets the phase of this V1ProjectStatus. + Phase is the current lifecycle phase of the project + + :return: The phase of this V1ProjectStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1ProjectStatus. + Phase is the current lifecycle phase of the project + + :param phase: The phase of this V1ProjectStatus. + :type: str + """ + + self._phase = phase + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ProjectStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_projected_volume_source.py b/kubernetes/client/models/v1_projected_volume_source.py deleted file mode 100644 index 51600270e1..0000000000 --- a/kubernetes/client/models/v1_projected_volume_source.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1ProjectedVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, default_mode=None, sources=None): - """ - V1ProjectedVolumeSource - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'default_mode': 'int', - 'sources': 'list[V1VolumeProjection]' - } - - self.attribute_map = { - 'default_mode': 'defaultMode', - 'sources': 'sources' - } - - self._default_mode = default_mode - self._sources = sources - - @property - def default_mode(self): - """ - Gets the default_mode of this V1ProjectedVolumeSource. - Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - - :return: The default_mode of this V1ProjectedVolumeSource. - :rtype: int - """ - return self._default_mode - - @default_mode.setter - def default_mode(self, default_mode): - """ - Sets the default_mode of this V1ProjectedVolumeSource. - Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - - :param default_mode: The default_mode of this V1ProjectedVolumeSource. - :type: int - """ - - self._default_mode = default_mode - - @property - def sources(self): - """ - Gets the sources of this V1ProjectedVolumeSource. - list of volume projections - - :return: The sources of this V1ProjectedVolumeSource. - :rtype: list[V1VolumeProjection] - """ - return self._sources - - @sources.setter - def sources(self, sources): - """ - Sets the sources of this V1ProjectedVolumeSource. - list of volume projections - - :param sources: The sources of this V1ProjectedVolumeSource. - :type: list[V1VolumeProjection] - """ - if sources is None: - raise ValueError("Invalid value for `sources`, must not be `None`") - - self._sources = sources - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1ProjectedVolumeSource): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_quobyte_volume_source.py b/kubernetes/client/models/v1_quobyte_volume_source.py index 48967f8247..cd0970bc62 100644 --- a/kubernetes/client/models/v1_quobyte_volume_source.py +++ b/kubernetes/client/models/v1_quobyte_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_rbd_volume_source.py b/kubernetes/client/models/v1_rbd_volume_source.py index 241cc86abe..097a31a098 100644 --- a/kubernetes/client/models/v1_rbd_volume_source.py +++ b/kubernetes/client/models/v1_rbd_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_recreate_deployment_strategy_params.py b/kubernetes/client/models/v1_recreate_deployment_strategy_params.py new file mode 100644 index 0000000000..5749652e1a --- /dev/null +++ b/kubernetes/client/models/v1_recreate_deployment_strategy_params.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RecreateDeploymentStrategyParams(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, mid=None, post=None, pre=None, timeout_seconds=None): + """ + V1RecreateDeploymentStrategyParams - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'mid': 'V1LifecycleHook', + 'post': 'V1LifecycleHook', + 'pre': 'V1LifecycleHook', + 'timeout_seconds': 'int' + } + + self.attribute_map = { + 'mid': 'mid', + 'post': 'post', + 'pre': 'pre', + 'timeout_seconds': 'timeoutSeconds' + } + + self._mid = mid + self._post = post + self._pre = pre + self._timeout_seconds = timeout_seconds + + @property + def mid(self): + """ + Gets the mid of this V1RecreateDeploymentStrategyParams. + Mid is a lifecycle hook which is executed while the deployment is scaled down to zero before the first new pod is created. All LifecycleHookFailurePolicy values are supported. + + :return: The mid of this V1RecreateDeploymentStrategyParams. + :rtype: V1LifecycleHook + """ + return self._mid + + @mid.setter + def mid(self, mid): + """ + Sets the mid of this V1RecreateDeploymentStrategyParams. + Mid is a lifecycle hook which is executed while the deployment is scaled down to zero before the first new pod is created. All LifecycleHookFailurePolicy values are supported. + + :param mid: The mid of this V1RecreateDeploymentStrategyParams. + :type: V1LifecycleHook + """ + + self._mid = mid + + @property + def post(self): + """ + Gets the post of this V1RecreateDeploymentStrategyParams. + Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. All LifecycleHookFailurePolicy values are supported. + + :return: The post of this V1RecreateDeploymentStrategyParams. + :rtype: V1LifecycleHook + """ + return self._post + + @post.setter + def post(self, post): + """ + Sets the post of this V1RecreateDeploymentStrategyParams. + Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. All LifecycleHookFailurePolicy values are supported. + + :param post: The post of this V1RecreateDeploymentStrategyParams. + :type: V1LifecycleHook + """ + + self._post = post + + @property + def pre(self): + """ + Gets the pre of this V1RecreateDeploymentStrategyParams. + Pre is a lifecycle hook which is executed before the strategy manipulates the deployment. All LifecycleHookFailurePolicy values are supported. + + :return: The pre of this V1RecreateDeploymentStrategyParams. + :rtype: V1LifecycleHook + """ + return self._pre + + @pre.setter + def pre(self, pre): + """ + Sets the pre of this V1RecreateDeploymentStrategyParams. + Pre is a lifecycle hook which is executed before the strategy manipulates the deployment. All LifecycleHookFailurePolicy values are supported. + + :param pre: The pre of this V1RecreateDeploymentStrategyParams. + :type: V1LifecycleHook + """ + + self._pre = pre + + @property + def timeout_seconds(self): + """ + Gets the timeout_seconds of this V1RecreateDeploymentStrategyParams. + TimeoutSeconds is the time to wait for updates before giving up. If the value is nil, a default will be used. + + :return: The timeout_seconds of this V1RecreateDeploymentStrategyParams. + :rtype: int + """ + return self._timeout_seconds + + @timeout_seconds.setter + def timeout_seconds(self, timeout_seconds): + """ + Sets the timeout_seconds of this V1RecreateDeploymentStrategyParams. + TimeoutSeconds is the time to wait for updates before giving up. If the value is nil, a default will be used. + + :param timeout_seconds: The timeout_seconds of this V1RecreateDeploymentStrategyParams. + :type: int + """ + + self._timeout_seconds = timeout_seconds + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RecreateDeploymentStrategyParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_replication_controller.py b/kubernetes/client/models/v1_replication_controller.py index e5a373a2a5..eeefcabf33 100644 --- a/kubernetes/client/models/v1_replication_controller.py +++ b/kubernetes/client/models/v1_replication_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_replication_controller_condition.py b/kubernetes/client/models/v1_replication_controller_condition.py index 61534942ed..0c6d8e307c 100644 --- a/kubernetes/client/models/v1_replication_controller_condition.py +++ b/kubernetes/client/models/v1_replication_controller_condition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_replication_controller_list.py b/kubernetes/client/models/v1_replication_controller_list.py index c728a0fef3..dea6619735 100644 --- a/kubernetes/client/models/v1_replication_controller_list.py +++ b/kubernetes/client/models/v1_replication_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1ReplicationController]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ReplicationControllerList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ReplicationControllerList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_replication_controller_spec.py b/kubernetes/client/models/v1_replication_controller_spec.py index 17fe22e028..8d3f35bb7e 100644 --- a/kubernetes/client/models/v1_replication_controller_spec.py +++ b/kubernetes/client/models/v1_replication_controller_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_replication_controller_status.py b/kubernetes/client/models/v1_replication_controller_status.py index 7cfb72864d..d3c4def3d8 100644 --- a/kubernetes/client/models/v1_replication_controller_status.py +++ b/kubernetes/client/models/v1_replication_controller_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_repository_import_spec.py b/kubernetes/client/models/v1_repository_import_spec.py new file mode 100644 index 0000000000..79ce9db871 --- /dev/null +++ b/kubernetes/client/models/v1_repository_import_spec.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RepositoryImportSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, _from=None, import_policy=None, include_manifest=None): + """ + V1RepositoryImportSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + '_from': 'V1ObjectReference', + 'import_policy': 'V1TagImportPolicy', + 'include_manifest': 'bool' + } + + self.attribute_map = { + '_from': 'from', + 'import_policy': 'importPolicy', + 'include_manifest': 'includeManifest' + } + + self.__from = _from + self._import_policy = import_policy + self._include_manifest = include_manifest + + @property + def _from(self): + """ + Gets the _from of this V1RepositoryImportSpec. + From is the source for the image repository to import; only kind DockerImage and a name of a Docker image repository is allowed + + :return: The _from of this V1RepositoryImportSpec. + :rtype: V1ObjectReference + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1RepositoryImportSpec. + From is the source for the image repository to import; only kind DockerImage and a name of a Docker image repository is allowed + + :param _from: The _from of this V1RepositoryImportSpec. + :type: V1ObjectReference + """ + if _from is None: + raise ValueError("Invalid value for `_from`, must not be `None`") + + self.__from = _from + + @property + def import_policy(self): + """ + Gets the import_policy of this V1RepositoryImportSpec. + ImportPolicy is the policy controlling how the image is imported + + :return: The import_policy of this V1RepositoryImportSpec. + :rtype: V1TagImportPolicy + """ + return self._import_policy + + @import_policy.setter + def import_policy(self, import_policy): + """ + Sets the import_policy of this V1RepositoryImportSpec. + ImportPolicy is the policy controlling how the image is imported + + :param import_policy: The import_policy of this V1RepositoryImportSpec. + :type: V1TagImportPolicy + """ + + self._import_policy = import_policy + + @property + def include_manifest(self): + """ + Gets the include_manifest of this V1RepositoryImportSpec. + IncludeManifest determines if the manifest for each image is returned in the response + + :return: The include_manifest of this V1RepositoryImportSpec. + :rtype: bool + """ + return self._include_manifest + + @include_manifest.setter + def include_manifest(self, include_manifest): + """ + Sets the include_manifest of this V1RepositoryImportSpec. + IncludeManifest determines if the manifest for each image is returned in the response + + :param include_manifest: The include_manifest of this V1RepositoryImportSpec. + :type: bool + """ + + self._include_manifest = include_manifest + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RepositoryImportSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_repository_import_status.py b/kubernetes/client/models/v1_repository_import_status.py new file mode 100644 index 0000000000..0dd70e69d1 --- /dev/null +++ b/kubernetes/client/models/v1_repository_import_status.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RepositoryImportStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, additional_tags=None, images=None, status=None): + """ + V1RepositoryImportStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'additional_tags': 'list[str]', + 'images': 'list[V1ImageImportStatus]', + 'status': 'UnversionedStatus' + } + + self.attribute_map = { + 'additional_tags': 'additionalTags', + 'images': 'images', + 'status': 'status' + } + + self._additional_tags = additional_tags + self._images = images + self._status = status + + @property + def additional_tags(self): + """ + Gets the additional_tags of this V1RepositoryImportStatus. + AdditionalTags are tags that exist in the repository but were not imported because a maximum limit of automatic imports was applied. + + :return: The additional_tags of this V1RepositoryImportStatus. + :rtype: list[str] + """ + return self._additional_tags + + @additional_tags.setter + def additional_tags(self, additional_tags): + """ + Sets the additional_tags of this V1RepositoryImportStatus. + AdditionalTags are tags that exist in the repository but were not imported because a maximum limit of automatic imports was applied. + + :param additional_tags: The additional_tags of this V1RepositoryImportStatus. + :type: list[str] + """ + + self._additional_tags = additional_tags + + @property + def images(self): + """ + Gets the images of this V1RepositoryImportStatus. + Images is a list of images successfully retrieved by the import of the repository. + + :return: The images of this V1RepositoryImportStatus. + :rtype: list[V1ImageImportStatus] + """ + return self._images + + @images.setter + def images(self, images): + """ + Sets the images of this V1RepositoryImportStatus. + Images is a list of images successfully retrieved by the import of the repository. + + :param images: The images of this V1RepositoryImportStatus. + :type: list[V1ImageImportStatus] + """ + + self._images = images + + @property + def status(self): + """ + Gets the status of this V1RepositoryImportStatus. + Status reflects whether any failure occurred during import + + :return: The status of this V1RepositoryImportStatus. + :rtype: UnversionedStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1RepositoryImportStatus. + Status reflects whether any failure occurred during import + + :param status: The status of this V1RepositoryImportStatus. + :type: UnversionedStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RepositoryImportStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_resource_access_review.py b/kubernetes/client/models/v1_resource_access_review.py new file mode 100644 index 0000000000..1ae603741f --- /dev/null +++ b/kubernetes/client/models/v1_resource_access_review.py @@ -0,0 +1,393 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ResourceAccessReview(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, content=None, is_non_resource_url=None, kind=None, namespace=None, path=None, resource=None, resource_api_group=None, resource_api_version=None, resource_name=None, verb=None): + """ + V1ResourceAccessReview - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'content': 'RuntimeRawExtension', + 'is_non_resource_url': 'bool', + 'kind': 'str', + 'namespace': 'str', + 'path': 'str', + 'resource': 'str', + 'resource_api_group': 'str', + 'resource_api_version': 'str', + 'resource_name': 'str', + 'verb': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'content': 'content', + 'is_non_resource_url': 'isNonResourceURL', + 'kind': 'kind', + 'namespace': 'namespace', + 'path': 'path', + 'resource': 'resource', + 'resource_api_group': 'resourceAPIGroup', + 'resource_api_version': 'resourceAPIVersion', + 'resource_name': 'resourceName', + 'verb': 'verb' + } + + self._api_version = api_version + self._content = content + self._is_non_resource_url = is_non_resource_url + self._kind = kind + self._namespace = namespace + self._path = path + self._resource = resource + self._resource_api_group = resource_api_group + self._resource_api_version = resource_api_version + self._resource_name = resource_name + self._verb = verb + + @property + def api_version(self): + """ + Gets the api_version of this V1ResourceAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1ResourceAccessReview. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ResourceAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1ResourceAccessReview. + :type: str + """ + + self._api_version = api_version + + @property + def content(self): + """ + Gets the content of this V1ResourceAccessReview. + Content is the actual content of the request for create and update + + :return: The content of this V1ResourceAccessReview. + :rtype: RuntimeRawExtension + """ + return self._content + + @content.setter + def content(self, content): + """ + Sets the content of this V1ResourceAccessReview. + Content is the actual content of the request for create and update + + :param content: The content of this V1ResourceAccessReview. + :type: RuntimeRawExtension + """ + + self._content = content + + @property + def is_non_resource_url(self): + """ + Gets the is_non_resource_url of this V1ResourceAccessReview. + IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) + + :return: The is_non_resource_url of this V1ResourceAccessReview. + :rtype: bool + """ + return self._is_non_resource_url + + @is_non_resource_url.setter + def is_non_resource_url(self, is_non_resource_url): + """ + Sets the is_non_resource_url of this V1ResourceAccessReview. + IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) + + :param is_non_resource_url: The is_non_resource_url of this V1ResourceAccessReview. + :type: bool + """ + if is_non_resource_url is None: + raise ValueError("Invalid value for `is_non_resource_url`, must not be `None`") + + self._is_non_resource_url = is_non_resource_url + + @property + def kind(self): + """ + Gets the kind of this V1ResourceAccessReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1ResourceAccessReview. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ResourceAccessReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1ResourceAccessReview. + :type: str + """ + + self._kind = kind + + @property + def namespace(self): + """ + Gets the namespace of this V1ResourceAccessReview. + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces + + :return: The namespace of this V1ResourceAccessReview. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1ResourceAccessReview. + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces + + :param namespace: The namespace of this V1ResourceAccessReview. + :type: str + """ + if namespace is None: + raise ValueError("Invalid value for `namespace`, must not be `None`") + + self._namespace = namespace + + @property + def path(self): + """ + Gets the path of this V1ResourceAccessReview. + Path is the path of a non resource URL + + :return: The path of this V1ResourceAccessReview. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1ResourceAccessReview. + Path is the path of a non resource URL + + :param path: The path of this V1ResourceAccessReview. + :type: str + """ + if path is None: + raise ValueError("Invalid value for `path`, must not be `None`") + + self._path = path + + @property + def resource(self): + """ + Gets the resource of this V1ResourceAccessReview. + Resource is one of the existing resource types + + :return: The resource of this V1ResourceAccessReview. + :rtype: str + """ + return self._resource + + @resource.setter + def resource(self, resource): + """ + Sets the resource of this V1ResourceAccessReview. + Resource is one of the existing resource types + + :param resource: The resource of this V1ResourceAccessReview. + :type: str + """ + if resource is None: + raise ValueError("Invalid value for `resource`, must not be `None`") + + self._resource = resource + + @property + def resource_api_group(self): + """ + Gets the resource_api_group of this V1ResourceAccessReview. + Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined + + :return: The resource_api_group of this V1ResourceAccessReview. + :rtype: str + """ + return self._resource_api_group + + @resource_api_group.setter + def resource_api_group(self, resource_api_group): + """ + Sets the resource_api_group of this V1ResourceAccessReview. + Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined + + :param resource_api_group: The resource_api_group of this V1ResourceAccessReview. + :type: str + """ + if resource_api_group is None: + raise ValueError("Invalid value for `resource_api_group`, must not be `None`") + + self._resource_api_group = resource_api_group + + @property + def resource_api_version(self): + """ + Gets the resource_api_version of this V1ResourceAccessReview. + Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined + + :return: The resource_api_version of this V1ResourceAccessReview. + :rtype: str + """ + return self._resource_api_version + + @resource_api_version.setter + def resource_api_version(self, resource_api_version): + """ + Sets the resource_api_version of this V1ResourceAccessReview. + Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined + + :param resource_api_version: The resource_api_version of this V1ResourceAccessReview. + :type: str + """ + if resource_api_version is None: + raise ValueError("Invalid value for `resource_api_version`, must not be `None`") + + self._resource_api_version = resource_api_version + + @property + def resource_name(self): + """ + Gets the resource_name of this V1ResourceAccessReview. + ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\" + + :return: The resource_name of this V1ResourceAccessReview. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """ + Sets the resource_name of this V1ResourceAccessReview. + ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\" + + :param resource_name: The resource_name of this V1ResourceAccessReview. + :type: str + """ + if resource_name is None: + raise ValueError("Invalid value for `resource_name`, must not be `None`") + + self._resource_name = resource_name + + @property + def verb(self): + """ + Gets the verb of this V1ResourceAccessReview. + Verb is one of: get, list, watch, create, update, delete + + :return: The verb of this V1ResourceAccessReview. + :rtype: str + """ + return self._verb + + @verb.setter + def verb(self, verb): + """ + Sets the verb of this V1ResourceAccessReview. + Verb is one of: get, list, watch, create, update, delete + + :param verb: The verb of this V1ResourceAccessReview. + :type: str + """ + if verb is None: + raise ValueError("Invalid value for `verb`, must not be `None`") + + self._verb = verb + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ResourceAccessReview): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_resource_attributes.py b/kubernetes/client/models/v1_resource_attributes.py deleted file mode 100644 index 6a6ce3855d..0000000000 --- a/kubernetes/client/models/v1_resource_attributes.py +++ /dev/null @@ -1,273 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1ResourceAttributes(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, group=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None): - """ - V1ResourceAttributes - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'group': 'str', - 'name': 'str', - 'namespace': 'str', - 'resource': 'str', - 'subresource': 'str', - 'verb': 'str', - 'version': 'str' - } - - self.attribute_map = { - 'group': 'group', - 'name': 'name', - 'namespace': 'namespace', - 'resource': 'resource', - 'subresource': 'subresource', - 'verb': 'verb', - 'version': 'version' - } - - self._group = group - self._name = name - self._namespace = namespace - self._resource = resource - self._subresource = subresource - self._verb = verb - self._version = version - - @property - def group(self): - """ - Gets the group of this V1ResourceAttributes. - Group is the API Group of the Resource. \"*\" means all. - - :return: The group of this V1ResourceAttributes. - :rtype: str - """ - return self._group - - @group.setter - def group(self, group): - """ - Sets the group of this V1ResourceAttributes. - Group is the API Group of the Resource. \"*\" means all. - - :param group: The group of this V1ResourceAttributes. - :type: str - """ - - self._group = group - - @property - def name(self): - """ - Gets the name of this V1ResourceAttributes. - Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. - - :return: The name of this V1ResourceAttributes. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1ResourceAttributes. - Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. - - :param name: The name of this V1ResourceAttributes. - :type: str - """ - - self._name = name - - @property - def namespace(self): - """ - Gets the namespace of this V1ResourceAttributes. - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - - :return: The namespace of this V1ResourceAttributes. - :rtype: str - """ - return self._namespace - - @namespace.setter - def namespace(self, namespace): - """ - Sets the namespace of this V1ResourceAttributes. - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - - :param namespace: The namespace of this V1ResourceAttributes. - :type: str - """ - - self._namespace = namespace - - @property - def resource(self): - """ - Gets the resource of this V1ResourceAttributes. - Resource is one of the existing resource types. \"*\" means all. - - :return: The resource of this V1ResourceAttributes. - :rtype: str - """ - return self._resource - - @resource.setter - def resource(self, resource): - """ - Sets the resource of this V1ResourceAttributes. - Resource is one of the existing resource types. \"*\" means all. - - :param resource: The resource of this V1ResourceAttributes. - :type: str - """ - - self._resource = resource - - @property - def subresource(self): - """ - Gets the subresource of this V1ResourceAttributes. - Subresource is one of the existing resource types. \"\" means none. - - :return: The subresource of this V1ResourceAttributes. - :rtype: str - """ - return self._subresource - - @subresource.setter - def subresource(self, subresource): - """ - Sets the subresource of this V1ResourceAttributes. - Subresource is one of the existing resource types. \"\" means none. - - :param subresource: The subresource of this V1ResourceAttributes. - :type: str - """ - - self._subresource = subresource - - @property - def verb(self): - """ - Gets the verb of this V1ResourceAttributes. - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. - - :return: The verb of this V1ResourceAttributes. - :rtype: str - """ - return self._verb - - @verb.setter - def verb(self, verb): - """ - Sets the verb of this V1ResourceAttributes. - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. - - :param verb: The verb of this V1ResourceAttributes. - :type: str - """ - - self._verb = verb - - @property - def version(self): - """ - Gets the version of this V1ResourceAttributes. - Version is the API Version of the Resource. \"*\" means all. - - :return: The version of this V1ResourceAttributes. - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """ - Sets the version of this V1ResourceAttributes. - Version is the API Version of the Resource. \"*\" means all. - - :param version: The version of this V1ResourceAttributes. - :type: str - """ - - self._version = version - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1ResourceAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_resource_field_selector.py b/kubernetes/client/models/v1_resource_field_selector.py index 254762de56..f54b0cba99 100644 --- a/kubernetes/client/models/v1_resource_field_selector.py +++ b/kubernetes/client/models/v1_resource_field_selector.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_resource_quota.py b/kubernetes/client/models/v1_resource_quota.py index 7fc42aca56..12fa4f39ee 100644 --- a/kubernetes/client/models/v1_resource_quota.py +++ b/kubernetes/client/models/v1_resource_quota.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_resource_quota_list.py b/kubernetes/client/models/v1_resource_quota_list.py index ed20dfcdd0..6a9fa1ab5e 100644 --- a/kubernetes/client/models/v1_resource_quota_list.py +++ b/kubernetes/client/models/v1_resource_quota_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1ResourceQuota]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ResourceQuotaList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ResourceQuotaList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_resource_quota_spec.py b/kubernetes/client/models/v1_resource_quota_spec.py index 6fa1eb9509..97bd4e1a82 100644 --- a/kubernetes/client/models/v1_resource_quota_spec.py +++ b/kubernetes/client/models/v1_resource_quota_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_resource_quota_status.py b/kubernetes/client/models/v1_resource_quota_status.py index 7642bc2c43..9e614b50c5 100644 --- a/kubernetes/client/models/v1_resource_quota_status.py +++ b/kubernetes/client/models/v1_resource_quota_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_resource_quota_status_by_namespace.py b/kubernetes/client/models/v1_resource_quota_status_by_namespace.py new file mode 100644 index 0000000000..bcbca03217 --- /dev/null +++ b/kubernetes/client/models/v1_resource_quota_status_by_namespace.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ResourceQuotaStatusByNamespace(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, namespace=None, status=None): + """ + V1ResourceQuotaStatusByNamespace - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'namespace': 'str', + 'status': 'V1ResourceQuotaStatus' + } + + self.attribute_map = { + 'namespace': 'namespace', + 'status': 'status' + } + + self._namespace = namespace + self._status = status + + @property + def namespace(self): + """ + Gets the namespace of this V1ResourceQuotaStatusByNamespace. + Namespace the project this status applies to + + :return: The namespace of this V1ResourceQuotaStatusByNamespace. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1ResourceQuotaStatusByNamespace. + Namespace the project this status applies to + + :param namespace: The namespace of this V1ResourceQuotaStatusByNamespace. + :type: str + """ + if namespace is None: + raise ValueError("Invalid value for `namespace`, must not be `None`") + + self._namespace = namespace + + @property + def status(self): + """ + Gets the status of this V1ResourceQuotaStatusByNamespace. + Status indicates how many resources have been consumed by this project + + :return: The status of this V1ResourceQuotaStatusByNamespace. + :rtype: V1ResourceQuotaStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1ResourceQuotaStatusByNamespace. + Status indicates how many resources have been consumed by this project + + :param status: The status of this V1ResourceQuotaStatusByNamespace. + :type: V1ResourceQuotaStatus + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ResourceQuotaStatusByNamespace): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_resource_requirements.py b/kubernetes/client/models/v1_resource_requirements.py index 6329c991ad..ff5f2464f3 100644 --- a/kubernetes/client/models/v1_resource_requirements.py +++ b/kubernetes/client/models/v1_resource_requirements.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_role.py b/kubernetes/client/models/v1_role.py new file mode 100644 index 0000000000..0473332119 --- /dev/null +++ b/kubernetes/client/models/v1_role.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Role(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, rules=None): + """ + V1Role - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'rules': 'list[V1PolicyRule]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'rules': 'rules' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._rules = rules + + @property + def api_version(self): + """ + Gets the api_version of this V1Role. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1Role. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Role. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1Role. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1Role. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1Role. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Role. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1Role. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1Role. + Standard object's metadata. + + :return: The metadata of this V1Role. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Role. + Standard object's metadata. + + :param metadata: The metadata of this V1Role. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def rules(self): + """ + Gets the rules of this V1Role. + Rules holds all the PolicyRules for this Role + + :return: The rules of this V1Role. + :rtype: list[V1PolicyRule] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """ + Sets the rules of this V1Role. + Rules holds all the PolicyRules for this Role + + :param rules: The rules of this V1Role. + :type: list[V1PolicyRule] + """ + if rules is None: + raise ValueError("Invalid value for `rules`, must not be `None`") + + self._rules = rules + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1Role): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_role_binding.py b/kubernetes/client/models/v1_role_binding.py new file mode 100644 index 0000000000..03a25d8dd7 --- /dev/null +++ b/kubernetes/client/models/v1_role_binding.py @@ -0,0 +1,281 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RoleBinding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, group_names=None, kind=None, metadata=None, role_ref=None, subjects=None, user_names=None): + """ + V1RoleBinding - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'group_names': 'list[str]', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'role_ref': 'V1ObjectReference', + 'subjects': 'list[V1ObjectReference]', + 'user_names': 'list[str]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'group_names': 'groupNames', + 'kind': 'kind', + 'metadata': 'metadata', + 'role_ref': 'roleRef', + 'subjects': 'subjects', + 'user_names': 'userNames' + } + + self._api_version = api_version + self._group_names = group_names + self._kind = kind + self._metadata = metadata + self._role_ref = role_ref + self._subjects = subjects + self._user_names = user_names + + @property + def api_version(self): + """ + Gets the api_version of this V1RoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1RoleBinding. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1RoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1RoleBinding. + :type: str + """ + + self._api_version = api_version + + @property + def group_names(self): + """ + Gets the group_names of this V1RoleBinding. + GroupNames holds all the groups directly bound to the role. This field should only be specified when supporting legacy clients and servers. See Subjects for further details. + + :return: The group_names of this V1RoleBinding. + :rtype: list[str] + """ + return self._group_names + + @group_names.setter + def group_names(self, group_names): + """ + Sets the group_names of this V1RoleBinding. + GroupNames holds all the groups directly bound to the role. This field should only be specified when supporting legacy clients and servers. See Subjects for further details. + + :param group_names: The group_names of this V1RoleBinding. + :type: list[str] + """ + if group_names is None: + raise ValueError("Invalid value for `group_names`, must not be `None`") + + self._group_names = group_names + + @property + def kind(self): + """ + Gets the kind of this V1RoleBinding. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1RoleBinding. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1RoleBinding. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1RoleBinding. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1RoleBinding. + Standard object's metadata. + + :return: The metadata of this V1RoleBinding. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1RoleBinding. + Standard object's metadata. + + :param metadata: The metadata of this V1RoleBinding. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def role_ref(self): + """ + Gets the role_ref of this V1RoleBinding. + RoleRef can only reference the current namespace and the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. Since Policy is a singleton, this is sufficient knowledge to locate a role. + + :return: The role_ref of this V1RoleBinding. + :rtype: V1ObjectReference + """ + return self._role_ref + + @role_ref.setter + def role_ref(self, role_ref): + """ + Sets the role_ref of this V1RoleBinding. + RoleRef can only reference the current namespace and the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. Since Policy is a singleton, this is sufficient knowledge to locate a role. + + :param role_ref: The role_ref of this V1RoleBinding. + :type: V1ObjectReference + """ + if role_ref is None: + raise ValueError("Invalid value for `role_ref`, must not be `None`") + + self._role_ref = role_ref + + @property + def subjects(self): + """ + Gets the subjects of this V1RoleBinding. + Subjects hold object references to authorize with this rule. This field is ignored if UserNames or GroupNames are specified to support legacy clients and servers. Thus newer clients that do not need to support backwards compatibility should send only fully qualified Subjects and should omit the UserNames and GroupNames fields. Clients that need to support backwards compatibility can use this field to build the UserNames and GroupNames. + + :return: The subjects of this V1RoleBinding. + :rtype: list[V1ObjectReference] + """ + return self._subjects + + @subjects.setter + def subjects(self, subjects): + """ + Sets the subjects of this V1RoleBinding. + Subjects hold object references to authorize with this rule. This field is ignored if UserNames or GroupNames are specified to support legacy clients and servers. Thus newer clients that do not need to support backwards compatibility should send only fully qualified Subjects and should omit the UserNames and GroupNames fields. Clients that need to support backwards compatibility can use this field to build the UserNames and GroupNames. + + :param subjects: The subjects of this V1RoleBinding. + :type: list[V1ObjectReference] + """ + if subjects is None: + raise ValueError("Invalid value for `subjects`, must not be `None`") + + self._subjects = subjects + + @property + def user_names(self): + """ + Gets the user_names of this V1RoleBinding. + UserNames holds all the usernames directly bound to the role. This field should only be specified when supporting legacy clients and servers. See Subjects for further details. + + :return: The user_names of this V1RoleBinding. + :rtype: list[str] + """ + return self._user_names + + @user_names.setter + def user_names(self, user_names): + """ + Sets the user_names of this V1RoleBinding. + UserNames holds all the usernames directly bound to the role. This field should only be specified when supporting legacy clients and servers. See Subjects for further details. + + :param user_names: The user_names of this V1RoleBinding. + :type: list[str] + """ + if user_names is None: + raise ValueError("Invalid value for `user_names`, must not be `None`") + + self._user_names = user_names + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RoleBinding): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_role_binding_list.py b/kubernetes/client/models/v1_role_binding_list.py new file mode 100644 index 0000000000..e28642bb83 --- /dev/null +++ b/kubernetes/client/models/v1_role_binding_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RoleBindingList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1RoleBindingList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1RoleBinding]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1RoleBindingList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1RoleBindingList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1RoleBindingList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1RoleBindingList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1RoleBindingList. + Items is a list of RoleBindings + + :return: The items of this V1RoleBindingList. + :rtype: list[V1RoleBinding] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1RoleBindingList. + Items is a list of RoleBindings + + :param items: The items of this V1RoleBindingList. + :type: list[V1RoleBinding] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1RoleBindingList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1RoleBindingList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1RoleBindingList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1RoleBindingList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1RoleBindingList. + Standard object's metadata. + + :return: The metadata of this V1RoleBindingList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1RoleBindingList. + Standard object's metadata. + + :param metadata: The metadata of this V1RoleBindingList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RoleBindingList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_role_binding_restriction.py b/kubernetes/client/models/v1_role_binding_restriction.py new file mode 100644 index 0000000000..bb97541868 --- /dev/null +++ b/kubernetes/client/models/v1_role_binding_restriction.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RoleBindingRestriction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): + """ + V1RoleBindingRestriction - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1RoleBindingRestrictionSpec' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + + @property + def api_version(self): + """ + Gets the api_version of this V1RoleBindingRestriction. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1RoleBindingRestriction. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1RoleBindingRestriction. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1RoleBindingRestriction. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1RoleBindingRestriction. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1RoleBindingRestriction. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1RoleBindingRestriction. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1RoleBindingRestriction. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1RoleBindingRestriction. + Standard object's metadata. + + :return: The metadata of this V1RoleBindingRestriction. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1RoleBindingRestriction. + Standard object's metadata. + + :param metadata: The metadata of this V1RoleBindingRestriction. + :type: V1ObjectMeta + """ + if metadata is None: + raise ValueError("Invalid value for `metadata`, must not be `None`") + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1RoleBindingRestriction. + Spec defines the matcher. + + :return: The spec of this V1RoleBindingRestriction. + :rtype: V1RoleBindingRestrictionSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1RoleBindingRestriction. + Spec defines the matcher. + + :param spec: The spec of this V1RoleBindingRestriction. + :type: V1RoleBindingRestrictionSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RoleBindingRestriction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_role_binding_restriction_list.py b/kubernetes/client/models/v1_role_binding_restriction_list.py new file mode 100644 index 0000000000..8afba5f385 --- /dev/null +++ b/kubernetes/client/models/v1_role_binding_restriction_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RoleBindingRestrictionList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1RoleBindingRestrictionList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1RoleBindingRestriction]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1RoleBindingRestrictionList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1RoleBindingRestrictionList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1RoleBindingRestrictionList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1RoleBindingRestrictionList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1RoleBindingRestrictionList. + Items is a list of RoleBindingRestriction objects. + + :return: The items of this V1RoleBindingRestrictionList. + :rtype: list[V1RoleBindingRestriction] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1RoleBindingRestrictionList. + Items is a list of RoleBindingRestriction objects. + + :param items: The items of this V1RoleBindingRestrictionList. + :type: list[V1RoleBindingRestriction] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1RoleBindingRestrictionList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1RoleBindingRestrictionList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1RoleBindingRestrictionList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1RoleBindingRestrictionList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1RoleBindingRestrictionList. + Standard object's metadata. + + :return: The metadata of this V1RoleBindingRestrictionList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1RoleBindingRestrictionList. + Standard object's metadata. + + :param metadata: The metadata of this V1RoleBindingRestrictionList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RoleBindingRestrictionList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_role_binding_restriction_spec.py b/kubernetes/client/models/v1_role_binding_restriction_spec.py new file mode 100644 index 0000000000..14be8204ba --- /dev/null +++ b/kubernetes/client/models/v1_role_binding_restriction_spec.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RoleBindingRestrictionSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, grouprestriction=None, serviceaccountrestriction=None, userrestriction=None): + """ + V1RoleBindingRestrictionSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'grouprestriction': 'V1GroupRestriction', + 'serviceaccountrestriction': 'V1ServiceAccountRestriction', + 'userrestriction': 'V1UserRestriction' + } + + self.attribute_map = { + 'grouprestriction': 'grouprestriction', + 'serviceaccountrestriction': 'serviceaccountrestriction', + 'userrestriction': 'userrestriction' + } + + self._grouprestriction = grouprestriction + self._serviceaccountrestriction = serviceaccountrestriction + self._userrestriction = userrestriction + + @property + def grouprestriction(self): + """ + Gets the grouprestriction of this V1RoleBindingRestrictionSpec. + GroupRestriction matches against group subjects. + + :return: The grouprestriction of this V1RoleBindingRestrictionSpec. + :rtype: V1GroupRestriction + """ + return self._grouprestriction + + @grouprestriction.setter + def grouprestriction(self, grouprestriction): + """ + Sets the grouprestriction of this V1RoleBindingRestrictionSpec. + GroupRestriction matches against group subjects. + + :param grouprestriction: The grouprestriction of this V1RoleBindingRestrictionSpec. + :type: V1GroupRestriction + """ + if grouprestriction is None: + raise ValueError("Invalid value for `grouprestriction`, must not be `None`") + + self._grouprestriction = grouprestriction + + @property + def serviceaccountrestriction(self): + """ + Gets the serviceaccountrestriction of this V1RoleBindingRestrictionSpec. + ServiceAccountRestriction matches against service-account subjects. + + :return: The serviceaccountrestriction of this V1RoleBindingRestrictionSpec. + :rtype: V1ServiceAccountRestriction + """ + return self._serviceaccountrestriction + + @serviceaccountrestriction.setter + def serviceaccountrestriction(self, serviceaccountrestriction): + """ + Sets the serviceaccountrestriction of this V1RoleBindingRestrictionSpec. + ServiceAccountRestriction matches against service-account subjects. + + :param serviceaccountrestriction: The serviceaccountrestriction of this V1RoleBindingRestrictionSpec. + :type: V1ServiceAccountRestriction + """ + if serviceaccountrestriction is None: + raise ValueError("Invalid value for `serviceaccountrestriction`, must not be `None`") + + self._serviceaccountrestriction = serviceaccountrestriction + + @property + def userrestriction(self): + """ + Gets the userrestriction of this V1RoleBindingRestrictionSpec. + UserRestriction matches against user subjects. + + :return: The userrestriction of this V1RoleBindingRestrictionSpec. + :rtype: V1UserRestriction + """ + return self._userrestriction + + @userrestriction.setter + def userrestriction(self, userrestriction): + """ + Sets the userrestriction of this V1RoleBindingRestrictionSpec. + UserRestriction matches against user subjects. + + :param userrestriction: The userrestriction of this V1RoleBindingRestrictionSpec. + :type: V1UserRestriction + """ + if userrestriction is None: + raise ValueError("Invalid value for `userrestriction`, must not be `None`") + + self._userrestriction = userrestriction + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RoleBindingRestrictionSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_role_list.py b/kubernetes/client/models/v1_role_list.py new file mode 100644 index 0000000000..32bdaa460a --- /dev/null +++ b/kubernetes/client/models/v1_role_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RoleList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1RoleList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1Role]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1RoleList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1RoleList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1RoleList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1RoleList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1RoleList. + Items is a list of Roles + + :return: The items of this V1RoleList. + :rtype: list[V1Role] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1RoleList. + Items is a list of Roles + + :param items: The items of this V1RoleList. + :type: list[V1Role] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1RoleList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1RoleList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1RoleList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1RoleList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1RoleList. + Standard object's metadata. + + :return: The metadata of this V1RoleList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1RoleList. + Standard object's metadata. + + :param metadata: The metadata of this V1RoleList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RoleList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_rolling_deployment_strategy_params.py b/kubernetes/client/models/v1_rolling_deployment_strategy_params.py new file mode 100644 index 0000000000..6b5fe2f167 --- /dev/null +++ b/kubernetes/client/models/v1_rolling_deployment_strategy_params.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RollingDeploymentStrategyParams(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, interval_seconds=None, max_surge=None, max_unavailable=None, post=None, pre=None, timeout_seconds=None, update_period_seconds=None): + """ + V1RollingDeploymentStrategyParams - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'interval_seconds': 'int', + 'max_surge': 'str', + 'max_unavailable': 'str', + 'post': 'V1LifecycleHook', + 'pre': 'V1LifecycleHook', + 'timeout_seconds': 'int', + 'update_period_seconds': 'int' + } + + self.attribute_map = { + 'interval_seconds': 'intervalSeconds', + 'max_surge': 'maxSurge', + 'max_unavailable': 'maxUnavailable', + 'post': 'post', + 'pre': 'pre', + 'timeout_seconds': 'timeoutSeconds', + 'update_period_seconds': 'updatePeriodSeconds' + } + + self._interval_seconds = interval_seconds + self._max_surge = max_surge + self._max_unavailable = max_unavailable + self._post = post + self._pre = pre + self._timeout_seconds = timeout_seconds + self._update_period_seconds = update_period_seconds + + @property + def interval_seconds(self): + """ + Gets the interval_seconds of this V1RollingDeploymentStrategyParams. + IntervalSeconds is the time to wait between polling deployment status after update. If the value is nil, a default will be used. + + :return: The interval_seconds of this V1RollingDeploymentStrategyParams. + :rtype: int + """ + return self._interval_seconds + + @interval_seconds.setter + def interval_seconds(self, interval_seconds): + """ + Sets the interval_seconds of this V1RollingDeploymentStrategyParams. + IntervalSeconds is the time to wait between polling deployment status after update. If the value is nil, a default will be used. + + :param interval_seconds: The interval_seconds of this V1RollingDeploymentStrategyParams. + :type: int + """ + + self._interval_seconds = interval_seconds + + @property + def max_surge(self): + """ + Gets the max_surge of this V1RollingDeploymentStrategyParams. + MaxSurge is the maximum number of pods that can be scheduled above the original number of pods. Value can be an absolute number (ex: 5) or a percentage of total pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxUnavailable is 0. By default, 25% is used. Example: when this is set to 30%, the new RC can be scaled up by 30% immediately when the rolling update starts. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of original pods. + + :return: The max_surge of this V1RollingDeploymentStrategyParams. + :rtype: str + """ + return self._max_surge + + @max_surge.setter + def max_surge(self, max_surge): + """ + Sets the max_surge of this V1RollingDeploymentStrategyParams. + MaxSurge is the maximum number of pods that can be scheduled above the original number of pods. Value can be an absolute number (ex: 5) or a percentage of total pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxUnavailable is 0. By default, 25% is used. Example: when this is set to 30%, the new RC can be scaled up by 30% immediately when the rolling update starts. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of original pods. + + :param max_surge: The max_surge of this V1RollingDeploymentStrategyParams. + :type: str + """ + + self._max_surge = max_surge + + @property + def max_unavailable(self): + """ + Gets the max_unavailable of this V1RollingDeploymentStrategyParams. + MaxUnavailable is the maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total pods at the start of update (ex: 10%). Absolute number is calculated from percentage by rounding down. This cannot be 0 if MaxSurge is 0. By default, 25% is used. Example: when this is set to 30%, the old RC can be scaled down by 30% immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that at least 70% of original number of pods are available at all times during the update. + + :return: The max_unavailable of this V1RollingDeploymentStrategyParams. + :rtype: str + """ + return self._max_unavailable + + @max_unavailable.setter + def max_unavailable(self, max_unavailable): + """ + Sets the max_unavailable of this V1RollingDeploymentStrategyParams. + MaxUnavailable is the maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total pods at the start of update (ex: 10%). Absolute number is calculated from percentage by rounding down. This cannot be 0 if MaxSurge is 0. By default, 25% is used. Example: when this is set to 30%, the old RC can be scaled down by 30% immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that at least 70% of original number of pods are available at all times during the update. + + :param max_unavailable: The max_unavailable of this V1RollingDeploymentStrategyParams. + :type: str + """ + + self._max_unavailable = max_unavailable + + @property + def post(self): + """ + Gets the post of this V1RollingDeploymentStrategyParams. + Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. All LifecycleHookFailurePolicy values are supported. + + :return: The post of this V1RollingDeploymentStrategyParams. + :rtype: V1LifecycleHook + """ + return self._post + + @post.setter + def post(self, post): + """ + Sets the post of this V1RollingDeploymentStrategyParams. + Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. All LifecycleHookFailurePolicy values are supported. + + :param post: The post of this V1RollingDeploymentStrategyParams. + :type: V1LifecycleHook + """ + + self._post = post + + @property + def pre(self): + """ + Gets the pre of this V1RollingDeploymentStrategyParams. + Pre is a lifecycle hook which is executed before the deployment process begins. All LifecycleHookFailurePolicy values are supported. + + :return: The pre of this V1RollingDeploymentStrategyParams. + :rtype: V1LifecycleHook + """ + return self._pre + + @pre.setter + def pre(self, pre): + """ + Sets the pre of this V1RollingDeploymentStrategyParams. + Pre is a lifecycle hook which is executed before the deployment process begins. All LifecycleHookFailurePolicy values are supported. + + :param pre: The pre of this V1RollingDeploymentStrategyParams. + :type: V1LifecycleHook + """ + + self._pre = pre + + @property + def timeout_seconds(self): + """ + Gets the timeout_seconds of this V1RollingDeploymentStrategyParams. + TimeoutSeconds is the time to wait for updates before giving up. If the value is nil, a default will be used. + + :return: The timeout_seconds of this V1RollingDeploymentStrategyParams. + :rtype: int + """ + return self._timeout_seconds + + @timeout_seconds.setter + def timeout_seconds(self, timeout_seconds): + """ + Sets the timeout_seconds of this V1RollingDeploymentStrategyParams. + TimeoutSeconds is the time to wait for updates before giving up. If the value is nil, a default will be used. + + :param timeout_seconds: The timeout_seconds of this V1RollingDeploymentStrategyParams. + :type: int + """ + + self._timeout_seconds = timeout_seconds + + @property + def update_period_seconds(self): + """ + Gets the update_period_seconds of this V1RollingDeploymentStrategyParams. + UpdatePeriodSeconds is the time to wait between individual pod updates. If the value is nil, a default will be used. + + :return: The update_period_seconds of this V1RollingDeploymentStrategyParams. + :rtype: int + """ + return self._update_period_seconds + + @update_period_seconds.setter + def update_period_seconds(self, update_period_seconds): + """ + Sets the update_period_seconds of this V1RollingDeploymentStrategyParams. + UpdatePeriodSeconds is the time to wait between individual pod updates. If the value is nil, a default will be used. + + :param update_period_seconds: The update_period_seconds of this V1RollingDeploymentStrategyParams. + :type: int + """ + + self._update_period_seconds = update_period_seconds + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RollingDeploymentStrategyParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_route.py b/kubernetes/client/models/v1_route.py new file mode 100644 index 0000000000..23b6da3e74 --- /dev/null +++ b/kubernetes/client/models/v1_route.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Route(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1Route - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1RouteSpec', + 'status': 'V1RouteStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1Route. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1Route. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Route. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1Route. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1Route. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1Route. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Route. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1Route. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1Route. + Standard object metadata. + + :return: The metadata of this V1Route. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Route. + Standard object metadata. + + :param metadata: The metadata of this V1Route. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Route. + spec is the desired state of the route + + :return: The spec of this V1Route. + :rtype: V1RouteSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Route. + spec is the desired state of the route + + :param spec: The spec of this V1Route. + :type: V1RouteSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Route. + status is the current state of the route + + :return: The status of this V1Route. + :rtype: V1RouteStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Route. + status is the current state of the route + + :param status: The status of this V1Route. + :type: V1RouteStatus + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1Route): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_route_ingress.py b/kubernetes/client/models/v1_route_ingress.py new file mode 100644 index 0000000000..0f464118b9 --- /dev/null +++ b/kubernetes/client/models/v1_route_ingress.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RouteIngress(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, conditions=None, host=None, router_canonical_hostname=None, router_name=None, wildcard_policy=None): + """ + V1RouteIngress - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'conditions': 'list[V1RouteIngressCondition]', + 'host': 'str', + 'router_canonical_hostname': 'str', + 'router_name': 'str', + 'wildcard_policy': 'str' + } + + self.attribute_map = { + 'conditions': 'conditions', + 'host': 'host', + 'router_canonical_hostname': 'routerCanonicalHostname', + 'router_name': 'routerName', + 'wildcard_policy': 'wildcardPolicy' + } + + self._conditions = conditions + self._host = host + self._router_canonical_hostname = router_canonical_hostname + self._router_name = router_name + self._wildcard_policy = wildcard_policy + + @property + def conditions(self): + """ + Gets the conditions of this V1RouteIngress. + Conditions is the state of the route, may be empty. + + :return: The conditions of this V1RouteIngress. + :rtype: list[V1RouteIngressCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1RouteIngress. + Conditions is the state of the route, may be empty. + + :param conditions: The conditions of this V1RouteIngress. + :type: list[V1RouteIngressCondition] + """ + + self._conditions = conditions + + @property + def host(self): + """ + Gets the host of this V1RouteIngress. + Host is the host string under which the route is exposed; this value is required + + :return: The host of this V1RouteIngress. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + Sets the host of this V1RouteIngress. + Host is the host string under which the route is exposed; this value is required + + :param host: The host of this V1RouteIngress. + :type: str + """ + + self._host = host + + @property + def router_canonical_hostname(self): + """ + Gets the router_canonical_hostname of this V1RouteIngress. + CanonicalHostname is the external host name for the router that can be used as a CNAME for the host requested for this route. This value is optional and may not be set in all cases. + + :return: The router_canonical_hostname of this V1RouteIngress. + :rtype: str + """ + return self._router_canonical_hostname + + @router_canonical_hostname.setter + def router_canonical_hostname(self, router_canonical_hostname): + """ + Sets the router_canonical_hostname of this V1RouteIngress. + CanonicalHostname is the external host name for the router that can be used as a CNAME for the host requested for this route. This value is optional and may not be set in all cases. + + :param router_canonical_hostname: The router_canonical_hostname of this V1RouteIngress. + :type: str + """ + + self._router_canonical_hostname = router_canonical_hostname + + @property + def router_name(self): + """ + Gets the router_name of this V1RouteIngress. + Name is a name chosen by the router to identify itself; this value is required + + :return: The router_name of this V1RouteIngress. + :rtype: str + """ + return self._router_name + + @router_name.setter + def router_name(self, router_name): + """ + Sets the router_name of this V1RouteIngress. + Name is a name chosen by the router to identify itself; this value is required + + :param router_name: The router_name of this V1RouteIngress. + :type: str + """ + + self._router_name = router_name + + @property + def wildcard_policy(self): + """ + Gets the wildcard_policy of this V1RouteIngress. + Wildcard policy is the wildcard policy that was allowed where this route is exposed. + + :return: The wildcard_policy of this V1RouteIngress. + :rtype: str + """ + return self._wildcard_policy + + @wildcard_policy.setter + def wildcard_policy(self, wildcard_policy): + """ + Sets the wildcard_policy of this V1RouteIngress. + Wildcard policy is the wildcard policy that was allowed where this route is exposed. + + :param wildcard_policy: The wildcard_policy of this V1RouteIngress. + :type: str + """ + + self._wildcard_policy = wildcard_policy + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RouteIngress): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_route_ingress_condition.py b/kubernetes/client/models/v1_route_ingress_condition.py new file mode 100644 index 0000000000..c732397d55 --- /dev/null +++ b/kubernetes/client/models/v1_route_ingress_condition.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RouteIngressCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): + """ + V1RouteIngressCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_transition_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_transition_time = last_transition_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1RouteIngressCondition. + RFC 3339 date and time when this condition last transitioned + + :return: The last_transition_time of this V1RouteIngressCondition. + :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 V1RouteIngressCondition. + RFC 3339 date and time when this condition last transitioned + + :param last_transition_time: The last_transition_time of this V1RouteIngressCondition. + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """ + Gets the message of this V1RouteIngressCondition. + Human readable message indicating details about last transition. + + :return: The message of this V1RouteIngressCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1RouteIngressCondition. + Human readable message indicating details about last transition. + + :param message: The message of this V1RouteIngressCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1RouteIngressCondition. + (brief) reason for the condition's last transition, and is usually a machine and human readable constant + + :return: The reason of this V1RouteIngressCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1RouteIngressCondition. + (brief) reason for the condition's last transition, and is usually a machine and human readable constant + + :param reason: The reason of this V1RouteIngressCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1RouteIngressCondition. + Status is the status of the condition. Can be True, False, Unknown. + + :return: The status of this V1RouteIngressCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1RouteIngressCondition. + Status is the status of the condition. Can be True, False, Unknown. + + :param status: The status of this V1RouteIngressCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1RouteIngressCondition. + Type is the type of the condition. Currently only Ready. + + :return: The type of this V1RouteIngressCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1RouteIngressCondition. + Type is the type of the condition. Currently only Ready. + + :param type: The type of this V1RouteIngressCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RouteIngressCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_route_list.py b/kubernetes/client/models/v1_route_list.py new file mode 100644 index 0000000000..555edd1e57 --- /dev/null +++ b/kubernetes/client/models/v1_route_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RouteList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1RouteList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1Route]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1RouteList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1RouteList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1RouteList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1RouteList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1RouteList. + items is a list of routes + + :return: The items of this V1RouteList. + :rtype: list[V1Route] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1RouteList. + items is a list of routes + + :param items: The items of this V1RouteList. + :type: list[V1Route] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1RouteList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1RouteList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1RouteList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1RouteList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1RouteList. + Standard object metadata. + + :return: The metadata of this V1RouteList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1RouteList. + Standard object metadata. + + :param metadata: The metadata of this V1RouteList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RouteList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_route_port.py b/kubernetes/client/models/v1_route_port.py new file mode 100644 index 0000000000..0aa2bd1f66 --- /dev/null +++ b/kubernetes/client/models/v1_route_port.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RoutePort(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, target_port=None): + """ + V1RoutePort - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'target_port': 'str' + } + + self.attribute_map = { + 'target_port': 'targetPort' + } + + self._target_port = target_port + + @property + def target_port(self): + """ + Gets the target_port of this V1RoutePort. + The target port on pods selected by the service this route points to. If this is a string, it will be looked up as a named port in the target endpoints port list. Required + + :return: The target_port of this V1RoutePort. + :rtype: str + """ + return self._target_port + + @target_port.setter + def target_port(self, target_port): + """ + Sets the target_port of this V1RoutePort. + The target port on pods selected by the service this route points to. If this is a string, it will be looked up as a named port in the target endpoints port list. Required + + :param target_port: The target_port of this V1RoutePort. + :type: str + """ + if target_port is None: + raise ValueError("Invalid value for `target_port`, must not be `None`") + + self._target_port = target_port + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RoutePort): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_route_spec.py b/kubernetes/client/models/v1_route_spec.py new file mode 100644 index 0000000000..4bf4f206bc --- /dev/null +++ b/kubernetes/client/models/v1_route_spec.py @@ -0,0 +1,277 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RouteSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, alternate_backends=None, host=None, path=None, port=None, tls=None, to=None, wildcard_policy=None): + """ + V1RouteSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'alternate_backends': 'list[V1RouteTargetReference]', + 'host': 'str', + 'path': 'str', + 'port': 'V1RoutePort', + 'tls': 'V1TLSConfig', + 'to': 'V1RouteTargetReference', + 'wildcard_policy': 'str' + } + + self.attribute_map = { + 'alternate_backends': 'alternateBackends', + 'host': 'host', + 'path': 'path', + 'port': 'port', + 'tls': 'tls', + 'to': 'to', + 'wildcard_policy': 'wildcardPolicy' + } + + self._alternate_backends = alternate_backends + self._host = host + self._path = path + self._port = port + self._tls = tls + self._to = to + self._wildcard_policy = wildcard_policy + + @property + def alternate_backends(self): + """ + Gets the alternate_backends of this V1RouteSpec. + alternateBackends is an extension of the 'to' field. If more than one service needs to be pointed to, then use this field. Use the weight field in RouteTargetReference object to specify relative preference. If the weight field is zero, the backend is ignored. + + :return: The alternate_backends of this V1RouteSpec. + :rtype: list[V1RouteTargetReference] + """ + return self._alternate_backends + + @alternate_backends.setter + def alternate_backends(self, alternate_backends): + """ + Sets the alternate_backends of this V1RouteSpec. + alternateBackends is an extension of the 'to' field. If more than one service needs to be pointed to, then use this field. Use the weight field in RouteTargetReference object to specify relative preference. If the weight field is zero, the backend is ignored. + + :param alternate_backends: The alternate_backends of this V1RouteSpec. + :type: list[V1RouteTargetReference] + """ + + self._alternate_backends = alternate_backends + + @property + def host(self): + """ + Gets the host of this V1RouteSpec. + host is an alias/DNS that points to the service. Optional. If not specified a route name will typically be automatically chosen. Must follow DNS952 subdomain conventions. + + :return: The host of this V1RouteSpec. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + Sets the host of this V1RouteSpec. + host is an alias/DNS that points to the service. Optional. If not specified a route name will typically be automatically chosen. Must follow DNS952 subdomain conventions. + + :param host: The host of this V1RouteSpec. + :type: str + """ + if host is None: + raise ValueError("Invalid value for `host`, must not be `None`") + + self._host = host + + @property + def path(self): + """ + Gets the path of this V1RouteSpec. + Path that the router watches for, to route traffic for to the service. Optional + + :return: The path of this V1RouteSpec. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1RouteSpec. + Path that the router watches for, to route traffic for to the service. Optional + + :param path: The path of this V1RouteSpec. + :type: str + """ + + self._path = path + + @property + def port(self): + """ + Gets the port of this V1RouteSpec. + If specified, the port to be used by the router. Most routers will use all endpoints exposed by the service by default - set this value to instruct routers which port to use. + + :return: The port of this V1RouteSpec. + :rtype: V1RoutePort + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1RouteSpec. + If specified, the port to be used by the router. Most routers will use all endpoints exposed by the service by default - set this value to instruct routers which port to use. + + :param port: The port of this V1RouteSpec. + :type: V1RoutePort + """ + + self._port = port + + @property + def tls(self): + """ + Gets the tls of this V1RouteSpec. + The tls field provides the ability to configure certificates and termination for the route. + + :return: The tls of this V1RouteSpec. + :rtype: V1TLSConfig + """ + return self._tls + + @tls.setter + def tls(self, tls): + """ + Sets the tls of this V1RouteSpec. + The tls field provides the ability to configure certificates and termination for the route. + + :param tls: The tls of this V1RouteSpec. + :type: V1TLSConfig + """ + + self._tls = tls + + @property + def to(self): + """ + Gets the to of this V1RouteSpec. + to is an object the route should use as the primary backend. Only the Service kind is allowed, and it will be defaulted to Service. If the weight field is set to zero, no traffic will be sent to this service. + + :return: The to of this V1RouteSpec. + :rtype: V1RouteTargetReference + """ + return self._to + + @to.setter + def to(self, to): + """ + Sets the to of this V1RouteSpec. + to is an object the route should use as the primary backend. Only the Service kind is allowed, and it will be defaulted to Service. If the weight field is set to zero, no traffic will be sent to this service. + + :param to: The to of this V1RouteSpec. + :type: V1RouteTargetReference + """ + if to is None: + raise ValueError("Invalid value for `to`, must not be `None`") + + self._to = to + + @property + def wildcard_policy(self): + """ + Gets the wildcard_policy of this V1RouteSpec. + Wildcard policy if any for the route. Currently only 'Subdomain' or 'None' is allowed. + + :return: The wildcard_policy of this V1RouteSpec. + :rtype: str + """ + return self._wildcard_policy + + @wildcard_policy.setter + def wildcard_policy(self, wildcard_policy): + """ + Sets the wildcard_policy of this V1RouteSpec. + Wildcard policy if any for the route. Currently only 'Subdomain' or 'None' is allowed. + + :param wildcard_policy: The wildcard_policy of this V1RouteSpec. + :type: str + """ + + self._wildcard_policy = wildcard_policy + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RouteSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_route_status.py b/kubernetes/client/models/v1_route_status.py new file mode 100644 index 0000000000..ad79d35825 --- /dev/null +++ b/kubernetes/client/models/v1_route_status.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RouteStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, ingress=None): + """ + V1RouteStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'ingress': 'list[V1RouteIngress]' + } + + self.attribute_map = { + 'ingress': 'ingress' + } + + self._ingress = ingress + + @property + def ingress(self): + """ + Gets the ingress of this V1RouteStatus. + ingress describes the places where the route may be exposed. The list of ingress points may contain duplicate Host or RouterName values. Routes are considered live once they are `Ready` + + :return: The ingress of this V1RouteStatus. + :rtype: list[V1RouteIngress] + """ + return self._ingress + + @ingress.setter + def ingress(self, ingress): + """ + Sets the ingress of this V1RouteStatus. + ingress describes the places where the route may be exposed. The list of ingress points may contain duplicate Host or RouterName values. Routes are considered live once they are `Ready` + + :param ingress: The ingress of this V1RouteStatus. + :type: list[V1RouteIngress] + """ + if ingress is None: + raise ValueError("Invalid value for `ingress`, must not be `None`") + + self._ingress = ingress + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RouteStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_route_target_reference.py b/kubernetes/client/models/v1_route_target_reference.py new file mode 100644 index 0000000000..2ec7170b4a --- /dev/null +++ b/kubernetes/client/models/v1_route_target_reference.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RouteTargetReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, kind=None, name=None, weight=None): + """ + V1RouteTargetReference - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'name': 'str', + 'weight': 'int' + } + + self.attribute_map = { + 'kind': 'kind', + 'name': 'name', + 'weight': 'weight' + } + + self._kind = kind + self._name = name + self._weight = weight + + @property + def kind(self): + """ + Gets the kind of this V1RouteTargetReference. + The kind of target that the route is referring to. Currently, only 'Service' is allowed + + :return: The kind of this V1RouteTargetReference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1RouteTargetReference. + The kind of target that the route is referring to. Currently, only 'Service' is allowed + + :param kind: The kind of this V1RouteTargetReference. + :type: str + """ + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1RouteTargetReference. + name of the service/target that is being referred to. e.g. name of the service + + :return: The name of this V1RouteTargetReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1RouteTargetReference. + name of the service/target that is being referred to. e.g. name of the service + + :param name: The name of this V1RouteTargetReference. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def weight(self): + """ + Gets the weight of this V1RouteTargetReference. + weight as an integer between 1 and 256 that specifies the target's relative weight against other target reference objects + + :return: The weight of this V1RouteTargetReference. + :rtype: int + """ + return self._weight + + @weight.setter + def weight(self, weight): + """ + Sets the weight of this V1RouteTargetReference. + weight as an integer between 1 and 256 that specifies the target's relative weight against other target reference objects + + :param weight: The weight of this V1RouteTargetReference. + :type: int + """ + if weight is None: + raise ValueError("Invalid value for `weight`, must not be `None`") + + self._weight = weight + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RouteTargetReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_run_as_user_strategy_options.py b/kubernetes/client/models/v1_run_as_user_strategy_options.py new file mode 100644 index 0000000000..f2155c59c7 --- /dev/null +++ b/kubernetes/client/models/v1_run_as_user_strategy_options.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RunAsUserStrategyOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, type=None, uid=None, uid_range_max=None, uid_range_min=None): + """ + V1RunAsUserStrategyOptions - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'type': 'str', + 'uid': 'int', + 'uid_range_max': 'int', + 'uid_range_min': 'int' + } + + self.attribute_map = { + 'type': 'type', + 'uid': 'uid', + 'uid_range_max': 'uidRangeMax', + 'uid_range_min': 'uidRangeMin' + } + + self._type = type + self._uid = uid + self._uid_range_max = uid_range_max + self._uid_range_min = uid_range_min + + @property + def type(self): + """ + Gets the type of this V1RunAsUserStrategyOptions. + Type is the strategy that will dictate what RunAsUser is used in the SecurityContext. + + :return: The type of this V1RunAsUserStrategyOptions. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1RunAsUserStrategyOptions. + Type is the strategy that will dictate what RunAsUser is used in the SecurityContext. + + :param type: The type of this V1RunAsUserStrategyOptions. + :type: str + """ + + self._type = type + + @property + def uid(self): + """ + Gets the uid of this V1RunAsUserStrategyOptions. + UID is the user id that containers must run as. Required for the MustRunAs strategy if not using namespace/service account allocated uids. + + :return: The uid of this V1RunAsUserStrategyOptions. + :rtype: int + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this V1RunAsUserStrategyOptions. + UID is the user id that containers must run as. Required for the MustRunAs strategy if not using namespace/service account allocated uids. + + :param uid: The uid of this V1RunAsUserStrategyOptions. + :type: int + """ + + self._uid = uid + + @property + def uid_range_max(self): + """ + Gets the uid_range_max of this V1RunAsUserStrategyOptions. + UIDRangeMax defines the max value for a strategy that allocates by range. + + :return: The uid_range_max of this V1RunAsUserStrategyOptions. + :rtype: int + """ + return self._uid_range_max + + @uid_range_max.setter + def uid_range_max(self, uid_range_max): + """ + Sets the uid_range_max of this V1RunAsUserStrategyOptions. + UIDRangeMax defines the max value for a strategy that allocates by range. + + :param uid_range_max: The uid_range_max of this V1RunAsUserStrategyOptions. + :type: int + """ + + self._uid_range_max = uid_range_max + + @property + def uid_range_min(self): + """ + Gets the uid_range_min of this V1RunAsUserStrategyOptions. + UIDRangeMin defines the min value for a strategy that allocates by range. + + :return: The uid_range_min of this V1RunAsUserStrategyOptions. + :rtype: int + """ + return self._uid_range_min + + @uid_range_min.setter + def uid_range_min(self, uid_range_min): + """ + Sets the uid_range_min of this V1RunAsUserStrategyOptions. + UIDRangeMin defines the min value for a strategy that allocates by range. + + :param uid_range_min: The uid_range_min of this V1RunAsUserStrategyOptions. + :type: int + """ + + self._uid_range_min = uid_range_min + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1RunAsUserStrategyOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_scale.py b/kubernetes/client/models/v1_scale.py index 9f21b88bc9..31bd78ed2f 100644 --- a/kubernetes/client/models/v1_scale.py +++ b/kubernetes/client/models/v1_scale.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_scale_io_volume_source.py b/kubernetes/client/models/v1_scale_io_volume_source.py deleted file mode 100644 index edd3302b5c..0000000000 --- a/kubernetes/client/models/v1_scale_io_volume_source.py +++ /dev/null @@ -1,357 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1ScaleIOVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only=None, secret_ref=None, ssl_enabled=None, storage_mode=None, storage_pool=None, system=None, volume_name=None): - """ - V1ScaleIOVolumeSource - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'fs_type': 'str', - 'gateway': 'str', - 'protection_domain': 'str', - 'read_only': 'bool', - 'secret_ref': 'V1LocalObjectReference', - 'ssl_enabled': 'bool', - 'storage_mode': 'str', - 'storage_pool': 'str', - 'system': 'str', - 'volume_name': 'str' - } - - self.attribute_map = { - 'fs_type': 'fsType', - 'gateway': 'gateway', - 'protection_domain': 'protectionDomain', - 'read_only': 'readOnly', - 'secret_ref': 'secretRef', - 'ssl_enabled': 'sslEnabled', - 'storage_mode': 'storageMode', - 'storage_pool': 'storagePool', - 'system': 'system', - 'volume_name': 'volumeName' - } - - self._fs_type = fs_type - self._gateway = gateway - self._protection_domain = protection_domain - self._read_only = read_only - self._secret_ref = secret_ref - self._ssl_enabled = ssl_enabled - self._storage_mode = storage_mode - self._storage_pool = storage_pool - self._system = system - self._volume_name = volume_name - - @property - def fs_type(self): - """ - Gets the fs_type of this V1ScaleIOVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. - - :return: The fs_type of this V1ScaleIOVolumeSource. - :rtype: str - """ - return self._fs_type - - @fs_type.setter - def fs_type(self, fs_type): - """ - Sets the fs_type of this V1ScaleIOVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. - - :param fs_type: The fs_type of this V1ScaleIOVolumeSource. - :type: str - """ - - self._fs_type = fs_type - - @property - def gateway(self): - """ - Gets the gateway of this V1ScaleIOVolumeSource. - The host address of the ScaleIO API Gateway. - - :return: The gateway of this V1ScaleIOVolumeSource. - :rtype: str - """ - return self._gateway - - @gateway.setter - def gateway(self, gateway): - """ - Sets the gateway of this V1ScaleIOVolumeSource. - The host address of the ScaleIO API Gateway. - - :param gateway: The gateway of this V1ScaleIOVolumeSource. - :type: str - """ - if gateway is None: - raise ValueError("Invalid value for `gateway`, must not be `None`") - - self._gateway = gateway - - @property - def protection_domain(self): - """ - Gets the protection_domain of this V1ScaleIOVolumeSource. - The name of the Protection Domain for the configured storage (defaults to \"default\"). - - :return: The protection_domain of this V1ScaleIOVolumeSource. - :rtype: str - """ - return self._protection_domain - - @protection_domain.setter - def protection_domain(self, protection_domain): - """ - Sets the protection_domain of this V1ScaleIOVolumeSource. - The name of the Protection Domain for the configured storage (defaults to \"default\"). - - :param protection_domain: The protection_domain of this V1ScaleIOVolumeSource. - :type: str - """ - - self._protection_domain = protection_domain - - @property - def read_only(self): - """ - Gets the read_only of this V1ScaleIOVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - :return: The read_only of this V1ScaleIOVolumeSource. - :rtype: bool - """ - return self._read_only - - @read_only.setter - def read_only(self, read_only): - """ - Sets the read_only of this V1ScaleIOVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - :param read_only: The read_only of this V1ScaleIOVolumeSource. - :type: bool - """ - - self._read_only = read_only - - @property - def secret_ref(self): - """ - Gets the secret_ref of this V1ScaleIOVolumeSource. - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - - :return: The secret_ref of this V1ScaleIOVolumeSource. - :rtype: V1LocalObjectReference - """ - return self._secret_ref - - @secret_ref.setter - def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1ScaleIOVolumeSource. - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - - :param secret_ref: The secret_ref of this V1ScaleIOVolumeSource. - :type: V1LocalObjectReference - """ - if secret_ref is None: - raise ValueError("Invalid value for `secret_ref`, must not be `None`") - - self._secret_ref = secret_ref - - @property - def ssl_enabled(self): - """ - Gets the ssl_enabled of this V1ScaleIOVolumeSource. - Flag to enable/disable SSL communication with Gateway, default false - - :return: The ssl_enabled of this V1ScaleIOVolumeSource. - :rtype: bool - """ - return self._ssl_enabled - - @ssl_enabled.setter - def ssl_enabled(self, ssl_enabled): - """ - Sets the ssl_enabled of this V1ScaleIOVolumeSource. - Flag to enable/disable SSL communication with Gateway, default false - - :param ssl_enabled: The ssl_enabled of this V1ScaleIOVolumeSource. - :type: bool - """ - - self._ssl_enabled = ssl_enabled - - @property - def storage_mode(self): - """ - Gets the storage_mode of this V1ScaleIOVolumeSource. - Indicates whether the storage for a volume should be thick or thin (defaults to \"thin\"). - - :return: The storage_mode of this V1ScaleIOVolumeSource. - :rtype: str - """ - return self._storage_mode - - @storage_mode.setter - def storage_mode(self, storage_mode): - """ - Sets the storage_mode of this V1ScaleIOVolumeSource. - Indicates whether the storage for a volume should be thick or thin (defaults to \"thin\"). - - :param storage_mode: The storage_mode of this V1ScaleIOVolumeSource. - :type: str - """ - - self._storage_mode = storage_mode - - @property - def storage_pool(self): - """ - Gets the storage_pool of this V1ScaleIOVolumeSource. - The Storage Pool associated with the protection domain (defaults to \"default\"). - - :return: The storage_pool of this V1ScaleIOVolumeSource. - :rtype: str - """ - return self._storage_pool - - @storage_pool.setter - def storage_pool(self, storage_pool): - """ - Sets the storage_pool of this V1ScaleIOVolumeSource. - The Storage Pool associated with the protection domain (defaults to \"default\"). - - :param storage_pool: The storage_pool of this V1ScaleIOVolumeSource. - :type: str - """ - - self._storage_pool = storage_pool - - @property - def system(self): - """ - Gets the system of this V1ScaleIOVolumeSource. - The name of the storage system as configured in ScaleIO. - - :return: The system of this V1ScaleIOVolumeSource. - :rtype: str - """ - return self._system - - @system.setter - def system(self, system): - """ - Sets the system of this V1ScaleIOVolumeSource. - The name of the storage system as configured in ScaleIO. - - :param system: The system of this V1ScaleIOVolumeSource. - :type: str - """ - if system is None: - raise ValueError("Invalid value for `system`, must not be `None`") - - self._system = system - - @property - def volume_name(self): - """ - Gets the volume_name of this V1ScaleIOVolumeSource. - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - :return: The volume_name of this V1ScaleIOVolumeSource. - :rtype: str - """ - return self._volume_name - - @volume_name.setter - def volume_name(self, volume_name): - """ - Sets the volume_name of this V1ScaleIOVolumeSource. - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - :param volume_name: The volume_name of this V1ScaleIOVolumeSource. - :type: str - """ - - self._volume_name = volume_name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1ScaleIOVolumeSource): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_scale_spec.py b/kubernetes/client/models/v1_scale_spec.py index d4e0ff3c4e..27269df50e 100644 --- a/kubernetes/client/models/v1_scale_spec.py +++ b/kubernetes/client/models/v1_scale_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_scale_status.py b/kubernetes/client/models/v1_scale_status.py index 28c7f6116b..674c8c55f0 100644 --- a/kubernetes/client/models/v1_scale_status.py +++ b/kubernetes/client/models/v1_scale_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_scope_restriction.py b/kubernetes/client/models/v1_scope_restriction.py new file mode 100644 index 0000000000..fa32be336a --- /dev/null +++ b/kubernetes/client/models/v1_scope_restriction.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ScopeRestriction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, cluster_role=None, literals=None): + """ + V1ScopeRestriction - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'cluster_role': 'V1ClusterRoleScopeRestriction', + 'literals': 'list[str]' + } + + self.attribute_map = { + 'cluster_role': 'clusterRole', + 'literals': 'literals' + } + + self._cluster_role = cluster_role + self._literals = literals + + @property + def cluster_role(self): + """ + Gets the cluster_role of this V1ScopeRestriction. + ClusterRole describes a set of restrictions for cluster role scoping. + + :return: The cluster_role of this V1ScopeRestriction. + :rtype: V1ClusterRoleScopeRestriction + """ + return self._cluster_role + + @cluster_role.setter + def cluster_role(self, cluster_role): + """ + Sets the cluster_role of this V1ScopeRestriction. + ClusterRole describes a set of restrictions for cluster role scoping. + + :param cluster_role: The cluster_role of this V1ScopeRestriction. + :type: V1ClusterRoleScopeRestriction + """ + + self._cluster_role = cluster_role + + @property + def literals(self): + """ + Gets the literals of this V1ScopeRestriction. + ExactValues means the scope has to match a particular set of strings exactly + + :return: The literals of this V1ScopeRestriction. + :rtype: list[str] + """ + return self._literals + + @literals.setter + def literals(self, literals): + """ + Sets the literals of this V1ScopeRestriction. + ExactValues means the scope has to match a particular set of strings exactly + + :param literals: The literals of this V1ScopeRestriction. + :type: list[str] + """ + + self._literals = literals + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ScopeRestriction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_se_linux_context_strategy_options.py b/kubernetes/client/models/v1_se_linux_context_strategy_options.py new file mode 100644 index 0000000000..0185d9df80 --- /dev/null +++ b/kubernetes/client/models/v1_se_linux_context_strategy_options.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SELinuxContextStrategyOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, se_linux_options=None, type=None): + """ + V1SELinuxContextStrategyOptions - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'se_linux_options': 'V1SELinuxOptions', + 'type': 'str' + } + + self.attribute_map = { + 'se_linux_options': 'seLinuxOptions', + 'type': 'type' + } + + self._se_linux_options = se_linux_options + self._type = type + + @property + def se_linux_options(self): + """ + Gets the se_linux_options of this V1SELinuxContextStrategyOptions. + seLinuxOptions required to run as; required for MustRunAs + + :return: The se_linux_options of this V1SELinuxContextStrategyOptions. + :rtype: V1SELinuxOptions + """ + return self._se_linux_options + + @se_linux_options.setter + def se_linux_options(self, se_linux_options): + """ + Sets the se_linux_options of this V1SELinuxContextStrategyOptions. + seLinuxOptions required to run as; required for MustRunAs + + :param se_linux_options: The se_linux_options of this V1SELinuxContextStrategyOptions. + :type: V1SELinuxOptions + """ + + self._se_linux_options = se_linux_options + + @property + def type(self): + """ + Gets the type of this V1SELinuxContextStrategyOptions. + Type is the strategy that will dictate what SELinux context is used in the SecurityContext. + + :return: The type of this V1SELinuxContextStrategyOptions. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1SELinuxContextStrategyOptions. + Type is the strategy that will dictate what SELinux context is used in the SecurityContext. + + :param type: The type of this V1SELinuxContextStrategyOptions. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SELinuxContextStrategyOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_se_linux_options.py b/kubernetes/client/models/v1_se_linux_options.py index bb9c763ad0..a23be8a7f6 100644 --- a/kubernetes/client/models/v1_se_linux_options.py +++ b/kubernetes/client/models/v1_se_linux_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_secret.py b/kubernetes/client/models/v1_secret.py index 8771054075..e9f8d62741 100644 --- a/kubernetes/client/models/v1_secret.py +++ b/kubernetes/client/models/v1_secret.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_secret_build_source.py b/kubernetes/client/models/v1_secret_build_source.py new file mode 100644 index 0000000000..e55564977d --- /dev/null +++ b/kubernetes/client/models/v1_secret_build_source.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SecretBuildSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, destination_dir=None, secret=None): + """ + V1SecretBuildSource - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'destination_dir': 'str', + 'secret': 'V1LocalObjectReference' + } + + self.attribute_map = { + 'destination_dir': 'destinationDir', + 'secret': 'secret' + } + + self._destination_dir = destination_dir + self._secret = secret + + @property + def destination_dir(self): + """ + Gets the destination_dir of this V1SecretBuildSource. + destinationDir is the directory where the files from the secret should be available for the build time. For the Source build strategy, these will be injected into a container where the assemble script runs. Later, when the script finishes, all files injected will be truncated to zero length. For the Docker build strategy, these will be copied into the build directory, where the Dockerfile is located, so users can ADD or COPY them during docker build. + + :return: The destination_dir of this V1SecretBuildSource. + :rtype: str + """ + return self._destination_dir + + @destination_dir.setter + def destination_dir(self, destination_dir): + """ + Sets the destination_dir of this V1SecretBuildSource. + destinationDir is the directory where the files from the secret should be available for the build time. For the Source build strategy, these will be injected into a container where the assemble script runs. Later, when the script finishes, all files injected will be truncated to zero length. For the Docker build strategy, these will be copied into the build directory, where the Dockerfile is located, so users can ADD or COPY them during docker build. + + :param destination_dir: The destination_dir of this V1SecretBuildSource. + :type: str + """ + + self._destination_dir = destination_dir + + @property + def secret(self): + """ + Gets the secret of this V1SecretBuildSource. + secret is a reference to an existing secret that you want to use in your build. + + :return: The secret of this V1SecretBuildSource. + :rtype: V1LocalObjectReference + """ + return self._secret + + @secret.setter + def secret(self, secret): + """ + Sets the secret of this V1SecretBuildSource. + secret is a reference to an existing secret that you want to use in your build. + + :param secret: The secret of this V1SecretBuildSource. + :type: V1LocalObjectReference + """ + if secret is None: + raise ValueError("Invalid value for `secret`, must not be `None`") + + self._secret = secret + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SecretBuildSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_secret_env_source.py b/kubernetes/client/models/v1_secret_env_source.py deleted file mode 100644 index 7789f2d4f7..0000000000 --- a/kubernetes/client/models/v1_secret_env_source.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1SecretEnvSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, name=None, optional=None): - """ - V1SecretEnvSource - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'name': 'str', - 'optional': 'bool' - } - - self.attribute_map = { - 'name': 'name', - 'optional': 'optional' - } - - self._name = name - self._optional = optional - - @property - def name(self): - """ - Gets the name of this V1SecretEnvSource. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - - :return: The name of this V1SecretEnvSource. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1SecretEnvSource. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - - :param name: The name of this V1SecretEnvSource. - :type: str - """ - - self._name = name - - @property - def optional(self): - """ - Gets the optional of this V1SecretEnvSource. - Specify whether the Secret must be defined - - :return: The optional of this V1SecretEnvSource. - :rtype: bool - """ - return self._optional - - @optional.setter - def optional(self, optional): - """ - Sets the optional of this V1SecretEnvSource. - Specify whether the Secret must be defined - - :param optional: The optional of this V1SecretEnvSource. - :type: bool - """ - - self._optional = optional - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1SecretEnvSource): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_secret_key_selector.py b/kubernetes/client/models/v1_secret_key_selector.py index 0e40d2bb74..49aa454708 100644 --- a/kubernetes/client/models/v1_secret_key_selector.py +++ b/kubernetes/client/models/v1_secret_key_selector.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1SecretKeySelector(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, key=None, name=None, optional=None): + def __init__(self, key=None, name=None): """ V1SecretKeySelector - a model defined in Swagger @@ -32,19 +32,16 @@ def __init__(self, key=None, name=None, optional=None): """ self.swagger_types = { 'key': 'str', - 'name': 'str', - 'optional': 'bool' + 'name': 'str' } self.attribute_map = { 'key': 'key', - 'name': 'name', - 'optional': 'optional' + 'name': 'name' } self._key = key self._name = name - self._optional = optional @property def key(self): @@ -94,29 +91,6 @@ def name(self, name): self._name = name - @property - def optional(self): - """ - Gets the optional of this V1SecretKeySelector. - Specify whether the Secret or it's key must be defined - - :return: The optional of this V1SecretKeySelector. - :rtype: bool - """ - return self._optional - - @optional.setter - def optional(self, optional): - """ - Sets the optional of this V1SecretKeySelector. - Specify whether the Secret or it's key must be defined - - :param optional: The optional of this V1SecretKeySelector. - :type: bool - """ - - self._optional = optional - def to_dict(self): """ Returns the model properties as a dict diff --git a/kubernetes/client/models/v1_secret_list.py b/kubernetes/client/models/v1_secret_list.py index 4ea45bd37b..b7700dafb5 100644 --- a/kubernetes/client/models/v1_secret_list.py +++ b/kubernetes/client/models/v1_secret_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Secret]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1SecretList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1SecretList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_secret_projection.py b/kubernetes/client/models/v1_secret_projection.py deleted file mode 100644 index 45560f3dfb..0000000000 --- a/kubernetes/client/models/v1_secret_projection.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1SecretProjection(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, items=None, name=None, optional=None): - """ - V1SecretProjection - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'items': 'list[V1KeyToPath]', - 'name': 'str', - 'optional': 'bool' - } - - self.attribute_map = { - 'items': 'items', - 'name': 'name', - 'optional': 'optional' - } - - self._items = items - self._name = name - self._optional = optional - - @property - def items(self): - """ - Gets the items of this V1SecretProjection. - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - - :return: The items of this V1SecretProjection. - :rtype: list[V1KeyToPath] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1SecretProjection. - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - - :param items: The items of this V1SecretProjection. - :type: list[V1KeyToPath] - """ - - self._items = items - - @property - def name(self): - """ - Gets the name of this V1SecretProjection. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - - :return: The name of this V1SecretProjection. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1SecretProjection. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - - :param name: The name of this V1SecretProjection. - :type: str - """ - - self._name = name - - @property - def optional(self): - """ - Gets the optional of this V1SecretProjection. - Specify whether the Secret or its key must be defined - - :return: The optional of this V1SecretProjection. - :rtype: bool - """ - return self._optional - - @optional.setter - def optional(self, optional): - """ - Sets the optional of this V1SecretProjection. - Specify whether the Secret or its key must be defined - - :param optional: The optional of this V1SecretProjection. - :type: bool - """ - - self._optional = optional - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1SecretProjection): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_secret_spec.py b/kubernetes/client/models/v1_secret_spec.py new file mode 100644 index 0000000000..e2eaa40ea1 --- /dev/null +++ b/kubernetes/client/models/v1_secret_spec.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SecretSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, mount_path=None, secret_source=None): + """ + V1SecretSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'mount_path': 'str', + 'secret_source': 'V1LocalObjectReference' + } + + self.attribute_map = { + 'mount_path': 'mountPath', + 'secret_source': 'secretSource' + } + + self._mount_path = mount_path + self._secret_source = secret_source + + @property + def mount_path(self): + """ + Gets the mount_path of this V1SecretSpec. + mountPath is the path at which to mount the secret + + :return: The mount_path of this V1SecretSpec. + :rtype: str + """ + return self._mount_path + + @mount_path.setter + def mount_path(self, mount_path): + """ + Sets the mount_path of this V1SecretSpec. + mountPath is the path at which to mount the secret + + :param mount_path: The mount_path of this V1SecretSpec. + :type: str + """ + if mount_path is None: + raise ValueError("Invalid value for `mount_path`, must not be `None`") + + self._mount_path = mount_path + + @property + def secret_source(self): + """ + Gets the secret_source of this V1SecretSpec. + secretSource is a reference to the secret + + :return: The secret_source of this V1SecretSpec. + :rtype: V1LocalObjectReference + """ + return self._secret_source + + @secret_source.setter + def secret_source(self, secret_source): + """ + Sets the secret_source of this V1SecretSpec. + secretSource is a reference to the secret + + :param secret_source: The secret_source of this V1SecretSpec. + :type: V1LocalObjectReference + """ + if secret_source is None: + raise ValueError("Invalid value for `secret_source`, must not be `None`") + + self._secret_source = secret_source + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SecretSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_secret_volume_source.py b/kubernetes/client/models/v1_secret_volume_source.py index 3e689b75d6..e6ac9aa98b 100644 --- a/kubernetes/client/models/v1_secret_volume_source.py +++ b/kubernetes/client/models/v1_secret_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1SecretVolumeSource(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, default_mode=None, items=None, optional=None, secret_name=None): + def __init__(self, default_mode=None, items=None, secret_name=None): """ V1SecretVolumeSource - a model defined in Swagger @@ -33,20 +33,17 @@ def __init__(self, default_mode=None, items=None, optional=None, secret_name=Non self.swagger_types = { 'default_mode': 'int', 'items': 'list[V1KeyToPath]', - 'optional': 'bool', 'secret_name': 'str' } self.attribute_map = { 'default_mode': 'defaultMode', 'items': 'items', - 'optional': 'optional', 'secret_name': 'secretName' } self._default_mode = default_mode self._items = items - self._optional = optional self._secret_name = secret_name @property @@ -76,7 +73,7 @@ def default_mode(self, default_mode): def items(self): """ Gets the items of this V1SecretVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. :return: The items of this V1SecretVolumeSource. :rtype: list[V1KeyToPath] @@ -87,7 +84,7 @@ def items(self): def items(self, items): """ Sets the items of this V1SecretVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. :param items: The items of this V1SecretVolumeSource. :type: list[V1KeyToPath] @@ -95,29 +92,6 @@ def items(self, items): self._items = items - @property - def optional(self): - """ - Gets the optional of this V1SecretVolumeSource. - Specify whether the Secret or it's keys must be defined - - :return: The optional of this V1SecretVolumeSource. - :rtype: bool - """ - return self._optional - - @optional.setter - def optional(self, optional): - """ - Sets the optional of this V1SecretVolumeSource. - Specify whether the Secret or it's keys must be defined - - :param optional: The optional of this V1SecretVolumeSource. - :type: bool - """ - - self._optional = optional - @property def secret_name(self): """ diff --git a/kubernetes/client/models/v1_security_context.py b/kubernetes/client/models/v1_security_context.py index 2593bba938..f41ced372c 100644 --- a/kubernetes/client/models/v1_security_context.py +++ b/kubernetes/client/models/v1_security_context.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_security_context_constraints.py b/kubernetes/client/models/v1_security_context_constraints.py new file mode 100644 index 0000000000..301d6c557c --- /dev/null +++ b/kubernetes/client/models/v1_security_context_constraints.py @@ -0,0 +1,687 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SecurityContextConstraints(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, allow_host_dir_volume_plugin=None, allow_host_ipc=None, allow_host_network=None, allow_host_pid=None, allow_host_ports=None, allow_privileged_container=None, allowed_capabilities=None, api_version=None, default_add_capabilities=None, fs_group=None, groups=None, kind=None, metadata=None, priority=None, read_only_root_filesystem=None, required_drop_capabilities=None, run_as_user=None, se_linux_context=None, seccomp_profiles=None, supplemental_groups=None, users=None, volumes=None): + """ + V1SecurityContextConstraints - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'allow_host_dir_volume_plugin': 'bool', + 'allow_host_ipc': 'bool', + 'allow_host_network': 'bool', + 'allow_host_pid': 'bool', + 'allow_host_ports': 'bool', + 'allow_privileged_container': 'bool', + 'allowed_capabilities': 'list[str]', + 'api_version': 'str', + 'default_add_capabilities': 'list[str]', + 'fs_group': 'V1FSGroupStrategyOptions', + 'groups': 'list[str]', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'priority': 'int', + 'read_only_root_filesystem': 'bool', + 'required_drop_capabilities': 'list[str]', + 'run_as_user': 'V1RunAsUserStrategyOptions', + 'se_linux_context': 'V1SELinuxContextStrategyOptions', + 'seccomp_profiles': 'list[str]', + 'supplemental_groups': 'V1SupplementalGroupsStrategyOptions', + 'users': 'list[str]', + 'volumes': 'list[str]' + } + + self.attribute_map = { + 'allow_host_dir_volume_plugin': 'allowHostDirVolumePlugin', + 'allow_host_ipc': 'allowHostIPC', + 'allow_host_network': 'allowHostNetwork', + 'allow_host_pid': 'allowHostPID', + 'allow_host_ports': 'allowHostPorts', + 'allow_privileged_container': 'allowPrivilegedContainer', + 'allowed_capabilities': 'allowedCapabilities', + 'api_version': 'apiVersion', + 'default_add_capabilities': 'defaultAddCapabilities', + 'fs_group': 'fsGroup', + 'groups': 'groups', + 'kind': 'kind', + 'metadata': 'metadata', + 'priority': 'priority', + 'read_only_root_filesystem': 'readOnlyRootFilesystem', + 'required_drop_capabilities': 'requiredDropCapabilities', + 'run_as_user': 'runAsUser', + 'se_linux_context': 'seLinuxContext', + 'seccomp_profiles': 'seccompProfiles', + 'supplemental_groups': 'supplementalGroups', + 'users': 'users', + 'volumes': 'volumes' + } + + self._allow_host_dir_volume_plugin = allow_host_dir_volume_plugin + self._allow_host_ipc = allow_host_ipc + self._allow_host_network = allow_host_network + self._allow_host_pid = allow_host_pid + self._allow_host_ports = allow_host_ports + self._allow_privileged_container = allow_privileged_container + self._allowed_capabilities = allowed_capabilities + self._api_version = api_version + self._default_add_capabilities = default_add_capabilities + self._fs_group = fs_group + self._groups = groups + self._kind = kind + self._metadata = metadata + self._priority = priority + self._read_only_root_filesystem = read_only_root_filesystem + self._required_drop_capabilities = required_drop_capabilities + self._run_as_user = run_as_user + self._se_linux_context = se_linux_context + self._seccomp_profiles = seccomp_profiles + self._supplemental_groups = supplemental_groups + self._users = users + self._volumes = volumes + + @property + def allow_host_dir_volume_plugin(self): + """ + Gets the allow_host_dir_volume_plugin of this V1SecurityContextConstraints. + AllowHostDirVolumePlugin determines if the policy allow containers to use the HostDir volume plugin + + :return: The allow_host_dir_volume_plugin of this V1SecurityContextConstraints. + :rtype: bool + """ + return self._allow_host_dir_volume_plugin + + @allow_host_dir_volume_plugin.setter + def allow_host_dir_volume_plugin(self, allow_host_dir_volume_plugin): + """ + Sets the allow_host_dir_volume_plugin of this V1SecurityContextConstraints. + AllowHostDirVolumePlugin determines if the policy allow containers to use the HostDir volume plugin + + :param allow_host_dir_volume_plugin: The allow_host_dir_volume_plugin of this V1SecurityContextConstraints. + :type: bool + """ + if allow_host_dir_volume_plugin is None: + raise ValueError("Invalid value for `allow_host_dir_volume_plugin`, must not be `None`") + + self._allow_host_dir_volume_plugin = allow_host_dir_volume_plugin + + @property + def allow_host_ipc(self): + """ + Gets the allow_host_ipc of this V1SecurityContextConstraints. + AllowHostIPC determines if the policy allows host ipc in the containers. + + :return: The allow_host_ipc of this V1SecurityContextConstraints. + :rtype: bool + """ + return self._allow_host_ipc + + @allow_host_ipc.setter + def allow_host_ipc(self, allow_host_ipc): + """ + Sets the allow_host_ipc of this V1SecurityContextConstraints. + AllowHostIPC determines if the policy allows host ipc in the containers. + + :param allow_host_ipc: The allow_host_ipc of this V1SecurityContextConstraints. + :type: bool + """ + if allow_host_ipc is None: + raise ValueError("Invalid value for `allow_host_ipc`, must not be `None`") + + self._allow_host_ipc = allow_host_ipc + + @property + def allow_host_network(self): + """ + Gets the allow_host_network of this V1SecurityContextConstraints. + AllowHostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + + :return: The allow_host_network of this V1SecurityContextConstraints. + :rtype: bool + """ + return self._allow_host_network + + @allow_host_network.setter + def allow_host_network(self, allow_host_network): + """ + Sets the allow_host_network of this V1SecurityContextConstraints. + AllowHostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + + :param allow_host_network: The allow_host_network of this V1SecurityContextConstraints. + :type: bool + """ + if allow_host_network is None: + raise ValueError("Invalid value for `allow_host_network`, must not be `None`") + + self._allow_host_network = allow_host_network + + @property + def allow_host_pid(self): + """ + Gets the allow_host_pid of this V1SecurityContextConstraints. + AllowHostPID determines if the policy allows host pid in the containers. + + :return: The allow_host_pid of this V1SecurityContextConstraints. + :rtype: bool + """ + return self._allow_host_pid + + @allow_host_pid.setter + def allow_host_pid(self, allow_host_pid): + """ + Sets the allow_host_pid of this V1SecurityContextConstraints. + AllowHostPID determines if the policy allows host pid in the containers. + + :param allow_host_pid: The allow_host_pid of this V1SecurityContextConstraints. + :type: bool + """ + if allow_host_pid is None: + raise ValueError("Invalid value for `allow_host_pid`, must not be `None`") + + self._allow_host_pid = allow_host_pid + + @property + def allow_host_ports(self): + """ + Gets the allow_host_ports of this V1SecurityContextConstraints. + AllowHostPorts determines if the policy allows host ports in the containers. + + :return: The allow_host_ports of this V1SecurityContextConstraints. + :rtype: bool + """ + return self._allow_host_ports + + @allow_host_ports.setter + def allow_host_ports(self, allow_host_ports): + """ + Sets the allow_host_ports of this V1SecurityContextConstraints. + AllowHostPorts determines if the policy allows host ports in the containers. + + :param allow_host_ports: The allow_host_ports of this V1SecurityContextConstraints. + :type: bool + """ + if allow_host_ports is None: + raise ValueError("Invalid value for `allow_host_ports`, must not be `None`") + + self._allow_host_ports = allow_host_ports + + @property + def allow_privileged_container(self): + """ + Gets the allow_privileged_container of this V1SecurityContextConstraints. + AllowPrivilegedContainer determines if a container can request to be run as privileged. + + :return: The allow_privileged_container of this V1SecurityContextConstraints. + :rtype: bool + """ + return self._allow_privileged_container + + @allow_privileged_container.setter + def allow_privileged_container(self, allow_privileged_container): + """ + Sets the allow_privileged_container of this V1SecurityContextConstraints. + AllowPrivilegedContainer determines if a container can request to be run as privileged. + + :param allow_privileged_container: The allow_privileged_container of this V1SecurityContextConstraints. + :type: bool + """ + if allow_privileged_container is None: + raise ValueError("Invalid value for `allow_privileged_container`, must not be `None`") + + self._allow_privileged_container = allow_privileged_container + + @property + def allowed_capabilities(self): + """ + Gets the allowed_capabilities of this V1SecurityContextConstraints. + AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field maybe added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities. + + :return: The allowed_capabilities of this V1SecurityContextConstraints. + :rtype: list[str] + """ + return self._allowed_capabilities + + @allowed_capabilities.setter + def allowed_capabilities(self, allowed_capabilities): + """ + Sets the allowed_capabilities of this V1SecurityContextConstraints. + AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field maybe added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities. + + :param allowed_capabilities: The allowed_capabilities of this V1SecurityContextConstraints. + :type: list[str] + """ + if allowed_capabilities is None: + raise ValueError("Invalid value for `allowed_capabilities`, must not be `None`") + + self._allowed_capabilities = allowed_capabilities + + @property + def api_version(self): + """ + Gets the api_version of this V1SecurityContextConstraints. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1SecurityContextConstraints. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1SecurityContextConstraints. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1SecurityContextConstraints. + :type: str + """ + + self._api_version = api_version + + @property + def default_add_capabilities(self): + """ + Gets the default_add_capabilities of this V1SecurityContextConstraints. + DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities. + + :return: The default_add_capabilities of this V1SecurityContextConstraints. + :rtype: list[str] + """ + return self._default_add_capabilities + + @default_add_capabilities.setter + def default_add_capabilities(self, default_add_capabilities): + """ + Sets the default_add_capabilities of this V1SecurityContextConstraints. + DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities. + + :param default_add_capabilities: The default_add_capabilities of this V1SecurityContextConstraints. + :type: list[str] + """ + if default_add_capabilities is None: + raise ValueError("Invalid value for `default_add_capabilities`, must not be `None`") + + self._default_add_capabilities = default_add_capabilities + + @property + def fs_group(self): + """ + Gets the fs_group of this V1SecurityContextConstraints. + FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. + + :return: The fs_group of this V1SecurityContextConstraints. + :rtype: V1FSGroupStrategyOptions + """ + return self._fs_group + + @fs_group.setter + def fs_group(self, fs_group): + """ + Sets the fs_group of this V1SecurityContextConstraints. + FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. + + :param fs_group: The fs_group of this V1SecurityContextConstraints. + :type: V1FSGroupStrategyOptions + """ + + self._fs_group = fs_group + + @property + def groups(self): + """ + Gets the groups of this V1SecurityContextConstraints. + The groups that have permission to use this security context constraints + + :return: The groups of this V1SecurityContextConstraints. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1SecurityContextConstraints. + The groups that have permission to use this security context constraints + + :param groups: The groups of this V1SecurityContextConstraints. + :type: list[str] + """ + + self._groups = groups + + @property + def kind(self): + """ + Gets the kind of this V1SecurityContextConstraints. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1SecurityContextConstraints. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1SecurityContextConstraints. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1SecurityContextConstraints. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1SecurityContextConstraints. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1SecurityContextConstraints. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1SecurityContextConstraints. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1SecurityContextConstraints. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def priority(self): + """ + Gets the priority of this V1SecurityContextConstraints. + Priority influences the sort order of SCCs when evaluating which SCCs to try first for a given pod request based on access in the Users and Groups fields. The higher the int, the higher priority. If scores for multiple SCCs are equal they will be sorted by name. + + :return: The priority of this V1SecurityContextConstraints. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """ + Sets the priority of this V1SecurityContextConstraints. + Priority influences the sort order of SCCs when evaluating which SCCs to try first for a given pod request based on access in the Users and Groups fields. The higher the int, the higher priority. If scores for multiple SCCs are equal they will be sorted by name. + + :param priority: The priority of this V1SecurityContextConstraints. + :type: int + """ + if priority is None: + raise ValueError("Invalid value for `priority`, must not be `None`") + + self._priority = priority + + @property + def read_only_root_filesystem(self): + """ + Gets the read_only_root_filesystem of this V1SecurityContextConstraints. + ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the SCC should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + + :return: The read_only_root_filesystem of this V1SecurityContextConstraints. + :rtype: bool + """ + return self._read_only_root_filesystem + + @read_only_root_filesystem.setter + def read_only_root_filesystem(self, read_only_root_filesystem): + """ + Sets the read_only_root_filesystem of this V1SecurityContextConstraints. + ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the SCC should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + + :param read_only_root_filesystem: The read_only_root_filesystem of this V1SecurityContextConstraints. + :type: bool + """ + if read_only_root_filesystem is None: + raise ValueError("Invalid value for `read_only_root_filesystem`, must not be `None`") + + self._read_only_root_filesystem = read_only_root_filesystem + + @property + def required_drop_capabilities(self): + """ + Gets the required_drop_capabilities of this V1SecurityContextConstraints. + RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + + :return: The required_drop_capabilities of this V1SecurityContextConstraints. + :rtype: list[str] + """ + return self._required_drop_capabilities + + @required_drop_capabilities.setter + def required_drop_capabilities(self, required_drop_capabilities): + """ + Sets the required_drop_capabilities of this V1SecurityContextConstraints. + RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + + :param required_drop_capabilities: The required_drop_capabilities of this V1SecurityContextConstraints. + :type: list[str] + """ + if required_drop_capabilities is None: + raise ValueError("Invalid value for `required_drop_capabilities`, must not be `None`") + + self._required_drop_capabilities = required_drop_capabilities + + @property + def run_as_user(self): + """ + Gets the run_as_user of this V1SecurityContextConstraints. + RunAsUser is the strategy that will dictate what RunAsUser is used in the SecurityContext. + + :return: The run_as_user of this V1SecurityContextConstraints. + :rtype: V1RunAsUserStrategyOptions + """ + return self._run_as_user + + @run_as_user.setter + def run_as_user(self, run_as_user): + """ + Sets the run_as_user of this V1SecurityContextConstraints. + RunAsUser is the strategy that will dictate what RunAsUser is used in the SecurityContext. + + :param run_as_user: The run_as_user of this V1SecurityContextConstraints. + :type: V1RunAsUserStrategyOptions + """ + + self._run_as_user = run_as_user + + @property + def se_linux_context(self): + """ + Gets the se_linux_context of this V1SecurityContextConstraints. + SELinuxContext is the strategy that will dictate what labels will be set in the SecurityContext. + + :return: The se_linux_context of this V1SecurityContextConstraints. + :rtype: V1SELinuxContextStrategyOptions + """ + return self._se_linux_context + + @se_linux_context.setter + def se_linux_context(self, se_linux_context): + """ + Sets the se_linux_context of this V1SecurityContextConstraints. + SELinuxContext is the strategy that will dictate what labels will be set in the SecurityContext. + + :param se_linux_context: The se_linux_context of this V1SecurityContextConstraints. + :type: V1SELinuxContextStrategyOptions + """ + + self._se_linux_context = se_linux_context + + @property + def seccomp_profiles(self): + """ + Gets the seccomp_profiles of this V1SecurityContextConstraints. + SeccompProfiles lists the allowed profiles that may be set for the pod or container's seccomp annotations. An unset (nil) or empty value means that no profiles may be specifid by the pod or container. The wildcard '*' may be used to allow all profiles. When used to generate a value for a pod the first non-wildcard profile will be used as the default. + + :return: The seccomp_profiles of this V1SecurityContextConstraints. + :rtype: list[str] + """ + return self._seccomp_profiles + + @seccomp_profiles.setter + def seccomp_profiles(self, seccomp_profiles): + """ + Sets the seccomp_profiles of this V1SecurityContextConstraints. + SeccompProfiles lists the allowed profiles that may be set for the pod or container's seccomp annotations. An unset (nil) or empty value means that no profiles may be specifid by the pod or container. The wildcard '*' may be used to allow all profiles. When used to generate a value for a pod the first non-wildcard profile will be used as the default. + + :param seccomp_profiles: The seccomp_profiles of this V1SecurityContextConstraints. + :type: list[str] + """ + + self._seccomp_profiles = seccomp_profiles + + @property + def supplemental_groups(self): + """ + Gets the supplemental_groups of this V1SecurityContextConstraints. + SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + + :return: The supplemental_groups of this V1SecurityContextConstraints. + :rtype: V1SupplementalGroupsStrategyOptions + """ + return self._supplemental_groups + + @supplemental_groups.setter + def supplemental_groups(self, supplemental_groups): + """ + Sets the supplemental_groups of this V1SecurityContextConstraints. + SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + + :param supplemental_groups: The supplemental_groups of this V1SecurityContextConstraints. + :type: V1SupplementalGroupsStrategyOptions + """ + + self._supplemental_groups = supplemental_groups + + @property + def users(self): + """ + Gets the users of this V1SecurityContextConstraints. + The users who have permissions to use this security context constraints + + :return: The users of this V1SecurityContextConstraints. + :rtype: list[str] + """ + return self._users + + @users.setter + def users(self, users): + """ + Sets the users of this V1SecurityContextConstraints. + The users who have permissions to use this security context constraints + + :param users: The users of this V1SecurityContextConstraints. + :type: list[str] + """ + + self._users = users + + @property + def volumes(self): + """ + Gets the volumes of this V1SecurityContextConstraints. + Volumes is a white list of allowed volume plugins. FSType corresponds directly with the field names of a VolumeSource (azureFile, configMap, emptyDir). To allow all volumes you may use '*'. + + :return: The volumes of this V1SecurityContextConstraints. + :rtype: list[str] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + Sets the volumes of this V1SecurityContextConstraints. + Volumes is a white list of allowed volume plugins. FSType corresponds directly with the field names of a VolumeSource (azureFile, configMap, emptyDir). To allow all volumes you may use '*'. + + :param volumes: The volumes of this V1SecurityContextConstraints. + :type: list[str] + """ + if volumes is None: + raise ValueError("Invalid value for `volumes`, must not be `None`") + + self._volumes = volumes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SecurityContextConstraints): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_security_context_constraints_list.py b/kubernetes/client/models/v1_security_context_constraints_list.py new file mode 100644 index 0000000000..570a10fd30 --- /dev/null +++ b/kubernetes/client/models/v1_security_context_constraints_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SecurityContextConstraintsList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1SecurityContextConstraintsList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1SecurityContextConstraints]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1SecurityContextConstraintsList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1SecurityContextConstraintsList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1SecurityContextConstraintsList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1SecurityContextConstraintsList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1SecurityContextConstraintsList. + List of security context constraints. + + :return: The items of this V1SecurityContextConstraintsList. + :rtype: list[V1SecurityContextConstraints] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1SecurityContextConstraintsList. + List of security context constraints. + + :param items: The items of this V1SecurityContextConstraintsList. + :type: list[V1SecurityContextConstraints] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1SecurityContextConstraintsList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1SecurityContextConstraintsList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1SecurityContextConstraintsList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1SecurityContextConstraintsList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1SecurityContextConstraintsList. + More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1SecurityContextConstraintsList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1SecurityContextConstraintsList. + More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1SecurityContextConstraintsList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SecurityContextConstraintsList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_self_subject_access_review.py b/kubernetes/client/models/v1_self_subject_access_review.py deleted file mode 100644 index 0630343ae9..0000000000 --- a/kubernetes/client/models/v1_self_subject_access_review.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1SelfSubjectAccessReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1SelfSubjectAccessReview - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'V1SelfSubjectAccessReviewSpec', - 'status': 'V1SubjectAccessReviewStatus' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status - - @property - def api_version(self): - """ - Gets the api_version of this V1SelfSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1SelfSubjectAccessReview. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1SelfSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1SelfSubjectAccessReview. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1SelfSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1SelfSubjectAccessReview. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1SelfSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1SelfSubjectAccessReview. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1SelfSubjectAccessReview. - - :return: The metadata of this V1SelfSubjectAccessReview. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1SelfSubjectAccessReview. - - :param metadata: The metadata of this V1SelfSubjectAccessReview. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this V1SelfSubjectAccessReview. - Spec holds information about the request being evaluated. user and groups must be empty - - :return: The spec of this V1SelfSubjectAccessReview. - :rtype: V1SelfSubjectAccessReviewSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this V1SelfSubjectAccessReview. - Spec holds information about the request being evaluated. user and groups must be empty - - :param spec: The spec of this V1SelfSubjectAccessReview. - :type: V1SelfSubjectAccessReviewSpec - """ - if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this V1SelfSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not - - :return: The status of this V1SelfSubjectAccessReview. - :rtype: V1SubjectAccessReviewStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this V1SelfSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not - - :param status: The status of this V1SelfSubjectAccessReview. - :type: V1SubjectAccessReviewStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1SelfSubjectAccessReview): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_self_subject_access_review_spec.py b/kubernetes/client/models/v1_self_subject_access_review_spec.py deleted file mode 100644 index 07c47d91e8..0000000000 --- a/kubernetes/client/models/v1_self_subject_access_review_spec.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1SelfSubjectAccessReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, non_resource_attributes=None, resource_attributes=None): - """ - V1SelfSubjectAccessReviewSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'non_resource_attributes': 'V1NonResourceAttributes', - 'resource_attributes': 'V1ResourceAttributes' - } - - self.attribute_map = { - 'non_resource_attributes': 'nonResourceAttributes', - 'resource_attributes': 'resourceAttributes' - } - - self._non_resource_attributes = non_resource_attributes - self._resource_attributes = resource_attributes - - @property - def non_resource_attributes(self): - """ - Gets the non_resource_attributes of this V1SelfSubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request - - :return: The non_resource_attributes of this V1SelfSubjectAccessReviewSpec. - :rtype: V1NonResourceAttributes - """ - return self._non_resource_attributes - - @non_resource_attributes.setter - def non_resource_attributes(self, non_resource_attributes): - """ - Sets the non_resource_attributes of this V1SelfSubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request - - :param non_resource_attributes: The non_resource_attributes of this V1SelfSubjectAccessReviewSpec. - :type: V1NonResourceAttributes - """ - - self._non_resource_attributes = non_resource_attributes - - @property - def resource_attributes(self): - """ - Gets the resource_attributes of this V1SelfSubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request - - :return: The resource_attributes of this V1SelfSubjectAccessReviewSpec. - :rtype: V1ResourceAttributes - """ - return self._resource_attributes - - @resource_attributes.setter - def resource_attributes(self, resource_attributes): - """ - Sets the resource_attributes of this V1SelfSubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request - - :param resource_attributes: The resource_attributes of this V1SelfSubjectAccessReviewSpec. - :type: V1ResourceAttributes - """ - - self._resource_attributes = resource_attributes - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1SelfSubjectAccessReviewSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_self_subject_rules_review.py b/kubernetes/client/models/v1_self_subject_rules_review.py new file mode 100644 index 0000000000..02f10075a5 --- /dev/null +++ b/kubernetes/client/models/v1_self_subject_rules_review.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SelfSubjectRulesReview(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, spec=None, status=None): + """ + V1SelfSubjectRulesReview - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'spec': 'V1SelfSubjectRulesReviewSpec', + 'status': 'V1SubjectRulesReviewStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1SelfSubjectRulesReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1SelfSubjectRulesReview. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1SelfSubjectRulesReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1SelfSubjectRulesReview. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1SelfSubjectRulesReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1SelfSubjectRulesReview. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1SelfSubjectRulesReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1SelfSubjectRulesReview. + :type: str + """ + + self._kind = kind + + @property + def spec(self): + """ + Gets the spec of this V1SelfSubjectRulesReview. + Spec adds information about how to conduct the check + + :return: The spec of this V1SelfSubjectRulesReview. + :rtype: V1SelfSubjectRulesReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1SelfSubjectRulesReview. + Spec adds information about how to conduct the check + + :param spec: The spec of this V1SelfSubjectRulesReview. + :type: V1SelfSubjectRulesReviewSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1SelfSubjectRulesReview. + Status is completed by the server to tell which permissions you have + + :return: The status of this V1SelfSubjectRulesReview. + :rtype: V1SubjectRulesReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1SelfSubjectRulesReview. + Status is completed by the server to tell which permissions you have + + :param status: The status of this V1SelfSubjectRulesReview. + :type: V1SubjectRulesReviewStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SelfSubjectRulesReview): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_self_subject_rules_review_spec.py b/kubernetes/client/models/v1_self_subject_rules_review_spec.py new file mode 100644 index 0000000000..7321a36a0c --- /dev/null +++ b/kubernetes/client/models/v1_self_subject_rules_review_spec.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SelfSubjectRulesReviewSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, scopes=None): + """ + V1SelfSubjectRulesReviewSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'scopes': 'list[str]' + } + + self.attribute_map = { + 'scopes': 'scopes' + } + + self._scopes = scopes + + @property + def scopes(self): + """ + Gets the scopes of this V1SelfSubjectRulesReviewSpec. + Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". Nil means \"use the scopes on this request\". + + :return: The scopes of this V1SelfSubjectRulesReviewSpec. + :rtype: list[str] + """ + return self._scopes + + @scopes.setter + def scopes(self, scopes): + """ + Sets the scopes of this V1SelfSubjectRulesReviewSpec. + Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". Nil means \"use the scopes on this request\". + + :param scopes: The scopes of this V1SelfSubjectRulesReviewSpec. + :type: list[str] + """ + if scopes is None: + raise ValueError("Invalid value for `scopes`, must not be `None`") + + self._scopes = scopes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SelfSubjectRulesReviewSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_server_address_by_client_cidr.py b/kubernetes/client/models/v1_server_address_by_client_cidr.py deleted file mode 100644 index 625b3a7195..0000000000 --- a/kubernetes/client/models/v1_server_address_by_client_cidr.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1ServerAddressByClientCIDR(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, client_cidr=None, server_address=None): - """ - V1ServerAddressByClientCIDR - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'client_cidr': 'str', - 'server_address': 'str' - } - - self.attribute_map = { - 'client_cidr': 'clientCIDR', - 'server_address': 'serverAddress' - } - - self._client_cidr = client_cidr - self._server_address = server_address - - @property - def client_cidr(self): - """ - Gets the client_cidr of this V1ServerAddressByClientCIDR. - The CIDR with which clients can match their IP to figure out the server address that they should use. - - :return: The client_cidr of this V1ServerAddressByClientCIDR. - :rtype: str - """ - return self._client_cidr - - @client_cidr.setter - def client_cidr(self, client_cidr): - """ - Sets the client_cidr of this V1ServerAddressByClientCIDR. - The CIDR with which clients can match their IP to figure out the server address that they should use. - - :param client_cidr: The client_cidr of this V1ServerAddressByClientCIDR. - :type: str - """ - if client_cidr is None: - raise ValueError("Invalid value for `client_cidr`, must not be `None`") - - self._client_cidr = client_cidr - - @property - def server_address(self): - """ - Gets the server_address of this V1ServerAddressByClientCIDR. - Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. - - :return: The server_address of this V1ServerAddressByClientCIDR. - :rtype: str - """ - return self._server_address - - @server_address.setter - def server_address(self, server_address): - """ - Sets the server_address of this V1ServerAddressByClientCIDR. - Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. - - :param server_address: The server_address of this V1ServerAddressByClientCIDR. - :type: str - """ - if server_address is None: - raise ValueError("Invalid value for `server_address`, must not be `None`") - - self._server_address = server_address - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1ServerAddressByClientCIDR): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_service.py b/kubernetes/client/models/v1_service.py index 85be73ce17..339143151f 100644 --- a/kubernetes/client/models/v1_service.py +++ b/kubernetes/client/models/v1_service.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_service_account.py b/kubernetes/client/models/v1_service_account.py index c0ca3f831c..009f5edeb3 100644 --- a/kubernetes/client/models/v1_service_account.py +++ b/kubernetes/client/models/v1_service_account.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1ServiceAccount(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None): + def __init__(self, api_version=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None): """ V1ServiceAccount - a model defined in Swagger @@ -32,7 +32,6 @@ def __init__(self, api_version=None, automount_service_account_token=None, image """ self.swagger_types = { 'api_version': 'str', - 'automount_service_account_token': 'bool', 'image_pull_secrets': 'list[V1LocalObjectReference]', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -41,7 +40,6 @@ def __init__(self, api_version=None, automount_service_account_token=None, image self.attribute_map = { 'api_version': 'apiVersion', - 'automount_service_account_token': 'automountServiceAccountToken', 'image_pull_secrets': 'imagePullSecrets', 'kind': 'kind', 'metadata': 'metadata', @@ -49,7 +47,6 @@ def __init__(self, api_version=None, automount_service_account_token=None, image } self._api_version = api_version - self._automount_service_account_token = automount_service_account_token self._image_pull_secrets = image_pull_secrets self._kind = kind self._metadata = metadata @@ -78,29 +75,6 @@ def api_version(self, api_version): self._api_version = api_version - @property - def automount_service_account_token(self): - """ - Gets the automount_service_account_token of this V1ServiceAccount. - AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. - - :return: The automount_service_account_token of this V1ServiceAccount. - :rtype: bool - """ - return self._automount_service_account_token - - @automount_service_account_token.setter - def automount_service_account_token(self, automount_service_account_token): - """ - Sets the automount_service_account_token of this V1ServiceAccount. - AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. - - :param automount_service_account_token: The automount_service_account_token of this V1ServiceAccount. - :type: bool - """ - - self._automount_service_account_token = automount_service_account_token - @property def image_pull_secrets(self): """ diff --git a/kubernetes/client/models/v1_service_account_list.py b/kubernetes/client/models/v1_service_account_list.py index c08ba287bf..227efa8216 100644 --- a/kubernetes/client/models/v1_service_account_list.py +++ b/kubernetes/client/models/v1_service_account_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1ServiceAccount]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ServiceAccountList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ServiceAccountList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_service_account_pod_security_policy_review_status.py b/kubernetes/client/models/v1_service_account_pod_security_policy_review_status.py new file mode 100644 index 0000000000..afeaf16ddc --- /dev/null +++ b/kubernetes/client/models/v1_service_account_pod_security_policy_review_status.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ServiceAccountPodSecurityPolicyReviewStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, allowed_by=None, name=None, reason=None, template=None): + """ + V1ServiceAccountPodSecurityPolicyReviewStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'allowed_by': 'V1ObjectReference', + 'name': 'str', + 'reason': 'str', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'allowed_by': 'allowedBy', + 'name': 'name', + 'reason': 'reason', + 'template': 'template' + } + + self._allowed_by = allowed_by + self._name = name + self._reason = reason + self._template = template + + @property + def allowed_by(self): + """ + Gets the allowed_by of this V1ServiceAccountPodSecurityPolicyReviewStatus. + allowedBy is a reference to the rule that allows the PodTemplateSpec. A rule can be a SecurityContextConstraint or a PodSecurityPolicy A `nil`, indicates that it was denied. + + :return: The allowed_by of this V1ServiceAccountPodSecurityPolicyReviewStatus. + :rtype: V1ObjectReference + """ + return self._allowed_by + + @allowed_by.setter + def allowed_by(self, allowed_by): + """ + Sets the allowed_by of this V1ServiceAccountPodSecurityPolicyReviewStatus. + allowedBy is a reference to the rule that allows the PodTemplateSpec. A rule can be a SecurityContextConstraint or a PodSecurityPolicy A `nil`, indicates that it was denied. + + :param allowed_by: The allowed_by of this V1ServiceAccountPodSecurityPolicyReviewStatus. + :type: V1ObjectReference + """ + + self._allowed_by = allowed_by + + @property + def name(self): + """ + Gets the name of this V1ServiceAccountPodSecurityPolicyReviewStatus. + name contains the allowed and the denied ServiceAccount name + + :return: The name of this V1ServiceAccountPodSecurityPolicyReviewStatus. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ServiceAccountPodSecurityPolicyReviewStatus. + name contains the allowed and the denied ServiceAccount name + + :param name: The name of this V1ServiceAccountPodSecurityPolicyReviewStatus. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def reason(self): + """ + Gets the reason of this V1ServiceAccountPodSecurityPolicyReviewStatus. + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. + + :return: The reason of this V1ServiceAccountPodSecurityPolicyReviewStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1ServiceAccountPodSecurityPolicyReviewStatus. + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. + + :param reason: The reason of this V1ServiceAccountPodSecurityPolicyReviewStatus. + :type: str + """ + + self._reason = reason + + @property + def template(self): + """ + Gets the template of this V1ServiceAccountPodSecurityPolicyReviewStatus. + template is the PodTemplateSpec after the defaulting is applied. + + :return: The template of this V1ServiceAccountPodSecurityPolicyReviewStatus. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1ServiceAccountPodSecurityPolicyReviewStatus. + template is the PodTemplateSpec after the defaulting is applied. + + :param template: The template of this V1ServiceAccountPodSecurityPolicyReviewStatus. + :type: V1PodTemplateSpec + """ + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ServiceAccountPodSecurityPolicyReviewStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_service_account_reference.py b/kubernetes/client/models/v1_service_account_reference.py new file mode 100644 index 0000000000..7767a0cb48 --- /dev/null +++ b/kubernetes/client/models/v1_service_account_reference.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ServiceAccountReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, namespace=None): + """ + V1ServiceAccountReference - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'namespace': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'namespace': 'namespace' + } + + self._name = name + self._namespace = namespace + + @property + def name(self): + """ + Gets the name of this V1ServiceAccountReference. + Name is the name of the service account. + + :return: The name of this V1ServiceAccountReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ServiceAccountReference. + Name is the name of the service account. + + :param name: The name of this V1ServiceAccountReference. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def namespace(self): + """ + Gets the namespace of this V1ServiceAccountReference. + Namespace is the namespace of the service account. Service accounts from inside the whitelisted namespaces are allowed to be bound to roles. If Namespace is empty, then the namespace of the RoleBindingRestriction in which the ServiceAccountReference is embedded is used. + + :return: The namespace of this V1ServiceAccountReference. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1ServiceAccountReference. + Namespace is the namespace of the service account. Service accounts from inside the whitelisted namespaces are allowed to be bound to roles. If Namespace is empty, then the namespace of the RoleBindingRestriction in which the ServiceAccountReference is embedded is used. + + :param namespace: The namespace of this V1ServiceAccountReference. + :type: str + """ + if namespace is None: + raise ValueError("Invalid value for `namespace`, must not be `None`") + + self._namespace = namespace + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ServiceAccountReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_service_account_restriction.py b/kubernetes/client/models/v1_service_account_restriction.py new file mode 100644 index 0000000000..481cb98cac --- /dev/null +++ b/kubernetes/client/models/v1_service_account_restriction.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ServiceAccountRestriction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, namespaces=None, serviceaccounts=None): + """ + V1ServiceAccountRestriction - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'namespaces': 'list[str]', + 'serviceaccounts': 'list[V1ServiceAccountReference]' + } + + self.attribute_map = { + 'namespaces': 'namespaces', + 'serviceaccounts': 'serviceaccounts' + } + + self._namespaces = namespaces + self._serviceaccounts = serviceaccounts + + @property + def namespaces(self): + """ + Gets the namespaces of this V1ServiceAccountRestriction. + Namespaces specifies a list of literal namespace names. + + :return: The namespaces of this V1ServiceAccountRestriction. + :rtype: list[str] + """ + return self._namespaces + + @namespaces.setter + def namespaces(self, namespaces): + """ + Sets the namespaces of this V1ServiceAccountRestriction. + Namespaces specifies a list of literal namespace names. + + :param namespaces: The namespaces of this V1ServiceAccountRestriction. + :type: list[str] + """ + if namespaces is None: + raise ValueError("Invalid value for `namespaces`, must not be `None`") + + self._namespaces = namespaces + + @property + def serviceaccounts(self): + """ + Gets the serviceaccounts of this V1ServiceAccountRestriction. + ServiceAccounts specifies a list of literal service-account names. + + :return: The serviceaccounts of this V1ServiceAccountRestriction. + :rtype: list[V1ServiceAccountReference] + """ + return self._serviceaccounts + + @serviceaccounts.setter + def serviceaccounts(self, serviceaccounts): + """ + Sets the serviceaccounts of this V1ServiceAccountRestriction. + ServiceAccounts specifies a list of literal service-account names. + + :param serviceaccounts: The serviceaccounts of this V1ServiceAccountRestriction. + :type: list[V1ServiceAccountReference] + """ + if serviceaccounts is None: + raise ValueError("Invalid value for `serviceaccounts`, must not be `None`") + + self._serviceaccounts = serviceaccounts + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1ServiceAccountRestriction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_service_list.py b/kubernetes/client/models/v1_service_list.py index 61e2586037..3e2306284c 100644 --- a/kubernetes/client/models/v1_service_list.py +++ b/kubernetes/client/models/v1_service_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Service]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ServiceList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ServiceList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_service_port.py b/kubernetes/client/models/v1_service_port.py index 4b221c9bb1..1a134bf0a8 100644 --- a/kubernetes/client/models/v1_service_port.py +++ b/kubernetes/client/models/v1_service_port.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_service_spec.py b/kubernetes/client/models/v1_service_spec.py index 04b1b181ee..24bd6184e7 100644 --- a/kubernetes/client/models/v1_service_spec.py +++ b/kubernetes/client/models/v1_service_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -225,6 +225,8 @@ def ports(self, ports): :param ports: The ports of this V1ServiceSpec. :type: list[V1ServicePort] """ + if ports is None: + raise ValueError("Invalid value for `ports`, must not be `None`") self._ports = ports diff --git a/kubernetes/client/models/v1_service_status.py b/kubernetes/client/models/v1_service_status.py index 3728191522..4f0c1b32f7 100644 --- a/kubernetes/client/models/v1_service_status.py +++ b/kubernetes/client/models/v1_service_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_signature_condition.py b/kubernetes/client/models/v1_signature_condition.py new file mode 100644 index 0000000000..109f113178 --- /dev/null +++ b/kubernetes/client/models/v1_signature_condition.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SignatureCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): + """ + V1SignatureCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_probe_time': 'datetime', + 'last_transition_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_probe_time': 'lastProbeTime', + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_probe_time = last_probe_time + self._last_transition_time = last_transition_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + @property + def last_probe_time(self): + """ + Gets the last_probe_time of this V1SignatureCondition. + Last time the condition was checked. + + :return: The last_probe_time of this V1SignatureCondition. + :rtype: datetime + """ + return self._last_probe_time + + @last_probe_time.setter + def last_probe_time(self, last_probe_time): + """ + Sets the last_probe_time of this V1SignatureCondition. + Last time the condition was checked. + + :param last_probe_time: The last_probe_time of this V1SignatureCondition. + :type: datetime + """ + + self._last_probe_time = last_probe_time + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1SignatureCondition. + Last time the condition transit from one status to another. + + :return: The last_transition_time of this V1SignatureCondition. + :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 V1SignatureCondition. + Last time the condition transit from one status to another. + + :param last_transition_time: The last_transition_time of this V1SignatureCondition. + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """ + Gets the message of this V1SignatureCondition. + Human readable message indicating details about last transition. + + :return: The message of this V1SignatureCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1SignatureCondition. + Human readable message indicating details about last transition. + + :param message: The message of this V1SignatureCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1SignatureCondition. + (brief) reason for the condition's last transition. + + :return: The reason of this V1SignatureCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1SignatureCondition. + (brief) reason for the condition's last transition. + + :param reason: The reason of this V1SignatureCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1SignatureCondition. + Status of the condition, one of True, False, Unknown. + + :return: The status of this V1SignatureCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1SignatureCondition. + Status of the condition, one of True, False, Unknown. + + :param status: The status of this V1SignatureCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1SignatureCondition. + Type of signature condition, Complete or Failed. + + :return: The type of this V1SignatureCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1SignatureCondition. + Type of signature condition, Complete or Failed. + + :param type: The type of this V1SignatureCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SignatureCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_signature_issuer.py b/kubernetes/client/models/v1_signature_issuer.py new file mode 100644 index 0000000000..b007205185 --- /dev/null +++ b/kubernetes/client/models/v1_signature_issuer.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SignatureIssuer(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, common_name=None, organization=None): + """ + V1SignatureIssuer - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'common_name': 'str', + 'organization': 'str' + } + + self.attribute_map = { + 'common_name': 'commonName', + 'organization': 'organization' + } + + self._common_name = common_name + self._organization = organization + + @property + def common_name(self): + """ + Gets the common_name of this V1SignatureIssuer. + Common name (e.g. openshift-signing-service). + + :return: The common_name of this V1SignatureIssuer. + :rtype: str + """ + return self._common_name + + @common_name.setter + def common_name(self, common_name): + """ + Sets the common_name of this V1SignatureIssuer. + Common name (e.g. openshift-signing-service). + + :param common_name: The common_name of this V1SignatureIssuer. + :type: str + """ + + self._common_name = common_name + + @property + def organization(self): + """ + Gets the organization of this V1SignatureIssuer. + Organization name. + + :return: The organization of this V1SignatureIssuer. + :rtype: str + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this V1SignatureIssuer. + Organization name. + + :param organization: The organization of this V1SignatureIssuer. + :type: str + """ + + self._organization = organization + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SignatureIssuer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_signature_subject.py b/kubernetes/client/models/v1_signature_subject.py new file mode 100644 index 0000000000..7b3bbb967a --- /dev/null +++ b/kubernetes/client/models/v1_signature_subject.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SignatureSubject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, common_name=None, organization=None, public_key_id=None): + """ + V1SignatureSubject - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'common_name': 'str', + 'organization': 'str', + 'public_key_id': 'str' + } + + self.attribute_map = { + 'common_name': 'commonName', + 'organization': 'organization', + 'public_key_id': 'publicKeyID' + } + + self._common_name = common_name + self._organization = organization + self._public_key_id = public_key_id + + @property + def common_name(self): + """ + Gets the common_name of this V1SignatureSubject. + Common name (e.g. openshift-signing-service). + + :return: The common_name of this V1SignatureSubject. + :rtype: str + """ + return self._common_name + + @common_name.setter + def common_name(self, common_name): + """ + Sets the common_name of this V1SignatureSubject. + Common name (e.g. openshift-signing-service). + + :param common_name: The common_name of this V1SignatureSubject. + :type: str + """ + + self._common_name = common_name + + @property + def organization(self): + """ + Gets the organization of this V1SignatureSubject. + Organization name. + + :return: The organization of this V1SignatureSubject. + :rtype: str + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this V1SignatureSubject. + Organization name. + + :param organization: The organization of this V1SignatureSubject. + :type: str + """ + + self._organization = organization + + @property + def public_key_id(self): + """ + Gets the public_key_id of this V1SignatureSubject. + If present, it is a human readable key id of public key belonging to the subject used to verify image signature. It should contain at least 64 lowest bits of public key's fingerprint (e.g. 0x685ebe62bf278440). + + :return: The public_key_id of this V1SignatureSubject. + :rtype: str + """ + return self._public_key_id + + @public_key_id.setter + def public_key_id(self, public_key_id): + """ + Sets the public_key_id of this V1SignatureSubject. + If present, it is a human readable key id of public key belonging to the subject used to verify image signature. It should contain at least 64 lowest bits of public key's fingerprint (e.g. 0x685ebe62bf278440). + + :param public_key_id: The public_key_id of this V1SignatureSubject. + :type: str + """ + if public_key_id is None: + raise ValueError("Invalid value for `public_key_id`, must not be `None`") + + self._public_key_id = public_key_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SignatureSubject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_source_build_strategy.py b/kubernetes/client/models/v1_source_build_strategy.py new file mode 100644 index 0000000000..5051de1f63 --- /dev/null +++ b/kubernetes/client/models/v1_source_build_strategy.py @@ -0,0 +1,301 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SourceBuildStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, env=None, force_pull=None, _from=None, incremental=None, pull_secret=None, runtime_artifacts=None, runtime_image=None, scripts=None): + """ + V1SourceBuildStrategy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'env': 'list[V1EnvVar]', + 'force_pull': 'bool', + '_from': 'V1ObjectReference', + 'incremental': 'bool', + 'pull_secret': 'V1LocalObjectReference', + 'runtime_artifacts': 'list[V1ImageSourcePath]', + 'runtime_image': 'V1ObjectReference', + 'scripts': 'str' + } + + self.attribute_map = { + 'env': 'env', + 'force_pull': 'forcePull', + '_from': 'from', + 'incremental': 'incremental', + 'pull_secret': 'pullSecret', + 'runtime_artifacts': 'runtimeArtifacts', + 'runtime_image': 'runtimeImage', + 'scripts': 'scripts' + } + + self._env = env + self._force_pull = force_pull + self.__from = _from + self._incremental = incremental + self._pull_secret = pull_secret + self._runtime_artifacts = runtime_artifacts + self._runtime_image = runtime_image + self._scripts = scripts + + @property + def env(self): + """ + Gets the env of this V1SourceBuildStrategy. + env contains additional environment variables you want to pass into a builder container + + :return: The env of this V1SourceBuildStrategy. + :rtype: list[V1EnvVar] + """ + return self._env + + @env.setter + def env(self, env): + """ + Sets the env of this V1SourceBuildStrategy. + env contains additional environment variables you want to pass into a builder container + + :param env: The env of this V1SourceBuildStrategy. + :type: list[V1EnvVar] + """ + + self._env = env + + @property + def force_pull(self): + """ + Gets the force_pull of this V1SourceBuildStrategy. + forcePull describes if the builder should pull the images from registry prior to building. + + :return: The force_pull of this V1SourceBuildStrategy. + :rtype: bool + """ + return self._force_pull + + @force_pull.setter + def force_pull(self, force_pull): + """ + Sets the force_pull of this V1SourceBuildStrategy. + forcePull describes if the builder should pull the images from registry prior to building. + + :param force_pull: The force_pull of this V1SourceBuildStrategy. + :type: bool + """ + + self._force_pull = force_pull + + @property + def _from(self): + """ + Gets the _from of this V1SourceBuildStrategy. + from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the docker image should be pulled + + :return: The _from of this V1SourceBuildStrategy. + :rtype: V1ObjectReference + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1SourceBuildStrategy. + from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the docker image should be pulled + + :param _from: The _from of this V1SourceBuildStrategy. + :type: V1ObjectReference + """ + if _from is None: + raise ValueError("Invalid value for `_from`, must not be `None`") + + self.__from = _from + + @property + def incremental(self): + """ + Gets the incremental of this V1SourceBuildStrategy. + incremental flag forces the Source build to do incremental builds if true. + + :return: The incremental of this V1SourceBuildStrategy. + :rtype: bool + """ + return self._incremental + + @incremental.setter + def incremental(self, incremental): + """ + Sets the incremental of this V1SourceBuildStrategy. + incremental flag forces the Source build to do incremental builds if true. + + :param incremental: The incremental of this V1SourceBuildStrategy. + :type: bool + """ + + self._incremental = incremental + + @property + def pull_secret(self): + """ + Gets the pull_secret of this V1SourceBuildStrategy. + pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the Docker images from the private Docker registries + + :return: The pull_secret of this V1SourceBuildStrategy. + :rtype: V1LocalObjectReference + """ + return self._pull_secret + + @pull_secret.setter + def pull_secret(self, pull_secret): + """ + Sets the pull_secret of this V1SourceBuildStrategy. + pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the Docker images from the private Docker registries + + :param pull_secret: The pull_secret of this V1SourceBuildStrategy. + :type: V1LocalObjectReference + """ + + self._pull_secret = pull_secret + + @property + def runtime_artifacts(self): + """ + Gets the runtime_artifacts of this V1SourceBuildStrategy. + runtimeArtifacts specifies a list of source/destination pairs that will be copied from the builder to the runtime image. sourcePath can be a file or directory. destinationDir must be a directory. destinationDir can also be empty or equal to \".\", in this case it just refers to the root of WORKDIR. This field and the feature it enables are in tech preview. + + :return: The runtime_artifacts of this V1SourceBuildStrategy. + :rtype: list[V1ImageSourcePath] + """ + return self._runtime_artifacts + + @runtime_artifacts.setter + def runtime_artifacts(self, runtime_artifacts): + """ + Sets the runtime_artifacts of this V1SourceBuildStrategy. + runtimeArtifacts specifies a list of source/destination pairs that will be copied from the builder to the runtime image. sourcePath can be a file or directory. destinationDir must be a directory. destinationDir can also be empty or equal to \".\", in this case it just refers to the root of WORKDIR. This field and the feature it enables are in tech preview. + + :param runtime_artifacts: The runtime_artifacts of this V1SourceBuildStrategy. + :type: list[V1ImageSourcePath] + """ + + self._runtime_artifacts = runtime_artifacts + + @property + def runtime_image(self): + """ + Gets the runtime_image of this V1SourceBuildStrategy. + runtimeImage is an optional image that is used to run an application without unneeded dependencies installed. The building of the application is still done in the builder image but, post build, you can copy the needed artifacts in the runtime image for use. This field and the feature it enables are in tech preview. + + :return: The runtime_image of this V1SourceBuildStrategy. + :rtype: V1ObjectReference + """ + return self._runtime_image + + @runtime_image.setter + def runtime_image(self, runtime_image): + """ + Sets the runtime_image of this V1SourceBuildStrategy. + runtimeImage is an optional image that is used to run an application without unneeded dependencies installed. The building of the application is still done in the builder image but, post build, you can copy the needed artifacts in the runtime image for use. This field and the feature it enables are in tech preview. + + :param runtime_image: The runtime_image of this V1SourceBuildStrategy. + :type: V1ObjectReference + """ + + self._runtime_image = runtime_image + + @property + def scripts(self): + """ + Gets the scripts of this V1SourceBuildStrategy. + scripts is the location of Source scripts + + :return: The scripts of this V1SourceBuildStrategy. + :rtype: str + """ + return self._scripts + + @scripts.setter + def scripts(self, scripts): + """ + Sets the scripts of this V1SourceBuildStrategy. + scripts is the location of Source scripts + + :param scripts: The scripts of this V1SourceBuildStrategy. + :type: str + """ + + self._scripts = scripts + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SourceBuildStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_source_control_user.py b/kubernetes/client/models/v1_source_control_user.py new file mode 100644 index 0000000000..fa353dadea --- /dev/null +++ b/kubernetes/client/models/v1_source_control_user.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SourceControlUser(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, email=None, name=None): + """ + V1SourceControlUser - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'email': 'str', + 'name': 'str' + } + + self.attribute_map = { + 'email': 'email', + 'name': 'name' + } + + self._email = email + self._name = name + + @property + def email(self): + """ + Gets the email of this V1SourceControlUser. + email of the source control user + + :return: The email of this V1SourceControlUser. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this V1SourceControlUser. + email of the source control user + + :param email: The email of this V1SourceControlUser. + :type: str + """ + + self._email = email + + @property + def name(self): + """ + Gets the name of this V1SourceControlUser. + name of the source control user + + :return: The name of this V1SourceControlUser. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1SourceControlUser. + name of the source control user + + :param name: The name of this V1SourceControlUser. + :type: str + """ + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SourceControlUser): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_source_revision.py b/kubernetes/client/models/v1_source_revision.py new file mode 100644 index 0000000000..0c66819413 --- /dev/null +++ b/kubernetes/client/models/v1_source_revision.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SourceRevision(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, git=None, type=None): + """ + V1SourceRevision - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'git': 'V1GitSourceRevision', + 'type': 'str' + } + + self.attribute_map = { + 'git': 'git', + 'type': 'type' + } + + self._git = git + self._type = type + + @property + def git(self): + """ + Gets the git of this V1SourceRevision. + Git contains information about git-based build source + + :return: The git of this V1SourceRevision. + :rtype: V1GitSourceRevision + """ + return self._git + + @git.setter + def git(self, git): + """ + Sets the git of this V1SourceRevision. + Git contains information about git-based build source + + :param git: The git of this V1SourceRevision. + :type: V1GitSourceRevision + """ + + self._git = git + + @property + def type(self): + """ + Gets the type of this V1SourceRevision. + type of the build source, may be one of 'Source', 'Dockerfile', 'Binary', or 'Images' + + :return: The type of this V1SourceRevision. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1SourceRevision. + type of the build source, may be one of 'Source', 'Dockerfile', 'Binary', or 'Images' + + :param type: The type of this V1SourceRevision. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SourceRevision): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_status.py b/kubernetes/client/models/v1_status.py deleted file mode 100644 index ad8ef919c1..0000000000 --- a/kubernetes/client/models/v1_status.py +++ /dev/null @@ -1,299 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1Status(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, code=None, details=None, kind=None, message=None, metadata=None, reason=None, status=None): - """ - V1Status - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'code': 'int', - 'details': 'V1StatusDetails', - 'kind': 'str', - 'message': 'str', - 'metadata': 'V1ListMeta', - 'reason': 'str', - 'status': 'str' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'code': 'code', - 'details': 'details', - 'kind': 'kind', - 'message': 'message', - 'metadata': 'metadata', - 'reason': 'reason', - 'status': 'status' - } - - self._api_version = api_version - self._code = code - self._details = details - self._kind = kind - self._message = message - self._metadata = metadata - self._reason = reason - self._status = status - - @property - def api_version(self): - """ - Gets the api_version of this V1Status. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1Status. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1Status. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1Status. - :type: str - """ - - self._api_version = api_version - - @property - def code(self): - """ - Gets the code of this V1Status. - Suggested HTTP return code for this status, 0 if not set. - - :return: The code of this V1Status. - :rtype: int - """ - return self._code - - @code.setter - def code(self, code): - """ - Sets the code of this V1Status. - Suggested HTTP return code for this status, 0 if not set. - - :param code: The code of this V1Status. - :type: int - """ - - self._code = code - - @property - def details(self): - """ - Gets the details of this V1Status. - Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. - - :return: The details of this V1Status. - :rtype: V1StatusDetails - """ - return self._details - - @details.setter - def details(self, details): - """ - Sets the details of this V1Status. - Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. - - :param details: The details of this V1Status. - :type: V1StatusDetails - """ - - self._details = details - - @property - def kind(self): - """ - Gets the kind of this V1Status. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1Status. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1Status. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1Status. - :type: str - """ - - self._kind = kind - - @property - def message(self): - """ - Gets the message of this V1Status. - A human-readable description of the status of this operation. - - :return: The message of this V1Status. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this V1Status. - A human-readable description of the status of this operation. - - :param message: The message of this V1Status. - :type: str - """ - - self._message = message - - @property - def metadata(self): - """ - Gets the metadata of this V1Status. - Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The metadata of this V1Status. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1Status. - Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param metadata: The metadata of this V1Status. - :type: V1ListMeta - """ - - self._metadata = metadata - - @property - def reason(self): - """ - Gets the reason of this V1Status. - A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. - - :return: The reason of this V1Status. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this V1Status. - A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. - - :param reason: The reason of this V1Status. - :type: str - """ - - self._reason = reason - - @property - def status(self): - """ - Gets the status of this V1Status. - Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - - :return: The status of this V1Status. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this V1Status. - Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - - :param status: The status of this V1Status. - :type: str - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1Status): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_status_cause.py b/kubernetes/client/models/v1_status_cause.py deleted file mode 100644 index 8f5ffa14d5..0000000000 --- a/kubernetes/client/models/v1_status_cause.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1StatusCause(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, field=None, message=None, reason=None): - """ - V1StatusCause - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'field': 'str', - 'message': 'str', - 'reason': 'str' - } - - self.attribute_map = { - 'field': 'field', - 'message': 'message', - 'reason': 'reason' - } - - self._field = field - self._message = message - self._reason = reason - - @property - def field(self): - """ - Gets the field of this V1StatusCause. - The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" - - :return: The field of this V1StatusCause. - :rtype: str - """ - return self._field - - @field.setter - def field(self, field): - """ - Sets the field of this V1StatusCause. - The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" - - :param field: The field of this V1StatusCause. - :type: str - """ - - self._field = field - - @property - def message(self): - """ - Gets the message of this V1StatusCause. - A human-readable description of the cause of the error. This field may be presented as-is to a reader. - - :return: The message of this V1StatusCause. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this V1StatusCause. - A human-readable description of the cause of the error. This field may be presented as-is to a reader. - - :param message: The message of this V1StatusCause. - :type: str - """ - - self._message = message - - @property - def reason(self): - """ - Gets the reason of this V1StatusCause. - A machine-readable description of the cause of the error. If this value is empty there is no information available. - - :return: The reason of this V1StatusCause. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this V1StatusCause. - A machine-readable description of the cause of the error. If this value is empty there is no information available. - - :param reason: The reason of this V1StatusCause. - :type: str - """ - - self._reason = reason - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1StatusCause): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_status_details.py b/kubernetes/client/models/v1_status_details.py deleted file mode 100644 index 8a8dd0beb4..0000000000 --- a/kubernetes/client/models/v1_status_details.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1StatusDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_seconds=None): - """ - V1StatusDetails - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'causes': 'list[V1StatusCause]', - 'group': 'str', - 'kind': 'str', - 'name': 'str', - 'retry_after_seconds': 'int' - } - - self.attribute_map = { - 'causes': 'causes', - 'group': 'group', - 'kind': 'kind', - 'name': 'name', - 'retry_after_seconds': 'retryAfterSeconds' - } - - self._causes = causes - self._group = group - self._kind = kind - self._name = name - self._retry_after_seconds = retry_after_seconds - - @property - def causes(self): - """ - Gets the causes of this V1StatusDetails. - The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. - - :return: The causes of this V1StatusDetails. - :rtype: list[V1StatusCause] - """ - return self._causes - - @causes.setter - def causes(self, causes): - """ - Sets the causes of this V1StatusDetails. - The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. - - :param causes: The causes of this V1StatusDetails. - :type: list[V1StatusCause] - """ - - self._causes = causes - - @property - def group(self): - """ - Gets the group of this V1StatusDetails. - The group attribute of the resource associated with the status StatusReason. - - :return: The group of this V1StatusDetails. - :rtype: str - """ - return self._group - - @group.setter - def group(self, group): - """ - Sets the group of this V1StatusDetails. - The group attribute of the resource associated with the status StatusReason. - - :param group: The group of this V1StatusDetails. - :type: str - """ - - self._group = group - - @property - def kind(self): - """ - Gets the kind of this V1StatusDetails. - The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1StatusDetails. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1StatusDetails. - The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1StatusDetails. - :type: str - """ - - self._kind = kind - - @property - def name(self): - """ - Gets the name of this V1StatusDetails. - The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). - - :return: The name of this V1StatusDetails. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1StatusDetails. - The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). - - :param name: The name of this V1StatusDetails. - :type: str - """ - - self._name = name - - @property - def retry_after_seconds(self): - """ - Gets the retry_after_seconds of this V1StatusDetails. - If specified, the time in seconds before the operation should be retried. - - :return: The retry_after_seconds of this V1StatusDetails. - :rtype: int - """ - return self._retry_after_seconds - - @retry_after_seconds.setter - def retry_after_seconds(self, retry_after_seconds): - """ - Sets the retry_after_seconds of this V1StatusDetails. - If specified, the time in seconds before the operation should be retried. - - :param retry_after_seconds: The retry_after_seconds of this V1StatusDetails. - :type: int - """ - - self._retry_after_seconds = retry_after_seconds - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1StatusDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_storage_class.py b/kubernetes/client/models/v1_storage_class.py deleted file mode 100644 index e9604e5c7e..0000000000 --- a/kubernetes/client/models/v1_storage_class.py +++ /dev/null @@ -1,223 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1StorageClass(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, parameters=None, provisioner=None): - """ - V1StorageClass - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'parameters': 'dict(str, str)', - 'provisioner': 'str' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'parameters': 'parameters', - 'provisioner': 'provisioner' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._parameters = parameters - self._provisioner = provisioner - - @property - def api_version(self): - """ - Gets the api_version of this V1StorageClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1StorageClass. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1StorageClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1StorageClass. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1StorageClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1StorageClass. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1StorageClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1StorageClass. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1StorageClass. - Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - - :return: The metadata of this V1StorageClass. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1StorageClass. - Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - - :param metadata: The metadata of this V1StorageClass. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def parameters(self): - """ - Gets the parameters of this V1StorageClass. - Parameters holds the parameters for the provisioner that should create volumes of this storage class. - - :return: The parameters of this V1StorageClass. - :rtype: dict(str, str) - """ - return self._parameters - - @parameters.setter - def parameters(self, parameters): - """ - Sets the parameters of this V1StorageClass. - Parameters holds the parameters for the provisioner that should create volumes of this storage class. - - :param parameters: The parameters of this V1StorageClass. - :type: dict(str, str) - """ - - self._parameters = parameters - - @property - def provisioner(self): - """ - Gets the provisioner of this V1StorageClass. - Provisioner indicates the type of the provisioner. - - :return: The provisioner of this V1StorageClass. - :rtype: str - """ - return self._provisioner - - @provisioner.setter - def provisioner(self, provisioner): - """ - Sets the provisioner of this V1StorageClass. - Provisioner indicates the type of the provisioner. - - :param provisioner: The provisioner of this V1StorageClass. - :type: str - """ - if provisioner is None: - raise ValueError("Invalid value for `provisioner`, must not be `None`") - - self._provisioner = provisioner - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1StorageClass): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_storage_class_list.py b/kubernetes/client/models/v1_storage_class_list.py deleted file mode 100644 index 32dfae24e3..0000000000 --- a/kubernetes/client/models/v1_storage_class_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1StorageClassList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1StorageClassList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[V1StorageClass]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this V1StorageClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1StorageClassList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1StorageClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1StorageClassList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this V1StorageClassList. - Items is the list of StorageClasses - - :return: The items of this V1StorageClassList. - :rtype: list[V1StorageClass] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1StorageClassList. - Items is the list of StorageClasses - - :param items: The items of this V1StorageClassList. - :type: list[V1StorageClass] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this V1StorageClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1StorageClassList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1StorageClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1StorageClassList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1StorageClassList. - Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - - :return: The metadata of this V1StorageClassList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1StorageClassList. - Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - - :param metadata: The metadata of this V1StorageClassList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1StorageClassList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_subject_access_review.py b/kubernetes/client/models/v1_subject_access_review.py index e2074a712c..64c023a52b 100644 --- a/kubernetes/client/models/v1_subject_access_review.py +++ b/kubernetes/client/models/v1_subject_access_review.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1SubjectAccessReview(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + def __init__(self, api_version=None, content=None, groups=None, is_non_resource_url=None, kind=None, namespace=None, path=None, resource=None, resource_api_group=None, resource_api_version=None, resource_name=None, scopes=None, user=None, verb=None): """ V1SubjectAccessReview - a model defined in Swagger @@ -32,25 +32,52 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status """ self.swagger_types = { 'api_version': 'str', + 'content': 'RuntimeRawExtension', + 'groups': 'list[str]', + 'is_non_resource_url': 'bool', 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'V1SubjectAccessReviewSpec', - 'status': 'V1SubjectAccessReviewStatus' + 'namespace': 'str', + 'path': 'str', + 'resource': 'str', + 'resource_api_group': 'str', + 'resource_api_version': 'str', + 'resource_name': 'str', + 'scopes': 'list[str]', + 'user': 'str', + 'verb': 'str' } self.attribute_map = { 'api_version': 'apiVersion', + 'content': 'content', + 'groups': 'groups', + 'is_non_resource_url': 'isNonResourceURL', 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' + 'namespace': 'namespace', + 'path': 'path', + 'resource': 'resource', + 'resource_api_group': 'resourceAPIGroup', + 'resource_api_version': 'resourceAPIVersion', + 'resource_name': 'resourceName', + 'scopes': 'scopes', + 'user': 'user', + 'verb': 'verb' } self._api_version = api_version + self._content = content + self._groups = groups + self._is_non_resource_url = is_non_resource_url self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status + self._namespace = namespace + self._path = path + self._resource = resource + self._resource_api_group = resource_api_group + self._resource_api_version = resource_api_version + self._resource_name = resource_name + self._scopes = scopes + self._user = user + self._verb = verb @property def api_version(self): @@ -75,6 +102,79 @@ def api_version(self, api_version): self._api_version = api_version + @property + def content(self): + """ + Gets the content of this V1SubjectAccessReview. + Content is the actual content of the request for create and update + + :return: The content of this V1SubjectAccessReview. + :rtype: RuntimeRawExtension + """ + return self._content + + @content.setter + def content(self, content): + """ + Sets the content of this V1SubjectAccessReview. + Content is the actual content of the request for create and update + + :param content: The content of this V1SubjectAccessReview. + :type: RuntimeRawExtension + """ + + self._content = content + + @property + def groups(self): + """ + Gets the groups of this V1SubjectAccessReview. + GroupsSlice is optional. Groups is the list of groups to which the User belongs. + + :return: The groups of this V1SubjectAccessReview. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1SubjectAccessReview. + GroupsSlice is optional. Groups is the list of groups to which the User belongs. + + :param groups: The groups of this V1SubjectAccessReview. + :type: list[str] + """ + if groups is None: + raise ValueError("Invalid value for `groups`, must not be `None`") + + self._groups = groups + + @property + def is_non_resource_url(self): + """ + Gets the is_non_resource_url of this V1SubjectAccessReview. + IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) + + :return: The is_non_resource_url of this V1SubjectAccessReview. + :rtype: bool + """ + return self._is_non_resource_url + + @is_non_resource_url.setter + def is_non_resource_url(self, is_non_resource_url): + """ + Sets the is_non_resource_url of this V1SubjectAccessReview. + IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) + + :param is_non_resource_url: The is_non_resource_url of this V1SubjectAccessReview. + :type: bool + """ + if is_non_resource_url is None: + raise ValueError("Invalid value for `is_non_resource_url`, must not be `None`") + + self._is_non_resource_url = is_non_resource_url + @property def kind(self): """ @@ -99,73 +199,229 @@ def kind(self, kind): self._kind = kind @property - def metadata(self): + def namespace(self): + """ + Gets the namespace of this V1SubjectAccessReview. + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces + + :return: The namespace of this V1SubjectAccessReview. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1SubjectAccessReview. + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces + + :param namespace: The namespace of this V1SubjectAccessReview. + :type: str + """ + if namespace is None: + raise ValueError("Invalid value for `namespace`, must not be `None`") + + self._namespace = namespace + + @property + def path(self): + """ + Gets the path of this V1SubjectAccessReview. + Path is the path of a non resource URL + + :return: The path of this V1SubjectAccessReview. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1SubjectAccessReview. + Path is the path of a non resource URL + + :param path: The path of this V1SubjectAccessReview. + :type: str + """ + if path is None: + raise ValueError("Invalid value for `path`, must not be `None`") + + self._path = path + + @property + def resource(self): """ - Gets the metadata of this V1SubjectAccessReview. + Gets the resource of this V1SubjectAccessReview. + Resource is one of the existing resource types - :return: The metadata of this V1SubjectAccessReview. - :rtype: V1ObjectMeta + :return: The resource of this V1SubjectAccessReview. + :rtype: str """ - return self._metadata + return self._resource - @metadata.setter - def metadata(self, metadata): + @resource.setter + def resource(self, resource): """ - Sets the metadata of this V1SubjectAccessReview. + Sets the resource of this V1SubjectAccessReview. + Resource is one of the existing resource types - :param metadata: The metadata of this V1SubjectAccessReview. - :type: V1ObjectMeta + :param resource: The resource of this V1SubjectAccessReview. + :type: str """ + if resource is None: + raise ValueError("Invalid value for `resource`, must not be `None`") - self._metadata = metadata + self._resource = resource @property - def spec(self): + def resource_api_group(self): """ - Gets the spec of this V1SubjectAccessReview. - Spec holds information about the request being evaluated + Gets the resource_api_group of this V1SubjectAccessReview. + Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined - :return: The spec of this V1SubjectAccessReview. - :rtype: V1SubjectAccessReviewSpec + :return: The resource_api_group of this V1SubjectAccessReview. + :rtype: str """ - return self._spec + return self._resource_api_group - @spec.setter - def spec(self, spec): + @resource_api_group.setter + def resource_api_group(self, resource_api_group): """ - Sets the spec of this V1SubjectAccessReview. - Spec holds information about the request being evaluated + Sets the resource_api_group of this V1SubjectAccessReview. + Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined - :param spec: The spec of this V1SubjectAccessReview. - :type: V1SubjectAccessReviewSpec + :param resource_api_group: The resource_api_group of this V1SubjectAccessReview. + :type: str """ - if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + if resource_api_group is None: + raise ValueError("Invalid value for `resource_api_group`, must not be `None`") - self._spec = spec + self._resource_api_group = resource_api_group @property - def status(self): + def resource_api_version(self): + """ + Gets the resource_api_version of this V1SubjectAccessReview. + Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined + + :return: The resource_api_version of this V1SubjectAccessReview. + :rtype: str + """ + return self._resource_api_version + + @resource_api_version.setter + def resource_api_version(self, resource_api_version): """ - Gets the status of this V1SubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + Sets the resource_api_version of this V1SubjectAccessReview. + Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined + + :param resource_api_version: The resource_api_version of this V1SubjectAccessReview. + :type: str + """ + if resource_api_version is None: + raise ValueError("Invalid value for `resource_api_version`, must not be `None`") + + self._resource_api_version = resource_api_version - :return: The status of this V1SubjectAccessReview. - :rtype: V1SubjectAccessReviewStatus + @property + def resource_name(self): + """ + Gets the resource_name of this V1SubjectAccessReview. + ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\" + + :return: The resource_name of this V1SubjectAccessReview. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """ + Sets the resource_name of this V1SubjectAccessReview. + ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\" + + :param resource_name: The resource_name of this V1SubjectAccessReview. + :type: str + """ + if resource_name is None: + raise ValueError("Invalid value for `resource_name`, must not be `None`") + + self._resource_name = resource_name + + @property + def scopes(self): """ - return self._status + Gets the scopes of this V1SubjectAccessReview. + Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". Nil for a self-SAR, means \"use the scopes on this request\". Nil for a regular SAR, means the same as empty. - @status.setter - def status(self, status): + :return: The scopes of this V1SubjectAccessReview. + :rtype: list[str] """ - Sets the status of this V1SubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + return self._scopes - :param status: The status of this V1SubjectAccessReview. - :type: V1SubjectAccessReviewStatus + @scopes.setter + def scopes(self, scopes): + """ + Sets the scopes of this V1SubjectAccessReview. + Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". Nil for a self-SAR, means \"use the scopes on this request\". Nil for a regular SAR, means the same as empty. + + :param scopes: The scopes of this V1SubjectAccessReview. + :type: list[str] + """ + if scopes is None: + raise ValueError("Invalid value for `scopes`, must not be `None`") + + self._scopes = scopes + + @property + def user(self): + """ + Gets the user of this V1SubjectAccessReview. + User is optional. If both User and Groups are empty, the current authenticated user is used. + + :return: The user of this V1SubjectAccessReview. + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1SubjectAccessReview. + User is optional. If both User and Groups are empty, the current authenticated user is used. + + :param user: The user of this V1SubjectAccessReview. + :type: str + """ + if user is None: + raise ValueError("Invalid value for `user`, must not be `None`") + + self._user = user + + @property + def verb(self): + """ + Gets the verb of this V1SubjectAccessReview. + Verb is one of: get, list, watch, create, update, delete + + :return: The verb of this V1SubjectAccessReview. + :rtype: str + """ + return self._verb + + @verb.setter + def verb(self, verb): + """ + Sets the verb of this V1SubjectAccessReview. + Verb is one of: get, list, watch, create, update, delete + + :param verb: The verb of this V1SubjectAccessReview. + :type: str """ + if verb is None: + raise ValueError("Invalid value for `verb`, must not be `None`") - self._status = status + self._verb = verb def to_dict(self): """ diff --git a/kubernetes/client/models/v1_subject_access_review_spec.py b/kubernetes/client/models/v1_subject_access_review_spec.py deleted file mode 100644 index 856635c8f4..0000000000 --- a/kubernetes/client/models/v1_subject_access_review_spec.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1SubjectAccessReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, extra=None, groups=None, non_resource_attributes=None, resource_attributes=None, user=None): - """ - V1SubjectAccessReviewSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'extra': 'dict(str, list[str])', - 'groups': 'list[str]', - 'non_resource_attributes': 'V1NonResourceAttributes', - 'resource_attributes': 'V1ResourceAttributes', - 'user': 'str' - } - - self.attribute_map = { - 'extra': 'extra', - 'groups': 'groups', - 'non_resource_attributes': 'nonResourceAttributes', - 'resource_attributes': 'resourceAttributes', - 'user': 'user' - } - - self._extra = extra - self._groups = groups - self._non_resource_attributes = non_resource_attributes - self._resource_attributes = resource_attributes - self._user = user - - @property - def extra(self): - """ - Gets the extra of this V1SubjectAccessReviewSpec. - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - - :return: The extra of this V1SubjectAccessReviewSpec. - :rtype: dict(str, list[str]) - """ - return self._extra - - @extra.setter - def extra(self, extra): - """ - Sets the extra of this V1SubjectAccessReviewSpec. - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - - :param extra: The extra of this V1SubjectAccessReviewSpec. - :type: dict(str, list[str]) - """ - - self._extra = extra - - @property - def groups(self): - """ - Gets the groups of this V1SubjectAccessReviewSpec. - Groups is the groups you're testing for. - - :return: The groups of this V1SubjectAccessReviewSpec. - :rtype: list[str] - """ - return self._groups - - @groups.setter - def groups(self, groups): - """ - Sets the groups of this V1SubjectAccessReviewSpec. - Groups is the groups you're testing for. - - :param groups: The groups of this V1SubjectAccessReviewSpec. - :type: list[str] - """ - - self._groups = groups - - @property - def non_resource_attributes(self): - """ - Gets the non_resource_attributes of this V1SubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request - - :return: The non_resource_attributes of this V1SubjectAccessReviewSpec. - :rtype: V1NonResourceAttributes - """ - return self._non_resource_attributes - - @non_resource_attributes.setter - def non_resource_attributes(self, non_resource_attributes): - """ - Sets the non_resource_attributes of this V1SubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request - - :param non_resource_attributes: The non_resource_attributes of this V1SubjectAccessReviewSpec. - :type: V1NonResourceAttributes - """ - - self._non_resource_attributes = non_resource_attributes - - @property - def resource_attributes(self): - """ - Gets the resource_attributes of this V1SubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request - - :return: The resource_attributes of this V1SubjectAccessReviewSpec. - :rtype: V1ResourceAttributes - """ - return self._resource_attributes - - @resource_attributes.setter - def resource_attributes(self, resource_attributes): - """ - Sets the resource_attributes of this V1SubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request - - :param resource_attributes: The resource_attributes of this V1SubjectAccessReviewSpec. - :type: V1ResourceAttributes - """ - - self._resource_attributes = resource_attributes - - @property - def user(self): - """ - Gets the user of this V1SubjectAccessReviewSpec. - User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups - - :return: The user of this V1SubjectAccessReviewSpec. - :rtype: str - """ - return self._user - - @user.setter - def user(self, user): - """ - Sets the user of this V1SubjectAccessReviewSpec. - User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups - - :param user: The user of this V1SubjectAccessReviewSpec. - :type: str - """ - - self._user = user - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1SubjectAccessReviewSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_subject_access_review_status.py b/kubernetes/client/models/v1_subject_access_review_status.py deleted file mode 100644 index e7221710ae..0000000000 --- a/kubernetes/client/models/v1_subject_access_review_status.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1SubjectAccessReviewStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, allowed=None, evaluation_error=None, reason=None): - """ - V1SubjectAccessReviewStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'allowed': 'bool', - 'evaluation_error': 'str', - 'reason': 'str' - } - - self.attribute_map = { - 'allowed': 'allowed', - 'evaluation_error': 'evaluationError', - 'reason': 'reason' - } - - self._allowed = allowed - self._evaluation_error = evaluation_error - self._reason = reason - - @property - def allowed(self): - """ - Gets the allowed of this V1SubjectAccessReviewStatus. - Allowed is required. True if the action would be allowed, false otherwise. - - :return: The allowed of this V1SubjectAccessReviewStatus. - :rtype: bool - """ - return self._allowed - - @allowed.setter - def allowed(self, allowed): - """ - Sets the allowed of this V1SubjectAccessReviewStatus. - Allowed is required. True if the action would be allowed, false otherwise. - - :param allowed: The allowed of this V1SubjectAccessReviewStatus. - :type: bool - """ - if allowed is None: - raise ValueError("Invalid value for `allowed`, must not be `None`") - - self._allowed = allowed - - @property - def evaluation_error(self): - """ - Gets the evaluation_error of this V1SubjectAccessReviewStatus. - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - - :return: The evaluation_error of this V1SubjectAccessReviewStatus. - :rtype: str - """ - return self._evaluation_error - - @evaluation_error.setter - def evaluation_error(self, evaluation_error): - """ - Sets the evaluation_error of this V1SubjectAccessReviewStatus. - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - - :param evaluation_error: The evaluation_error of this V1SubjectAccessReviewStatus. - :type: str - """ - - self._evaluation_error = evaluation_error - - @property - def reason(self): - """ - Gets the reason of this V1SubjectAccessReviewStatus. - Reason is optional. It indicates why a request was allowed or denied. - - :return: The reason of this V1SubjectAccessReviewStatus. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this V1SubjectAccessReviewStatus. - Reason is optional. It indicates why a request was allowed or denied. - - :param reason: The reason of this V1SubjectAccessReviewStatus. - :type: str - """ - - self._reason = reason - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1SubjectAccessReviewStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_subject_rules_review.py b/kubernetes/client/models/v1_subject_rules_review.py new file mode 100644 index 0000000000..84d126e5b6 --- /dev/null +++ b/kubernetes/client/models/v1_subject_rules_review.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SubjectRulesReview(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, spec=None, status=None): + """ + V1SubjectRulesReview - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'spec': 'V1SubjectRulesReviewSpec', + 'status': 'V1SubjectRulesReviewStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1SubjectRulesReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1SubjectRulesReview. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1SubjectRulesReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1SubjectRulesReview. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1SubjectRulesReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1SubjectRulesReview. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1SubjectRulesReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1SubjectRulesReview. + :type: str + """ + + self._kind = kind + + @property + def spec(self): + """ + Gets the spec of this V1SubjectRulesReview. + Spec adds information about how to conduct the check + + :return: The spec of this V1SubjectRulesReview. + :rtype: V1SubjectRulesReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1SubjectRulesReview. + Spec adds information about how to conduct the check + + :param spec: The spec of this V1SubjectRulesReview. + :type: V1SubjectRulesReviewSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1SubjectRulesReview. + Status is completed by the server to tell which permissions you have + + :return: The status of this V1SubjectRulesReview. + :rtype: V1SubjectRulesReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1SubjectRulesReview. + Status is completed by the server to tell which permissions you have + + :param status: The status of this V1SubjectRulesReview. + :type: V1SubjectRulesReviewStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SubjectRulesReview): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_subject_rules_review_spec.py b/kubernetes/client/models/v1_subject_rules_review_spec.py new file mode 100644 index 0000000000..f87db922d5 --- /dev/null +++ b/kubernetes/client/models/v1_subject_rules_review_spec.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SubjectRulesReviewSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, groups=None, scopes=None, user=None): + """ + V1SubjectRulesReviewSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'groups': 'list[str]', + 'scopes': 'list[str]', + 'user': 'str' + } + + self.attribute_map = { + 'groups': 'groups', + 'scopes': 'scopes', + 'user': 'user' + } + + self._groups = groups + self._scopes = scopes + self._user = user + + @property + def groups(self): + """ + Gets the groups of this V1SubjectRulesReviewSpec. + Groups is optional. Groups is the list of groups to which the User belongs. At least one of User and Groups must be specified. + + :return: The groups of this V1SubjectRulesReviewSpec. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1SubjectRulesReviewSpec. + Groups is optional. Groups is the list of groups to which the User belongs. At least one of User and Groups must be specified. + + :param groups: The groups of this V1SubjectRulesReviewSpec. + :type: list[str] + """ + if groups is None: + raise ValueError("Invalid value for `groups`, must not be `None`") + + self._groups = groups + + @property + def scopes(self): + """ + Gets the scopes of this V1SubjectRulesReviewSpec. + Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". + + :return: The scopes of this V1SubjectRulesReviewSpec. + :rtype: list[str] + """ + return self._scopes + + @scopes.setter + def scopes(self, scopes): + """ + Sets the scopes of this V1SubjectRulesReviewSpec. + Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". + + :param scopes: The scopes of this V1SubjectRulesReviewSpec. + :type: list[str] + """ + if scopes is None: + raise ValueError("Invalid value for `scopes`, must not be `None`") + + self._scopes = scopes + + @property + def user(self): + """ + Gets the user of this V1SubjectRulesReviewSpec. + User is optional. At least one of User and Groups must be specified. + + :return: The user of this V1SubjectRulesReviewSpec. + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1SubjectRulesReviewSpec. + User is optional. At least one of User and Groups must be specified. + + :param user: The user of this V1SubjectRulesReviewSpec. + :type: str + """ + if user is None: + raise ValueError("Invalid value for `user`, must not be `None`") + + self._user = user + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SubjectRulesReviewSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_subject_rules_review_status.py b/kubernetes/client/models/v1_subject_rules_review_status.py new file mode 100644 index 0000000000..a11acc01f2 --- /dev/null +++ b/kubernetes/client/models/v1_subject_rules_review_status.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SubjectRulesReviewStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, evaluation_error=None, rules=None): + """ + V1SubjectRulesReviewStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'evaluation_error': 'str', + 'rules': 'list[V1PolicyRule]' + } + + self.attribute_map = { + 'evaluation_error': 'evaluationError', + 'rules': 'rules' + } + + self._evaluation_error = evaluation_error + self._rules = rules + + @property + def evaluation_error(self): + """ + Gets the evaluation_error of this V1SubjectRulesReviewStatus. + EvaluationError can appear in combination with Rules. It means some error happened during evaluation that may have prevented additional rules from being populated. + + :return: The evaluation_error of this V1SubjectRulesReviewStatus. + :rtype: str + """ + return self._evaluation_error + + @evaluation_error.setter + def evaluation_error(self, evaluation_error): + """ + Sets the evaluation_error of this V1SubjectRulesReviewStatus. + EvaluationError can appear in combination with Rules. It means some error happened during evaluation that may have prevented additional rules from being populated. + + :param evaluation_error: The evaluation_error of this V1SubjectRulesReviewStatus. + :type: str + """ + + self._evaluation_error = evaluation_error + + @property + def rules(self): + """ + Gets the rules of this V1SubjectRulesReviewStatus. + Rules is the list of rules (no particular sort) that are allowed for the subject + + :return: The rules of this V1SubjectRulesReviewStatus. + :rtype: list[V1PolicyRule] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """ + Sets the rules of this V1SubjectRulesReviewStatus. + Rules is the list of rules (no particular sort) that are allowed for the subject + + :param rules: The rules of this V1SubjectRulesReviewStatus. + :type: list[V1PolicyRule] + """ + if rules is None: + raise ValueError("Invalid value for `rules`, must not be `None`") + + self._rules = rules + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SubjectRulesReviewStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_supplemental_groups_strategy_options.py b/kubernetes/client/models/v1_supplemental_groups_strategy_options.py new file mode 100644 index 0000000000..e75730e40c --- /dev/null +++ b/kubernetes/client/models/v1_supplemental_groups_strategy_options.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SupplementalGroupsStrategyOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, ranges=None, type=None): + """ + V1SupplementalGroupsStrategyOptions - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'ranges': 'list[V1IDRange]', + 'type': 'str' + } + + self.attribute_map = { + 'ranges': 'ranges', + 'type': 'type' + } + + self._ranges = ranges + self._type = type + + @property + def ranges(self): + """ + Gets the ranges of this V1SupplementalGroupsStrategyOptions. + Ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. + + :return: The ranges of this V1SupplementalGroupsStrategyOptions. + :rtype: list[V1IDRange] + """ + return self._ranges + + @ranges.setter + def ranges(self, ranges): + """ + Sets the ranges of this V1SupplementalGroupsStrategyOptions. + Ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. + + :param ranges: The ranges of this V1SupplementalGroupsStrategyOptions. + :type: list[V1IDRange] + """ + + self._ranges = ranges + + @property + def type(self): + """ + Gets the type of this V1SupplementalGroupsStrategyOptions. + Type is the strategy that will dictate what supplemental groups is used in the SecurityContext. + + :return: The type of this V1SupplementalGroupsStrategyOptions. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1SupplementalGroupsStrategyOptions. + Type is the strategy that will dictate what supplemental groups is used in the SecurityContext. + + :param type: The type of this V1SupplementalGroupsStrategyOptions. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1SupplementalGroupsStrategyOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_tag_event.py b/kubernetes/client/models/v1_tag_event.py new file mode 100644 index 0000000000..19782ddbff --- /dev/null +++ b/kubernetes/client/models/v1_tag_event.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TagEvent(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, created=None, docker_image_reference=None, generation=None, image=None): + """ + V1TagEvent - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'created': 'datetime', + 'docker_image_reference': 'str', + 'generation': 'int', + 'image': 'str' + } + + self.attribute_map = { + 'created': 'created', + 'docker_image_reference': 'dockerImageReference', + 'generation': 'generation', + 'image': 'image' + } + + self._created = created + self._docker_image_reference = docker_image_reference + self._generation = generation + self._image = image + + @property + def created(self): + """ + Gets the created of this V1TagEvent. + Created holds the time the TagEvent was created + + :return: The created of this V1TagEvent. + :rtype: datetime + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this V1TagEvent. + Created holds the time the TagEvent was created + + :param created: The created of this V1TagEvent. + :type: datetime + """ + if created is None: + raise ValueError("Invalid value for `created`, must not be `None`") + + self._created = created + + @property + def docker_image_reference(self): + """ + Gets the docker_image_reference of this V1TagEvent. + DockerImageReference is the string that can be used to pull this image + + :return: The docker_image_reference of this V1TagEvent. + :rtype: str + """ + return self._docker_image_reference + + @docker_image_reference.setter + def docker_image_reference(self, docker_image_reference): + """ + Sets the docker_image_reference of this V1TagEvent. + DockerImageReference is the string that can be used to pull this image + + :param docker_image_reference: The docker_image_reference of this V1TagEvent. + :type: str + """ + if docker_image_reference is None: + raise ValueError("Invalid value for `docker_image_reference`, must not be `None`") + + self._docker_image_reference = docker_image_reference + + @property + def generation(self): + """ + Gets the generation of this V1TagEvent. + Generation is the spec tag generation that resulted in this tag being updated + + :return: The generation of this V1TagEvent. + :rtype: int + """ + return self._generation + + @generation.setter + def generation(self, generation): + """ + Sets the generation of this V1TagEvent. + Generation is the spec tag generation that resulted in this tag being updated + + :param generation: The generation of this V1TagEvent. + :type: int + """ + if generation is None: + raise ValueError("Invalid value for `generation`, must not be `None`") + + self._generation = generation + + @property + def image(self): + """ + Gets the image of this V1TagEvent. + Image is the image + + :return: The image of this V1TagEvent. + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1TagEvent. + Image is the image + + :param image: The image of this V1TagEvent. + :type: str + """ + if image is None: + raise ValueError("Invalid value for `image`, must not be `None`") + + self._image = image + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1TagEvent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_tag_event_condition.py b/kubernetes/client/models/v1_tag_event_condition.py new file mode 100644 index 0000000000..ada0669f29 --- /dev/null +++ b/kubernetes/client/models/v1_tag_event_condition.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TagEventCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, generation=None, last_transition_time=None, message=None, reason=None, status=None, type=None): + """ + V1TagEventCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'generation': 'int', + 'last_transition_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'generation': 'generation', + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._generation = generation + self._last_transition_time = last_transition_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + @property + def generation(self): + """ + Gets the generation of this V1TagEventCondition. + Generation is the spec tag generation that this status corresponds to + + :return: The generation of this V1TagEventCondition. + :rtype: int + """ + return self._generation + + @generation.setter + def generation(self, generation): + """ + Sets the generation of this V1TagEventCondition. + Generation is the spec tag generation that this status corresponds to + + :param generation: The generation of this V1TagEventCondition. + :type: int + """ + if generation is None: + raise ValueError("Invalid value for `generation`, must not be `None`") + + self._generation = generation + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1TagEventCondition. + LastTransitionTIme is the time the condition transitioned from one status to another. + + :return: The last_transition_time of this V1TagEventCondition. + :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 V1TagEventCondition. + LastTransitionTIme is the time the condition transitioned from one status to another. + + :param last_transition_time: The last_transition_time of this V1TagEventCondition. + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """ + Gets the message of this V1TagEventCondition. + Message is a human readable description of the details about last transition, complementing reason. + + :return: The message of this V1TagEventCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1TagEventCondition. + Message is a human readable description of the details about last transition, complementing reason. + + :param message: The message of this V1TagEventCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1TagEventCondition. + Reason is a brief machine readable explanation for the condition's last transition. + + :return: The reason of this V1TagEventCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1TagEventCondition. + Reason is a brief machine readable explanation for the condition's last transition. + + :param reason: The reason of this V1TagEventCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1TagEventCondition. + Status of the condition, one of True, False, Unknown. + + :return: The status of this V1TagEventCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1TagEventCondition. + Status of the condition, one of True, False, Unknown. + + :param status: The status of this V1TagEventCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1TagEventCondition. + Type of tag event condition, currently only ImportSuccess + + :return: The type of this V1TagEventCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1TagEventCondition. + Type of tag event condition, currently only ImportSuccess + + :param type: The type of this V1TagEventCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1TagEventCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_tag_image_hook.py b/kubernetes/client/models/v1_tag_image_hook.py new file mode 100644 index 0000000000..76975d5ed5 --- /dev/null +++ b/kubernetes/client/models/v1_tag_image_hook.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TagImageHook(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, container_name=None, to=None): + """ + V1TagImageHook - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'container_name': 'str', + 'to': 'V1ObjectReference' + } + + self.attribute_map = { + 'container_name': 'containerName', + 'to': 'to' + } + + self._container_name = container_name + self._to = to + + @property + def container_name(self): + """ + Gets the container_name of this V1TagImageHook. + ContainerName is the name of a container in the deployment config whose image value will be used as the source of the tag. If there is only a single container this value will be defaulted to the name of that container. + + :return: The container_name of this V1TagImageHook. + :rtype: str + """ + return self._container_name + + @container_name.setter + def container_name(self, container_name): + """ + Sets the container_name of this V1TagImageHook. + ContainerName is the name of a container in the deployment config whose image value will be used as the source of the tag. If there is only a single container this value will be defaulted to the name of that container. + + :param container_name: The container_name of this V1TagImageHook. + :type: str + """ + if container_name is None: + raise ValueError("Invalid value for `container_name`, must not be `None`") + + self._container_name = container_name + + @property + def to(self): + """ + Gets the to of this V1TagImageHook. + To is the target ImageStreamTag to set the container's image onto. + + :return: The to of this V1TagImageHook. + :rtype: V1ObjectReference + """ + return self._to + + @to.setter + def to(self, to): + """ + Sets the to of this V1TagImageHook. + To is the target ImageStreamTag to set the container's image onto. + + :param to: The to of this V1TagImageHook. + :type: V1ObjectReference + """ + if to is None: + raise ValueError("Invalid value for `to`, must not be `None`") + + self._to = to + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1TagImageHook): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_tag_import_policy.py b/kubernetes/client/models/v1_tag_import_policy.py new file mode 100644 index 0000000000..b7ff3bc5bc --- /dev/null +++ b/kubernetes/client/models/v1_tag_import_policy.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TagImportPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, insecure=None, scheduled=None): + """ + V1TagImportPolicy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'insecure': 'bool', + 'scheduled': 'bool' + } + + self.attribute_map = { + 'insecure': 'insecure', + 'scheduled': 'scheduled' + } + + self._insecure = insecure + self._scheduled = scheduled + + @property + def insecure(self): + """ + Gets the insecure of this V1TagImportPolicy. + Insecure is true if the server may bypass certificate verification or connect directly over HTTP during image import. + + :return: The insecure of this V1TagImportPolicy. + :rtype: bool + """ + return self._insecure + + @insecure.setter + def insecure(self, insecure): + """ + Sets the insecure of this V1TagImportPolicy. + Insecure is true if the server may bypass certificate verification or connect directly over HTTP during image import. + + :param insecure: The insecure of this V1TagImportPolicy. + :type: bool + """ + + self._insecure = insecure + + @property + def scheduled(self): + """ + Gets the scheduled of this V1TagImportPolicy. + Scheduled indicates to the server that this tag should be periodically checked to ensure it is up to date, and imported + + :return: The scheduled of this V1TagImportPolicy. + :rtype: bool + """ + return self._scheduled + + @scheduled.setter + def scheduled(self, scheduled): + """ + Sets the scheduled of this V1TagImportPolicy. + Scheduled indicates to the server that this tag should be periodically checked to ensure it is up to date, and imported + + :param scheduled: The scheduled of this V1TagImportPolicy. + :type: bool + """ + + self._scheduled = scheduled + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1TagImportPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_tag_reference.py b/kubernetes/client/models/v1_tag_reference.py new file mode 100644 index 0000000000..d83f077ca6 --- /dev/null +++ b/kubernetes/client/models/v1_tag_reference.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TagReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, annotations=None, _from=None, generation=None, import_policy=None, name=None, reference=None, reference_policy=None): + """ + V1TagReference - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'annotations': 'dict(str, str)', + '_from': 'V1ObjectReference', + 'generation': 'int', + 'import_policy': 'V1TagImportPolicy', + 'name': 'str', + 'reference': 'bool', + 'reference_policy': 'V1TagReferencePolicy' + } + + self.attribute_map = { + 'annotations': 'annotations', + '_from': 'from', + 'generation': 'generation', + 'import_policy': 'importPolicy', + 'name': 'name', + 'reference': 'reference', + 'reference_policy': 'referencePolicy' + } + + self._annotations = annotations + self.__from = _from + self._generation = generation + self._import_policy = import_policy + self._name = name + self._reference = reference + self._reference_policy = reference_policy + + @property + def annotations(self): + """ + Gets the annotations of this V1TagReference. + Annotations associated with images using this tag + + :return: The annotations of this V1TagReference. + :rtype: dict(str, str) + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """ + Sets the annotations of this V1TagReference. + Annotations associated with images using this tag + + :param annotations: The annotations of this V1TagReference. + :type: dict(str, str) + """ + if annotations is None: + raise ValueError("Invalid value for `annotations`, must not be `None`") + + self._annotations = annotations + + @property + def _from(self): + """ + Gets the _from of this V1TagReference. + From is a reference to an image stream tag or image stream this tag should track + + :return: The _from of this V1TagReference. + :rtype: V1ObjectReference + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this V1TagReference. + From is a reference to an image stream tag or image stream this tag should track + + :param _from: The _from of this V1TagReference. + :type: V1ObjectReference + """ + + self.__from = _from + + @property + def generation(self): + """ + Gets the generation of this V1TagReference. + Generation is the image stream generation that updated this tag - setting it to 0 is an indication that the generation must be updated. Legacy clients will send this as nil, which means the client doesn't know or care. + + :return: The generation of this V1TagReference. + :rtype: int + """ + return self._generation + + @generation.setter + def generation(self, generation): + """ + Sets the generation of this V1TagReference. + Generation is the image stream generation that updated this tag - setting it to 0 is an indication that the generation must be updated. Legacy clients will send this as nil, which means the client doesn't know or care. + + :param generation: The generation of this V1TagReference. + :type: int + """ + if generation is None: + raise ValueError("Invalid value for `generation`, must not be `None`") + + self._generation = generation + + @property + def import_policy(self): + """ + Gets the import_policy of this V1TagReference. + Import is information that controls how images may be imported by the server. + + :return: The import_policy of this V1TagReference. + :rtype: V1TagImportPolicy + """ + return self._import_policy + + @import_policy.setter + def import_policy(self, import_policy): + """ + Sets the import_policy of this V1TagReference. + Import is information that controls how images may be imported by the server. + + :param import_policy: The import_policy of this V1TagReference. + :type: V1TagImportPolicy + """ + + self._import_policy = import_policy + + @property + def name(self): + """ + Gets the name of this V1TagReference. + Name of the tag + + :return: The name of this V1TagReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1TagReference. + Name of the tag + + :param name: The name of this V1TagReference. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def reference(self): + """ + Gets the reference of this V1TagReference. + Reference states if the tag will be imported. Default value is false, which means the tag will be imported. + + :return: The reference of this V1TagReference. + :rtype: bool + """ + return self._reference + + @reference.setter + def reference(self, reference): + """ + Sets the reference of this V1TagReference. + Reference states if the tag will be imported. Default value is false, which means the tag will be imported. + + :param reference: The reference of this V1TagReference. + :type: bool + """ + + self._reference = reference + + @property + def reference_policy(self): + """ + Gets the reference_policy of this V1TagReference. + ReferencePolicy defines how other components should consume the image + + :return: The reference_policy of this V1TagReference. + :rtype: V1TagReferencePolicy + """ + return self._reference_policy + + @reference_policy.setter + def reference_policy(self, reference_policy): + """ + Sets the reference_policy of this V1TagReference. + ReferencePolicy defines how other components should consume the image + + :param reference_policy: The reference_policy of this V1TagReference. + :type: V1TagReferencePolicy + """ + + self._reference_policy = reference_policy + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1TagReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_tag_reference_policy.py b/kubernetes/client/models/v1_tag_reference_policy.py new file mode 100644 index 0000000000..4abe4b2c89 --- /dev/null +++ b/kubernetes/client/models/v1_tag_reference_policy.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TagReferencePolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, type=None): + """ + V1TagReferencePolicy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'type': 'str' + } + + self.attribute_map = { + 'type': 'type' + } + + self._type = type + + @property + def type(self): + """ + Gets the type of this V1TagReferencePolicy. + Type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds. The default value is `Source`, indicating the original location of the image should be used (if imported). The user may also specify `Local`, indicating that the pull spec should point to the integrated Docker registry and leverage the registry's ability to proxy the pull to an upstream registry. `Local` allows the credentials used to pull this image to be managed from the image stream's namespace, so others on the platform can access a remote image but have no access to the remote secret. It also allows the image layers to be mirrored into the local registry which the images can still be pulled even if the upstream registry is unavailable. + + :return: The type of this V1TagReferencePolicy. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1TagReferencePolicy. + Type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds. The default value is `Source`, indicating the original location of the image should be used (if imported). The user may also specify `Local`, indicating that the pull spec should point to the integrated Docker registry and leverage the registry's ability to proxy the pull to an upstream registry. `Local` allows the credentials used to pull this image to be managed from the image stream's namespace, so others on the platform can access a remote image but have no access to the remote secret. It also allows the image layers to be mirrored into the local registry which the images can still be pulled even if the upstream registry is unavailable. + + :param type: The type of this V1TagReferencePolicy. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1TagReferencePolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_taint.py b/kubernetes/client/models/v1_taint.py deleted file mode 100644 index 1919f5dda6..0000000000 --- a/kubernetes/client/models/v1_taint.py +++ /dev/null @@ -1,199 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1Taint(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, effect=None, key=None, time_added=None, value=None): - """ - V1Taint - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'effect': 'str', - 'key': 'str', - 'time_added': 'datetime', - 'value': 'str' - } - - self.attribute_map = { - 'effect': 'effect', - 'key': 'key', - 'time_added': 'timeAdded', - 'value': 'value' - } - - self._effect = effect - self._key = key - self._time_added = time_added - self._value = value - - @property - def effect(self): - """ - Gets the effect of this V1Taint. - Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - - :return: The effect of this V1Taint. - :rtype: str - """ - return self._effect - - @effect.setter - def effect(self, effect): - """ - Sets the effect of this V1Taint. - Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - - :param effect: The effect of this V1Taint. - :type: str - """ - if effect is None: - raise ValueError("Invalid value for `effect`, must not be `None`") - - self._effect = effect - - @property - def key(self): - """ - Gets the key of this V1Taint. - Required. The taint key to be applied to a node. - - :return: The key of this V1Taint. - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """ - Sets the key of this V1Taint. - Required. The taint key to be applied to a node. - - :param key: The key of this V1Taint. - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") - - self._key = key - - @property - def time_added(self): - """ - Gets the time_added of this V1Taint. - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. - - :return: The time_added of this V1Taint. - :rtype: datetime - """ - return self._time_added - - @time_added.setter - def time_added(self, time_added): - """ - Sets the time_added of this V1Taint. - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. - - :param time_added: The time_added of this V1Taint. - :type: datetime - """ - - self._time_added = time_added - - @property - def value(self): - """ - Gets the value of this V1Taint. - Required. The taint value corresponding to the taint key. - - :return: The value of this V1Taint. - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """ - Sets the value of this V1Taint. - Required. The taint value corresponding to the taint key. - - :param value: The value of this V1Taint. - :type: str - """ - - self._value = value - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1Taint): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_tcp_socket_action.py b/kubernetes/client/models/v1_tcp_socket_action.py index 74ec765b21..443fe5b91b 100644 --- a/kubernetes/client/models/v1_tcp_socket_action.py +++ b/kubernetes/client/models/v1_tcp_socket_action.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_template.py b/kubernetes/client/models/v1_template.py new file mode 100644 index 0000000000..7eb4d888d8 --- /dev/null +++ b/kubernetes/client/models/v1_template.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Template(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, labels=None, message=None, metadata=None, objects=None, parameters=None): + """ + V1Template - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'labels': 'dict(str, str)', + 'message': 'str', + 'metadata': 'V1ObjectMeta', + 'objects': 'list[RuntimeRawExtension]', + 'parameters': 'list[V1Parameter]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'labels': 'labels', + 'message': 'message', + 'metadata': 'metadata', + 'objects': 'objects', + 'parameters': 'parameters' + } + + self._api_version = api_version + self._kind = kind + self._labels = labels + self._message = message + self._metadata = metadata + self._objects = objects + self._parameters = parameters + + @property + def api_version(self): + """ + Gets the api_version of this V1Template. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1Template. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Template. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1Template. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1Template. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1Template. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Template. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1Template. + :type: str + """ + + self._kind = kind + + @property + def labels(self): + """ + Gets the labels of this V1Template. + labels is a optional set of labels that are applied to every object during the Template to Config transformation. + + :return: The labels of this V1Template. + :rtype: dict(str, str) + """ + return self._labels + + @labels.setter + def labels(self, labels): + """ + Sets the labels of this V1Template. + labels is a optional set of labels that are applied to every object during the Template to Config transformation. + + :param labels: The labels of this V1Template. + :type: dict(str, str) + """ + + self._labels = labels + + @property + def message(self): + """ + Gets the message of this V1Template. + message is an optional instructional message that will be displayed when this template is instantiated. This field should inform the user how to utilize the newly created resources. Parameter substitution will be performed on the message before being displayed so that generated credentials and other parameters can be included in the output. + + :return: The message of this V1Template. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1Template. + message is an optional instructional message that will be displayed when this template is instantiated. This field should inform the user how to utilize the newly created resources. Parameter substitution will be performed on the message before being displayed so that generated credentials and other parameters can be included in the output. + + :param message: The message of this V1Template. + :type: str + """ + + self._message = message + + @property + def metadata(self): + """ + Gets the metadata of this V1Template. + Standard object's metadata. + + :return: The metadata of this V1Template. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Template. + Standard object's metadata. + + :param metadata: The metadata of this V1Template. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def objects(self): + """ + Gets the objects of this V1Template. + objects is an array of resources to include in this template. If a namespace value is hardcoded in the object, it will be removed during template instantiation, however if the namespace value is, or contains, a ${PARAMETER_REFERENCE}, the resolved value after parameter substitution will be respected and the object will be created in that namespace. + + :return: The objects of this V1Template. + :rtype: list[RuntimeRawExtension] + """ + return self._objects + + @objects.setter + def objects(self, objects): + """ + Sets the objects of this V1Template. + objects is an array of resources to include in this template. If a namespace value is hardcoded in the object, it will be removed during template instantiation, however if the namespace value is, or contains, a ${PARAMETER_REFERENCE}, the resolved value after parameter substitution will be respected and the object will be created in that namespace. + + :param objects: The objects of this V1Template. + :type: list[RuntimeRawExtension] + """ + if objects is None: + raise ValueError("Invalid value for `objects`, must not be `None`") + + self._objects = objects + + @property + def parameters(self): + """ + Gets the parameters of this V1Template. + parameters is an optional array of Parameters used during the Template to Config transformation. + + :return: The parameters of this V1Template. + :rtype: list[V1Parameter] + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """ + Sets the parameters of this V1Template. + parameters is an optional array of Parameters used during the Template to Config transformation. + + :param parameters: The parameters of this V1Template. + :type: list[V1Parameter] + """ + + self._parameters = parameters + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1Template): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_template_list.py b/kubernetes/client/models/v1_template_list.py new file mode 100644 index 0000000000..d796f05bb4 --- /dev/null +++ b/kubernetes/client/models/v1_template_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TemplateList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1TemplateList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1Template]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1TemplateList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1TemplateList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1TemplateList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1TemplateList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1TemplateList. + Items is a list of templates + + :return: The items of this V1TemplateList. + :rtype: list[V1Template] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1TemplateList. + Items is a list of templates + + :param items: The items of this V1TemplateList. + :type: list[V1Template] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1TemplateList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1TemplateList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1TemplateList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1TemplateList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1TemplateList. + Standard object's metadata. + + :return: The metadata of this V1TemplateList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1TemplateList. + Standard object's metadata. + + :param metadata: The metadata of this V1TemplateList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1TemplateList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_tls_config.py b/kubernetes/client/models/v1_tls_config.py new file mode 100644 index 0000000000..dddf95aefd --- /dev/null +++ b/kubernetes/client/models/v1_tls_config.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TLSConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, ca_certificate=None, certificate=None, destination_ca_certificate=None, insecure_edge_termination_policy=None, key=None, termination=None): + """ + V1TLSConfig - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'ca_certificate': 'str', + 'certificate': 'str', + 'destination_ca_certificate': 'str', + 'insecure_edge_termination_policy': 'str', + 'key': 'str', + 'termination': 'str' + } + + self.attribute_map = { + 'ca_certificate': 'caCertificate', + 'certificate': 'certificate', + 'destination_ca_certificate': 'destinationCACertificate', + 'insecure_edge_termination_policy': 'insecureEdgeTerminationPolicy', + 'key': 'key', + 'termination': 'termination' + } + + self._ca_certificate = ca_certificate + self._certificate = certificate + self._destination_ca_certificate = destination_ca_certificate + self._insecure_edge_termination_policy = insecure_edge_termination_policy + self._key = key + self._termination = termination + + @property + def ca_certificate(self): + """ + Gets the ca_certificate of this V1TLSConfig. + caCertificate provides the cert authority certificate contents + + :return: The ca_certificate of this V1TLSConfig. + :rtype: str + """ + return self._ca_certificate + + @ca_certificate.setter + def ca_certificate(self, ca_certificate): + """ + Sets the ca_certificate of this V1TLSConfig. + caCertificate provides the cert authority certificate contents + + :param ca_certificate: The ca_certificate of this V1TLSConfig. + :type: str + """ + + self._ca_certificate = ca_certificate + + @property + def certificate(self): + """ + Gets the certificate of this V1TLSConfig. + certificate provides certificate contents + + :return: The certificate of this V1TLSConfig. + :rtype: str + """ + return self._certificate + + @certificate.setter + def certificate(self, certificate): + """ + Sets the certificate of this V1TLSConfig. + certificate provides certificate contents + + :param certificate: The certificate of this V1TLSConfig. + :type: str + """ + + self._certificate = certificate + + @property + def destination_ca_certificate(self): + """ + Gets the destination_ca_certificate of this V1TLSConfig. + destinationCACertificate provides the contents of the ca certificate of the final destination. When using reencrypt termination this file should be provided in order to have routers use it for health checks on the secure connection + + :return: The destination_ca_certificate of this V1TLSConfig. + :rtype: str + """ + return self._destination_ca_certificate + + @destination_ca_certificate.setter + def destination_ca_certificate(self, destination_ca_certificate): + """ + Sets the destination_ca_certificate of this V1TLSConfig. + destinationCACertificate provides the contents of the ca certificate of the final destination. When using reencrypt termination this file should be provided in order to have routers use it for health checks on the secure connection + + :param destination_ca_certificate: The destination_ca_certificate of this V1TLSConfig. + :type: str + """ + + self._destination_ca_certificate = destination_ca_certificate + + @property + def insecure_edge_termination_policy(self): + """ + Gets the insecure_edge_termination_policy of this V1TLSConfig. + insecureEdgeTerminationPolicy indicates the desired behavior for insecure connections to a route. While each router may make its own decisions on which ports to expose, this is normally port 80. * Allow - traffic is sent to the server on the insecure port (default) * Disable - no traffic is allowed on the insecure port. * Redirect - clients are redirected to the secure port. + + :return: The insecure_edge_termination_policy of this V1TLSConfig. + :rtype: str + """ + return self._insecure_edge_termination_policy + + @insecure_edge_termination_policy.setter + def insecure_edge_termination_policy(self, insecure_edge_termination_policy): + """ + Sets the insecure_edge_termination_policy of this V1TLSConfig. + insecureEdgeTerminationPolicy indicates the desired behavior for insecure connections to a route. While each router may make its own decisions on which ports to expose, this is normally port 80. * Allow - traffic is sent to the server on the insecure port (default) * Disable - no traffic is allowed on the insecure port. * Redirect - clients are redirected to the secure port. + + :param insecure_edge_termination_policy: The insecure_edge_termination_policy of this V1TLSConfig. + :type: str + """ + + self._insecure_edge_termination_policy = insecure_edge_termination_policy + + @property + def key(self): + """ + Gets the key of this V1TLSConfig. + key provides key file contents + + :return: The key of this V1TLSConfig. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this V1TLSConfig. + key provides key file contents + + :param key: The key of this V1TLSConfig. + :type: str + """ + + self._key = key + + @property + def termination(self): + """ + Gets the termination of this V1TLSConfig. + termination indicates termination type. + + :return: The termination of this V1TLSConfig. + :rtype: str + """ + return self._termination + + @termination.setter + def termination(self, termination): + """ + Sets the termination of this V1TLSConfig. + termination indicates termination type. + + :param termination: The termination of this V1TLSConfig. + :type: str + """ + if termination is None: + raise ValueError("Invalid value for `termination`, must not be `None`") + + self._termination = termination + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1TLSConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_token_review.py b/kubernetes/client/models/v1_token_review.py deleted file mode 100644 index c02735469e..0000000000 --- a/kubernetes/client/models/v1_token_review.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1TokenReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1TokenReview - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'V1TokenReviewSpec', - 'status': 'V1TokenReviewStatus' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status - - @property - def api_version(self): - """ - Gets the api_version of this V1TokenReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1TokenReview. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1TokenReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1TokenReview. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1TokenReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1TokenReview. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1TokenReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1TokenReview. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1TokenReview. - - :return: The metadata of this V1TokenReview. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1TokenReview. - - :param metadata: The metadata of this V1TokenReview. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this V1TokenReview. - Spec holds information about the request being evaluated - - :return: The spec of this V1TokenReview. - :rtype: V1TokenReviewSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this V1TokenReview. - Spec holds information about the request being evaluated - - :param spec: The spec of this V1TokenReview. - :type: V1TokenReviewSpec - """ - if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this V1TokenReview. - Status is filled in by the server and indicates whether the request can be authenticated. - - :return: The status of this V1TokenReview. - :rtype: V1TokenReviewStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this V1TokenReview. - Status is filled in by the server and indicates whether the request can be authenticated. - - :param status: The status of this V1TokenReview. - :type: V1TokenReviewStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1TokenReview): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_token_review_spec.py b/kubernetes/client/models/v1_token_review_spec.py deleted file mode 100644 index affd577219..0000000000 --- a/kubernetes/client/models/v1_token_review_spec.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1TokenReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, token=None): - """ - V1TokenReviewSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'token': 'str' - } - - self.attribute_map = { - 'token': 'token' - } - - self._token = token - - @property - def token(self): - """ - Gets the token of this V1TokenReviewSpec. - Token is the opaque bearer token. - - :return: The token of this V1TokenReviewSpec. - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """ - Sets the token of this V1TokenReviewSpec. - Token is the opaque bearer token. - - :param token: The token of this V1TokenReviewSpec. - :type: str - """ - - self._token = token - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1TokenReviewSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_token_review_status.py b/kubernetes/client/models/v1_token_review_status.py deleted file mode 100644 index 781f20f4d1..0000000000 --- a/kubernetes/client/models/v1_token_review_status.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1TokenReviewStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, authenticated=None, error=None, user=None): - """ - V1TokenReviewStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'authenticated': 'bool', - 'error': 'str', - 'user': 'V1UserInfo' - } - - self.attribute_map = { - 'authenticated': 'authenticated', - 'error': 'error', - 'user': 'user' - } - - self._authenticated = authenticated - self._error = error - self._user = user - - @property - def authenticated(self): - """ - Gets the authenticated of this V1TokenReviewStatus. - Authenticated indicates that the token was associated with a known user. - - :return: The authenticated of this V1TokenReviewStatus. - :rtype: bool - """ - return self._authenticated - - @authenticated.setter - def authenticated(self, authenticated): - """ - Sets the authenticated of this V1TokenReviewStatus. - Authenticated indicates that the token was associated with a known user. - - :param authenticated: The authenticated of this V1TokenReviewStatus. - :type: bool - """ - - self._authenticated = authenticated - - @property - def error(self): - """ - Gets the error of this V1TokenReviewStatus. - Error indicates that the token couldn't be checked - - :return: The error of this V1TokenReviewStatus. - :rtype: str - """ - return self._error - - @error.setter - def error(self, error): - """ - Sets the error of this V1TokenReviewStatus. - Error indicates that the token couldn't be checked - - :param error: The error of this V1TokenReviewStatus. - :type: str - """ - - self._error = error - - @property - def user(self): - """ - Gets the user of this V1TokenReviewStatus. - User is the UserInfo associated with the provided token. - - :return: The user of this V1TokenReviewStatus. - :rtype: V1UserInfo - """ - return self._user - - @user.setter - def user(self, user): - """ - Sets the user of this V1TokenReviewStatus. - User is the UserInfo associated with the provided token. - - :param user: The user of this V1TokenReviewStatus. - :type: V1UserInfo - """ - - self._user = user - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1TokenReviewStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_toleration.py b/kubernetes/client/models/v1_toleration.py deleted file mode 100644 index ce95e65e7e..0000000000 --- a/kubernetes/client/models/v1_toleration.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1Toleration(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None, value=None): - """ - V1Toleration - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'effect': 'str', - 'key': 'str', - 'operator': 'str', - 'toleration_seconds': 'int', - 'value': 'str' - } - - self.attribute_map = { - 'effect': 'effect', - 'key': 'key', - 'operator': 'operator', - 'toleration_seconds': 'tolerationSeconds', - 'value': 'value' - } - - self._effect = effect - self._key = key - self._operator = operator - self._toleration_seconds = toleration_seconds - self._value = value - - @property - def effect(self): - """ - Gets the effect of this V1Toleration. - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - - :return: The effect of this V1Toleration. - :rtype: str - """ - return self._effect - - @effect.setter - def effect(self, effect): - """ - Sets the effect of this V1Toleration. - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - - :param effect: The effect of this V1Toleration. - :type: str - """ - - self._effect = effect - - @property - def key(self): - """ - Gets the key of this V1Toleration. - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - - :return: The key of this V1Toleration. - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """ - Sets the key of this V1Toleration. - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - - :param key: The key of this V1Toleration. - :type: str - """ - - self._key = key - - @property - def operator(self): - """ - Gets the operator of this V1Toleration. - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - - :return: The operator of this V1Toleration. - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """ - Sets the operator of this V1Toleration. - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - - :param operator: The operator of this V1Toleration. - :type: str - """ - - self._operator = operator - - @property - def toleration_seconds(self): - """ - Gets the toleration_seconds of this V1Toleration. - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - - :return: The toleration_seconds of this V1Toleration. - :rtype: int - """ - return self._toleration_seconds - - @toleration_seconds.setter - def toleration_seconds(self, toleration_seconds): - """ - Sets the toleration_seconds of this V1Toleration. - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - - :param toleration_seconds: The toleration_seconds of this V1Toleration. - :type: int - """ - - self._toleration_seconds = toleration_seconds - - @property - def value(self): - """ - Gets the value of this V1Toleration. - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - :return: The value of this V1Toleration. - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """ - Sets the value of this V1Toleration. - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - :param value: The value of this V1Toleration. - :type: str - """ - - self._value = value - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1Toleration): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_user.py b/kubernetes/client/models/v1_user.py new file mode 100644 index 0000000000..3832e2bc4b --- /dev/null +++ b/kubernetes/client/models/v1_user.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1User(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, full_name=None, groups=None, identities=None, kind=None, metadata=None): + """ + V1User - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'full_name': 'str', + 'groups': 'list[str]', + 'identities': 'list[str]', + 'kind': 'str', + 'metadata': 'V1ObjectMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'full_name': 'fullName', + 'groups': 'groups', + 'identities': 'identities', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._full_name = full_name + self._groups = groups + self._identities = identities + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1User. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1User. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1User. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1User. + :type: str + """ + + self._api_version = api_version + + @property + def full_name(self): + """ + Gets the full_name of this V1User. + FullName is the full name of user + + :return: The full_name of this V1User. + :rtype: str + """ + return self._full_name + + @full_name.setter + def full_name(self, full_name): + """ + Sets the full_name of this V1User. + FullName is the full name of user + + :param full_name: The full_name of this V1User. + :type: str + """ + + self._full_name = full_name + + @property + def groups(self): + """ + Gets the groups of this V1User. + Groups specifies group names this user is a member of. This field is deprecated and will be removed in a future release. Instead, create a Group object containing the name of this User. + + :return: The groups of this V1User. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1User. + Groups specifies group names this user is a member of. This field is deprecated and will be removed in a future release. Instead, create a Group object containing the name of this User. + + :param groups: The groups of this V1User. + :type: list[str] + """ + if groups is None: + raise ValueError("Invalid value for `groups`, must not be `None`") + + self._groups = groups + + @property + def identities(self): + """ + Gets the identities of this V1User. + Identities are the identities associated with this user + + :return: The identities of this V1User. + :rtype: list[str] + """ + return self._identities + + @identities.setter + def identities(self, identities): + """ + Sets the identities of this V1User. + Identities are the identities associated with this user + + :param identities: The identities of this V1User. + :type: list[str] + """ + if identities is None: + raise ValueError("Invalid value for `identities`, must not be `None`") + + self._identities = identities + + @property + def kind(self): + """ + Gets the kind of this V1User. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1User. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1User. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1User. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1User. + Standard object's metadata. + + :return: The metadata of this V1User. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1User. + Standard object's metadata. + + :param metadata: The metadata of this V1User. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1User): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_user_identity_mapping.py b/kubernetes/client/models/v1_user_identity_mapping.py new file mode 100644 index 0000000000..b7efc3a329 --- /dev/null +++ b/kubernetes/client/models/v1_user_identity_mapping.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1UserIdentityMapping(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, identity=None, kind=None, metadata=None, user=None): + """ + V1UserIdentityMapping - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'identity': 'V1ObjectReference', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'user': 'V1ObjectReference' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'identity': 'identity', + 'kind': 'kind', + 'metadata': 'metadata', + 'user': 'user' + } + + self._api_version = api_version + self._identity = identity + self._kind = kind + self._metadata = metadata + self._user = user + + @property + def api_version(self): + """ + Gets the api_version of this V1UserIdentityMapping. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1UserIdentityMapping. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1UserIdentityMapping. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1UserIdentityMapping. + :type: str + """ + + self._api_version = api_version + + @property + def identity(self): + """ + Gets the identity of this V1UserIdentityMapping. + Identity is a reference to an identity + + :return: The identity of this V1UserIdentityMapping. + :rtype: V1ObjectReference + """ + return self._identity + + @identity.setter + def identity(self, identity): + """ + Sets the identity of this V1UserIdentityMapping. + Identity is a reference to an identity + + :param identity: The identity of this V1UserIdentityMapping. + :type: V1ObjectReference + """ + + self._identity = identity + + @property + def kind(self): + """ + Gets the kind of this V1UserIdentityMapping. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1UserIdentityMapping. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1UserIdentityMapping. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1UserIdentityMapping. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1UserIdentityMapping. + Standard object's metadata. + + :return: The metadata of this V1UserIdentityMapping. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1UserIdentityMapping. + Standard object's metadata. + + :param metadata: The metadata of this V1UserIdentityMapping. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def user(self): + """ + Gets the user of this V1UserIdentityMapping. + User is a reference to a user + + :return: The user of this V1UserIdentityMapping. + :rtype: V1ObjectReference + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1UserIdentityMapping. + User is a reference to a user + + :param user: The user of this V1UserIdentityMapping. + :type: V1ObjectReference + """ + + self._user = user + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1UserIdentityMapping): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_user_info.py b/kubernetes/client/models/v1_user_info.py deleted file mode 100644 index ef3622b8fb..0000000000 --- a/kubernetes/client/models/v1_user_info.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1UserInfo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, extra=None, groups=None, uid=None, username=None): - """ - V1UserInfo - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'extra': 'dict(str, list[str])', - 'groups': 'list[str]', - 'uid': 'str', - 'username': 'str' - } - - self.attribute_map = { - 'extra': 'extra', - 'groups': 'groups', - 'uid': 'uid', - 'username': 'username' - } - - self._extra = extra - self._groups = groups - self._uid = uid - self._username = username - - @property - def extra(self): - """ - Gets the extra of this V1UserInfo. - Any additional information provided by the authenticator. - - :return: The extra of this V1UserInfo. - :rtype: dict(str, list[str]) - """ - return self._extra - - @extra.setter - def extra(self, extra): - """ - Sets the extra of this V1UserInfo. - Any additional information provided by the authenticator. - - :param extra: The extra of this V1UserInfo. - :type: dict(str, list[str]) - """ - - self._extra = extra - - @property - def groups(self): - """ - Gets the groups of this V1UserInfo. - The names of groups this user is a part of. - - :return: The groups of this V1UserInfo. - :rtype: list[str] - """ - return self._groups - - @groups.setter - def groups(self, groups): - """ - Sets the groups of this V1UserInfo. - The names of groups this user is a part of. - - :param groups: The groups of this V1UserInfo. - :type: list[str] - """ - - self._groups = groups - - @property - def uid(self): - """ - Gets the uid of this V1UserInfo. - A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. - - :return: The uid of this V1UserInfo. - :rtype: str - """ - return self._uid - - @uid.setter - def uid(self, uid): - """ - Sets the uid of this V1UserInfo. - A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. - - :param uid: The uid of this V1UserInfo. - :type: str - """ - - self._uid = uid - - @property - def username(self): - """ - Gets the username of this V1UserInfo. - The name that uniquely identifies this user among all active users. - - :return: The username of this V1UserInfo. - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """ - Sets the username of this V1UserInfo. - The name that uniquely identifies this user among all active users. - - :param username: The username of this V1UserInfo. - :type: str - """ - - self._username = username - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1UserInfo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_user_list.py b/kubernetes/client/models/v1_user_list.py new file mode 100644 index 0000000000..91797d2a90 --- /dev/null +++ b/kubernetes/client/models/v1_user_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1UserList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1UserList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1User]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1UserList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1UserList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1UserList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1UserList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1UserList. + Items is the list of users + + :return: The items of this V1UserList. + :rtype: list[V1User] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1UserList. + Items is the list of users + + :param items: The items of this V1UserList. + :type: list[V1User] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1UserList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1UserList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1UserList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1UserList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1UserList. + Standard object's metadata. + + :return: The metadata of this V1UserList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1UserList. + Standard object's metadata. + + :param metadata: The metadata of this V1UserList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1UserList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_user_restriction.py b/kubernetes/client/models/v1_user_restriction.py new file mode 100644 index 0000000000..e561be8201 --- /dev/null +++ b/kubernetes/client/models/v1_user_restriction.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1UserRestriction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, groups=None, labels=None, users=None): + """ + V1UserRestriction - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'groups': 'list[str]', + 'labels': 'list[UnversionedLabelSelector]', + 'users': 'list[str]' + } + + self.attribute_map = { + 'groups': 'groups', + 'labels': 'labels', + 'users': 'users' + } + + self._groups = groups + self._labels = labels + self._users = users + + @property + def groups(self): + """ + Gets the groups of this V1UserRestriction. + Groups specifies a list of literal group names. + + :return: The groups of this V1UserRestriction. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1UserRestriction. + Groups specifies a list of literal group names. + + :param groups: The groups of this V1UserRestriction. + :type: list[str] + """ + if groups is None: + raise ValueError("Invalid value for `groups`, must not be `None`") + + self._groups = groups + + @property + def labels(self): + """ + Gets the labels of this V1UserRestriction. + Selectors specifies a list of label selectors over user labels. + + :return: The labels of this V1UserRestriction. + :rtype: list[UnversionedLabelSelector] + """ + return self._labels + + @labels.setter + def labels(self, labels): + """ + Sets the labels of this V1UserRestriction. + Selectors specifies a list of label selectors over user labels. + + :param labels: The labels of this V1UserRestriction. + :type: list[UnversionedLabelSelector] + """ + if labels is None: + raise ValueError("Invalid value for `labels`, must not be `None`") + + self._labels = labels + + @property + def users(self): + """ + Gets the users of this V1UserRestriction. + Users specifies a list of literal user names. + + :return: The users of this V1UserRestriction. + :rtype: list[str] + """ + return self._users + + @users.setter + def users(self, users): + """ + Sets the users of this V1UserRestriction. + Users specifies a list of literal user names. + + :param users: The users of this V1UserRestriction. + :type: list[str] + """ + if users is None: + raise ValueError("Invalid value for `users`, must not be `None`") + + self._users = users + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1UserRestriction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_volume.py b/kubernetes/client/models/v1_volume.py index 350925bc6e..0a5b17c2bb 100644 --- a/kubernetes/client/models/v1_volume.py +++ b/kubernetes/client/models/v1_volume.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1Volume(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=None, cephfs=None, cinder=None, config_map=None, downward_api=None, empty_dir=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, git_repo=None, glusterfs=None, host_path=None, iscsi=None, name=None, nfs=None, persistent_volume_claim=None, photon_persistent_disk=None, portworx_volume=None, projected=None, quobyte=None, rbd=None, scale_io=None, secret=None, vsphere_volume=None): + def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=None, cephfs=None, cinder=None, config_map=None, downward_api=None, empty_dir=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, git_repo=None, glusterfs=None, host_path=None, iscsi=None, metadata=None, name=None, nfs=None, persistent_volume_claim=None, photon_persistent_disk=None, quobyte=None, rbd=None, secret=None, vsphere_volume=None): """ V1Volume - a model defined in Swagger @@ -47,15 +47,13 @@ def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=Non 'glusterfs': 'V1GlusterfsVolumeSource', 'host_path': 'V1HostPathVolumeSource', 'iscsi': 'V1ISCSIVolumeSource', + 'metadata': 'V1DeprecatedDownwardAPIVolumeSource', 'name': 'str', 'nfs': 'V1NFSVolumeSource', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', 'photon_persistent_disk': 'V1PhotonPersistentDiskVolumeSource', - 'portworx_volume': 'V1PortworxVolumeSource', - 'projected': 'V1ProjectedVolumeSource', 'quobyte': 'V1QuobyteVolumeSource', 'rbd': 'V1RBDVolumeSource', - 'scale_io': 'V1ScaleIOVolumeSource', 'secret': 'V1SecretVolumeSource', 'vsphere_volume': 'V1VsphereVirtualDiskVolumeSource' } @@ -77,15 +75,13 @@ def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=Non 'glusterfs': 'glusterfs', 'host_path': 'hostPath', 'iscsi': 'iscsi', + 'metadata': 'metadata', 'name': 'name', 'nfs': 'nfs', 'persistent_volume_claim': 'persistentVolumeClaim', 'photon_persistent_disk': 'photonPersistentDisk', - 'portworx_volume': 'portworxVolume', - 'projected': 'projected', 'quobyte': 'quobyte', 'rbd': 'rbd', - 'scale_io': 'scaleIO', 'secret': 'secret', 'vsphere_volume': 'vsphereVolume' } @@ -106,15 +102,13 @@ def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=Non self._glusterfs = glusterfs self._host_path = host_path self._iscsi = iscsi + self._metadata = metadata self._name = name self._nfs = nfs self._persistent_volume_claim = persistent_volume_claim self._photon_persistent_disk = photon_persistent_disk - self._portworx_volume = portworx_volume - self._projected = projected self._quobyte = quobyte self._rbd = rbd - self._scale_io = scale_io self._secret = secret self._vsphere_volume = vsphere_volume @@ -486,6 +480,29 @@ def iscsi(self, iscsi): self._iscsi = iscsi + @property + def metadata(self): + """ + Gets the metadata of this V1Volume. + Metadata represents metadata about the pod that should populate this volume Deprecated: Use downwardAPI instead. + + :return: The metadata of this V1Volume. + :rtype: V1DeprecatedDownwardAPIVolumeSource + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Volume. + Metadata represents metadata about the pod that should populate this volume Deprecated: Use downwardAPI instead. + + :param metadata: The metadata of this V1Volume. + :type: V1DeprecatedDownwardAPIVolumeSource + """ + + self._metadata = metadata + @property def name(self): """ @@ -580,52 +597,6 @@ def photon_persistent_disk(self, photon_persistent_disk): self._photon_persistent_disk = photon_persistent_disk - @property - def portworx_volume(self): - """ - Gets the portworx_volume of this V1Volume. - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - - :return: The portworx_volume of this V1Volume. - :rtype: V1PortworxVolumeSource - """ - return self._portworx_volume - - @portworx_volume.setter - def portworx_volume(self, portworx_volume): - """ - Sets the portworx_volume of this V1Volume. - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - - :param portworx_volume: The portworx_volume of this V1Volume. - :type: V1PortworxVolumeSource - """ - - self._portworx_volume = portworx_volume - - @property - def projected(self): - """ - Gets the projected of this V1Volume. - Items for all in one resources secrets, configmaps, and downward API - - :return: The projected of this V1Volume. - :rtype: V1ProjectedVolumeSource - """ - return self._projected - - @projected.setter - def projected(self, projected): - """ - Sets the projected of this V1Volume. - Items for all in one resources secrets, configmaps, and downward API - - :param projected: The projected of this V1Volume. - :type: V1ProjectedVolumeSource - """ - - self._projected = projected - @property def quobyte(self): """ @@ -672,29 +643,6 @@ def rbd(self, rbd): self._rbd = rbd - @property - def scale_io(self): - """ - Gets the scale_io of this V1Volume. - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - - :return: The scale_io of this V1Volume. - :rtype: V1ScaleIOVolumeSource - """ - return self._scale_io - - @scale_io.setter - def scale_io(self, scale_io): - """ - Sets the scale_io of this V1Volume. - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - - :param scale_io: The scale_io of this V1Volume. - :type: V1ScaleIOVolumeSource - """ - - self._scale_io = scale_io - @property def secret(self): """ diff --git a/kubernetes/client/models/v1_volume_mount.py b/kubernetes/client/models/v1_volume_mount.py index 05b434c588..91c0da9c46 100644 --- a/kubernetes/client/models/v1_volume_mount.py +++ b/kubernetes/client/models/v1_volume_mount.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_volume_projection.py b/kubernetes/client/models/v1_volume_projection.py deleted file mode 100644 index 06d2273be9..0000000000 --- a/kubernetes/client/models/v1_volume_projection.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1VolumeProjection(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, config_map=None, downward_api=None, secret=None): - """ - V1VolumeProjection - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'config_map': 'V1ConfigMapProjection', - 'downward_api': 'V1DownwardAPIProjection', - 'secret': 'V1SecretProjection' - } - - self.attribute_map = { - 'config_map': 'configMap', - 'downward_api': 'downwardAPI', - 'secret': 'secret' - } - - self._config_map = config_map - self._downward_api = downward_api - self._secret = secret - - @property - def config_map(self): - """ - Gets the config_map of this V1VolumeProjection. - information about the configMap data to project - - :return: The config_map of this V1VolumeProjection. - :rtype: V1ConfigMapProjection - """ - return self._config_map - - @config_map.setter - def config_map(self, config_map): - """ - Sets the config_map of this V1VolumeProjection. - information about the configMap data to project - - :param config_map: The config_map of this V1VolumeProjection. - :type: V1ConfigMapProjection - """ - - self._config_map = config_map - - @property - def downward_api(self): - """ - Gets the downward_api of this V1VolumeProjection. - information about the downwardAPI data to project - - :return: The downward_api of this V1VolumeProjection. - :rtype: V1DownwardAPIProjection - """ - return self._downward_api - - @downward_api.setter - def downward_api(self, downward_api): - """ - Sets the downward_api of this V1VolumeProjection. - information about the downwardAPI data to project - - :param downward_api: The downward_api of this V1VolumeProjection. - :type: V1DownwardAPIProjection - """ - - self._downward_api = downward_api - - @property - def secret(self): - """ - Gets the secret of this V1VolumeProjection. - information about the secret data to project - - :return: The secret of this V1VolumeProjection. - :rtype: V1SecretProjection - """ - return self._secret - - @secret.setter - def secret(self, secret): - """ - Sets the secret of this V1VolumeProjection. - information about the secret data to project - - :param secret: The secret of this V1VolumeProjection. - :type: V1SecretProjection - """ - - self._secret = secret - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1VolumeProjection): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py b/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py index d4885ec664..42ccfc9c01 100644 --- a/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py +++ b/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_watch_event.py b/kubernetes/client/models/v1_watch_event.py deleted file mode 100644 index 1fd5597c98..0000000000 --- a/kubernetes/client/models/v1_watch_event.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1WatchEvent(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, object=None, type=None): - """ - V1WatchEvent - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'object': 'RuntimeRawExtension', - 'type': 'str' - } - - self.attribute_map = { - 'object': 'object', - 'type': 'type' - } - - self._object = object - self._type = type - - @property - def object(self): - """ - Gets the object of this V1WatchEvent. - Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. - - :return: The object of this V1WatchEvent. - :rtype: RuntimeRawExtension - """ - return self._object - - @object.setter - def object(self, object): - """ - Sets the object of this V1WatchEvent. - Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. - - :param object: The object of this V1WatchEvent. - :type: RuntimeRawExtension - """ - if object is None: - raise ValueError("Invalid value for `object`, must not be `None`") - - self._object = object - - @property - def type(self): - """ - Gets the type of this V1WatchEvent. - - :return: The type of this V1WatchEvent. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V1WatchEvent. - - :param type: The type of this V1WatchEvent. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1WatchEvent): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_web_hook_trigger.py b/kubernetes/client/models/v1_web_hook_trigger.py new file mode 100644 index 0000000000..0bf7aa2554 --- /dev/null +++ b/kubernetes/client/models/v1_web_hook_trigger.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1WebHookTrigger(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, allow_env=None, secret=None): + """ + V1WebHookTrigger - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'allow_env': 'bool', + 'secret': 'str' + } + + self.attribute_map = { + 'allow_env': 'allowEnv', + 'secret': 'secret' + } + + self._allow_env = allow_env + self._secret = secret + + @property + def allow_env(self): + """ + Gets the allow_env of this V1WebHookTrigger. + allowEnv determines whether the webhook can set environment variables; can only be set to true for GenericWebHook. + + :return: The allow_env of this V1WebHookTrigger. + :rtype: bool + """ + return self._allow_env + + @allow_env.setter + def allow_env(self, allow_env): + """ + Sets the allow_env of this V1WebHookTrigger. + allowEnv determines whether the webhook can set environment variables; can only be set to true for GenericWebHook. + + :param allow_env: The allow_env of this V1WebHookTrigger. + :type: bool + """ + + self._allow_env = allow_env + + @property + def secret(self): + """ + Gets the secret of this V1WebHookTrigger. + secret used to validate requests. + + :return: The secret of this V1WebHookTrigger. + :rtype: str + """ + return self._secret + + @secret.setter + def secret(self, secret): + """ + Sets the secret of this V1WebHookTrigger. + secret used to validate requests. + + :param secret: The secret of this V1WebHookTrigger. + :type: str + """ + + self._secret = secret + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1WebHookTrigger): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1_weighted_pod_affinity_term.py b/kubernetes/client/models/v1_weighted_pod_affinity_term.py deleted file mode 100644 index 936dac35df..0000000000 --- a/kubernetes/client/models/v1_weighted_pod_affinity_term.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1WeightedPodAffinityTerm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, pod_affinity_term=None, weight=None): - """ - V1WeightedPodAffinityTerm - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'pod_affinity_term': 'V1PodAffinityTerm', - 'weight': 'int' - } - - self.attribute_map = { - 'pod_affinity_term': 'podAffinityTerm', - 'weight': 'weight' - } - - self._pod_affinity_term = pod_affinity_term - self._weight = weight - - @property - def pod_affinity_term(self): - """ - Gets the pod_affinity_term of this V1WeightedPodAffinityTerm. - Required. A pod affinity term, associated with the corresponding weight. - - :return: The pod_affinity_term of this V1WeightedPodAffinityTerm. - :rtype: V1PodAffinityTerm - """ - return self._pod_affinity_term - - @pod_affinity_term.setter - def pod_affinity_term(self, pod_affinity_term): - """ - Sets the pod_affinity_term of this V1WeightedPodAffinityTerm. - Required. A pod affinity term, associated with the corresponding weight. - - :param pod_affinity_term: The pod_affinity_term of this V1WeightedPodAffinityTerm. - :type: V1PodAffinityTerm - """ - if pod_affinity_term is None: - raise ValueError("Invalid value for `pod_affinity_term`, must not be `None`") - - self._pod_affinity_term = pod_affinity_term - - @property - def weight(self): - """ - Gets the weight of this V1WeightedPodAffinityTerm. - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - :return: The weight of this V1WeightedPodAffinityTerm. - :rtype: int - """ - return self._weight - - @weight.setter - def weight(self, weight): - """ - Sets the weight of this V1WeightedPodAffinityTerm. - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - :param weight: The weight of this V1WeightedPodAffinityTerm. - :type: int - """ - if weight is None: - raise ValueError("Invalid value for `weight`, must not be `None`") - - self._weight = weight - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1WeightedPodAffinityTerm): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_certificate_signing_request.py b/kubernetes/client/models/v1alpha1_certificate_signing_request.py new file mode 100644 index 0000000000..f51af6b3f4 --- /dev/null +++ b/kubernetes/client/models/v1alpha1_certificate_signing_request.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1CertificateSigningRequest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1alpha1CertificateSigningRequest - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1alpha1CertificateSigningRequestSpec', + 'status': 'V1alpha1CertificateSigningRequestStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1CertificateSigningRequest. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1alpha1CertificateSigningRequest. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1CertificateSigningRequest. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1CertificateSigningRequest. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1CertificateSigningRequest. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1CertificateSigningRequest. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1CertificateSigningRequest. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1CertificateSigningRequest. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1CertificateSigningRequest. + + :return: The metadata of this V1alpha1CertificateSigningRequest. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1CertificateSigningRequest. + + :param metadata: The metadata of this V1alpha1CertificateSigningRequest. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1CertificateSigningRequest. + The certificate request itself and any additional information. + + :return: The spec of this V1alpha1CertificateSigningRequest. + :rtype: V1alpha1CertificateSigningRequestSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1CertificateSigningRequest. + The certificate request itself and any additional information. + + :param spec: The spec of this V1alpha1CertificateSigningRequest. + :type: V1alpha1CertificateSigningRequestSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1CertificateSigningRequest. + Derived information about the request. + + :return: The status of this V1alpha1CertificateSigningRequest. + :rtype: V1alpha1CertificateSigningRequestStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1CertificateSigningRequest. + Derived information about the request. + + :param status: The status of this V1alpha1CertificateSigningRequest. + :type: V1alpha1CertificateSigningRequestStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1alpha1CertificateSigningRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1alpha1_certificate_signing_request_condition.py b/kubernetes/client/models/v1alpha1_certificate_signing_request_condition.py new file mode 100644 index 0000000000..b4c3d7ebdc --- /dev/null +++ b/kubernetes/client/models/v1alpha1_certificate_signing_request_condition.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1CertificateSigningRequestCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_update_time=None, message=None, reason=None, type=None): + """ + V1alpha1CertificateSigningRequestCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_update_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_update_time': 'lastUpdateTime', + 'message': 'message', + 'reason': 'reason', + 'type': 'type' + } + + self._last_update_time = last_update_time + self._message = message + self._reason = reason + self._type = type + + @property + def last_update_time(self): + """ + Gets the last_update_time of this V1alpha1CertificateSigningRequestCondition. + timestamp for the last update to this condition + + :return: The last_update_time of this V1alpha1CertificateSigningRequestCondition. + :rtype: datetime + """ + return self._last_update_time + + @last_update_time.setter + def last_update_time(self, last_update_time): + """ + Sets the last_update_time of this V1alpha1CertificateSigningRequestCondition. + timestamp for the last update to this condition + + :param last_update_time: The last_update_time of this V1alpha1CertificateSigningRequestCondition. + :type: datetime + """ + + self._last_update_time = last_update_time + + @property + def message(self): + """ + Gets the message of this V1alpha1CertificateSigningRequestCondition. + human readable message with details about the request state + + :return: The message of this V1alpha1CertificateSigningRequestCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1alpha1CertificateSigningRequestCondition. + human readable message with details about the request state + + :param message: The message of this V1alpha1CertificateSigningRequestCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1alpha1CertificateSigningRequestCondition. + brief reason for the request state + + :return: The reason of this V1alpha1CertificateSigningRequestCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1alpha1CertificateSigningRequestCondition. + brief reason for the request state + + :param reason: The reason of this V1alpha1CertificateSigningRequestCondition. + :type: str + """ + + self._reason = reason + + @property + def type(self): + """ + Gets the type of this V1alpha1CertificateSigningRequestCondition. + request approval state, currently Approved or Denied. + + :return: The type of this V1alpha1CertificateSigningRequestCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1alpha1CertificateSigningRequestCondition. + request approval state, currently Approved or Denied. + + :param type: The type of this V1alpha1CertificateSigningRequestCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1alpha1CertificateSigningRequestCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1alpha1_certificate_signing_request_list.py b/kubernetes/client/models/v1alpha1_certificate_signing_request_list.py new file mode 100644 index 0000000000..b0643caa3a --- /dev/null +++ b/kubernetes/client/models/v1alpha1_certificate_signing_request_list.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1CertificateSigningRequestList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1CertificateSigningRequestList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1CertificateSigningRequest]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1CertificateSigningRequestList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1alpha1CertificateSigningRequestList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1CertificateSigningRequestList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1CertificateSigningRequestList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1CertificateSigningRequestList. + + :return: The items of this V1alpha1CertificateSigningRequestList. + :rtype: list[V1alpha1CertificateSigningRequest] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1CertificateSigningRequestList. + + :param items: The items of this V1alpha1CertificateSigningRequestList. + :type: list[V1alpha1CertificateSigningRequest] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1CertificateSigningRequestList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1CertificateSigningRequestList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1CertificateSigningRequestList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1CertificateSigningRequestList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1CertificateSigningRequestList. + + :return: The metadata of this V1alpha1CertificateSigningRequestList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1CertificateSigningRequestList. + + :param metadata: The metadata of this V1alpha1CertificateSigningRequestList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1alpha1CertificateSigningRequestList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1alpha1_certificate_signing_request_spec.py b/kubernetes/client/models/v1alpha1_certificate_signing_request_spec.py new file mode 100644 index 0000000000..98d0944d57 --- /dev/null +++ b/kubernetes/client/models/v1alpha1_certificate_signing_request_spec.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1CertificateSigningRequestSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, groups=None, request=None, uid=None, username=None): + """ + V1alpha1CertificateSigningRequestSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'groups': 'list[str]', + 'request': 'str', + 'uid': 'str', + 'username': 'str' + } + + self.attribute_map = { + 'groups': 'groups', + 'request': 'request', + 'uid': 'uid', + 'username': 'username' + } + + self._groups = groups + self._request = request + self._uid = uid + self._username = username + + @property + def groups(self): + """ + Gets the groups of this V1alpha1CertificateSigningRequestSpec. + + :return: The groups of this V1alpha1CertificateSigningRequestSpec. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1alpha1CertificateSigningRequestSpec. + + :param groups: The groups of this V1alpha1CertificateSigningRequestSpec. + :type: list[str] + """ + + self._groups = groups + + @property + def request(self): + """ + Gets the request of this V1alpha1CertificateSigningRequestSpec. + Base64-encoded PKCS#10 CSR data + + :return: The request of this V1alpha1CertificateSigningRequestSpec. + :rtype: str + """ + return self._request + + @request.setter + def request(self, request): + """ + Sets the request of this V1alpha1CertificateSigningRequestSpec. + Base64-encoded PKCS#10 CSR data + + :param request: The request of this V1alpha1CertificateSigningRequestSpec. + :type: str + """ + if request is None: + raise ValueError("Invalid value for `request`, must not be `None`") + + self._request = request + + @property + def uid(self): + """ + Gets the uid of this V1alpha1CertificateSigningRequestSpec. + + :return: The uid of this V1alpha1CertificateSigningRequestSpec. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this V1alpha1CertificateSigningRequestSpec. + + :param uid: The uid of this V1alpha1CertificateSigningRequestSpec. + :type: str + """ + + self._uid = uid + + @property + def username(self): + """ + Gets the username of this V1alpha1CertificateSigningRequestSpec. + Information about the requesting user (if relevant) See user.Info interface for details + + :return: The username of this V1alpha1CertificateSigningRequestSpec. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """ + Sets the username of this V1alpha1CertificateSigningRequestSpec. + Information about the requesting user (if relevant) See user.Info interface for details + + :param username: The username of this V1alpha1CertificateSigningRequestSpec. + :type: str + """ + + self._username = username + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1alpha1CertificateSigningRequestSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1alpha1_certificate_signing_request_status.py b/kubernetes/client/models/v1alpha1_certificate_signing_request_status.py new file mode 100644 index 0000000000..52f9ed3e7e --- /dev/null +++ b/kubernetes/client/models/v1alpha1_certificate_signing_request_status.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1CertificateSigningRequestStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, certificate=None, conditions=None): + """ + V1alpha1CertificateSigningRequestStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'certificate': 'str', + 'conditions': 'list[V1alpha1CertificateSigningRequestCondition]' + } + + self.attribute_map = { + 'certificate': 'certificate', + 'conditions': 'conditions' + } + + self._certificate = certificate + self._conditions = conditions + + @property + def certificate(self): + """ + Gets the certificate of this V1alpha1CertificateSigningRequestStatus. + If request was approved, the controller will place the issued certificate here. + + :return: The certificate of this V1alpha1CertificateSigningRequestStatus. + :rtype: str + """ + return self._certificate + + @certificate.setter + def certificate(self, certificate): + """ + Sets the certificate of this V1alpha1CertificateSigningRequestStatus. + If request was approved, the controller will place the issued certificate here. + + :param certificate: The certificate of this V1alpha1CertificateSigningRequestStatus. + :type: str + """ + + self._certificate = certificate + + @property + def conditions(self): + """ + Gets the conditions of this V1alpha1CertificateSigningRequestStatus. + Conditions applied to the request, such as approval or denial. + + :return: The conditions of this V1alpha1CertificateSigningRequestStatus. + :rtype: list[V1alpha1CertificateSigningRequestCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1alpha1CertificateSigningRequestStatus. + Conditions applied to the request, such as approval or denial. + + :param conditions: The conditions of this V1alpha1CertificateSigningRequestStatus. + :type: list[V1alpha1CertificateSigningRequestCondition] + """ + + self._conditions = conditions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1alpha1CertificateSigningRequestStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1alpha1_cluster_role.py b/kubernetes/client/models/v1alpha1_cluster_role.py deleted file mode 100644 index 2860c0d1c5..0000000000 --- a/kubernetes/client/models/v1alpha1_cluster_role.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1ClusterRole(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, rules=None): - """ - V1alpha1ClusterRole - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'rules': 'list[V1alpha1PolicyRule]' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'rules': 'rules' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._rules = rules - - @property - def api_version(self): - """ - Gets the api_version of this V1alpha1ClusterRole. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1alpha1ClusterRole. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1ClusterRole. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1alpha1ClusterRole. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1alpha1ClusterRole. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1alpha1ClusterRole. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1ClusterRole. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1alpha1ClusterRole. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1alpha1ClusterRole. - Standard object's metadata. - - :return: The metadata of this V1alpha1ClusterRole. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1ClusterRole. - Standard object's metadata. - - :param metadata: The metadata of this V1alpha1ClusterRole. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def rules(self): - """ - Gets the rules of this V1alpha1ClusterRole. - Rules holds all the PolicyRules for this ClusterRole - - :return: The rules of this V1alpha1ClusterRole. - :rtype: list[V1alpha1PolicyRule] - """ - return self._rules - - @rules.setter - def rules(self, rules): - """ - Sets the rules of this V1alpha1ClusterRole. - Rules holds all the PolicyRules for this ClusterRole - - :param rules: The rules of this V1alpha1ClusterRole. - :type: list[V1alpha1PolicyRule] - """ - if rules is None: - raise ValueError("Invalid value for `rules`, must not be `None`") - - self._rules = rules - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1ClusterRole): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_cluster_role_binding.py b/kubernetes/client/models/v1alpha1_cluster_role_binding.py deleted file mode 100644 index 0a4350d713..0000000000 --- a/kubernetes/client/models/v1alpha1_cluster_role_binding.py +++ /dev/null @@ -1,225 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1ClusterRoleBinding(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): - """ - V1alpha1ClusterRoleBinding - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'role_ref': 'V1alpha1RoleRef', - 'subjects': 'list[V1alpha1Subject]' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'role_ref': 'roleRef', - 'subjects': 'subjects' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._role_ref = role_ref - self._subjects = subjects - - @property - def api_version(self): - """ - Gets the api_version of this V1alpha1ClusterRoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1alpha1ClusterRoleBinding. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1ClusterRoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1alpha1ClusterRoleBinding. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1alpha1ClusterRoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1alpha1ClusterRoleBinding. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1ClusterRoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1alpha1ClusterRoleBinding. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1alpha1ClusterRoleBinding. - Standard object's metadata. - - :return: The metadata of this V1alpha1ClusterRoleBinding. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1ClusterRoleBinding. - Standard object's metadata. - - :param metadata: The metadata of this V1alpha1ClusterRoleBinding. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def role_ref(self): - """ - Gets the role_ref of this V1alpha1ClusterRoleBinding. - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - - :return: The role_ref of this V1alpha1ClusterRoleBinding. - :rtype: V1alpha1RoleRef - """ - return self._role_ref - - @role_ref.setter - def role_ref(self, role_ref): - """ - Sets the role_ref of this V1alpha1ClusterRoleBinding. - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - - :param role_ref: The role_ref of this V1alpha1ClusterRoleBinding. - :type: V1alpha1RoleRef - """ - if role_ref is None: - raise ValueError("Invalid value for `role_ref`, must not be `None`") - - self._role_ref = role_ref - - @property - def subjects(self): - """ - Gets the subjects of this V1alpha1ClusterRoleBinding. - Subjects holds references to the objects the role applies to. - - :return: The subjects of this V1alpha1ClusterRoleBinding. - :rtype: list[V1alpha1Subject] - """ - return self._subjects - - @subjects.setter - def subjects(self, subjects): - """ - Sets the subjects of this V1alpha1ClusterRoleBinding. - Subjects holds references to the objects the role applies to. - - :param subjects: The subjects of this V1alpha1ClusterRoleBinding. - :type: list[V1alpha1Subject] - """ - if subjects is None: - raise ValueError("Invalid value for `subjects`, must not be `None`") - - self._subjects = subjects - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1ClusterRoleBinding): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py b/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py deleted file mode 100644 index 5dcab3c704..0000000000 --- a/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1ClusterRoleBindingList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1ClusterRoleBindingList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[V1alpha1ClusterRoleBinding]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this V1alpha1ClusterRoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1alpha1ClusterRoleBindingList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1ClusterRoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1alpha1ClusterRoleBindingList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this V1alpha1ClusterRoleBindingList. - Items is a list of ClusterRoleBindings - - :return: The items of this V1alpha1ClusterRoleBindingList. - :rtype: list[V1alpha1ClusterRoleBinding] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1alpha1ClusterRoleBindingList. - Items is a list of ClusterRoleBindings - - :param items: The items of this V1alpha1ClusterRoleBindingList. - :type: list[V1alpha1ClusterRoleBinding] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this V1alpha1ClusterRoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1alpha1ClusterRoleBindingList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1ClusterRoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1alpha1ClusterRoleBindingList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1alpha1ClusterRoleBindingList. - Standard object's metadata. - - :return: The metadata of this V1alpha1ClusterRoleBindingList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1ClusterRoleBindingList. - Standard object's metadata. - - :param metadata: The metadata of this V1alpha1ClusterRoleBindingList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1ClusterRoleBindingList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_cluster_role_list.py b/kubernetes/client/models/v1alpha1_cluster_role_list.py deleted file mode 100644 index 5636cf723f..0000000000 --- a/kubernetes/client/models/v1alpha1_cluster_role_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1ClusterRoleList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1ClusterRoleList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[V1alpha1ClusterRole]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this V1alpha1ClusterRoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1alpha1ClusterRoleList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1ClusterRoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1alpha1ClusterRoleList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this V1alpha1ClusterRoleList. - Items is a list of ClusterRoles - - :return: The items of this V1alpha1ClusterRoleList. - :rtype: list[V1alpha1ClusterRole] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1alpha1ClusterRoleList. - Items is a list of ClusterRoles - - :param items: The items of this V1alpha1ClusterRoleList. - :type: list[V1alpha1ClusterRole] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this V1alpha1ClusterRoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1alpha1ClusterRoleList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1ClusterRoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1alpha1ClusterRoleList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1alpha1ClusterRoleList. - Standard object's metadata. - - :return: The metadata of this V1alpha1ClusterRoleList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1ClusterRoleList. - Standard object's metadata. - - :param metadata: The metadata of this V1alpha1ClusterRoleList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1ClusterRoleList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_pod_preset.py b/kubernetes/client/models/v1alpha1_pod_preset.py deleted file mode 100644 index 4ef4c607bd..0000000000 --- a/kubernetes/client/models/v1alpha1_pod_preset.py +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1PodPreset(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - V1alpha1PodPreset - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'V1alpha1PodPresetSpec' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._spec = spec - - @property - def api_version(self): - """ - Gets the api_version of this V1alpha1PodPreset. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1alpha1PodPreset. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1PodPreset. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1alpha1PodPreset. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1alpha1PodPreset. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1alpha1PodPreset. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1PodPreset. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1alpha1PodPreset. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1alpha1PodPreset. - - :return: The metadata of this V1alpha1PodPreset. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1PodPreset. - - :param metadata: The metadata of this V1alpha1PodPreset. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this V1alpha1PodPreset. - - :return: The spec of this V1alpha1PodPreset. - :rtype: V1alpha1PodPresetSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this V1alpha1PodPreset. - - :param spec: The spec of this V1alpha1PodPreset. - :type: V1alpha1PodPresetSpec - """ - - self._spec = spec - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1PodPreset): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_pod_preset_list.py b/kubernetes/client/models/v1alpha1_pod_preset_list.py deleted file mode 100644 index 087d0d6689..0000000000 --- a/kubernetes/client/models/v1alpha1_pod_preset_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1PodPresetList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1PodPresetList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[V1alpha1PodPreset]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this V1alpha1PodPresetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1alpha1PodPresetList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1PodPresetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1alpha1PodPresetList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this V1alpha1PodPresetList. - Items is a list of schema objects. - - :return: The items of this V1alpha1PodPresetList. - :rtype: list[V1alpha1PodPreset] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1alpha1PodPresetList. - Items is a list of schema objects. - - :param items: The items of this V1alpha1PodPresetList. - :type: list[V1alpha1PodPreset] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this V1alpha1PodPresetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1alpha1PodPresetList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1PodPresetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1alpha1PodPresetList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1alpha1PodPresetList. - Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - - :return: The metadata of this V1alpha1PodPresetList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1PodPresetList. - Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - - :param metadata: The metadata of this V1alpha1PodPresetList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1PodPresetList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_pod_preset_spec.py b/kubernetes/client/models/v1alpha1_pod_preset_spec.py deleted file mode 100644 index 6bc9dca45d..0000000000 --- a/kubernetes/client/models/v1alpha1_pod_preset_spec.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1PodPresetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, env=None, env_from=None, selector=None, volume_mounts=None, volumes=None): - """ - V1alpha1PodPresetSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'env': 'list[V1EnvVar]', - 'env_from': 'list[V1EnvFromSource]', - 'selector': 'V1LabelSelector', - 'volume_mounts': 'list[V1VolumeMount]', - 'volumes': 'list[V1Volume]' - } - - self.attribute_map = { - 'env': 'env', - 'env_from': 'envFrom', - 'selector': 'selector', - 'volume_mounts': 'volumeMounts', - 'volumes': 'volumes' - } - - self._env = env - self._env_from = env_from - self._selector = selector - self._volume_mounts = volume_mounts - self._volumes = volumes - - @property - def env(self): - """ - Gets the env of this V1alpha1PodPresetSpec. - Env defines the collection of EnvVar to inject into containers. - - :return: The env of this V1alpha1PodPresetSpec. - :rtype: list[V1EnvVar] - """ - return self._env - - @env.setter - def env(self, env): - """ - Sets the env of this V1alpha1PodPresetSpec. - Env defines the collection of EnvVar to inject into containers. - - :param env: The env of this V1alpha1PodPresetSpec. - :type: list[V1EnvVar] - """ - - self._env = env - - @property - def env_from(self): - """ - Gets the env_from of this V1alpha1PodPresetSpec. - EnvFrom defines the collection of EnvFromSource to inject into containers. - - :return: The env_from of this V1alpha1PodPresetSpec. - :rtype: list[V1EnvFromSource] - """ - return self._env_from - - @env_from.setter - def env_from(self, env_from): - """ - Sets the env_from of this V1alpha1PodPresetSpec. - EnvFrom defines the collection of EnvFromSource to inject into containers. - - :param env_from: The env_from of this V1alpha1PodPresetSpec. - :type: list[V1EnvFromSource] - """ - - self._env_from = env_from - - @property - def selector(self): - """ - Gets the selector of this V1alpha1PodPresetSpec. - Selector is a label query over a set of resources, in this case pods. Required. - - :return: The selector of this V1alpha1PodPresetSpec. - :rtype: V1LabelSelector - """ - return self._selector - - @selector.setter - def selector(self, selector): - """ - Sets the selector of this V1alpha1PodPresetSpec. - Selector is a label query over a set of resources, in this case pods. Required. - - :param selector: The selector of this V1alpha1PodPresetSpec. - :type: V1LabelSelector - """ - - self._selector = selector - - @property - def volume_mounts(self): - """ - Gets the volume_mounts of this V1alpha1PodPresetSpec. - VolumeMounts defines the collection of VolumeMount to inject into containers. - - :return: The volume_mounts of this V1alpha1PodPresetSpec. - :rtype: list[V1VolumeMount] - """ - return self._volume_mounts - - @volume_mounts.setter - def volume_mounts(self, volume_mounts): - """ - Sets the volume_mounts of this V1alpha1PodPresetSpec. - VolumeMounts defines the collection of VolumeMount to inject into containers. - - :param volume_mounts: The volume_mounts of this V1alpha1PodPresetSpec. - :type: list[V1VolumeMount] - """ - - self._volume_mounts = volume_mounts - - @property - def volumes(self): - """ - Gets the volumes of this V1alpha1PodPresetSpec. - Volumes defines the collection of Volume to inject into the pod. - - :return: The volumes of this V1alpha1PodPresetSpec. - :rtype: list[V1Volume] - """ - return self._volumes - - @volumes.setter - def volumes(self, volumes): - """ - Sets the volumes of this V1alpha1PodPresetSpec. - Volumes defines the collection of Volume to inject into the pod. - - :param volumes: The volumes of this V1alpha1PodPresetSpec. - :type: list[V1Volume] - """ - - self._volumes = volumes - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1PodPresetSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_policy_rule.py b/kubernetes/client/models/v1alpha1_policy_rule.py deleted file mode 100644 index f1b5bded21..0000000000 --- a/kubernetes/client/models/v1alpha1_policy_rule.py +++ /dev/null @@ -1,223 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1PolicyRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): - """ - V1alpha1PolicyRule - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_groups': 'list[str]', - 'non_resource_ur_ls': 'list[str]', - 'resource_names': 'list[str]', - 'resources': 'list[str]', - 'verbs': 'list[str]' - } - - self.attribute_map = { - 'api_groups': 'apiGroups', - 'non_resource_ur_ls': 'nonResourceURLs', - 'resource_names': 'resourceNames', - 'resources': 'resources', - 'verbs': 'verbs' - } - - self._api_groups = api_groups - self._non_resource_ur_ls = non_resource_ur_ls - self._resource_names = resource_names - self._resources = resources - self._verbs = verbs - - @property - def api_groups(self): - """ - Gets the api_groups of this V1alpha1PolicyRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - - :return: The api_groups of this V1alpha1PolicyRule. - :rtype: list[str] - """ - return self._api_groups - - @api_groups.setter - def api_groups(self, api_groups): - """ - Sets the api_groups of this V1alpha1PolicyRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - - :param api_groups: The api_groups of this V1alpha1PolicyRule. - :type: list[str] - """ - - self._api_groups = api_groups - - @property - def non_resource_ur_ls(self): - """ - Gets the non_resource_ur_ls of this V1alpha1PolicyRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. - - :return: The non_resource_ur_ls of this V1alpha1PolicyRule. - :rtype: list[str] - """ - return self._non_resource_ur_ls - - @non_resource_ur_ls.setter - def non_resource_ur_ls(self, non_resource_ur_ls): - """ - Sets the non_resource_ur_ls of this V1alpha1PolicyRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. - - :param non_resource_ur_ls: The non_resource_ur_ls of this V1alpha1PolicyRule. - :type: list[str] - """ - - self._non_resource_ur_ls = non_resource_ur_ls - - @property - def resource_names(self): - """ - Gets the resource_names of this V1alpha1PolicyRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - - :return: The resource_names of this V1alpha1PolicyRule. - :rtype: list[str] - """ - return self._resource_names - - @resource_names.setter - def resource_names(self, resource_names): - """ - Sets the resource_names of this V1alpha1PolicyRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - - :param resource_names: The resource_names of this V1alpha1PolicyRule. - :type: list[str] - """ - - self._resource_names = resource_names - - @property - def resources(self): - """ - Gets the resources of this V1alpha1PolicyRule. - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - - :return: The resources of this V1alpha1PolicyRule. - :rtype: list[str] - """ - return self._resources - - @resources.setter - def resources(self, resources): - """ - Sets the resources of this V1alpha1PolicyRule. - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - - :param resources: The resources of this V1alpha1PolicyRule. - :type: list[str] - """ - - self._resources = resources - - @property - def verbs(self): - """ - Gets the verbs of this V1alpha1PolicyRule. - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - - :return: The verbs of this V1alpha1PolicyRule. - :rtype: list[str] - """ - return self._verbs - - @verbs.setter - def verbs(self, verbs): - """ - Sets the verbs of this V1alpha1PolicyRule. - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - - :param verbs: The verbs of this V1alpha1PolicyRule. - :type: list[str] - """ - if verbs is None: - raise ValueError("Invalid value for `verbs`, must not be `None`") - - self._verbs = verbs - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1PolicyRule): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_role.py b/kubernetes/client/models/v1alpha1_role.py deleted file mode 100644 index 35e54faa46..0000000000 --- a/kubernetes/client/models/v1alpha1_role.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1Role(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, rules=None): - """ - V1alpha1Role - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'rules': 'list[V1alpha1PolicyRule]' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'rules': 'rules' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._rules = rules - - @property - def api_version(self): - """ - Gets the api_version of this V1alpha1Role. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1alpha1Role. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1Role. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1alpha1Role. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1alpha1Role. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1alpha1Role. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1Role. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1alpha1Role. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1alpha1Role. - Standard object's metadata. - - :return: The metadata of this V1alpha1Role. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1Role. - Standard object's metadata. - - :param metadata: The metadata of this V1alpha1Role. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def rules(self): - """ - Gets the rules of this V1alpha1Role. - Rules holds all the PolicyRules for this Role - - :return: The rules of this V1alpha1Role. - :rtype: list[V1alpha1PolicyRule] - """ - return self._rules - - @rules.setter - def rules(self, rules): - """ - Sets the rules of this V1alpha1Role. - Rules holds all the PolicyRules for this Role - - :param rules: The rules of this V1alpha1Role. - :type: list[V1alpha1PolicyRule] - """ - if rules is None: - raise ValueError("Invalid value for `rules`, must not be `None`") - - self._rules = rules - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1Role): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_role_binding.py b/kubernetes/client/models/v1alpha1_role_binding.py deleted file mode 100644 index de45af18ff..0000000000 --- a/kubernetes/client/models/v1alpha1_role_binding.py +++ /dev/null @@ -1,225 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1RoleBinding(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): - """ - V1alpha1RoleBinding - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'role_ref': 'V1alpha1RoleRef', - 'subjects': 'list[V1alpha1Subject]' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'role_ref': 'roleRef', - 'subjects': 'subjects' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._role_ref = role_ref - self._subjects = subjects - - @property - def api_version(self): - """ - Gets the api_version of this V1alpha1RoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1alpha1RoleBinding. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1RoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1alpha1RoleBinding. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1alpha1RoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1alpha1RoleBinding. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1RoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1alpha1RoleBinding. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1alpha1RoleBinding. - Standard object's metadata. - - :return: The metadata of this V1alpha1RoleBinding. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1RoleBinding. - Standard object's metadata. - - :param metadata: The metadata of this V1alpha1RoleBinding. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def role_ref(self): - """ - Gets the role_ref of this V1alpha1RoleBinding. - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - - :return: The role_ref of this V1alpha1RoleBinding. - :rtype: V1alpha1RoleRef - """ - return self._role_ref - - @role_ref.setter - def role_ref(self, role_ref): - """ - Sets the role_ref of this V1alpha1RoleBinding. - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - - :param role_ref: The role_ref of this V1alpha1RoleBinding. - :type: V1alpha1RoleRef - """ - if role_ref is None: - raise ValueError("Invalid value for `role_ref`, must not be `None`") - - self._role_ref = role_ref - - @property - def subjects(self): - """ - Gets the subjects of this V1alpha1RoleBinding. - Subjects holds references to the objects the role applies to. - - :return: The subjects of this V1alpha1RoleBinding. - :rtype: list[V1alpha1Subject] - """ - return self._subjects - - @subjects.setter - def subjects(self, subjects): - """ - Sets the subjects of this V1alpha1RoleBinding. - Subjects holds references to the objects the role applies to. - - :param subjects: The subjects of this V1alpha1RoleBinding. - :type: list[V1alpha1Subject] - """ - if subjects is None: - raise ValueError("Invalid value for `subjects`, must not be `None`") - - self._subjects = subjects - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1RoleBinding): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_role_binding_list.py b/kubernetes/client/models/v1alpha1_role_binding_list.py deleted file mode 100644 index 2b56cbd150..0000000000 --- a/kubernetes/client/models/v1alpha1_role_binding_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1RoleBindingList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1RoleBindingList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[V1alpha1RoleBinding]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this V1alpha1RoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1alpha1RoleBindingList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1RoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1alpha1RoleBindingList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this V1alpha1RoleBindingList. - Items is a list of RoleBindings - - :return: The items of this V1alpha1RoleBindingList. - :rtype: list[V1alpha1RoleBinding] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1alpha1RoleBindingList. - Items is a list of RoleBindings - - :param items: The items of this V1alpha1RoleBindingList. - :type: list[V1alpha1RoleBinding] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this V1alpha1RoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1alpha1RoleBindingList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1RoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1alpha1RoleBindingList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1alpha1RoleBindingList. - Standard object's metadata. - - :return: The metadata of this V1alpha1RoleBindingList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1RoleBindingList. - Standard object's metadata. - - :param metadata: The metadata of this V1alpha1RoleBindingList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1RoleBindingList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_role_list.py b/kubernetes/client/models/v1alpha1_role_list.py deleted file mode 100644 index a2b8cebb19..0000000000 --- a/kubernetes/client/models/v1alpha1_role_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1RoleList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1RoleList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[V1alpha1Role]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this V1alpha1RoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1alpha1RoleList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1RoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1alpha1RoleList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this V1alpha1RoleList. - Items is a list of Roles - - :return: The items of this V1alpha1RoleList. - :rtype: list[V1alpha1Role] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1alpha1RoleList. - Items is a list of Roles - - :param items: The items of this V1alpha1RoleList. - :type: list[V1alpha1Role] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this V1alpha1RoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1alpha1RoleList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1RoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1alpha1RoleList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1alpha1RoleList. - Standard object's metadata. - - :return: The metadata of this V1alpha1RoleList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1RoleList. - Standard object's metadata. - - :param metadata: The metadata of this V1alpha1RoleList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1RoleList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_role_ref.py b/kubernetes/client/models/v1alpha1_role_ref.py deleted file mode 100644 index 5a90ea17e5..0000000000 --- a/kubernetes/client/models/v1alpha1_role_ref.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1RoleRef(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_group=None, kind=None, name=None): - """ - V1alpha1RoleRef - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_group': 'str', - 'kind': 'str', - 'name': 'str' - } - - self.attribute_map = { - 'api_group': 'apiGroup', - 'kind': 'kind', - 'name': 'name' - } - - self._api_group = api_group - self._kind = kind - self._name = name - - @property - def api_group(self): - """ - Gets the api_group of this V1alpha1RoleRef. - APIGroup is the group for the resource being referenced - - :return: The api_group of this V1alpha1RoleRef. - :rtype: str - """ - return self._api_group - - @api_group.setter - def api_group(self, api_group): - """ - Sets the api_group of this V1alpha1RoleRef. - APIGroup is the group for the resource being referenced - - :param api_group: The api_group of this V1alpha1RoleRef. - :type: str - """ - if api_group is None: - raise ValueError("Invalid value for `api_group`, must not be `None`") - - self._api_group = api_group - - @property - def kind(self): - """ - Gets the kind of this V1alpha1RoleRef. - Kind is the type of resource being referenced - - :return: The kind of this V1alpha1RoleRef. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1RoleRef. - Kind is the type of resource being referenced - - :param kind: The kind of this V1alpha1RoleRef. - :type: str - """ - if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") - - self._kind = kind - - @property - def name(self): - """ - Gets the name of this V1alpha1RoleRef. - Name is the name of resource being referenced - - :return: The name of this V1alpha1RoleRef. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1alpha1RoleRef. - Name is the name of resource being referenced - - :param name: The name of this V1alpha1RoleRef. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1RoleRef): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1alpha1_subject.py b/kubernetes/client/models/v1alpha1_subject.py deleted file mode 100644 index 0f11eaa6d7..0000000000 --- a/kubernetes/client/models/v1alpha1_subject.py +++ /dev/null @@ -1,199 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1Subject(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, name=None, namespace=None): - """ - V1alpha1Subject - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'name': 'str', - 'namespace': 'str' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'name': 'name', - 'namespace': 'namespace' - } - - self._api_version = api_version - self._kind = kind - self._name = name - self._namespace = namespace - - @property - def api_version(self): - """ - Gets the api_version of this V1alpha1Subject. - APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. - - :return: The api_version of this V1alpha1Subject. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1Subject. - APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. - - :param api_version: The api_version of this V1alpha1Subject. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1alpha1Subject. - Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - - :return: The kind of this V1alpha1Subject. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1Subject. - Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - - :param kind: The kind of this V1alpha1Subject. - :type: str - """ - if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") - - self._kind = kind - - @property - def name(self): - """ - Gets the name of this V1alpha1Subject. - Name of the object being referenced. - - :return: The name of this V1alpha1Subject. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1alpha1Subject. - Name of the object being referenced. - - :param name: The name of this V1alpha1Subject. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - @property - def namespace(self): - """ - Gets the namespace of this V1alpha1Subject. - Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. - - :return: The namespace of this V1alpha1Subject. - :rtype: str - """ - return self._namespace - - @namespace.setter - def namespace(self, namespace): - """ - Sets the namespace of this V1alpha1Subject. - Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. - - :param namespace: The namespace of this V1alpha1Subject. - :type: str - """ - - self._namespace = namespace - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1alpha1Subject): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_api_version.py b/kubernetes/client/models/v1beta1_api_version.py index 138193f03b..2b9496d266 100644 --- a/kubernetes/client/models/v1beta1_api_version.py +++ b/kubernetes/client/models/v1beta1_api_version.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request.py b/kubernetes/client/models/v1beta1_certificate_signing_request.py deleted file mode 100644 index 52638bcc91..0000000000 --- a/kubernetes/client/models/v1beta1_certificate_signing_request.py +++ /dev/null @@ -1,219 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1CertificateSigningRequest(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1CertificateSigningRequest - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'V1beta1CertificateSigningRequestSpec', - 'status': 'V1beta1CertificateSigningRequestStatus' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1CertificateSigningRequest. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1CertificateSigningRequest. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1CertificateSigningRequest. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1CertificateSigningRequest. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1beta1CertificateSigningRequest. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1CertificateSigningRequest. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1CertificateSigningRequest. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1CertificateSigningRequest. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1CertificateSigningRequest. - - :return: The metadata of this V1beta1CertificateSigningRequest. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1CertificateSigningRequest. - - :param metadata: The metadata of this V1beta1CertificateSigningRequest. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this V1beta1CertificateSigningRequest. - The certificate request itself and any additional information. - - :return: The spec of this V1beta1CertificateSigningRequest. - :rtype: V1beta1CertificateSigningRequestSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this V1beta1CertificateSigningRequest. - The certificate request itself and any additional information. - - :param spec: The spec of this V1beta1CertificateSigningRequest. - :type: V1beta1CertificateSigningRequestSpec - """ - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this V1beta1CertificateSigningRequest. - Derived information about the request. - - :return: The status of this V1beta1CertificateSigningRequest. - :rtype: V1beta1CertificateSigningRequestStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this V1beta1CertificateSigningRequest. - Derived information about the request. - - :param status: The status of this V1beta1CertificateSigningRequest. - :type: V1beta1CertificateSigningRequestStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1CertificateSigningRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py b/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py deleted file mode 100644 index ced6cff1ef..0000000000 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1CertificateSigningRequestCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, last_update_time=None, message=None, reason=None, type=None): - """ - V1beta1CertificateSigningRequestCondition - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'last_update_time': 'datetime', - 'message': 'str', - 'reason': 'str', - 'type': 'str' - } - - self.attribute_map = { - 'last_update_time': 'lastUpdateTime', - 'message': 'message', - 'reason': 'reason', - 'type': 'type' - } - - self._last_update_time = last_update_time - self._message = message - self._reason = reason - self._type = type - - @property - def last_update_time(self): - """ - Gets the last_update_time of this V1beta1CertificateSigningRequestCondition. - timestamp for the last update to this condition - - :return: The last_update_time of this V1beta1CertificateSigningRequestCondition. - :rtype: datetime - """ - return self._last_update_time - - @last_update_time.setter - def last_update_time(self, last_update_time): - """ - Sets the last_update_time of this V1beta1CertificateSigningRequestCondition. - timestamp for the last update to this condition - - :param last_update_time: The last_update_time of this V1beta1CertificateSigningRequestCondition. - :type: datetime - """ - - self._last_update_time = last_update_time - - @property - def message(self): - """ - Gets the message of this V1beta1CertificateSigningRequestCondition. - human readable message with details about the request state - - :return: The message of this V1beta1CertificateSigningRequestCondition. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this V1beta1CertificateSigningRequestCondition. - human readable message with details about the request state - - :param message: The message of this V1beta1CertificateSigningRequestCondition. - :type: str - """ - - self._message = message - - @property - def reason(self): - """ - Gets the reason of this V1beta1CertificateSigningRequestCondition. - brief reason for the request state - - :return: The reason of this V1beta1CertificateSigningRequestCondition. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this V1beta1CertificateSigningRequestCondition. - brief reason for the request state - - :param reason: The reason of this V1beta1CertificateSigningRequestCondition. - :type: str - """ - - self._reason = reason - - @property - def type(self): - """ - Gets the type of this V1beta1CertificateSigningRequestCondition. - request approval state, currently Approved or Denied. - - :return: The type of this V1beta1CertificateSigningRequestCondition. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V1beta1CertificateSigningRequestCondition. - request approval state, currently Approved or Denied. - - :param type: The type of this V1beta1CertificateSigningRequestCondition. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1CertificateSigningRequestCondition): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_list.py b/kubernetes/client/models/v1beta1_certificate_signing_request_list.py deleted file mode 100644 index 4fd0282f67..0000000000 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_list.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1CertificateSigningRequestList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1CertificateSigningRequestList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[V1beta1CertificateSigningRequest]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1CertificateSigningRequestList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1CertificateSigningRequestList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1CertificateSigningRequestList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1CertificateSigningRequestList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this V1beta1CertificateSigningRequestList. - - :return: The items of this V1beta1CertificateSigningRequestList. - :rtype: list[V1beta1CertificateSigningRequest] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1beta1CertificateSigningRequestList. - - :param items: The items of this V1beta1CertificateSigningRequestList. - :type: list[V1beta1CertificateSigningRequest] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this V1beta1CertificateSigningRequestList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1CertificateSigningRequestList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1CertificateSigningRequestList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1CertificateSigningRequestList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1CertificateSigningRequestList. - - :return: The metadata of this V1beta1CertificateSigningRequestList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1CertificateSigningRequestList. - - :param metadata: The metadata of this V1beta1CertificateSigningRequestList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1CertificateSigningRequestList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py b/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py deleted file mode 100644 index 1423965953..0000000000 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py +++ /dev/null @@ -1,249 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1CertificateSigningRequestSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, extra=None, groups=None, request=None, uid=None, usages=None, username=None): - """ - V1beta1CertificateSigningRequestSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'extra': 'dict(str, list[str])', - 'groups': 'list[str]', - 'request': 'str', - 'uid': 'str', - 'usages': 'list[str]', - 'username': 'str' - } - - self.attribute_map = { - 'extra': 'extra', - 'groups': 'groups', - 'request': 'request', - 'uid': 'uid', - 'usages': 'usages', - 'username': 'username' - } - - self._extra = extra - self._groups = groups - self._request = request - self._uid = uid - self._usages = usages - self._username = username - - @property - def extra(self): - """ - Gets the extra of this V1beta1CertificateSigningRequestSpec. - Extra information about the requesting user. See user.Info interface for details. - - :return: The extra of this V1beta1CertificateSigningRequestSpec. - :rtype: dict(str, list[str]) - """ - return self._extra - - @extra.setter - def extra(self, extra): - """ - Sets the extra of this V1beta1CertificateSigningRequestSpec. - Extra information about the requesting user. See user.Info interface for details. - - :param extra: The extra of this V1beta1CertificateSigningRequestSpec. - :type: dict(str, list[str]) - """ - - self._extra = extra - - @property - def groups(self): - """ - Gets the groups of this V1beta1CertificateSigningRequestSpec. - Group information about the requesting user. See user.Info interface for details. - - :return: The groups of this V1beta1CertificateSigningRequestSpec. - :rtype: list[str] - """ - return self._groups - - @groups.setter - def groups(self, groups): - """ - Sets the groups of this V1beta1CertificateSigningRequestSpec. - Group information about the requesting user. See user.Info interface for details. - - :param groups: The groups of this V1beta1CertificateSigningRequestSpec. - :type: list[str] - """ - - self._groups = groups - - @property - def request(self): - """ - Gets the request of this V1beta1CertificateSigningRequestSpec. - Base64-encoded PKCS#10 CSR data - - :return: The request of this V1beta1CertificateSigningRequestSpec. - :rtype: str - """ - return self._request - - @request.setter - def request(self, request): - """ - Sets the request of this V1beta1CertificateSigningRequestSpec. - Base64-encoded PKCS#10 CSR data - - :param request: The request of this V1beta1CertificateSigningRequestSpec. - :type: str - """ - if request is None: - raise ValueError("Invalid value for `request`, must not be `None`") - - self._request = request - - @property - def uid(self): - """ - Gets the uid of this V1beta1CertificateSigningRequestSpec. - UID information about the requesting user. See user.Info interface for details. - - :return: The uid of this V1beta1CertificateSigningRequestSpec. - :rtype: str - """ - return self._uid - - @uid.setter - def uid(self, uid): - """ - Sets the uid of this V1beta1CertificateSigningRequestSpec. - UID information about the requesting user. See user.Info interface for details. - - :param uid: The uid of this V1beta1CertificateSigningRequestSpec. - :type: str - """ - - self._uid = uid - - @property - def usages(self): - """ - Gets the usages of this V1beta1CertificateSigningRequestSpec. - allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 - - :return: The usages of this V1beta1CertificateSigningRequestSpec. - :rtype: list[str] - """ - return self._usages - - @usages.setter - def usages(self, usages): - """ - Sets the usages of this V1beta1CertificateSigningRequestSpec. - allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 - - :param usages: The usages of this V1beta1CertificateSigningRequestSpec. - :type: list[str] - """ - - self._usages = usages - - @property - def username(self): - """ - Gets the username of this V1beta1CertificateSigningRequestSpec. - Information about the requesting user. See user.Info interface for details. - - :return: The username of this V1beta1CertificateSigningRequestSpec. - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """ - Sets the username of this V1beta1CertificateSigningRequestSpec. - Information about the requesting user. See user.Info interface for details. - - :param username: The username of this V1beta1CertificateSigningRequestSpec. - :type: str - """ - - self._username = username - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1CertificateSigningRequestSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_status.py b/kubernetes/client/models/v1beta1_certificate_signing_request_status.py deleted file mode 100644 index f9493afb04..0000000000 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_status.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1CertificateSigningRequestStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, certificate=None, conditions=None): - """ - V1beta1CertificateSigningRequestStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'certificate': 'str', - 'conditions': 'list[V1beta1CertificateSigningRequestCondition]' - } - - self.attribute_map = { - 'certificate': 'certificate', - 'conditions': 'conditions' - } - - self._certificate = certificate - self._conditions = conditions - - @property - def certificate(self): - """ - Gets the certificate of this V1beta1CertificateSigningRequestStatus. - If request was approved, the controller will place the issued certificate here. - - :return: The certificate of this V1beta1CertificateSigningRequestStatus. - :rtype: str - """ - return self._certificate - - @certificate.setter - def certificate(self, certificate): - """ - Sets the certificate of this V1beta1CertificateSigningRequestStatus. - If request was approved, the controller will place the issued certificate here. - - :param certificate: The certificate of this V1beta1CertificateSigningRequestStatus. - :type: str - """ - - self._certificate = certificate - - @property - def conditions(self): - """ - Gets the conditions of this V1beta1CertificateSigningRequestStatus. - Conditions applied to the request, such as approval or denial. - - :return: The conditions of this V1beta1CertificateSigningRequestStatus. - :rtype: list[V1beta1CertificateSigningRequestCondition] - """ - return self._conditions - - @conditions.setter - def conditions(self, conditions): - """ - Sets the conditions of this V1beta1CertificateSigningRequestStatus. - Conditions applied to the request, such as approval or denial. - - :param conditions: The conditions of this V1beta1CertificateSigningRequestStatus. - :type: list[V1beta1CertificateSigningRequestCondition] - """ - - self._conditions = conditions - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1CertificateSigningRequestStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_cluster_role.py b/kubernetes/client/models/v1beta1_cluster_role.py deleted file mode 100644 index c54a4fdff4..0000000000 --- a/kubernetes/client/models/v1beta1_cluster_role.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1ClusterRole(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, rules=None): - """ - V1beta1ClusterRole - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'rules': 'list[V1beta1PolicyRule]' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'rules': 'rules' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._rules = rules - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1ClusterRole. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1ClusterRole. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ClusterRole. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1ClusterRole. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1beta1ClusterRole. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1ClusterRole. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1ClusterRole. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1ClusterRole. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1ClusterRole. - Standard object's metadata. - - :return: The metadata of this V1beta1ClusterRole. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ClusterRole. - Standard object's metadata. - - :param metadata: The metadata of this V1beta1ClusterRole. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def rules(self): - """ - Gets the rules of this V1beta1ClusterRole. - Rules holds all the PolicyRules for this ClusterRole - - :return: The rules of this V1beta1ClusterRole. - :rtype: list[V1beta1PolicyRule] - """ - return self._rules - - @rules.setter - def rules(self, rules): - """ - Sets the rules of this V1beta1ClusterRole. - Rules holds all the PolicyRules for this ClusterRole - - :param rules: The rules of this V1beta1ClusterRole. - :type: list[V1beta1PolicyRule] - """ - if rules is None: - raise ValueError("Invalid value for `rules`, must not be `None`") - - self._rules = rules - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1ClusterRole): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_cluster_role_binding.py b/kubernetes/client/models/v1beta1_cluster_role_binding.py deleted file mode 100644 index 7148d64634..0000000000 --- a/kubernetes/client/models/v1beta1_cluster_role_binding.py +++ /dev/null @@ -1,225 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1ClusterRoleBinding(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): - """ - V1beta1ClusterRoleBinding - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'role_ref': 'V1beta1RoleRef', - 'subjects': 'list[V1beta1Subject]' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'role_ref': 'roleRef', - 'subjects': 'subjects' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._role_ref = role_ref - self._subjects = subjects - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1ClusterRoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1ClusterRoleBinding. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ClusterRoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1ClusterRoleBinding. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1beta1ClusterRoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1ClusterRoleBinding. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1ClusterRoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1ClusterRoleBinding. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1ClusterRoleBinding. - Standard object's metadata. - - :return: The metadata of this V1beta1ClusterRoleBinding. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ClusterRoleBinding. - Standard object's metadata. - - :param metadata: The metadata of this V1beta1ClusterRoleBinding. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def role_ref(self): - """ - Gets the role_ref of this V1beta1ClusterRoleBinding. - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - - :return: The role_ref of this V1beta1ClusterRoleBinding. - :rtype: V1beta1RoleRef - """ - return self._role_ref - - @role_ref.setter - def role_ref(self, role_ref): - """ - Sets the role_ref of this V1beta1ClusterRoleBinding. - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - - :param role_ref: The role_ref of this V1beta1ClusterRoleBinding. - :type: V1beta1RoleRef - """ - if role_ref is None: - raise ValueError("Invalid value for `role_ref`, must not be `None`") - - self._role_ref = role_ref - - @property - def subjects(self): - """ - Gets the subjects of this V1beta1ClusterRoleBinding. - Subjects holds references to the objects the role applies to. - - :return: The subjects of this V1beta1ClusterRoleBinding. - :rtype: list[V1beta1Subject] - """ - return self._subjects - - @subjects.setter - def subjects(self, subjects): - """ - Sets the subjects of this V1beta1ClusterRoleBinding. - Subjects holds references to the objects the role applies to. - - :param subjects: The subjects of this V1beta1ClusterRoleBinding. - :type: list[V1beta1Subject] - """ - if subjects is None: - raise ValueError("Invalid value for `subjects`, must not be `None`") - - self._subjects = subjects - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1ClusterRoleBinding): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_cluster_role_binding_list.py b/kubernetes/client/models/v1beta1_cluster_role_binding_list.py deleted file mode 100644 index 85af39f7e0..0000000000 --- a/kubernetes/client/models/v1beta1_cluster_role_binding_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1ClusterRoleBindingList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1ClusterRoleBindingList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[V1beta1ClusterRoleBinding]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1ClusterRoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1ClusterRoleBindingList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ClusterRoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1ClusterRoleBindingList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this V1beta1ClusterRoleBindingList. - Items is a list of ClusterRoleBindings - - :return: The items of this V1beta1ClusterRoleBindingList. - :rtype: list[V1beta1ClusterRoleBinding] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1beta1ClusterRoleBindingList. - Items is a list of ClusterRoleBindings - - :param items: The items of this V1beta1ClusterRoleBindingList. - :type: list[V1beta1ClusterRoleBinding] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this V1beta1ClusterRoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1ClusterRoleBindingList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1ClusterRoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1ClusterRoleBindingList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1ClusterRoleBindingList. - Standard object's metadata. - - :return: The metadata of this V1beta1ClusterRoleBindingList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ClusterRoleBindingList. - Standard object's metadata. - - :param metadata: The metadata of this V1beta1ClusterRoleBindingList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1ClusterRoleBindingList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_cluster_role_list.py b/kubernetes/client/models/v1beta1_cluster_role_list.py deleted file mode 100644 index e5427ad132..0000000000 --- a/kubernetes/client/models/v1beta1_cluster_role_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1ClusterRoleList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1ClusterRoleList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[V1beta1ClusterRole]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1ClusterRoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1ClusterRoleList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ClusterRoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1ClusterRoleList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this V1beta1ClusterRoleList. - Items is a list of ClusterRoles - - :return: The items of this V1beta1ClusterRoleList. - :rtype: list[V1beta1ClusterRole] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1beta1ClusterRoleList. - Items is a list of ClusterRoles - - :param items: The items of this V1beta1ClusterRoleList. - :type: list[V1beta1ClusterRole] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this V1beta1ClusterRoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1ClusterRoleList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1ClusterRoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1ClusterRoleList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1ClusterRoleList. - Standard object's metadata. - - :return: The metadata of this V1beta1ClusterRoleList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ClusterRoleList. - Standard object's metadata. - - :param metadata: The metadata of this V1beta1ClusterRoleList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1ClusterRoleList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_cpu_target_utilization.py b/kubernetes/client/models/v1beta1_cpu_target_utilization.py new file mode 100644 index 0000000000..3f7c2a3c71 --- /dev/null +++ b/kubernetes/client/models/v1beta1_cpu_target_utilization.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1CPUTargetUtilization(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, target_percentage=None): + """ + V1beta1CPUTargetUtilization - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'target_percentage': 'int' + } + + self.attribute_map = { + 'target_percentage': 'targetPercentage' + } + + self._target_percentage = target_percentage + + @property + def target_percentage(self): + """ + Gets the target_percentage of this V1beta1CPUTargetUtilization. + fraction of the requested CPU that should be utilized/used, e.g. 70 means that 70% of the requested CPU should be in use. + + :return: The target_percentage of this V1beta1CPUTargetUtilization. + :rtype: int + """ + return self._target_percentage + + @target_percentage.setter + def target_percentage(self, target_percentage): + """ + Sets the target_percentage of this V1beta1CPUTargetUtilization. + fraction of the requested CPU that should be utilized/used, e.g. 70 means that 70% of the requested CPU should be in use. + + :param target_percentage: The target_percentage of this V1beta1CPUTargetUtilization. + :type: int + """ + if target_percentage is None: + raise ValueError("Invalid value for `target_percentage`, must not be `None`") + + self._target_percentage = target_percentage + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1CPUTargetUtilization): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_daemon_set.py b/kubernetes/client/models/v1beta1_daemon_set.py index 9e44e5af68..d449cfc129 100644 --- a/kubernetes/client/models/v1beta1_daemon_set.py +++ b/kubernetes/client/models/v1beta1_daemon_set.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -125,7 +125,7 @@ def metadata(self, metadata): def spec(self): """ Gets the spec of this V1beta1DaemonSet. - The desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec defines the desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1beta1DaemonSet. :rtype: V1beta1DaemonSetSpec @@ -136,7 +136,7 @@ def spec(self): def spec(self, spec): """ Sets the spec of this V1beta1DaemonSet. - The desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec defines the desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1beta1DaemonSet. :type: V1beta1DaemonSetSpec @@ -148,7 +148,7 @@ def spec(self, spec): def status(self): """ Gets the status of this V1beta1DaemonSet. - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status is the current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1beta1DaemonSet. :rtype: V1beta1DaemonSetStatus @@ -159,7 +159,7 @@ def status(self): def status(self, status): """ Sets the status of this V1beta1DaemonSet. - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status is the current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1beta1DaemonSet. :type: V1beta1DaemonSetStatus diff --git a/kubernetes/client/models/v1beta1_daemon_set_list.py b/kubernetes/client/models/v1beta1_daemon_set_list.py index 9ce06be868..dfbf210503 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_list.py +++ b/kubernetes/client/models/v1beta1_daemon_set_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1DaemonSet]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -76,7 +76,7 @@ def api_version(self, api_version): def items(self): """ Gets the items of this V1beta1DaemonSetList. - A list of daemon sets. + Items is a list of daemon sets. :return: The items of this V1beta1DaemonSetList. :rtype: list[V1beta1DaemonSet] @@ -87,7 +87,7 @@ def items(self): def items(self, items): """ Sets the items of this V1beta1DaemonSetList. - A list of daemon sets. + Items is a list of daemon sets. :param items: The items of this V1beta1DaemonSetList. :type: list[V1beta1DaemonSet] @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1DaemonSetList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1beta1DaemonSetList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_daemon_set_spec.py b/kubernetes/client/models/v1beta1_daemon_set_spec.py index ddc5adedb4..6f30fa9449 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_spec.py +++ b/kubernetes/client/models/v1beta1_daemon_set_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1beta1DaemonSetSpec(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, min_ready_seconds=None, selector=None, template=None, template_generation=None, update_strategy=None): + def __init__(self, selector=None, template=None): """ V1beta1DaemonSetSpec - a model defined in Swagger @@ -31,58 +31,26 @@ def __init__(self, min_ready_seconds=None, selector=None, template=None, templat and the value is json key in definition. """ self.swagger_types = { - 'min_ready_seconds': 'int', - 'selector': 'V1LabelSelector', - 'template': 'V1PodTemplateSpec', - 'template_generation': 'int', - 'update_strategy': 'V1beta1DaemonSetUpdateStrategy' + 'selector': 'UnversionedLabelSelector', + 'template': 'V1PodTemplateSpec' } self.attribute_map = { - 'min_ready_seconds': 'minReadySeconds', 'selector': 'selector', - 'template': 'template', - 'template_generation': 'templateGeneration', - 'update_strategy': 'updateStrategy' + 'template': 'template' } - self._min_ready_seconds = min_ready_seconds self._selector = selector self._template = template - self._template_generation = template_generation - self._update_strategy = update_strategy - - @property - def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this V1beta1DaemonSetSpec. - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - - :return: The min_ready_seconds of this V1beta1DaemonSetSpec. - :rtype: int - """ - return self._min_ready_seconds - - @min_ready_seconds.setter - def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this V1beta1DaemonSetSpec. - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - - :param min_ready_seconds: The min_ready_seconds of this V1beta1DaemonSetSpec. - :type: int - """ - - self._min_ready_seconds = min_ready_seconds @property def selector(self): """ Gets the selector of this V1beta1DaemonSetSpec. - A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + Selector is a label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors :return: The selector of this V1beta1DaemonSetSpec. - :rtype: V1LabelSelector + :rtype: UnversionedLabelSelector """ return self._selector @@ -90,10 +58,10 @@ def selector(self): def selector(self, selector): """ Sets the selector of this V1beta1DaemonSetSpec. - A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + Selector is a label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors :param selector: The selector of this V1beta1DaemonSetSpec. - :type: V1LabelSelector + :type: UnversionedLabelSelector """ self._selector = selector @@ -102,7 +70,7 @@ def selector(self, selector): def template(self): """ Gets the template of this V1beta1DaemonSetSpec. - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template + Template is the object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template :return: The template of this V1beta1DaemonSetSpec. :rtype: V1PodTemplateSpec @@ -113,7 +81,7 @@ def template(self): def template(self, template): """ Sets the template of this V1beta1DaemonSetSpec. - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template + Template is the object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template :param template: The template of this V1beta1DaemonSetSpec. :type: V1PodTemplateSpec @@ -123,52 +91,6 @@ def template(self, template): self._template = template - @property - def template_generation(self): - """ - Gets the template_generation of this V1beta1DaemonSetSpec. - A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. - - :return: The template_generation of this V1beta1DaemonSetSpec. - :rtype: int - """ - return self._template_generation - - @template_generation.setter - def template_generation(self, template_generation): - """ - Sets the template_generation of this V1beta1DaemonSetSpec. - A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. - - :param template_generation: The template_generation of this V1beta1DaemonSetSpec. - :type: int - """ - - self._template_generation = template_generation - - @property - def update_strategy(self): - """ - Gets the update_strategy of this V1beta1DaemonSetSpec. - An update strategy to replace existing DaemonSet pods with new pods. - - :return: The update_strategy of this V1beta1DaemonSetSpec. - :rtype: V1beta1DaemonSetUpdateStrategy - """ - return self._update_strategy - - @update_strategy.setter - def update_strategy(self, update_strategy): - """ - Sets the update_strategy of this V1beta1DaemonSetSpec. - An update strategy to replace existing DaemonSet pods with new pods. - - :param update_strategy: The update_strategy of this V1beta1DaemonSetSpec. - :type: V1beta1DaemonSetUpdateStrategy - """ - - self._update_strategy = update_strategy - def to_dict(self): """ Returns the model properties as a dict diff --git a/kubernetes/client/models/v1beta1_daemon_set_status.py b/kubernetes/client/models/v1beta1_daemon_set_status.py index 508506e0fc..cd3794640e 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_status.py +++ b/kubernetes/client/models/v1beta1_daemon_set_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1beta1DaemonSetStatus(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None): + def __init__(self, current_number_scheduled=None, desired_number_scheduled=None, number_misscheduled=None, number_ready=None): """ V1beta1DaemonSetStatus - a model defined in Swagger @@ -33,39 +33,27 @@ def __init__(self, current_number_scheduled=None, desired_number_scheduled=None, self.swagger_types = { 'current_number_scheduled': 'int', 'desired_number_scheduled': 'int', - 'number_available': 'int', 'number_misscheduled': 'int', - 'number_ready': 'int', - 'number_unavailable': 'int', - 'observed_generation': 'int', - 'updated_number_scheduled': 'int' + 'number_ready': 'int' } self.attribute_map = { 'current_number_scheduled': 'currentNumberScheduled', 'desired_number_scheduled': 'desiredNumberScheduled', - 'number_available': 'numberAvailable', 'number_misscheduled': 'numberMisscheduled', - 'number_ready': 'numberReady', - 'number_unavailable': 'numberUnavailable', - 'observed_generation': 'observedGeneration', - 'updated_number_scheduled': 'updatedNumberScheduled' + 'number_ready': 'numberReady' } self._current_number_scheduled = current_number_scheduled self._desired_number_scheduled = desired_number_scheduled - self._number_available = number_available self._number_misscheduled = number_misscheduled self._number_ready = number_ready - self._number_unavailable = number_unavailable - self._observed_generation = observed_generation - self._updated_number_scheduled = updated_number_scheduled @property def current_number_scheduled(self): """ Gets the current_number_scheduled of this V1beta1DaemonSetStatus. - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md + CurrentNumberScheduled is the number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md :return: The current_number_scheduled of this V1beta1DaemonSetStatus. :rtype: int @@ -76,7 +64,7 @@ def current_number_scheduled(self): def current_number_scheduled(self, current_number_scheduled): """ Sets the current_number_scheduled of this V1beta1DaemonSetStatus. - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md + CurrentNumberScheduled is the number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md :param current_number_scheduled: The current_number_scheduled of this V1beta1DaemonSetStatus. :type: int @@ -90,7 +78,7 @@ def current_number_scheduled(self, current_number_scheduled): def desired_number_scheduled(self): """ Gets the desired_number_scheduled of this V1beta1DaemonSetStatus. - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md + DesiredNumberScheduled is the total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md :return: The desired_number_scheduled of this V1beta1DaemonSetStatus. :rtype: int @@ -101,7 +89,7 @@ def desired_number_scheduled(self): def desired_number_scheduled(self, desired_number_scheduled): """ Sets the desired_number_scheduled of this V1beta1DaemonSetStatus. - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md + DesiredNumberScheduled is the total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md :param desired_number_scheduled: The desired_number_scheduled of this V1beta1DaemonSetStatus. :type: int @@ -111,34 +99,11 @@ def desired_number_scheduled(self, desired_number_scheduled): self._desired_number_scheduled = desired_number_scheduled - @property - def number_available(self): - """ - Gets the number_available of this V1beta1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - - :return: The number_available of this V1beta1DaemonSetStatus. - :rtype: int - """ - return self._number_available - - @number_available.setter - def number_available(self, number_available): - """ - Sets the number_available of this V1beta1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - - :param number_available: The number_available of this V1beta1DaemonSetStatus. - :type: int - """ - - self._number_available = number_available - @property def number_misscheduled(self): """ Gets the number_misscheduled of this V1beta1DaemonSetStatus. - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md + NumberMisscheduled is the number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md :return: The number_misscheduled of this V1beta1DaemonSetStatus. :rtype: int @@ -149,7 +114,7 @@ def number_misscheduled(self): def number_misscheduled(self, number_misscheduled): """ Sets the number_misscheduled of this V1beta1DaemonSetStatus. - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md + NumberMisscheduled is the number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md :param number_misscheduled: The number_misscheduled of this V1beta1DaemonSetStatus. :type: int @@ -163,7 +128,7 @@ def number_misscheduled(self, number_misscheduled): def number_ready(self): """ Gets the number_ready of this V1beta1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + NumberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. :return: The number_ready of this V1beta1DaemonSetStatus. :rtype: int @@ -174,7 +139,7 @@ def number_ready(self): def number_ready(self, number_ready): """ Sets the number_ready of this V1beta1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + NumberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. :param number_ready: The number_ready of this V1beta1DaemonSetStatus. :type: int @@ -184,75 +149,6 @@ def number_ready(self, number_ready): self._number_ready = number_ready - @property - def number_unavailable(self): - """ - Gets the number_unavailable of this V1beta1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - - :return: The number_unavailable of this V1beta1DaemonSetStatus. - :rtype: int - """ - return self._number_unavailable - - @number_unavailable.setter - def number_unavailable(self, number_unavailable): - """ - Sets the number_unavailable of this V1beta1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - - :param number_unavailable: The number_unavailable of this V1beta1DaemonSetStatus. - :type: int - """ - - self._number_unavailable = number_unavailable - - @property - def observed_generation(self): - """ - Gets the observed_generation of this V1beta1DaemonSetStatus. - The most recent generation observed by the daemon set controller. - - :return: The observed_generation of this V1beta1DaemonSetStatus. - :rtype: int - """ - return self._observed_generation - - @observed_generation.setter - def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1beta1DaemonSetStatus. - The most recent generation observed by the daemon set controller. - - :param observed_generation: The observed_generation of this V1beta1DaemonSetStatus. - :type: int - """ - - self._observed_generation = observed_generation - - @property - def updated_number_scheduled(self): - """ - Gets the updated_number_scheduled of this V1beta1DaemonSetStatus. - The total number of nodes that are running updated daemon pod - - :return: The updated_number_scheduled of this V1beta1DaemonSetStatus. - :rtype: int - """ - return self._updated_number_scheduled - - @updated_number_scheduled.setter - def updated_number_scheduled(self, updated_number_scheduled): - """ - Sets the updated_number_scheduled of this V1beta1DaemonSetStatus. - The total number of nodes that are running updated daemon pod - - :param updated_number_scheduled: The updated_number_scheduled of this V1beta1DaemonSetStatus. - :type: int - """ - - self._updated_number_scheduled = updated_number_scheduled - def to_dict(self): """ Returns the model properties as a dict diff --git a/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py b/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py deleted file mode 100644 index ed7f21b8d1..0000000000 --- a/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1DaemonSetUpdateStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, rolling_update=None, type=None): - """ - V1beta1DaemonSetUpdateStrategy - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'rolling_update': 'V1beta1RollingUpdateDaemonSet', - 'type': 'str' - } - - self.attribute_map = { - 'rolling_update': 'rollingUpdate', - 'type': 'type' - } - - self._rolling_update = rolling_update - self._type = type - - @property - def rolling_update(self): - """ - Gets the rolling_update of this V1beta1DaemonSetUpdateStrategy. - Rolling update config params. Present only if type = \"RollingUpdate\". - - :return: The rolling_update of this V1beta1DaemonSetUpdateStrategy. - :rtype: V1beta1RollingUpdateDaemonSet - """ - return self._rolling_update - - @rolling_update.setter - def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this V1beta1DaemonSetUpdateStrategy. - Rolling update config params. Present only if type = \"RollingUpdate\". - - :param rolling_update: The rolling_update of this V1beta1DaemonSetUpdateStrategy. - :type: V1beta1RollingUpdateDaemonSet - """ - - self._rolling_update = rolling_update - - @property - def type(self): - """ - Gets the type of this V1beta1DaemonSetUpdateStrategy. - Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. - - :return: The type of this V1beta1DaemonSetUpdateStrategy. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V1beta1DaemonSetUpdateStrategy. - Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. - - :param type: The type of this V1beta1DaemonSetUpdateStrategy. - :type: str - """ - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1DaemonSetUpdateStrategy): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_deployment.py b/kubernetes/client/models/v1beta1_deployment.py new file mode 100644 index 0000000000..a43b2ace5d --- /dev/null +++ b/kubernetes/client/models/v1beta1_deployment.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1Deployment(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1beta1Deployment - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1DeploymentSpec', + 'status': 'V1beta1DeploymentStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1Deployment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1Deployment. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1Deployment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1Deployment. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1beta1Deployment. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1Deployment. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1Deployment. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1Deployment. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1Deployment. + Standard object metadata. + + :return: The metadata of this V1beta1Deployment. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1Deployment. + Standard object metadata. + + :param metadata: The metadata of this V1beta1Deployment. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1Deployment. + Specification of the desired behavior of the Deployment. + + :return: The spec of this V1beta1Deployment. + :rtype: V1beta1DeploymentSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1Deployment. + Specification of the desired behavior of the Deployment. + + :param spec: The spec of this V1beta1Deployment. + :type: V1beta1DeploymentSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1Deployment. + Most recently observed status of the Deployment. + + :return: The status of this V1beta1Deployment. + :rtype: V1beta1DeploymentStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1Deployment. + Most recently observed status of the Deployment. + + :param status: The status of this V1beta1Deployment. + :type: V1beta1DeploymentStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1Deployment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_deployment_condition.py b/kubernetes/client/models/v1beta1_deployment_condition.py new file mode 100644 index 0000000000..4c4b31edff --- /dev/null +++ b/kubernetes/client/models/v1beta1_deployment_condition.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DeploymentCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): + """ + V1beta1DeploymentCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_transition_time': 'datetime', + 'last_update_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_transition_time': 'lastTransitionTime', + 'last_update_time': 'lastUpdateTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_transition_time = last_transition_time + self._last_update_time = last_update_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1beta1DeploymentCondition. + Last time the condition transitioned from one status to another. + + :return: The last_transition_time of this V1beta1DeploymentCondition. + :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 V1beta1DeploymentCondition. + Last time the condition transitioned from one status to another. + + :param last_transition_time: The last_transition_time of this V1beta1DeploymentCondition. + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def last_update_time(self): + """ + Gets the last_update_time of this V1beta1DeploymentCondition. + The last time this condition was updated. + + :return: The last_update_time of this V1beta1DeploymentCondition. + :rtype: datetime + """ + return self._last_update_time + + @last_update_time.setter + def last_update_time(self, last_update_time): + """ + Sets the last_update_time of this V1beta1DeploymentCondition. + The last time this condition was updated. + + :param last_update_time: The last_update_time of this V1beta1DeploymentCondition. + :type: datetime + """ + + self._last_update_time = last_update_time + + @property + def message(self): + """ + Gets the message of this V1beta1DeploymentCondition. + A human readable message indicating details about the transition. + + :return: The message of this V1beta1DeploymentCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1beta1DeploymentCondition. + A human readable message indicating details about the transition. + + :param message: The message of this V1beta1DeploymentCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1beta1DeploymentCondition. + The reason for the condition's last transition. + + :return: The reason of this V1beta1DeploymentCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1beta1DeploymentCondition. + The reason for the condition's last transition. + + :param reason: The reason of this V1beta1DeploymentCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1beta1DeploymentCondition. + Status of the condition, one of True, False, Unknown. + + :return: The status of this V1beta1DeploymentCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1DeploymentCondition. + Status of the condition, one of True, False, Unknown. + + :param status: The status of this V1beta1DeploymentCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1beta1DeploymentCondition. + Type of deployment condition. + + :return: The type of this V1beta1DeploymentCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1beta1DeploymentCondition. + Type of deployment condition. + + :param type: The type of this V1beta1DeploymentCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1DeploymentCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_deployment_list.py b/kubernetes/client/models/v1beta1_deployment_list.py new file mode 100644 index 0000000000..d70ea51195 --- /dev/null +++ b/kubernetes/client/models/v1beta1_deployment_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DeploymentList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1beta1DeploymentList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1beta1Deployment]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1DeploymentList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1DeploymentList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1DeploymentList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1DeploymentList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1DeploymentList. + Items is the list of Deployments. + + :return: The items of this V1beta1DeploymentList. + :rtype: list[V1beta1Deployment] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1DeploymentList. + Items is the list of Deployments. + + :param items: The items of this V1beta1DeploymentList. + :type: list[V1beta1Deployment] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1beta1DeploymentList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1DeploymentList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1DeploymentList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1DeploymentList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1DeploymentList. + Standard list metadata. + + :return: The metadata of this V1beta1DeploymentList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1DeploymentList. + Standard list metadata. + + :param metadata: The metadata of this V1beta1DeploymentList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1DeploymentList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_deployment_rollback.py b/kubernetes/client/models/v1beta1_deployment_rollback.py new file mode 100644 index 0000000000..1ab5412284 --- /dev/null +++ b/kubernetes/client/models/v1beta1_deployment_rollback.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DeploymentRollback(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, updated_annotations=None): + """ + V1beta1DeploymentRollback - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'name': 'str', + 'rollback_to': 'V1beta1RollbackConfig', + 'updated_annotations': 'dict(str, str)' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'name': 'name', + 'rollback_to': 'rollbackTo', + 'updated_annotations': 'updatedAnnotations' + } + + self._api_version = api_version + self._kind = kind + self._name = name + self._rollback_to = rollback_to + self._updated_annotations = updated_annotations + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1DeploymentRollback. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1DeploymentRollback. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1DeploymentRollback. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1DeploymentRollback. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1beta1DeploymentRollback. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1DeploymentRollback. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1DeploymentRollback. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1DeploymentRollback. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1beta1DeploymentRollback. + Required: This must match the Name of a deployment. + + :return: The name of this V1beta1DeploymentRollback. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1beta1DeploymentRollback. + Required: This must match the Name of a deployment. + + :param name: The name of this V1beta1DeploymentRollback. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def rollback_to(self): + """ + Gets the rollback_to of this V1beta1DeploymentRollback. + The config of this deployment rollback. + + :return: The rollback_to of this V1beta1DeploymentRollback. + :rtype: V1beta1RollbackConfig + """ + return self._rollback_to + + @rollback_to.setter + def rollback_to(self, rollback_to): + """ + Sets the rollback_to of this V1beta1DeploymentRollback. + The config of this deployment rollback. + + :param rollback_to: The rollback_to of this V1beta1DeploymentRollback. + :type: V1beta1RollbackConfig + """ + if rollback_to is None: + raise ValueError("Invalid value for `rollback_to`, must not be `None`") + + self._rollback_to = rollback_to + + @property + def updated_annotations(self): + """ + Gets the updated_annotations of this V1beta1DeploymentRollback. + The annotations to be updated to a deployment + + :return: The updated_annotations of this V1beta1DeploymentRollback. + :rtype: dict(str, str) + """ + return self._updated_annotations + + @updated_annotations.setter + def updated_annotations(self, updated_annotations): + """ + Sets the updated_annotations of this V1beta1DeploymentRollback. + The annotations to be updated to a deployment + + :param updated_annotations: The updated_annotations of this V1beta1DeploymentRollback. + :type: dict(str, str) + """ + + self._updated_annotations = updated_annotations + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1DeploymentRollback): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_deployment_spec.py b/kubernetes/client/models/v1beta1_deployment_spec.py new file mode 100644 index 0000000000..947f008761 --- /dev/null +++ b/kubernetes/client/models/v1beta1_deployment_spec.py @@ -0,0 +1,327 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DeploymentSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, rollback_to=None, selector=None, strategy=None, template=None): + """ + V1beta1DeploymentSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'min_ready_seconds': 'int', + 'paused': 'bool', + 'progress_deadline_seconds': 'int', + 'replicas': 'int', + 'revision_history_limit': 'int', + 'rollback_to': 'V1beta1RollbackConfig', + 'selector': 'UnversionedLabelSelector', + 'strategy': 'V1beta1DeploymentStrategy', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'min_ready_seconds': 'minReadySeconds', + 'paused': 'paused', + 'progress_deadline_seconds': 'progressDeadlineSeconds', + 'replicas': 'replicas', + 'revision_history_limit': 'revisionHistoryLimit', + 'rollback_to': 'rollbackTo', + 'selector': 'selector', + 'strategy': 'strategy', + 'template': 'template' + } + + self._min_ready_seconds = min_ready_seconds + self._paused = paused + self._progress_deadline_seconds = progress_deadline_seconds + self._replicas = replicas + self._revision_history_limit = revision_history_limit + self._rollback_to = rollback_to + self._selector = selector + self._strategy = strategy + self._template = template + + @property + def min_ready_seconds(self): + """ + Gets the min_ready_seconds of this V1beta1DeploymentSpec. + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + + :return: The min_ready_seconds of this V1beta1DeploymentSpec. + :rtype: int + """ + return self._min_ready_seconds + + @min_ready_seconds.setter + def min_ready_seconds(self, min_ready_seconds): + """ + Sets the min_ready_seconds of this V1beta1DeploymentSpec. + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + + :param min_ready_seconds: The min_ready_seconds of this V1beta1DeploymentSpec. + :type: int + """ + + self._min_ready_seconds = min_ready_seconds + + @property + def paused(self): + """ + Gets the paused of this V1beta1DeploymentSpec. + Indicates that the deployment is paused and will not be processed by the deployment controller. + + :return: The paused of this V1beta1DeploymentSpec. + :rtype: bool + """ + return self._paused + + @paused.setter + def paused(self, paused): + """ + Sets the paused of this V1beta1DeploymentSpec. + Indicates that the deployment is paused and will not be processed by the deployment controller. + + :param paused: The paused of this V1beta1DeploymentSpec. + :type: bool + """ + + self._paused = paused + + @property + def progress_deadline_seconds(self): + """ + Gets the progress_deadline_seconds of this V1beta1DeploymentSpec. + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. + + :return: The progress_deadline_seconds of this V1beta1DeploymentSpec. + :rtype: int + """ + return self._progress_deadline_seconds + + @progress_deadline_seconds.setter + def progress_deadline_seconds(self, progress_deadline_seconds): + """ + Sets the progress_deadline_seconds of this V1beta1DeploymentSpec. + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. + + :param progress_deadline_seconds: The progress_deadline_seconds of this V1beta1DeploymentSpec. + :type: int + """ + + self._progress_deadline_seconds = progress_deadline_seconds + + @property + def replicas(self): + """ + Gets the replicas of this V1beta1DeploymentSpec. + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + + :return: The replicas of this V1beta1DeploymentSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1beta1DeploymentSpec. + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + + :param replicas: The replicas of this V1beta1DeploymentSpec. + :type: int + """ + + self._replicas = replicas + + @property + def revision_history_limit(self): + """ + Gets the revision_history_limit of this V1beta1DeploymentSpec. + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. + + :return: The revision_history_limit of this V1beta1DeploymentSpec. + :rtype: int + """ + return self._revision_history_limit + + @revision_history_limit.setter + def revision_history_limit(self, revision_history_limit): + """ + Sets the revision_history_limit of this V1beta1DeploymentSpec. + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. + + :param revision_history_limit: The revision_history_limit of this V1beta1DeploymentSpec. + :type: int + """ + + self._revision_history_limit = revision_history_limit + + @property + def rollback_to(self): + """ + Gets the rollback_to of this V1beta1DeploymentSpec. + The config this deployment is rolling back to. Will be cleared after rollback is done. + + :return: The rollback_to of this V1beta1DeploymentSpec. + :rtype: V1beta1RollbackConfig + """ + return self._rollback_to + + @rollback_to.setter + def rollback_to(self, rollback_to): + """ + Sets the rollback_to of this V1beta1DeploymentSpec. + The config this deployment is rolling back to. Will be cleared after rollback is done. + + :param rollback_to: The rollback_to of this V1beta1DeploymentSpec. + :type: V1beta1RollbackConfig + """ + + self._rollback_to = rollback_to + + @property + def selector(self): + """ + Gets the selector of this V1beta1DeploymentSpec. + Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + + :return: The selector of this V1beta1DeploymentSpec. + :rtype: UnversionedLabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1beta1DeploymentSpec. + Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + + :param selector: The selector of this V1beta1DeploymentSpec. + :type: UnversionedLabelSelector + """ + + self._selector = selector + + @property + def strategy(self): + """ + Gets the strategy of this V1beta1DeploymentSpec. + The deployment strategy to use to replace existing pods with new ones. + + :return: The strategy of this V1beta1DeploymentSpec. + :rtype: V1beta1DeploymentStrategy + """ + return self._strategy + + @strategy.setter + def strategy(self, strategy): + """ + Sets the strategy of this V1beta1DeploymentSpec. + The deployment strategy to use to replace existing pods with new ones. + + :param strategy: The strategy of this V1beta1DeploymentSpec. + :type: V1beta1DeploymentStrategy + """ + + self._strategy = strategy + + @property + def template(self): + """ + Gets the template of this V1beta1DeploymentSpec. + Template describes the pods that will be created. + + :return: The template of this V1beta1DeploymentSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1beta1DeploymentSpec. + Template describes the pods that will be created. + + :param template: The template of this V1beta1DeploymentSpec. + :type: V1PodTemplateSpec + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1DeploymentSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_deployment_status.py b/kubernetes/client/models/v1beta1_deployment_status.py new file mode 100644 index 0000000000..96ee8cb453 --- /dev/null +++ b/kubernetes/client/models/v1beta1_deployment_status.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DeploymentStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, available_replicas=None, conditions=None, observed_generation=None, replicas=None, unavailable_replicas=None, updated_replicas=None): + """ + V1beta1DeploymentStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'available_replicas': 'int', + 'conditions': 'list[V1beta1DeploymentCondition]', + 'observed_generation': 'int', + 'replicas': 'int', + 'unavailable_replicas': 'int', + 'updated_replicas': 'int' + } + + self.attribute_map = { + 'available_replicas': 'availableReplicas', + 'conditions': 'conditions', + 'observed_generation': 'observedGeneration', + 'replicas': 'replicas', + 'unavailable_replicas': 'unavailableReplicas', + 'updated_replicas': 'updatedReplicas' + } + + self._available_replicas = available_replicas + self._conditions = conditions + self._observed_generation = observed_generation + self._replicas = replicas + self._unavailable_replicas = unavailable_replicas + self._updated_replicas = updated_replicas + + @property + def available_replicas(self): + """ + Gets the available_replicas of this V1beta1DeploymentStatus. + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + + :return: The available_replicas of this V1beta1DeploymentStatus. + :rtype: int + """ + return self._available_replicas + + @available_replicas.setter + def available_replicas(self, available_replicas): + """ + Sets the available_replicas of this V1beta1DeploymentStatus. + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + + :param available_replicas: The available_replicas of this V1beta1DeploymentStatus. + :type: int + """ + + self._available_replicas = available_replicas + + @property + def conditions(self): + """ + Gets the conditions of this V1beta1DeploymentStatus. + Represents the latest available observations of a deployment's current state. + + :return: The conditions of this V1beta1DeploymentStatus. + :rtype: list[V1beta1DeploymentCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1beta1DeploymentStatus. + Represents the latest available observations of a deployment's current state. + + :param conditions: The conditions of this V1beta1DeploymentStatus. + :type: list[V1beta1DeploymentCondition] + """ + + self._conditions = conditions + + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1beta1DeploymentStatus. + The generation observed by the deployment controller. + + :return: The observed_generation of this V1beta1DeploymentStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1beta1DeploymentStatus. + The generation observed by the deployment controller. + + :param observed_generation: The observed_generation of this V1beta1DeploymentStatus. + :type: int + """ + + self._observed_generation = observed_generation + + @property + def replicas(self): + """ + Gets the replicas of this V1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment (their labels match the selector). + + :return: The replicas of this V1beta1DeploymentStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment (their labels match the selector). + + :param replicas: The replicas of this V1beta1DeploymentStatus. + :type: int + """ + + self._replicas = replicas + + @property + def unavailable_replicas(self): + """ + Gets the unavailable_replicas of this V1beta1DeploymentStatus. + Total number of unavailable pods targeted by this deployment. + + :return: The unavailable_replicas of this V1beta1DeploymentStatus. + :rtype: int + """ + return self._unavailable_replicas + + @unavailable_replicas.setter + def unavailable_replicas(self, unavailable_replicas): + """ + Sets the unavailable_replicas of this V1beta1DeploymentStatus. + Total number of unavailable pods targeted by this deployment. + + :param unavailable_replicas: The unavailable_replicas of this V1beta1DeploymentStatus. + :type: int + """ + + self._unavailable_replicas = unavailable_replicas + + @property + def updated_replicas(self): + """ + Gets the updated_replicas of this V1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment that have the desired template spec. + + :return: The updated_replicas of this V1beta1DeploymentStatus. + :rtype: int + """ + return self._updated_replicas + + @updated_replicas.setter + def updated_replicas(self, updated_replicas): + """ + Sets the updated_replicas of this V1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment that have the desired template spec. + + :param updated_replicas: The updated_replicas of this V1beta1DeploymentStatus. + :type: int + """ + + self._updated_replicas = updated_replicas + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1DeploymentStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_deployment_strategy.py b/kubernetes/client/models/v1beta1_deployment_strategy.py new file mode 100644 index 0000000000..f53079de2b --- /dev/null +++ b/kubernetes/client/models/v1beta1_deployment_strategy.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DeploymentStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, rolling_update=None, type=None): + """ + V1beta1DeploymentStrategy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'rolling_update': 'V1beta1RollingUpdateDeployment', + 'type': 'str' + } + + self.attribute_map = { + 'rolling_update': 'rollingUpdate', + 'type': 'type' + } + + self._rolling_update = rolling_update + self._type = type + + @property + def rolling_update(self): + """ + Gets the rolling_update of this V1beta1DeploymentStrategy. + Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + + :return: The rolling_update of this V1beta1DeploymentStrategy. + :rtype: V1beta1RollingUpdateDeployment + """ + return self._rolling_update + + @rolling_update.setter + def rolling_update(self, rolling_update): + """ + Sets the rolling_update of this V1beta1DeploymentStrategy. + Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + + :param rolling_update: The rolling_update of this V1beta1DeploymentStrategy. + :type: V1beta1RollingUpdateDeployment + """ + + self._rolling_update = rolling_update + + @property + def type(self): + """ + Gets the type of this V1beta1DeploymentStrategy. + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + + :return: The type of this V1beta1DeploymentStrategy. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1beta1DeploymentStrategy. + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + + :param type: The type of this V1beta1DeploymentStrategy. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1DeploymentStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_eviction.py b/kubernetes/client/models/v1beta1_eviction.py index 04aff65993..6040022efb 100644 --- a/kubernetes/client/models/v1beta1_eviction.py +++ b/kubernetes/client/models/v1beta1_eviction.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_fs_group_strategy_options.py b/kubernetes/client/models/v1beta1_fs_group_strategy_options.py index e197b65d89..87d71f45c3 100644 --- a/kubernetes/client/models/v1beta1_fs_group_strategy_options.py +++ b/kubernetes/client/models/v1beta1_fs_group_strategy_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler.py b/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler.py new file mode 100644 index 0000000000..5356306506 --- /dev/null +++ b/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1HorizontalPodAutoscaler(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1beta1HorizontalPodAutoscaler - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1HorizontalPodAutoscalerSpec', + 'status': 'V1beta1HorizontalPodAutoscalerStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1HorizontalPodAutoscaler. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1HorizontalPodAutoscaler. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1HorizontalPodAutoscaler. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1HorizontalPodAutoscaler. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1beta1HorizontalPodAutoscaler. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1HorizontalPodAutoscaler. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1HorizontalPodAutoscaler. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1HorizontalPodAutoscaler. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1HorizontalPodAutoscaler. + Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1HorizontalPodAutoscaler. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1HorizontalPodAutoscaler. + Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1HorizontalPodAutoscaler. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1HorizontalPodAutoscaler. + behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + + :return: The spec of this V1beta1HorizontalPodAutoscaler. + :rtype: V1beta1HorizontalPodAutoscalerSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1HorizontalPodAutoscaler. + behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + + :param spec: The spec of this V1beta1HorizontalPodAutoscaler. + :type: V1beta1HorizontalPodAutoscalerSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1HorizontalPodAutoscaler. + current information about the autoscaler. + + :return: The status of this V1beta1HorizontalPodAutoscaler. + :rtype: V1beta1HorizontalPodAutoscalerStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1HorizontalPodAutoscaler. + current information about the autoscaler. + + :param status: The status of this V1beta1HorizontalPodAutoscaler. + :type: V1beta1HorizontalPodAutoscalerStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1HorizontalPodAutoscaler): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_list.py new file mode 100644 index 0000000000..84ccd7ccab --- /dev/null +++ b/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1HorizontalPodAutoscalerList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1beta1HorizontalPodAutoscalerList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1beta1HorizontalPodAutoscaler]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1HorizontalPodAutoscalerList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1HorizontalPodAutoscalerList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1HorizontalPodAutoscalerList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1HorizontalPodAutoscalerList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1HorizontalPodAutoscalerList. + list of horizontal pod autoscaler objects. + + :return: The items of this V1beta1HorizontalPodAutoscalerList. + :rtype: list[V1beta1HorizontalPodAutoscaler] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1HorizontalPodAutoscalerList. + list of horizontal pod autoscaler objects. + + :param items: The items of this V1beta1HorizontalPodAutoscalerList. + :type: list[V1beta1HorizontalPodAutoscaler] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1beta1HorizontalPodAutoscalerList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1HorizontalPodAutoscalerList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1HorizontalPodAutoscalerList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1HorizontalPodAutoscalerList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1HorizontalPodAutoscalerList. + Standard list metadata. + + :return: The metadata of this V1beta1HorizontalPodAutoscalerList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1HorizontalPodAutoscalerList. + Standard list metadata. + + :param metadata: The metadata of this V1beta1HorizontalPodAutoscalerList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1HorizontalPodAutoscalerList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_spec.py new file mode 100644 index 0000000000..2891237e40 --- /dev/null +++ b/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_spec.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1HorizontalPodAutoscalerSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, cpu_utilization=None, max_replicas=None, min_replicas=None, scale_ref=None): + """ + V1beta1HorizontalPodAutoscalerSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'cpu_utilization': 'V1beta1CPUTargetUtilization', + 'max_replicas': 'int', + 'min_replicas': 'int', + 'scale_ref': 'V1beta1SubresourceReference' + } + + self.attribute_map = { + 'cpu_utilization': 'cpuUtilization', + 'max_replicas': 'maxReplicas', + 'min_replicas': 'minReplicas', + 'scale_ref': 'scaleRef' + } + + self._cpu_utilization = cpu_utilization + self._max_replicas = max_replicas + self._min_replicas = min_replicas + self._scale_ref = scale_ref + + @property + def cpu_utilization(self): + """ + Gets the cpu_utilization of this V1beta1HorizontalPodAutoscalerSpec. + target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified it defaults to the target CPU utilization at 80% of the requested resources. + + :return: The cpu_utilization of this V1beta1HorizontalPodAutoscalerSpec. + :rtype: V1beta1CPUTargetUtilization + """ + return self._cpu_utilization + + @cpu_utilization.setter + def cpu_utilization(self, cpu_utilization): + """ + Sets the cpu_utilization of this V1beta1HorizontalPodAutoscalerSpec. + target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified it defaults to the target CPU utilization at 80% of the requested resources. + + :param cpu_utilization: The cpu_utilization of this V1beta1HorizontalPodAutoscalerSpec. + :type: V1beta1CPUTargetUtilization + """ + + self._cpu_utilization = cpu_utilization + + @property + def max_replicas(self): + """ + Gets the max_replicas of this V1beta1HorizontalPodAutoscalerSpec. + upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + + :return: The max_replicas of this V1beta1HorizontalPodAutoscalerSpec. + :rtype: int + """ + return self._max_replicas + + @max_replicas.setter + def max_replicas(self, max_replicas): + """ + Sets the max_replicas of this V1beta1HorizontalPodAutoscalerSpec. + upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + + :param max_replicas: The max_replicas of this V1beta1HorizontalPodAutoscalerSpec. + :type: int + """ + if max_replicas is None: + raise ValueError("Invalid value for `max_replicas`, must not be `None`") + + self._max_replicas = max_replicas + + @property + def min_replicas(self): + """ + Gets the min_replicas of this V1beta1HorizontalPodAutoscalerSpec. + lower limit for the number of pods that can be set by the autoscaler, default 1. + + :return: The min_replicas of this V1beta1HorizontalPodAutoscalerSpec. + :rtype: int + """ + return self._min_replicas + + @min_replicas.setter + def min_replicas(self, min_replicas): + """ + Sets the min_replicas of this V1beta1HorizontalPodAutoscalerSpec. + lower limit for the number of pods that can be set by the autoscaler, default 1. + + :param min_replicas: The min_replicas of this V1beta1HorizontalPodAutoscalerSpec. + :type: int + """ + + self._min_replicas = min_replicas + + @property + def scale_ref(self): + """ + Gets the scale_ref of this V1beta1HorizontalPodAutoscalerSpec. + reference to Scale subresource; horizontal pod autoscaler will learn the current resource consumption from its status, and will set the desired number of pods by modifying its spec. + + :return: The scale_ref of this V1beta1HorizontalPodAutoscalerSpec. + :rtype: V1beta1SubresourceReference + """ + return self._scale_ref + + @scale_ref.setter + def scale_ref(self, scale_ref): + """ + Sets the scale_ref of this V1beta1HorizontalPodAutoscalerSpec. + reference to Scale subresource; horizontal pod autoscaler will learn the current resource consumption from its status, and will set the desired number of pods by modifying its spec. + + :param scale_ref: The scale_ref of this V1beta1HorizontalPodAutoscalerSpec. + :type: V1beta1SubresourceReference + """ + if scale_ref is None: + raise ValueError("Invalid value for `scale_ref`, must not be `None`") + + self._scale_ref = scale_ref + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1HorizontalPodAutoscalerSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_status.py new file mode 100644 index 0000000000..b06e9cad36 --- /dev/null +++ b/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_status.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1HorizontalPodAutoscalerStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, current_cpu_utilization_percentage=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): + """ + V1beta1HorizontalPodAutoscalerStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'current_cpu_utilization_percentage': 'int', + 'current_replicas': 'int', + 'desired_replicas': 'int', + 'last_scale_time': 'datetime', + 'observed_generation': 'int' + } + + self.attribute_map = { + 'current_cpu_utilization_percentage': 'currentCPUUtilizationPercentage', + 'current_replicas': 'currentReplicas', + 'desired_replicas': 'desiredReplicas', + 'last_scale_time': 'lastScaleTime', + 'observed_generation': 'observedGeneration' + } + + self._current_cpu_utilization_percentage = current_cpu_utilization_percentage + self._current_replicas = current_replicas + self._desired_replicas = desired_replicas + self._last_scale_time = last_scale_time + self._observed_generation = observed_generation + + @property + def current_cpu_utilization_percentage(self): + """ + Gets the current_cpu_utilization_percentage of this V1beta1HorizontalPodAutoscalerStatus. + current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + + :return: The current_cpu_utilization_percentage of this V1beta1HorizontalPodAutoscalerStatus. + :rtype: int + """ + return self._current_cpu_utilization_percentage + + @current_cpu_utilization_percentage.setter + def current_cpu_utilization_percentage(self, current_cpu_utilization_percentage): + """ + Sets the current_cpu_utilization_percentage of this V1beta1HorizontalPodAutoscalerStatus. + current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + + :param current_cpu_utilization_percentage: The current_cpu_utilization_percentage of this V1beta1HorizontalPodAutoscalerStatus. + :type: int + """ + + self._current_cpu_utilization_percentage = current_cpu_utilization_percentage + + @property + def current_replicas(self): + """ + Gets the current_replicas of this V1beta1HorizontalPodAutoscalerStatus. + current number of replicas of pods managed by this autoscaler. + + :return: The current_replicas of this V1beta1HorizontalPodAutoscalerStatus. + :rtype: int + """ + return self._current_replicas + + @current_replicas.setter + def current_replicas(self, current_replicas): + """ + Sets the current_replicas of this V1beta1HorizontalPodAutoscalerStatus. + current number of replicas of pods managed by this autoscaler. + + :param current_replicas: The current_replicas of this V1beta1HorizontalPodAutoscalerStatus. + :type: int + """ + if current_replicas is None: + raise ValueError("Invalid value for `current_replicas`, must not be `None`") + + self._current_replicas = current_replicas + + @property + def desired_replicas(self): + """ + Gets the desired_replicas of this V1beta1HorizontalPodAutoscalerStatus. + desired number of replicas of pods managed by this autoscaler. + + :return: The desired_replicas of this V1beta1HorizontalPodAutoscalerStatus. + :rtype: int + """ + return self._desired_replicas + + @desired_replicas.setter + def desired_replicas(self, desired_replicas): + """ + Sets the desired_replicas of this V1beta1HorizontalPodAutoscalerStatus. + desired number of replicas of pods managed by this autoscaler. + + :param desired_replicas: The desired_replicas of this V1beta1HorizontalPodAutoscalerStatus. + :type: int + """ + if desired_replicas is None: + raise ValueError("Invalid value for `desired_replicas`, must not be `None`") + + self._desired_replicas = desired_replicas + + @property + def last_scale_time(self): + """ + Gets the last_scale_time of this V1beta1HorizontalPodAutoscalerStatus. + last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + + :return: The last_scale_time of this V1beta1HorizontalPodAutoscalerStatus. + :rtype: datetime + """ + return self._last_scale_time + + @last_scale_time.setter + def last_scale_time(self, last_scale_time): + """ + Sets the last_scale_time of this V1beta1HorizontalPodAutoscalerStatus. + last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + + :param last_scale_time: The last_scale_time of this V1beta1HorizontalPodAutoscalerStatus. + :type: datetime + """ + + self._last_scale_time = last_scale_time + + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1beta1HorizontalPodAutoscalerStatus. + most recent generation observed by this autoscaler. + + :return: The observed_generation of this V1beta1HorizontalPodAutoscalerStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1beta1HorizontalPodAutoscalerStatus. + most recent generation observed by this autoscaler. + + :param observed_generation: The observed_generation of this V1beta1HorizontalPodAutoscalerStatus. + :type: int + """ + + self._observed_generation = observed_generation + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1HorizontalPodAutoscalerStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_host_port_range.py b/kubernetes/client/models/v1beta1_host_port_range.py index 557c3d76e7..73143c0ed1 100644 --- a/kubernetes/client/models/v1beta1_host_port_range.py +++ b/kubernetes/client/models/v1beta1_host_port_range.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_http_ingress_path.py b/kubernetes/client/models/v1beta1_http_ingress_path.py index 5ebd7bba0d..f14a0312ed 100644 --- a/kubernetes/client/models/v1beta1_http_ingress_path.py +++ b/kubernetes/client/models/v1beta1_http_ingress_path.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_http_ingress_rule_value.py b/kubernetes/client/models/v1beta1_http_ingress_rule_value.py index da3eb4c2bb..45a996e6b7 100644 --- a/kubernetes/client/models/v1beta1_http_ingress_rule_value.py +++ b/kubernetes/client/models/v1beta1_http_ingress_rule_value.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_id_range.py b/kubernetes/client/models/v1beta1_id_range.py index 469346c27e..cb459504c7 100644 --- a/kubernetes/client/models/v1beta1_id_range.py +++ b/kubernetes/client/models/v1beta1_id_range.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_ingress.py b/kubernetes/client/models/v1beta1_ingress.py index 396b843edc..75a21ce66f 100644 --- a/kubernetes/client/models/v1beta1_ingress.py +++ b/kubernetes/client/models/v1beta1_ingress.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_ingress_backend.py b/kubernetes/client/models/v1beta1_ingress_backend.py index 9366aee978..784dd65962 100644 --- a/kubernetes/client/models/v1beta1_ingress_backend.py +++ b/kubernetes/client/models/v1beta1_ingress_backend.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_ingress_list.py b/kubernetes/client/models/v1beta1_ingress_list.py index e84248b95c..5ab72111f4 100644 --- a/kubernetes/client/models/v1beta1_ingress_list.py +++ b/kubernetes/client/models/v1beta1_ingress_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1Ingress]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1IngressList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1beta1IngressList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_ingress_rule.py b/kubernetes/client/models/v1beta1_ingress_rule.py index 3fe0978833..958a25a12d 100644 --- a/kubernetes/client/models/v1beta1_ingress_rule.py +++ b/kubernetes/client/models/v1beta1_ingress_rule.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_ingress_spec.py b/kubernetes/client/models/v1beta1_ingress_spec.py index 7c87b226d3..5a81b31447 100644 --- a/kubernetes/client/models/v1beta1_ingress_spec.py +++ b/kubernetes/client/models/v1beta1_ingress_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_ingress_status.py b/kubernetes/client/models/v1beta1_ingress_status.py index 0d0bdc8867..fcff8a23eb 100644 --- a/kubernetes/client/models/v1beta1_ingress_status.py +++ b/kubernetes/client/models/v1beta1_ingress_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_ingress_tls.py b/kubernetes/client/models/v1beta1_ingress_tls.py index 9298a6bb0f..792f8dca1f 100644 --- a/kubernetes/client/models/v1beta1_ingress_tls.py +++ b/kubernetes/client/models/v1beta1_ingress_tls.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_job.py b/kubernetes/client/models/v1beta1_job.py new file mode 100644 index 0000000000..b22212a09a --- /dev/null +++ b/kubernetes/client/models/v1beta1_job.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1Job(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1beta1Job - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1JobSpec', + 'status': 'V1beta1JobStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1Job. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1Job. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1Job. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1Job. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1beta1Job. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1Job. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1Job. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1Job. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1Job. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1Job. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1Job. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1Job. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1Job. + Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V1beta1Job. + :rtype: V1beta1JobSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1Job. + Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V1beta1Job. + :type: V1beta1JobSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1Job. + Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V1beta1Job. + :rtype: V1beta1JobStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1Job. + Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V1beta1Job. + :type: V1beta1JobStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1Job): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_job_condition.py b/kubernetes/client/models/v1beta1_job_condition.py new file mode 100644 index 0000000000..2e1bc40750 --- /dev/null +++ b/kubernetes/client/models/v1beta1_job_condition.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1JobCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): + """ + V1beta1JobCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_probe_time': 'datetime', + 'last_transition_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_probe_time': 'lastProbeTime', + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_probe_time = last_probe_time + self._last_transition_time = last_transition_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + @property + def last_probe_time(self): + """ + Gets the last_probe_time of this V1beta1JobCondition. + Last time the condition was checked. + + :return: The last_probe_time of this V1beta1JobCondition. + :rtype: datetime + """ + return self._last_probe_time + + @last_probe_time.setter + def last_probe_time(self, last_probe_time): + """ + Sets the last_probe_time of this V1beta1JobCondition. + Last time the condition was checked. + + :param last_probe_time: The last_probe_time of this V1beta1JobCondition. + :type: datetime + """ + + self._last_probe_time = last_probe_time + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1beta1JobCondition. + Last time the condition transit from one status to another. + + :return: The last_transition_time of this V1beta1JobCondition. + :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 V1beta1JobCondition. + Last time the condition transit from one status to another. + + :param last_transition_time: The last_transition_time of this V1beta1JobCondition. + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """ + Gets the message of this V1beta1JobCondition. + Human readable message indicating details about last transition. + + :return: The message of this V1beta1JobCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1beta1JobCondition. + Human readable message indicating details about last transition. + + :param message: The message of this V1beta1JobCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1beta1JobCondition. + (brief) reason for the condition's last transition. + + :return: The reason of this V1beta1JobCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1beta1JobCondition. + (brief) reason for the condition's last transition. + + :param reason: The reason of this V1beta1JobCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1beta1JobCondition. + Status of the condition, one of True, False, Unknown. + + :return: The status of this V1beta1JobCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1JobCondition. + Status of the condition, one of True, False, Unknown. + + :param status: The status of this V1beta1JobCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1beta1JobCondition. + Type of job condition, Complete or Failed. + + :return: The type of this V1beta1JobCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1beta1JobCondition. + Type of job condition, Complete or Failed. + + :param type: The type of this V1beta1JobCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1JobCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_job_list.py b/kubernetes/client/models/v1beta1_job_list.py new file mode 100644 index 0000000000..f0fec9ab0b --- /dev/null +++ b/kubernetes/client/models/v1beta1_job_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1JobList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1beta1JobList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V1beta1Job]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1JobList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1JobList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1JobList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1JobList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1JobList. + Items is the list of Job. + + :return: The items of this V1beta1JobList. + :rtype: list[V1beta1Job] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1JobList. + Items is the list of Job. + + :param items: The items of this V1beta1JobList. + :type: list[V1beta1Job] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1beta1JobList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1JobList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1JobList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1JobList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1JobList. + Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1JobList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1JobList. + Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1JobList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1JobList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_job_spec.py b/kubernetes/client/models/v1beta1_job_spec.py new file mode 100644 index 0000000000..d83d608c9a --- /dev/null +++ b/kubernetes/client/models/v1beta1_job_spec.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1JobSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, active_deadline_seconds=None, auto_selector=None, completions=None, parallelism=None, selector=None, template=None): + """ + V1beta1JobSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'active_deadline_seconds': 'int', + 'auto_selector': 'bool', + 'completions': 'int', + 'parallelism': 'int', + 'selector': 'UnversionedLabelSelector', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'active_deadline_seconds': 'activeDeadlineSeconds', + 'auto_selector': 'autoSelector', + 'completions': 'completions', + 'parallelism': 'parallelism', + 'selector': 'selector', + 'template': 'template' + } + + self._active_deadline_seconds = active_deadline_seconds + self._auto_selector = auto_selector + self._completions = completions + self._parallelism = parallelism + self._selector = selector + self._template = template + + @property + def active_deadline_seconds(self): + """ + Gets the active_deadline_seconds of this V1beta1JobSpec. + Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + + :return: The active_deadline_seconds of this V1beta1JobSpec. + :rtype: int + """ + return self._active_deadline_seconds + + @active_deadline_seconds.setter + def active_deadline_seconds(self, active_deadline_seconds): + """ + Sets the active_deadline_seconds of this V1beta1JobSpec. + Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + + :param active_deadline_seconds: The active_deadline_seconds of this V1beta1JobSpec. + :type: int + """ + + self._active_deadline_seconds = active_deadline_seconds + + @property + def auto_selector(self): + """ + Gets the auto_selector of this V1beta1JobSpec. + AutoSelector controls generation of pod labels and pod selectors. It was not present in the original extensions/v1beta1 Job definition, but exists to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite meaning as, ManualSelector. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md + + :return: The auto_selector of this V1beta1JobSpec. + :rtype: bool + """ + return self._auto_selector + + @auto_selector.setter + def auto_selector(self, auto_selector): + """ + Sets the auto_selector of this V1beta1JobSpec. + AutoSelector controls generation of pod labels and pod selectors. It was not present in the original extensions/v1beta1 Job definition, but exists to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite meaning as, ManualSelector. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md + + :param auto_selector: The auto_selector of this V1beta1JobSpec. + :type: bool + """ + + self._auto_selector = auto_selector + + @property + def completions(self): + """ + Gets the completions of this V1beta1JobSpec. + Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The completions of this V1beta1JobSpec. + :rtype: int + """ + return self._completions + + @completions.setter + def completions(self, completions): + """ + Sets the completions of this V1beta1JobSpec. + Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs + + :param completions: The completions of this V1beta1JobSpec. + :type: int + """ + + self._completions = completions + + @property + def parallelism(self): + """ + Gets the parallelism of this V1beta1JobSpec. + Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The parallelism of this V1beta1JobSpec. + :rtype: int + """ + return self._parallelism + + @parallelism.setter + def parallelism(self, parallelism): + """ + Sets the parallelism of this V1beta1JobSpec. + Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs + + :param parallelism: The parallelism of this V1beta1JobSpec. + :type: int + """ + + self._parallelism = parallelism + + @property + def selector(self): + """ + Gets the selector of this V1beta1JobSpec. + Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The selector of this V1beta1JobSpec. + :rtype: UnversionedLabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1beta1JobSpec. + Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param selector: The selector of this V1beta1JobSpec. + :type: UnversionedLabelSelector + """ + + self._selector = selector + + @property + def template(self): + """ + Gets the template of this V1beta1JobSpec. + Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The template of this V1beta1JobSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1beta1JobSpec. + Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs + + :param template: The template of this V1beta1JobSpec. + :type: V1PodTemplateSpec + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1JobSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_job_status.py b/kubernetes/client/models/v1beta1_job_status.py new file mode 100644 index 0000000000..d7d7114777 --- /dev/null +++ b/kubernetes/client/models/v1beta1_job_status.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1JobStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, active=None, completion_time=None, conditions=None, failed=None, start_time=None, succeeded=None): + """ + V1beta1JobStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'active': 'int', + 'completion_time': 'datetime', + 'conditions': 'list[V1beta1JobCondition]', + 'failed': 'int', + 'start_time': 'datetime', + 'succeeded': 'int' + } + + self.attribute_map = { + 'active': 'active', + 'completion_time': 'completionTime', + 'conditions': 'conditions', + 'failed': 'failed', + 'start_time': 'startTime', + 'succeeded': 'succeeded' + } + + self._active = active + self._completion_time = completion_time + self._conditions = conditions + self._failed = failed + self._start_time = start_time + self._succeeded = succeeded + + @property + def active(self): + """ + Gets the active of this V1beta1JobStatus. + Active is the number of actively running pods. + + :return: The active of this V1beta1JobStatus. + :rtype: int + """ + return self._active + + @active.setter + def active(self, active): + """ + Sets the active of this V1beta1JobStatus. + Active is the number of actively running pods. + + :param active: The active of this V1beta1JobStatus. + :type: int + """ + + self._active = active + + @property + def completion_time(self): + """ + Gets the completion_time of this V1beta1JobStatus. + CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :return: The completion_time of this V1beta1JobStatus. + :rtype: datetime + """ + return self._completion_time + + @completion_time.setter + def completion_time(self, completion_time): + """ + Sets the completion_time of this V1beta1JobStatus. + CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :param completion_time: The completion_time of this V1beta1JobStatus. + :type: datetime + """ + + self._completion_time = completion_time + + @property + def conditions(self): + """ + Gets the conditions of this V1beta1JobStatus. + Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The conditions of this V1beta1JobStatus. + :rtype: list[V1beta1JobCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1beta1JobStatus. + Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs + + :param conditions: The conditions of this V1beta1JobStatus. + :type: list[V1beta1JobCondition] + """ + + self._conditions = conditions + + @property + def failed(self): + """ + Gets the failed of this V1beta1JobStatus. + Failed is the number of pods which reached Phase Failed. + + :return: The failed of this V1beta1JobStatus. + :rtype: int + """ + return self._failed + + @failed.setter + def failed(self, failed): + """ + Sets the failed of this V1beta1JobStatus. + Failed is the number of pods which reached Phase Failed. + + :param failed: The failed of this V1beta1JobStatus. + :type: int + """ + + self._failed = failed + + @property + def start_time(self): + """ + Gets the start_time of this V1beta1JobStatus. + StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :return: The start_time of this V1beta1JobStatus. + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this V1beta1JobStatus. + StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :param start_time: The start_time of this V1beta1JobStatus. + :type: datetime + """ + + self._start_time = start_time + + @property + def succeeded(self): + """ + Gets the succeeded of this V1beta1JobStatus. + Succeeded is the number of pods which reached Phase Succeeded. + + :return: The succeeded of this V1beta1JobStatus. + :rtype: int + """ + return self._succeeded + + @succeeded.setter + def succeeded(self, succeeded): + """ + Sets the succeeded of this V1beta1JobStatus. + Succeeded is the number of pods which reached Phase Succeeded. + + :param succeeded: The succeeded of this V1beta1JobStatus. + :type: int + """ + + self._succeeded = succeeded + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1JobStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_local_subject_access_review.py b/kubernetes/client/models/v1beta1_local_subject_access_review.py deleted file mode 100644 index 4c1705a524..0000000000 --- a/kubernetes/client/models/v1beta1_local_subject_access_review.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1LocalSubjectAccessReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1LocalSubjectAccessReview - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'V1beta1SubjectAccessReviewSpec', - 'status': 'V1beta1SubjectAccessReviewStatus' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1LocalSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1LocalSubjectAccessReview. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1LocalSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1LocalSubjectAccessReview. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1beta1LocalSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1LocalSubjectAccessReview. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1LocalSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1LocalSubjectAccessReview. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1LocalSubjectAccessReview. - - :return: The metadata of this V1beta1LocalSubjectAccessReview. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1LocalSubjectAccessReview. - - :param metadata: The metadata of this V1beta1LocalSubjectAccessReview. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this V1beta1LocalSubjectAccessReview. - Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - - :return: The spec of this V1beta1LocalSubjectAccessReview. - :rtype: V1beta1SubjectAccessReviewSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this V1beta1LocalSubjectAccessReview. - Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - - :param spec: The spec of this V1beta1LocalSubjectAccessReview. - :type: V1beta1SubjectAccessReviewSpec - """ - if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this V1beta1LocalSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not - - :return: The status of this V1beta1LocalSubjectAccessReview. - :rtype: V1beta1SubjectAccessReviewStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this V1beta1LocalSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not - - :param status: The status of this V1beta1LocalSubjectAccessReview. - :type: V1beta1SubjectAccessReviewStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1LocalSubjectAccessReview): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_network_policy.py b/kubernetes/client/models/v1beta1_network_policy.py index a464356c62..537e14d7aa 100644 --- a/kubernetes/client/models/v1beta1_network_policy.py +++ b/kubernetes/client/models/v1beta1_network_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py b/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py index fa8c45eb85..2727189dba 100644 --- a/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py +++ b/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_network_policy_list.py b/kubernetes/client/models/v1beta1_network_policy_list.py index 20980e3ba1..681663c5e7 100644 --- a/kubernetes/client/models/v1beta1_network_policy_list.py +++ b/kubernetes/client/models/v1beta1_network_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1NetworkPolicy]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1NetworkPolicyList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1beta1NetworkPolicyList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_network_policy_peer.py b/kubernetes/client/models/v1beta1_network_policy_peer.py index bc18fbc563..8807aea43f 100644 --- a/kubernetes/client/models/v1beta1_network_policy_peer.py +++ b/kubernetes/client/models/v1beta1_network_policy_peer.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,8 +31,8 @@ def __init__(self, namespace_selector=None, pod_selector=None): and the value is json key in definition. """ self.swagger_types = { - 'namespace_selector': 'V1LabelSelector', - 'pod_selector': 'V1LabelSelector' + 'namespace_selector': 'UnversionedLabelSelector', + 'pod_selector': 'UnversionedLabelSelector' } self.attribute_map = { @@ -50,7 +50,7 @@ def namespace_selector(self): Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If omitted, this selector selects no namespaces. If present but empty, this selector selects all namespaces. :return: The namespace_selector of this V1beta1NetworkPolicyPeer. - :rtype: V1LabelSelector + :rtype: UnversionedLabelSelector """ return self._namespace_selector @@ -61,7 +61,7 @@ def namespace_selector(self, namespace_selector): Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If omitted, this selector selects no namespaces. If present but empty, this selector selects all namespaces. :param namespace_selector: The namespace_selector of this V1beta1NetworkPolicyPeer. - :type: V1LabelSelector + :type: UnversionedLabelSelector """ self._namespace_selector = namespace_selector @@ -73,7 +73,7 @@ def pod_selector(self): This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If not provided, this selector selects no pods. If present but empty, this selector selects all pods in this namespace. :return: The pod_selector of this V1beta1NetworkPolicyPeer. - :rtype: V1LabelSelector + :rtype: UnversionedLabelSelector """ return self._pod_selector @@ -84,7 +84,7 @@ def pod_selector(self, pod_selector): This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If not provided, this selector selects no pods. If present but empty, this selector selects all pods in this namespace. :param pod_selector: The pod_selector of this V1beta1NetworkPolicyPeer. - :type: V1LabelSelector + :type: UnversionedLabelSelector """ self._pod_selector = pod_selector diff --git a/kubernetes/client/models/v1beta1_network_policy_port.py b/kubernetes/client/models/v1beta1_network_policy_port.py index f9c776a5ae..f88ebbc787 100644 --- a/kubernetes/client/models/v1beta1_network_policy_port.py +++ b/kubernetes/client/models/v1beta1_network_policy_port.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_network_policy_spec.py b/kubernetes/client/models/v1beta1_network_policy_spec.py index 4469663ce9..9ce242917b 100644 --- a/kubernetes/client/models/v1beta1_network_policy_spec.py +++ b/kubernetes/client/models/v1beta1_network_policy_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,7 +32,7 @@ def __init__(self, ingress=None, pod_selector=None): """ self.swagger_types = { 'ingress': 'list[V1beta1NetworkPolicyIngressRule]', - 'pod_selector': 'V1LabelSelector' + 'pod_selector': 'UnversionedLabelSelector' } self.attribute_map = { @@ -73,7 +73,7 @@ def pod_selector(self): Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. :return: The pod_selector of this V1beta1NetworkPolicySpec. - :rtype: V1LabelSelector + :rtype: UnversionedLabelSelector """ return self._pod_selector @@ -84,7 +84,7 @@ def pod_selector(self, pod_selector): Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. :param pod_selector: The pod_selector of this V1beta1NetworkPolicySpec. - :type: V1LabelSelector + :type: UnversionedLabelSelector """ if pod_selector is None: raise ValueError("Invalid value for `pod_selector`, must not be `None`") diff --git a/kubernetes/client/models/v1beta1_non_resource_attributes.py b/kubernetes/client/models/v1beta1_non_resource_attributes.py deleted file mode 100644 index c342fa1f2f..0000000000 --- a/kubernetes/client/models/v1beta1_non_resource_attributes.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1NonResourceAttributes(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, path=None, verb=None): - """ - V1beta1NonResourceAttributes - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'path': 'str', - 'verb': 'str' - } - - self.attribute_map = { - 'path': 'path', - 'verb': 'verb' - } - - self._path = path - self._verb = verb - - @property - def path(self): - """ - Gets the path of this V1beta1NonResourceAttributes. - Path is the URL path of the request - - :return: The path of this V1beta1NonResourceAttributes. - :rtype: str - """ - return self._path - - @path.setter - def path(self, path): - """ - Sets the path of this V1beta1NonResourceAttributes. - Path is the URL path of the request - - :param path: The path of this V1beta1NonResourceAttributes. - :type: str - """ - - self._path = path - - @property - def verb(self): - """ - Gets the verb of this V1beta1NonResourceAttributes. - Verb is the standard HTTP verb - - :return: The verb of this V1beta1NonResourceAttributes. - :rtype: str - """ - return self._verb - - @verb.setter - def verb(self, verb): - """ - Sets the verb of this V1beta1NonResourceAttributes. - Verb is the standard HTTP verb - - :param verb: The verb of this V1beta1NonResourceAttributes. - :type: str - """ - - self._verb = verb - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1NonResourceAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget.py b/kubernetes/client/models/v1beta1_pod_disruption_budget.py index 6ea25f071b..adbe837ec2 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py index 79066053dc..f1093feba8 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1PodDisruptionBudget]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -124,7 +124,7 @@ def metadata(self): Gets the metadata of this V1beta1PodDisruptionBudgetList. :return: The metadata of this V1beta1PodDisruptionBudgetList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -134,7 +134,7 @@ def metadata(self, metadata): Sets the metadata of this V1beta1PodDisruptionBudgetList. :param metadata: The metadata of this V1beta1PodDisruptionBudgetList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py index e0814ce18e..2b756de44f 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,7 +32,7 @@ def __init__(self, min_available=None, selector=None): """ self.swagger_types = { 'min_available': 'str', - 'selector': 'V1LabelSelector' + 'selector': 'UnversionedLabelSelector' } self.attribute_map = { @@ -73,7 +73,7 @@ def selector(self): Label query over pods whose evictions are managed by the disruption budget. :return: The selector of this V1beta1PodDisruptionBudgetSpec. - :rtype: V1LabelSelector + :rtype: UnversionedLabelSelector """ return self._selector @@ -84,7 +84,7 @@ def selector(self, selector): Label query over pods whose evictions are managed by the disruption budget. :param selector: The selector of this V1beta1PodDisruptionBudgetSpec. - :type: V1LabelSelector + :type: UnversionedLabelSelector """ self._selector = selector diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py index 74741631f8..ebbb71cafb 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_pod_security_policy.py b/kubernetes/client/models/v1beta1_pod_security_policy.py index 679f76c0c1..b1d49497e4 100644 --- a/kubernetes/client/models/v1beta1_pod_security_policy.py +++ b/kubernetes/client/models/v1beta1_pod_security_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_pod_security_policy_list.py b/kubernetes/client/models/v1beta1_pod_security_policy_list.py index d5b36f2814..0e5d7f1032 100644 --- a/kubernetes/client/models/v1beta1_pod_security_policy_list.py +++ b/kubernetes/client/models/v1beta1_pod_security_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1PodSecurityPolicy]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1PodSecurityPolicyList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1beta1PodSecurityPolicyList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_pod_security_policy_spec.py b/kubernetes/client/models/v1beta1_pod_security_policy_spec.py index 22052fc3e3..597388b039 100644 --- a/kubernetes/client/models/v1beta1_pod_security_policy_spec.py +++ b/kubernetes/client/models/v1beta1_pod_security_policy_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_policy_rule.py b/kubernetes/client/models/v1beta1_policy_rule.py deleted file mode 100644 index 08ce204745..0000000000 --- a/kubernetes/client/models/v1beta1_policy_rule.py +++ /dev/null @@ -1,223 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1PolicyRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): - """ - V1beta1PolicyRule - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_groups': 'list[str]', - 'non_resource_ur_ls': 'list[str]', - 'resource_names': 'list[str]', - 'resources': 'list[str]', - 'verbs': 'list[str]' - } - - self.attribute_map = { - 'api_groups': 'apiGroups', - 'non_resource_ur_ls': 'nonResourceURLs', - 'resource_names': 'resourceNames', - 'resources': 'resources', - 'verbs': 'verbs' - } - - self._api_groups = api_groups - self._non_resource_ur_ls = non_resource_ur_ls - self._resource_names = resource_names - self._resources = resources - self._verbs = verbs - - @property - def api_groups(self): - """ - Gets the api_groups of this V1beta1PolicyRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - - :return: The api_groups of this V1beta1PolicyRule. - :rtype: list[str] - """ - return self._api_groups - - @api_groups.setter - def api_groups(self, api_groups): - """ - Sets the api_groups of this V1beta1PolicyRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - - :param api_groups: The api_groups of this V1beta1PolicyRule. - :type: list[str] - """ - - self._api_groups = api_groups - - @property - def non_resource_ur_ls(self): - """ - Gets the non_resource_ur_ls of this V1beta1PolicyRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. - - :return: The non_resource_ur_ls of this V1beta1PolicyRule. - :rtype: list[str] - """ - return self._non_resource_ur_ls - - @non_resource_ur_ls.setter - def non_resource_ur_ls(self, non_resource_ur_ls): - """ - Sets the non_resource_ur_ls of this V1beta1PolicyRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. - - :param non_resource_ur_ls: The non_resource_ur_ls of this V1beta1PolicyRule. - :type: list[str] - """ - - self._non_resource_ur_ls = non_resource_ur_ls - - @property - def resource_names(self): - """ - Gets the resource_names of this V1beta1PolicyRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - - :return: The resource_names of this V1beta1PolicyRule. - :rtype: list[str] - """ - return self._resource_names - - @resource_names.setter - def resource_names(self, resource_names): - """ - Sets the resource_names of this V1beta1PolicyRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - - :param resource_names: The resource_names of this V1beta1PolicyRule. - :type: list[str] - """ - - self._resource_names = resource_names - - @property - def resources(self): - """ - Gets the resources of this V1beta1PolicyRule. - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - - :return: The resources of this V1beta1PolicyRule. - :rtype: list[str] - """ - return self._resources - - @resources.setter - def resources(self, resources): - """ - Sets the resources of this V1beta1PolicyRule. - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - - :param resources: The resources of this V1beta1PolicyRule. - :type: list[str] - """ - - self._resources = resources - - @property - def verbs(self): - """ - Gets the verbs of this V1beta1PolicyRule. - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - - :return: The verbs of this V1beta1PolicyRule. - :rtype: list[str] - """ - return self._verbs - - @verbs.setter - def verbs(self, verbs): - """ - Sets the verbs of this V1beta1PolicyRule. - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - - :param verbs: The verbs of this V1beta1PolicyRule. - :type: list[str] - """ - if verbs is None: - raise ValueError("Invalid value for `verbs`, must not be `None`") - - self._verbs = verbs - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1PolicyRule): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_replica_set.py b/kubernetes/client/models/v1beta1_replica_set.py index 9ffb216ef8..6ee8e1f7c0 100644 --- a/kubernetes/client/models/v1beta1_replica_set.py +++ b/kubernetes/client/models/v1beta1_replica_set.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_replica_set_condition.py b/kubernetes/client/models/v1beta1_replica_set_condition.py index 9de3c8e778..4c22abf94f 100644 --- a/kubernetes/client/models/v1beta1_replica_set_condition.py +++ b/kubernetes/client/models/v1beta1_replica_set_condition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_replica_set_list.py b/kubernetes/client/models/v1beta1_replica_set_list.py index 32bb4fda8a..70238436e8 100644 --- a/kubernetes/client/models/v1beta1_replica_set_list.py +++ b/kubernetes/client/models/v1beta1_replica_set_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1ReplicaSet]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1beta1ReplicaSetList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1beta1ReplicaSetList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_replica_set_spec.py b/kubernetes/client/models/v1beta1_replica_set_spec.py index 01b3f1225c..6ad2206e0c 100644 --- a/kubernetes/client/models/v1beta1_replica_set_spec.py +++ b/kubernetes/client/models/v1beta1_replica_set_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,7 +33,7 @@ def __init__(self, min_ready_seconds=None, replicas=None, selector=None, templat self.swagger_types = { 'min_ready_seconds': 'int', 'replicas': 'int', - 'selector': 'V1LabelSelector', + 'selector': 'UnversionedLabelSelector', 'template': 'V1PodTemplateSpec' } @@ -102,7 +102,7 @@ def selector(self): Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors :return: The selector of this V1beta1ReplicaSetSpec. - :rtype: V1LabelSelector + :rtype: UnversionedLabelSelector """ return self._selector @@ -113,7 +113,7 @@ def selector(self, selector): Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors :param selector: The selector of this V1beta1ReplicaSetSpec. - :type: V1LabelSelector + :type: UnversionedLabelSelector """ self._selector = selector diff --git a/kubernetes/client/models/v1beta1_replica_set_status.py b/kubernetes/client/models/v1beta1_replica_set_status.py index ddecf20b15..1c6c29da01 100644 --- a/kubernetes/client/models/v1beta1_replica_set_status.py +++ b/kubernetes/client/models/v1beta1_replica_set_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_resource_attributes.py b/kubernetes/client/models/v1beta1_resource_attributes.py deleted file mode 100644 index 2f8f13cc93..0000000000 --- a/kubernetes/client/models/v1beta1_resource_attributes.py +++ /dev/null @@ -1,273 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1ResourceAttributes(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, group=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None): - """ - V1beta1ResourceAttributes - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'group': 'str', - 'name': 'str', - 'namespace': 'str', - 'resource': 'str', - 'subresource': 'str', - 'verb': 'str', - 'version': 'str' - } - - self.attribute_map = { - 'group': 'group', - 'name': 'name', - 'namespace': 'namespace', - 'resource': 'resource', - 'subresource': 'subresource', - 'verb': 'verb', - 'version': 'version' - } - - self._group = group - self._name = name - self._namespace = namespace - self._resource = resource - self._subresource = subresource - self._verb = verb - self._version = version - - @property - def group(self): - """ - Gets the group of this V1beta1ResourceAttributes. - Group is the API Group of the Resource. \"*\" means all. - - :return: The group of this V1beta1ResourceAttributes. - :rtype: str - """ - return self._group - - @group.setter - def group(self, group): - """ - Sets the group of this V1beta1ResourceAttributes. - Group is the API Group of the Resource. \"*\" means all. - - :param group: The group of this V1beta1ResourceAttributes. - :type: str - """ - - self._group = group - - @property - def name(self): - """ - Gets the name of this V1beta1ResourceAttributes. - Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. - - :return: The name of this V1beta1ResourceAttributes. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1beta1ResourceAttributes. - Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. - - :param name: The name of this V1beta1ResourceAttributes. - :type: str - """ - - self._name = name - - @property - def namespace(self): - """ - Gets the namespace of this V1beta1ResourceAttributes. - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - - :return: The namespace of this V1beta1ResourceAttributes. - :rtype: str - """ - return self._namespace - - @namespace.setter - def namespace(self, namespace): - """ - Sets the namespace of this V1beta1ResourceAttributes. - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - - :param namespace: The namespace of this V1beta1ResourceAttributes. - :type: str - """ - - self._namespace = namespace - - @property - def resource(self): - """ - Gets the resource of this V1beta1ResourceAttributes. - Resource is one of the existing resource types. \"*\" means all. - - :return: The resource of this V1beta1ResourceAttributes. - :rtype: str - """ - return self._resource - - @resource.setter - def resource(self, resource): - """ - Sets the resource of this V1beta1ResourceAttributes. - Resource is one of the existing resource types. \"*\" means all. - - :param resource: The resource of this V1beta1ResourceAttributes. - :type: str - """ - - self._resource = resource - - @property - def subresource(self): - """ - Gets the subresource of this V1beta1ResourceAttributes. - Subresource is one of the existing resource types. \"\" means none. - - :return: The subresource of this V1beta1ResourceAttributes. - :rtype: str - """ - return self._subresource - - @subresource.setter - def subresource(self, subresource): - """ - Sets the subresource of this V1beta1ResourceAttributes. - Subresource is one of the existing resource types. \"\" means none. - - :param subresource: The subresource of this V1beta1ResourceAttributes. - :type: str - """ - - self._subresource = subresource - - @property - def verb(self): - """ - Gets the verb of this V1beta1ResourceAttributes. - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. - - :return: The verb of this V1beta1ResourceAttributes. - :rtype: str - """ - return self._verb - - @verb.setter - def verb(self, verb): - """ - Sets the verb of this V1beta1ResourceAttributes. - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. - - :param verb: The verb of this V1beta1ResourceAttributes. - :type: str - """ - - self._verb = verb - - @property - def version(self): - """ - Gets the version of this V1beta1ResourceAttributes. - Version is the API Version of the Resource. \"*\" means all. - - :return: The version of this V1beta1ResourceAttributes. - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """ - Sets the version of this V1beta1ResourceAttributes. - Version is the API Version of the Resource. \"*\" means all. - - :param version: The version of this V1beta1ResourceAttributes. - :type: str - """ - - self._version = version - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1ResourceAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_role.py b/kubernetes/client/models/v1beta1_role.py deleted file mode 100644 index 74386d8110..0000000000 --- a/kubernetes/client/models/v1beta1_role.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1Role(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, rules=None): - """ - V1beta1Role - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'rules': 'list[V1beta1PolicyRule]' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'rules': 'rules' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._rules = rules - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1Role. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1Role. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1Role. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1Role. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1beta1Role. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1Role. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1Role. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1Role. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1Role. - Standard object's metadata. - - :return: The metadata of this V1beta1Role. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1Role. - Standard object's metadata. - - :param metadata: The metadata of this V1beta1Role. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def rules(self): - """ - Gets the rules of this V1beta1Role. - Rules holds all the PolicyRules for this Role - - :return: The rules of this V1beta1Role. - :rtype: list[V1beta1PolicyRule] - """ - return self._rules - - @rules.setter - def rules(self, rules): - """ - Sets the rules of this V1beta1Role. - Rules holds all the PolicyRules for this Role - - :param rules: The rules of this V1beta1Role. - :type: list[V1beta1PolicyRule] - """ - if rules is None: - raise ValueError("Invalid value for `rules`, must not be `None`") - - self._rules = rules - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1Role): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_role_binding.py b/kubernetes/client/models/v1beta1_role_binding.py deleted file mode 100644 index 18ee0adde0..0000000000 --- a/kubernetes/client/models/v1beta1_role_binding.py +++ /dev/null @@ -1,225 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1RoleBinding(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): - """ - V1beta1RoleBinding - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'role_ref': 'V1beta1RoleRef', - 'subjects': 'list[V1beta1Subject]' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'role_ref': 'roleRef', - 'subjects': 'subjects' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._role_ref = role_ref - self._subjects = subjects - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1RoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1RoleBinding. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1RoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1RoleBinding. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1beta1RoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1RoleBinding. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1RoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1RoleBinding. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1RoleBinding. - Standard object's metadata. - - :return: The metadata of this V1beta1RoleBinding. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1RoleBinding. - Standard object's metadata. - - :param metadata: The metadata of this V1beta1RoleBinding. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def role_ref(self): - """ - Gets the role_ref of this V1beta1RoleBinding. - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - - :return: The role_ref of this V1beta1RoleBinding. - :rtype: V1beta1RoleRef - """ - return self._role_ref - - @role_ref.setter - def role_ref(self, role_ref): - """ - Sets the role_ref of this V1beta1RoleBinding. - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - - :param role_ref: The role_ref of this V1beta1RoleBinding. - :type: V1beta1RoleRef - """ - if role_ref is None: - raise ValueError("Invalid value for `role_ref`, must not be `None`") - - self._role_ref = role_ref - - @property - def subjects(self): - """ - Gets the subjects of this V1beta1RoleBinding. - Subjects holds references to the objects the role applies to. - - :return: The subjects of this V1beta1RoleBinding. - :rtype: list[V1beta1Subject] - """ - return self._subjects - - @subjects.setter - def subjects(self, subjects): - """ - Sets the subjects of this V1beta1RoleBinding. - Subjects holds references to the objects the role applies to. - - :param subjects: The subjects of this V1beta1RoleBinding. - :type: list[V1beta1Subject] - """ - if subjects is None: - raise ValueError("Invalid value for `subjects`, must not be `None`") - - self._subjects = subjects - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1RoleBinding): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_role_binding_list.py b/kubernetes/client/models/v1beta1_role_binding_list.py deleted file mode 100644 index 65595d3abd..0000000000 --- a/kubernetes/client/models/v1beta1_role_binding_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1RoleBindingList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1RoleBindingList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[V1beta1RoleBinding]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1RoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1RoleBindingList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1RoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1RoleBindingList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this V1beta1RoleBindingList. - Items is a list of RoleBindings - - :return: The items of this V1beta1RoleBindingList. - :rtype: list[V1beta1RoleBinding] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1beta1RoleBindingList. - Items is a list of RoleBindings - - :param items: The items of this V1beta1RoleBindingList. - :type: list[V1beta1RoleBinding] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this V1beta1RoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1RoleBindingList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1RoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1RoleBindingList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1RoleBindingList. - Standard object's metadata. - - :return: The metadata of this V1beta1RoleBindingList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1RoleBindingList. - Standard object's metadata. - - :param metadata: The metadata of this V1beta1RoleBindingList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1RoleBindingList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_role_list.py b/kubernetes/client/models/v1beta1_role_list.py deleted file mode 100644 index dbe0732151..0000000000 --- a/kubernetes/client/models/v1beta1_role_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1RoleList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1RoleList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[V1beta1Role]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1RoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1RoleList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1RoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1RoleList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this V1beta1RoleList. - Items is a list of Roles - - :return: The items of this V1beta1RoleList. - :rtype: list[V1beta1Role] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V1beta1RoleList. - Items is a list of Roles - - :param items: The items of this V1beta1RoleList. - :type: list[V1beta1Role] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this V1beta1RoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1RoleList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1RoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1RoleList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1RoleList. - Standard object's metadata. - - :return: The metadata of this V1beta1RoleList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1RoleList. - Standard object's metadata. - - :param metadata: The metadata of this V1beta1RoleList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1RoleList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_role_ref.py b/kubernetes/client/models/v1beta1_role_ref.py deleted file mode 100644 index b28ae21a57..0000000000 --- a/kubernetes/client/models/v1beta1_role_ref.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1RoleRef(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_group=None, kind=None, name=None): - """ - V1beta1RoleRef - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_group': 'str', - 'kind': 'str', - 'name': 'str' - } - - self.attribute_map = { - 'api_group': 'apiGroup', - 'kind': 'kind', - 'name': 'name' - } - - self._api_group = api_group - self._kind = kind - self._name = name - - @property - def api_group(self): - """ - Gets the api_group of this V1beta1RoleRef. - APIGroup is the group for the resource being referenced - - :return: The api_group of this V1beta1RoleRef. - :rtype: str - """ - return self._api_group - - @api_group.setter - def api_group(self, api_group): - """ - Sets the api_group of this V1beta1RoleRef. - APIGroup is the group for the resource being referenced - - :param api_group: The api_group of this V1beta1RoleRef. - :type: str - """ - if api_group is None: - raise ValueError("Invalid value for `api_group`, must not be `None`") - - self._api_group = api_group - - @property - def kind(self): - """ - Gets the kind of this V1beta1RoleRef. - Kind is the type of resource being referenced - - :return: The kind of this V1beta1RoleRef. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1RoleRef. - Kind is the type of resource being referenced - - :param kind: The kind of this V1beta1RoleRef. - :type: str - """ - if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") - - self._kind = kind - - @property - def name(self): - """ - Gets the name of this V1beta1RoleRef. - Name is the name of resource being referenced - - :return: The name of this V1beta1RoleRef. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1beta1RoleRef. - Name is the name of resource being referenced - - :param name: The name of this V1beta1RoleRef. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1RoleRef): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_rollback_config.py b/kubernetes/client/models/v1beta1_rollback_config.py new file mode 100644 index 0000000000..6f103554de --- /dev/null +++ b/kubernetes/client/models/v1beta1_rollback_config.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1RollbackConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, revision=None): + """ + V1beta1RollbackConfig - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'revision': 'int' + } + + self.attribute_map = { + 'revision': 'revision' + } + + self._revision = revision + + @property + def revision(self): + """ + Gets the revision of this V1beta1RollbackConfig. + The revision to rollback to. If set to 0, rollbck to the last revision. + + :return: The revision of this V1beta1RollbackConfig. + :rtype: int + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this V1beta1RollbackConfig. + The revision to rollback to. If set to 0, rollbck to the last revision. + + :param revision: The revision of this V1beta1RollbackConfig. + :type: int + """ + + self._revision = revision + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1RollbackConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py b/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py deleted file mode 100644 index d6b153eb97..0000000000 --- a/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1RollingUpdateDaemonSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, max_unavailable=None): - """ - V1beta1RollingUpdateDaemonSet - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'max_unavailable': 'str' - } - - self.attribute_map = { - 'max_unavailable': 'maxUnavailable' - } - - self._max_unavailable = max_unavailable - - @property - def max_unavailable(self): - """ - Gets the max_unavailable of this V1beta1RollingUpdateDaemonSet. - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - :return: The max_unavailable of this V1beta1RollingUpdateDaemonSet. - :rtype: str - """ - return self._max_unavailable - - @max_unavailable.setter - def max_unavailable(self, max_unavailable): - """ - Sets the max_unavailable of this V1beta1RollingUpdateDaemonSet. - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - :param max_unavailable: The max_unavailable of this V1beta1RollingUpdateDaemonSet. - :type: str - """ - - self._max_unavailable = max_unavailable - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1RollingUpdateDaemonSet): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_rolling_update_deployment.py b/kubernetes/client/models/v1beta1_rolling_update_deployment.py new file mode 100644 index 0000000000..2c8b203ad7 --- /dev/null +++ b/kubernetes/client/models/v1beta1_rolling_update_deployment.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1RollingUpdateDeployment(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, max_surge=None, max_unavailable=None): + """ + V1beta1RollingUpdateDeployment - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'max_surge': 'str', + 'max_unavailable': 'str' + } + + self.attribute_map = { + 'max_surge': 'maxSurge', + 'max_unavailable': 'maxUnavailable' + } + + self._max_surge = max_surge + self._max_unavailable = max_unavailable + + @property + def max_surge(self): + """ + Gets the max_surge of this V1beta1RollingUpdateDeployment. + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. + + :return: The max_surge of this V1beta1RollingUpdateDeployment. + :rtype: str + """ + return self._max_surge + + @max_surge.setter + def max_surge(self, max_surge): + """ + Sets the max_surge of this V1beta1RollingUpdateDeployment. + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. + + :param max_surge: The max_surge of this V1beta1RollingUpdateDeployment. + :type: str + """ + + self._max_surge = max_surge + + @property + def max_unavailable(self): + """ + Gets the max_unavailable of this V1beta1RollingUpdateDeployment. + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + :return: The max_unavailable of this V1beta1RollingUpdateDeployment. + :rtype: str + """ + return self._max_unavailable + + @max_unavailable.setter + def max_unavailable(self, max_unavailable): + """ + Sets the max_unavailable of this V1beta1RollingUpdateDeployment. + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + :param max_unavailable: The max_unavailable of this V1beta1RollingUpdateDeployment. + :type: str + """ + + self._max_unavailable = max_unavailable + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1RollingUpdateDeployment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_run_as_user_strategy_options.py b/kubernetes/client/models/v1beta1_run_as_user_strategy_options.py index edd478f8af..a676333db3 100644 --- a/kubernetes/client/models/v1beta1_run_as_user_strategy_options.py +++ b/kubernetes/client/models/v1beta1_run_as_user_strategy_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_scale.py b/kubernetes/client/models/v1beta1_scale.py new file mode 100644 index 0000000000..960f9d2a10 --- /dev/null +++ b/kubernetes/client/models/v1beta1_scale.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1Scale(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1beta1Scale - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1ScaleSpec', + 'status': 'V1beta1ScaleStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1Scale. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1Scale. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1beta1Scale. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1Scale. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1Scale. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1Scale. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1Scale. + Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + + :return: The metadata of this V1beta1Scale. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1Scale. + Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + + :param metadata: The metadata of this V1beta1Scale. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1Scale. + defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + + :return: The spec of this V1beta1Scale. + :rtype: V1beta1ScaleSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1Scale. + defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + + :param spec: The spec of this V1beta1Scale. + :type: V1beta1ScaleSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1beta1Scale. + current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. + + :return: The status of this V1beta1Scale. + :rtype: V1beta1ScaleStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1Scale. + current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. + + :param status: The status of this V1beta1Scale. + :type: V1beta1ScaleStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1Scale): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_scale_spec.py b/kubernetes/client/models/v1beta1_scale_spec.py new file mode 100644 index 0000000000..065ee0baf7 --- /dev/null +++ b/kubernetes/client/models/v1beta1_scale_spec.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ScaleSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, replicas=None): + """ + V1beta1ScaleSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'replicas': 'int' + } + + self.attribute_map = { + 'replicas': 'replicas' + } + + self._replicas = replicas + + @property + def replicas(self): + """ + Gets the replicas of this V1beta1ScaleSpec. + desired number of instances for the scaled object. + + :return: The replicas of this V1beta1ScaleSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1beta1ScaleSpec. + desired number of instances for the scaled object. + + :param replicas: The replicas of this V1beta1ScaleSpec. + :type: int + """ + + self._replicas = replicas + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1ScaleSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_scale_status.py b/kubernetes/client/models/v1beta1_scale_status.py new file mode 100644 index 0000000000..9411a82ab8 --- /dev/null +++ b/kubernetes/client/models/v1beta1_scale_status.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ScaleStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, replicas=None, selector=None, target_selector=None): + """ + V1beta1ScaleStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'replicas': 'int', + 'selector': 'dict(str, str)', + 'target_selector': 'str' + } + + self.attribute_map = { + 'replicas': 'replicas', + 'selector': 'selector', + 'target_selector': 'targetSelector' + } + + self._replicas = replicas + self._selector = selector + self._target_selector = target_selector + + @property + def replicas(self): + """ + Gets the replicas of this V1beta1ScaleStatus. + actual number of observed instances of the scaled object. + + :return: The replicas of this V1beta1ScaleStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1beta1ScaleStatus. + actual number of observed instances of the scaled object. + + :param replicas: The replicas of this V1beta1ScaleStatus. + :type: int + """ + if replicas is None: + raise ValueError("Invalid value for `replicas`, must not be `None`") + + self._replicas = replicas + + @property + def selector(self): + """ + Gets the selector of this V1beta1ScaleStatus. + label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The selector of this V1beta1ScaleStatus. + :rtype: dict(str, str) + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1beta1ScaleStatus. + label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param selector: The selector of this V1beta1ScaleStatus. + :type: dict(str, str) + """ + + self._selector = selector + + @property + def target_selector(self): + """ + Gets the target_selector of this V1beta1ScaleStatus. + label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The target_selector of this V1beta1ScaleStatus. + :rtype: str + """ + return self._target_selector + + @target_selector.setter + def target_selector(self, target_selector): + """ + Sets the target_selector of this V1beta1ScaleStatus. + label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param target_selector: The target_selector of this V1beta1ScaleStatus. + :type: str + """ + + self._target_selector = target_selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1ScaleStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_se_linux_strategy_options.py b/kubernetes/client/models/v1beta1_se_linux_strategy_options.py index df4ac646b8..0654d2bc85 100644 --- a/kubernetes/client/models/v1beta1_se_linux_strategy_options.py +++ b/kubernetes/client/models/v1beta1_se_linux_strategy_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_self_subject_access_review.py b/kubernetes/client/models/v1beta1_self_subject_access_review.py deleted file mode 100644 index e9f8c464e3..0000000000 --- a/kubernetes/client/models/v1beta1_self_subject_access_review.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1SelfSubjectAccessReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1SelfSubjectAccessReview - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'V1beta1SelfSubjectAccessReviewSpec', - 'status': 'V1beta1SubjectAccessReviewStatus' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1SelfSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1SelfSubjectAccessReview. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1SelfSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1SelfSubjectAccessReview. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1beta1SelfSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1SelfSubjectAccessReview. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1SelfSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1SelfSubjectAccessReview. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1SelfSubjectAccessReview. - - :return: The metadata of this V1beta1SelfSubjectAccessReview. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1SelfSubjectAccessReview. - - :param metadata: The metadata of this V1beta1SelfSubjectAccessReview. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this V1beta1SelfSubjectAccessReview. - Spec holds information about the request being evaluated. user and groups must be empty - - :return: The spec of this V1beta1SelfSubjectAccessReview. - :rtype: V1beta1SelfSubjectAccessReviewSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this V1beta1SelfSubjectAccessReview. - Spec holds information about the request being evaluated. user and groups must be empty - - :param spec: The spec of this V1beta1SelfSubjectAccessReview. - :type: V1beta1SelfSubjectAccessReviewSpec - """ - if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this V1beta1SelfSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not - - :return: The status of this V1beta1SelfSubjectAccessReview. - :rtype: V1beta1SubjectAccessReviewStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this V1beta1SelfSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not - - :param status: The status of this V1beta1SelfSubjectAccessReview. - :type: V1beta1SubjectAccessReviewStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1SelfSubjectAccessReview): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py b/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py deleted file mode 100644 index 70f661622a..0000000000 --- a/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1SelfSubjectAccessReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, non_resource_attributes=None, resource_attributes=None): - """ - V1beta1SelfSubjectAccessReviewSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'non_resource_attributes': 'V1beta1NonResourceAttributes', - 'resource_attributes': 'V1beta1ResourceAttributes' - } - - self.attribute_map = { - 'non_resource_attributes': 'nonResourceAttributes', - 'resource_attributes': 'resourceAttributes' - } - - self._non_resource_attributes = non_resource_attributes - self._resource_attributes = resource_attributes - - @property - def non_resource_attributes(self): - """ - Gets the non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request - - :return: The non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - :rtype: V1beta1NonResourceAttributes - """ - return self._non_resource_attributes - - @non_resource_attributes.setter - def non_resource_attributes(self, non_resource_attributes): - """ - Sets the non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request - - :param non_resource_attributes: The non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - :type: V1beta1NonResourceAttributes - """ - - self._non_resource_attributes = non_resource_attributes - - @property - def resource_attributes(self): - """ - Gets the resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request - - :return: The resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - :rtype: V1beta1ResourceAttributes - """ - return self._resource_attributes - - @resource_attributes.setter - def resource_attributes(self, resource_attributes): - """ - Sets the resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request - - :param resource_attributes: The resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - :type: V1beta1ResourceAttributes - """ - - self._resource_attributes = resource_attributes - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1SelfSubjectAccessReviewSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_stateful_set.py b/kubernetes/client/models/v1beta1_stateful_set.py index 20f2ceddd1..37607b18ee 100644 --- a/kubernetes/client/models/v1beta1_stateful_set.py +++ b/kubernetes/client/models/v1beta1_stateful_set.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_stateful_set_list.py b/kubernetes/client/models/v1beta1_stateful_set_list.py index be69749cd6..f632fc9538 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_list.py +++ b/kubernetes/client/models/v1beta1_stateful_set_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1StatefulSet]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -124,7 +124,7 @@ def metadata(self): Gets the metadata of this V1beta1StatefulSetList. :return: The metadata of this V1beta1StatefulSetList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -134,7 +134,7 @@ def metadata(self, metadata): Sets the metadata of this V1beta1StatefulSetList. :param metadata: The metadata of this V1beta1StatefulSetList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_stateful_set_spec.py b/kubernetes/client/models/v1beta1_stateful_set_spec.py index 0288ff6cba..8e0604e377 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_spec.py +++ b/kubernetes/client/models/v1beta1_stateful_set_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,7 +32,7 @@ def __init__(self, replicas=None, selector=None, service_name=None, template=Non """ self.swagger_types = { 'replicas': 'int', - 'selector': 'V1LabelSelector', + 'selector': 'UnversionedLabelSelector', 'service_name': 'str', 'template': 'V1PodTemplateSpec', 'volume_claim_templates': 'list[V1PersistentVolumeClaim]' @@ -82,7 +82,7 @@ def selector(self): Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors :return: The selector of this V1beta1StatefulSetSpec. - :rtype: V1LabelSelector + :rtype: UnversionedLabelSelector """ return self._selector @@ -93,7 +93,7 @@ def selector(self, selector): Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors :param selector: The selector of this V1beta1StatefulSetSpec. - :type: V1LabelSelector + :type: UnversionedLabelSelector """ self._selector = selector diff --git a/kubernetes/client/models/v1beta1_stateful_set_status.py b/kubernetes/client/models/v1beta1_stateful_set_status.py index becdf205fc..ab7c01c912 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_status.py +++ b/kubernetes/client/models/v1beta1_stateful_set_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -47,7 +47,7 @@ def __init__(self, observed_generation=None, replicas=None): def observed_generation(self): """ Gets the observed_generation of this V1beta1StatefulSetStatus. - most recent generation observed by this StatefulSet. + most recent generation observed by this autoscaler. :return: The observed_generation of this V1beta1StatefulSetStatus. :rtype: int @@ -58,7 +58,7 @@ def observed_generation(self): def observed_generation(self, observed_generation): """ Sets the observed_generation of this V1beta1StatefulSetStatus. - most recent generation observed by this StatefulSet. + most recent generation observed by this autoscaler. :param observed_generation: The observed_generation of this V1beta1StatefulSetStatus. :type: int diff --git a/kubernetes/client/models/v1beta1_storage_class.py b/kubernetes/client/models/v1beta1_storage_class.py index 1c429134b0..a7b9119929 100644 --- a/kubernetes/client/models/v1beta1_storage_class.py +++ b/kubernetes/client/models/v1beta1_storage_class.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_storage_class_list.py b/kubernetes/client/models/v1beta1_storage_class_list.py index 3e9e6c488a..134f8e4459 100644 --- a/kubernetes/client/models/v1beta1_storage_class_list.py +++ b/kubernetes/client/models/v1beta1_storage_class_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1StorageClass]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1StorageClassList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1beta1StorageClassList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_subject.py b/kubernetes/client/models/v1beta1_subject.py deleted file mode 100644 index 7f519704bb..0000000000 --- a/kubernetes/client/models/v1beta1_subject.py +++ /dev/null @@ -1,199 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1Subject(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_group=None, kind=None, name=None, namespace=None): - """ - V1beta1Subject - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_group': 'str', - 'kind': 'str', - 'name': 'str', - 'namespace': 'str' - } - - self.attribute_map = { - 'api_group': 'apiGroup', - 'kind': 'kind', - 'name': 'name', - 'namespace': 'namespace' - } - - self._api_group = api_group - self._kind = kind - self._name = name - self._namespace = namespace - - @property - def api_group(self): - """ - Gets the api_group of this V1beta1Subject. - 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. - - :return: The api_group of this V1beta1Subject. - :rtype: str - """ - return self._api_group - - @api_group.setter - def api_group(self, api_group): - """ - Sets the api_group of this V1beta1Subject. - 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. - - :param api_group: The api_group of this V1beta1Subject. - :type: str - """ - - self._api_group = api_group - - @property - def kind(self): - """ - Gets the kind of this V1beta1Subject. - 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. - - :return: The kind of this V1beta1Subject. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1Subject. - 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. - - :param kind: The kind of this V1beta1Subject. - :type: str - """ - if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") - - self._kind = kind - - @property - def name(self): - """ - Gets the name of this V1beta1Subject. - Name of the object being referenced. - - :return: The name of this V1beta1Subject. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1beta1Subject. - Name of the object being referenced. - - :param name: The name of this V1beta1Subject. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - @property - def namespace(self): - """ - Gets the namespace of this V1beta1Subject. - 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. - - :return: The namespace of this V1beta1Subject. - :rtype: str - """ - return self._namespace - - @namespace.setter - def namespace(self, namespace): - """ - Sets the namespace of this V1beta1Subject. - 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. - - :param namespace: The namespace of this V1beta1Subject. - :type: str - """ - - self._namespace = namespace - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1Subject): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_subject_access_review.py b/kubernetes/client/models/v1beta1_subject_access_review.py deleted file mode 100644 index 4e4f4f4819..0000000000 --- a/kubernetes/client/models/v1beta1_subject_access_review.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1SubjectAccessReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1SubjectAccessReview - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'V1beta1SubjectAccessReviewSpec', - 'status': 'V1beta1SubjectAccessReviewStatus' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status - - @property - def api_version(self): - """ - Gets the api_version of this V1beta1SubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V1beta1SubjectAccessReview. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1beta1SubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V1beta1SubjectAccessReview. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1beta1SubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V1beta1SubjectAccessReview. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1beta1SubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V1beta1SubjectAccessReview. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1beta1SubjectAccessReview. - - :return: The metadata of this V1beta1SubjectAccessReview. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1beta1SubjectAccessReview. - - :param metadata: The metadata of this V1beta1SubjectAccessReview. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this V1beta1SubjectAccessReview. - Spec holds information about the request being evaluated - - :return: The spec of this V1beta1SubjectAccessReview. - :rtype: V1beta1SubjectAccessReviewSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this V1beta1SubjectAccessReview. - Spec holds information about the request being evaluated - - :param spec: The spec of this V1beta1SubjectAccessReview. - :type: V1beta1SubjectAccessReviewSpec - """ - if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this V1beta1SubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not - - :return: The status of this V1beta1SubjectAccessReview. - :rtype: V1beta1SubjectAccessReviewStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this V1beta1SubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not - - :param status: The status of this V1beta1SubjectAccessReview. - :type: V1beta1SubjectAccessReviewStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1SubjectAccessReview): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_subject_access_review_spec.py b/kubernetes/client/models/v1beta1_subject_access_review_spec.py deleted file mode 100644 index 699b594fbd..0000000000 --- a/kubernetes/client/models/v1beta1_subject_access_review_spec.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1SubjectAccessReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, extra=None, group=None, non_resource_attributes=None, resource_attributes=None, user=None): - """ - V1beta1SubjectAccessReviewSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'extra': 'dict(str, list[str])', - 'group': 'list[str]', - 'non_resource_attributes': 'V1beta1NonResourceAttributes', - 'resource_attributes': 'V1beta1ResourceAttributes', - 'user': 'str' - } - - self.attribute_map = { - 'extra': 'extra', - 'group': 'group', - 'non_resource_attributes': 'nonResourceAttributes', - 'resource_attributes': 'resourceAttributes', - 'user': 'user' - } - - self._extra = extra - self._group = group - self._non_resource_attributes = non_resource_attributes - self._resource_attributes = resource_attributes - self._user = user - - @property - def extra(self): - """ - Gets the extra of this V1beta1SubjectAccessReviewSpec. - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - - :return: The extra of this V1beta1SubjectAccessReviewSpec. - :rtype: dict(str, list[str]) - """ - return self._extra - - @extra.setter - def extra(self, extra): - """ - Sets the extra of this V1beta1SubjectAccessReviewSpec. - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - - :param extra: The extra of this V1beta1SubjectAccessReviewSpec. - :type: dict(str, list[str]) - """ - - self._extra = extra - - @property - def group(self): - """ - Gets the group of this V1beta1SubjectAccessReviewSpec. - Groups is the groups you're testing for. - - :return: The group of this V1beta1SubjectAccessReviewSpec. - :rtype: list[str] - """ - return self._group - - @group.setter - def group(self, group): - """ - Sets the group of this V1beta1SubjectAccessReviewSpec. - Groups is the groups you're testing for. - - :param group: The group of this V1beta1SubjectAccessReviewSpec. - :type: list[str] - """ - - self._group = group - - @property - def non_resource_attributes(self): - """ - Gets the non_resource_attributes of this V1beta1SubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request - - :return: The non_resource_attributes of this V1beta1SubjectAccessReviewSpec. - :rtype: V1beta1NonResourceAttributes - """ - return self._non_resource_attributes - - @non_resource_attributes.setter - def non_resource_attributes(self, non_resource_attributes): - """ - Sets the non_resource_attributes of this V1beta1SubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request - - :param non_resource_attributes: The non_resource_attributes of this V1beta1SubjectAccessReviewSpec. - :type: V1beta1NonResourceAttributes - """ - - self._non_resource_attributes = non_resource_attributes - - @property - def resource_attributes(self): - """ - Gets the resource_attributes of this V1beta1SubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request - - :return: The resource_attributes of this V1beta1SubjectAccessReviewSpec. - :rtype: V1beta1ResourceAttributes - """ - return self._resource_attributes - - @resource_attributes.setter - def resource_attributes(self, resource_attributes): - """ - Sets the resource_attributes of this V1beta1SubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request - - :param resource_attributes: The resource_attributes of this V1beta1SubjectAccessReviewSpec. - :type: V1beta1ResourceAttributes - """ - - self._resource_attributes = resource_attributes - - @property - def user(self): - """ - Gets the user of this V1beta1SubjectAccessReviewSpec. - User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups - - :return: The user of this V1beta1SubjectAccessReviewSpec. - :rtype: str - """ - return self._user - - @user.setter - def user(self, user): - """ - Sets the user of this V1beta1SubjectAccessReviewSpec. - User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups - - :param user: The user of this V1beta1SubjectAccessReviewSpec. - :type: str - """ - - self._user = user - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1SubjectAccessReviewSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_subject_access_review_status.py b/kubernetes/client/models/v1beta1_subject_access_review_status.py deleted file mode 100644 index 37f23220ad..0000000000 --- a/kubernetes/client/models/v1beta1_subject_access_review_status.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1SubjectAccessReviewStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, allowed=None, evaluation_error=None, reason=None): - """ - V1beta1SubjectAccessReviewStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'allowed': 'bool', - 'evaluation_error': 'str', - 'reason': 'str' - } - - self.attribute_map = { - 'allowed': 'allowed', - 'evaluation_error': 'evaluationError', - 'reason': 'reason' - } - - self._allowed = allowed - self._evaluation_error = evaluation_error - self._reason = reason - - @property - def allowed(self): - """ - Gets the allowed of this V1beta1SubjectAccessReviewStatus. - Allowed is required. True if the action would be allowed, false otherwise. - - :return: The allowed of this V1beta1SubjectAccessReviewStatus. - :rtype: bool - """ - return self._allowed - - @allowed.setter - def allowed(self, allowed): - """ - Sets the allowed of this V1beta1SubjectAccessReviewStatus. - Allowed is required. True if the action would be allowed, false otherwise. - - :param allowed: The allowed of this V1beta1SubjectAccessReviewStatus. - :type: bool - """ - if allowed is None: - raise ValueError("Invalid value for `allowed`, must not be `None`") - - self._allowed = allowed - - @property - def evaluation_error(self): - """ - Gets the evaluation_error of this V1beta1SubjectAccessReviewStatus. - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - - :return: The evaluation_error of this V1beta1SubjectAccessReviewStatus. - :rtype: str - """ - return self._evaluation_error - - @evaluation_error.setter - def evaluation_error(self, evaluation_error): - """ - Sets the evaluation_error of this V1beta1SubjectAccessReviewStatus. - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - - :param evaluation_error: The evaluation_error of this V1beta1SubjectAccessReviewStatus. - :type: str - """ - - self._evaluation_error = evaluation_error - - @property - def reason(self): - """ - Gets the reason of this V1beta1SubjectAccessReviewStatus. - Reason is optional. It indicates why a request was allowed or denied. - - :return: The reason of this V1beta1SubjectAccessReviewStatus. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this V1beta1SubjectAccessReviewStatus. - Reason is optional. It indicates why a request was allowed or denied. - - :param reason: The reason of this V1beta1SubjectAccessReviewStatus. - :type: str - """ - - self._reason = reason - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V1beta1SubjectAccessReviewStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_subresource_reference.py b/kubernetes/client/models/v1beta1_subresource_reference.py new file mode 100644 index 0000000000..0c2fc7f2ef --- /dev/null +++ b/kubernetes/client/models/v1beta1_subresource_reference.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1SubresourceReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, name=None, subresource=None): + """ + V1beta1SubresourceReference - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'name': 'str', + 'subresource': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'name': 'name', + 'subresource': 'subresource' + } + + self._api_version = api_version + self._kind = kind + self._name = name + self._subresource = subresource + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1SubresourceReference. + API version of the referent + + :return: The api_version of this V1beta1SubresourceReference. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1SubresourceReference. + API version of the referent + + :param api_version: The api_version of this V1beta1SubresourceReference. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1beta1SubresourceReference. + Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1SubresourceReference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1SubresourceReference. + Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1SubresourceReference. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1beta1SubresourceReference. + Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :return: The name of this V1beta1SubresourceReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1beta1SubresourceReference. + Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :param name: The name of this V1beta1SubresourceReference. + :type: str + """ + + self._name = name + + @property + def subresource(self): + """ + Gets the subresource of this V1beta1SubresourceReference. + Subresource name of the referent + + :return: The subresource of this V1beta1SubresourceReference. + :rtype: str + """ + return self._subresource + + @subresource.setter + def subresource(self, subresource): + """ + Sets the subresource of this V1beta1SubresourceReference. + Subresource name of the referent + + :param subresource: The subresource of this V1beta1SubresourceReference. + :type: str + """ + + self._subresource = subresource + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V1beta1SubresourceReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v1beta1_supplemental_groups_strategy_options.py b/kubernetes/client/models/v1beta1_supplemental_groups_strategy_options.py index 539212c8fb..6d9f2e8690 100644 --- a/kubernetes/client/models/v1beta1_supplemental_groups_strategy_options.py +++ b/kubernetes/client/models/v1beta1_supplemental_groups_strategy_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_third_party_resource.py b/kubernetes/client/models/v1beta1_third_party_resource.py index c5b57a372e..dfb93465c6 100644 --- a/kubernetes/client/models/v1beta1_third_party_resource.py +++ b/kubernetes/client/models/v1beta1_third_party_resource.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_third_party_resource_list.py b/kubernetes/client/models/v1beta1_third_party_resource_list.py index f57679d460..94aa8e6364 100644 --- a/kubernetes/client/models/v1beta1_third_party_resource_list.py +++ b/kubernetes/client/models/v1beta1_third_party_resource_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1ThirdPartyResource]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. :return: The metadata of this V1beta1ThirdPartyResourceList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. :param metadata: The metadata of this V1beta1ThirdPartyResourceList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_token_review.py b/kubernetes/client/models/v1beta1_token_review.py index 7455389364..752091c0b2 100644 --- a/kubernetes/client/models/v1beta1_token_review.py +++ b/kubernetes/client/models/v1beta1_token_review.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_token_review_spec.py b/kubernetes/client/models/v1beta1_token_review_spec.py index bd08233c06..62477f3300 100644 --- a/kubernetes/client/models/v1beta1_token_review_spec.py +++ b/kubernetes/client/models/v1beta1_token_review_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_token_review_status.py b/kubernetes/client/models/v1beta1_token_review_status.py index 3085e5d1a0..d27ee6e415 100644 --- a/kubernetes/client/models/v1beta1_token_review_status.py +++ b/kubernetes/client/models/v1beta1_token_review_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_user_info.py b/kubernetes/client/models/v1beta1_user_info.py index 0db8f4191a..34476f8463 100644 --- a/kubernetes/client/models/v1beta1_user_info.py +++ b/kubernetes/client/models/v1beta1_user_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v2alpha1_cron_job.py b/kubernetes/client/models/v2alpha1_cron_job.py index 198d533b79..36fdae6770 100644 --- a/kubernetes/client/models/v2alpha1_cron_job.py +++ b/kubernetes/client/models/v2alpha1_cron_job.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v2alpha1_cron_job_list.py b/kubernetes/client/models/v2alpha1_cron_job_list.py index 7a55c4b224..535c6837b8 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_list.py +++ b/kubernetes/client/models/v2alpha1_cron_job_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V2alpha1CronJob]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'UnversionedListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V2alpha1CronJobList. - :rtype: V1ListMeta + :rtype: UnversionedListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V2alpha1CronJobList. - :type: V1ListMeta + :type: UnversionedListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v2alpha1_cron_job_spec.py b/kubernetes/client/models/v2alpha1_cron_job_spec.py index 70812afc97..d7b8f34e3b 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_spec.py +++ b/kubernetes/client/models/v2alpha1_cron_job_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V2alpha1CronJobSpec(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_template=None, schedule=None, starting_deadline_seconds=None, successful_jobs_history_limit=None, suspend=None): + def __init__(self, concurrency_policy=None, job_template=None, schedule=None, starting_deadline_seconds=None, suspend=None): """ V2alpha1CronJobSpec - a model defined in Swagger @@ -32,37 +32,31 @@ def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_ """ self.swagger_types = { 'concurrency_policy': 'str', - 'failed_jobs_history_limit': 'int', 'job_template': 'V2alpha1JobTemplateSpec', 'schedule': 'str', 'starting_deadline_seconds': 'int', - 'successful_jobs_history_limit': 'int', 'suspend': 'bool' } self.attribute_map = { 'concurrency_policy': 'concurrencyPolicy', - 'failed_jobs_history_limit': 'failedJobsHistoryLimit', 'job_template': 'jobTemplate', 'schedule': 'schedule', 'starting_deadline_seconds': 'startingDeadlineSeconds', - 'successful_jobs_history_limit': 'successfulJobsHistoryLimit', 'suspend': 'suspend' } self._concurrency_policy = concurrency_policy - self._failed_jobs_history_limit = failed_jobs_history_limit self._job_template = job_template self._schedule = schedule self._starting_deadline_seconds = starting_deadline_seconds - self._successful_jobs_history_limit = successful_jobs_history_limit self._suspend = suspend @property def concurrency_policy(self): """ Gets the concurrency_policy of this V2alpha1CronJobSpec. - ConcurrencyPolicy specifies how to treat concurrent executions of a Job. Defaults to Allow. + ConcurrencyPolicy specifies how to treat concurrent executions of a Job. :return: The concurrency_policy of this V2alpha1CronJobSpec. :rtype: str @@ -73,7 +67,7 @@ def concurrency_policy(self): def concurrency_policy(self, concurrency_policy): """ Sets the concurrency_policy of this V2alpha1CronJobSpec. - ConcurrencyPolicy specifies how to treat concurrent executions of a Job. Defaults to Allow. + ConcurrencyPolicy specifies how to treat concurrent executions of a Job. :param concurrency_policy: The concurrency_policy of this V2alpha1CronJobSpec. :type: str @@ -81,29 +75,6 @@ def concurrency_policy(self, concurrency_policy): self._concurrency_policy = concurrency_policy - @property - def failed_jobs_history_limit(self): - """ - Gets the failed_jobs_history_limit of this V2alpha1CronJobSpec. - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - - :return: The failed_jobs_history_limit of this V2alpha1CronJobSpec. - :rtype: int - """ - return self._failed_jobs_history_limit - - @failed_jobs_history_limit.setter - def failed_jobs_history_limit(self, failed_jobs_history_limit): - """ - Sets the failed_jobs_history_limit of this V2alpha1CronJobSpec. - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - - :param failed_jobs_history_limit: The failed_jobs_history_limit of this V2alpha1CronJobSpec. - :type: int - """ - - self._failed_jobs_history_limit = failed_jobs_history_limit - @property def job_template(self): """ @@ -177,29 +148,6 @@ def starting_deadline_seconds(self, starting_deadline_seconds): self._starting_deadline_seconds = starting_deadline_seconds - @property - def successful_jobs_history_limit(self): - """ - Gets the successful_jobs_history_limit of this V2alpha1CronJobSpec. - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - - :return: The successful_jobs_history_limit of this V2alpha1CronJobSpec. - :rtype: int - """ - return self._successful_jobs_history_limit - - @successful_jobs_history_limit.setter - def successful_jobs_history_limit(self, successful_jobs_history_limit): - """ - Sets the successful_jobs_history_limit of this V2alpha1CronJobSpec. - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - - :param successful_jobs_history_limit: The successful_jobs_history_limit of this V2alpha1CronJobSpec. - :type: int - """ - - self._successful_jobs_history_limit = successful_jobs_history_limit - @property def suspend(self): """ diff --git a/kubernetes/client/models/v2alpha1_cron_job_status.py b/kubernetes/client/models/v2alpha1_cron_job_status.py index 4aad7d18b0..c0fcc01999 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_status.py +++ b/kubernetes/client/models/v2alpha1_cron_job_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v2alpha1_cross_version_object_reference.py b/kubernetes/client/models/v2alpha1_cross_version_object_reference.py deleted file mode 100644 index c30679467c..0000000000 --- a/kubernetes/client/models/v2alpha1_cross_version_object_reference.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1CrossVersionObjectReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, name=None): - """ - V2alpha1CrossVersionObjectReference - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'name': 'str' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'name': 'name' - } - - self._api_version = api_version - self._kind = kind - self._name = name - - @property - def api_version(self): - """ - Gets the api_version of this V2alpha1CrossVersionObjectReference. - API version of the referent - - :return: The api_version of this V2alpha1CrossVersionObjectReference. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V2alpha1CrossVersionObjectReference. - API version of the referent - - :param api_version: The api_version of this V2alpha1CrossVersionObjectReference. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V2alpha1CrossVersionObjectReference. - Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" - - :return: The kind of this V2alpha1CrossVersionObjectReference. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V2alpha1CrossVersionObjectReference. - Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" - - :param kind: The kind of this V2alpha1CrossVersionObjectReference. - :type: str - """ - if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") - - self._kind = kind - - @property - def name(self): - """ - Gets the name of this V2alpha1CrossVersionObjectReference. - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - :return: The name of this V2alpha1CrossVersionObjectReference. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V2alpha1CrossVersionObjectReference. - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - :param name: The name of this V2alpha1CrossVersionObjectReference. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1CrossVersionObjectReference): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler.py b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler.py deleted file mode 100644 index 9b8713de14..0000000000 --- a/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1HorizontalPodAutoscaler(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V2alpha1HorizontalPodAutoscaler - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'V2alpha1HorizontalPodAutoscalerSpec', - 'status': 'V2alpha1HorizontalPodAutoscalerStatus' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - self._api_version = api_version - self._kind = kind - self._metadata = metadata - self._spec = spec - self._status = status - - @property - def api_version(self): - """ - Gets the api_version of this V2alpha1HorizontalPodAutoscaler. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V2alpha1HorizontalPodAutoscaler. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V2alpha1HorizontalPodAutoscaler. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V2alpha1HorizontalPodAutoscaler. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V2alpha1HorizontalPodAutoscaler. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V2alpha1HorizontalPodAutoscaler. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V2alpha1HorizontalPodAutoscaler. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V2alpha1HorizontalPodAutoscaler. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V2alpha1HorizontalPodAutoscaler. - metadata is the standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - - :return: The metadata of this V2alpha1HorizontalPodAutoscaler. - :rtype: V1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V2alpha1HorizontalPodAutoscaler. - metadata is the standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - - :param metadata: The metadata of this V2alpha1HorizontalPodAutoscaler. - :type: V1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this V2alpha1HorizontalPodAutoscaler. - spec is the specification for the behaviour of the autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. - - :return: The spec of this V2alpha1HorizontalPodAutoscaler. - :rtype: V2alpha1HorizontalPodAutoscalerSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this V2alpha1HorizontalPodAutoscaler. - spec is the specification for the behaviour of the autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. - - :param spec: The spec of this V2alpha1HorizontalPodAutoscaler. - :type: V2alpha1HorizontalPodAutoscalerSpec - """ - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this V2alpha1HorizontalPodAutoscaler. - status is the current information about the autoscaler. - - :return: The status of this V2alpha1HorizontalPodAutoscaler. - :rtype: V2alpha1HorizontalPodAutoscalerStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this V2alpha1HorizontalPodAutoscaler. - status is the current information about the autoscaler. - - :param status: The status of this V2alpha1HorizontalPodAutoscaler. - :type: V2alpha1HorizontalPodAutoscalerStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1HorizontalPodAutoscaler): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_list.py deleted file mode 100644 index 7cf87c5b5c..0000000000 --- a/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_list.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1HorizontalPodAutoscalerList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V2alpha1HorizontalPodAutoscalerList - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'api_version': 'str', - 'items': 'list[V2alpha1HorizontalPodAutoscaler]', - 'kind': 'str', - 'metadata': 'V1ListMeta' - } - - self.attribute_map = { - 'api_version': 'apiVersion', - 'items': 'items', - 'kind': 'kind', - 'metadata': 'metadata' - } - - self._api_version = api_version - self._items = items - self._kind = kind - self._metadata = metadata - - @property - def api_version(self): - """ - Gets the api_version of this V2alpha1HorizontalPodAutoscalerList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :return: The api_version of this V2alpha1HorizontalPodAutoscalerList. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V2alpha1HorizontalPodAutoscalerList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - - :param api_version: The api_version of this V2alpha1HorizontalPodAutoscalerList. - :type: str - """ - - self._api_version = api_version - - @property - def items(self): - """ - Gets the items of this V2alpha1HorizontalPodAutoscalerList. - items is the list of horizontal pod autoscaler objects. - - :return: The items of this V2alpha1HorizontalPodAutoscalerList. - :rtype: list[V2alpha1HorizontalPodAutoscaler] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this V2alpha1HorizontalPodAutoscalerList. - items is the list of horizontal pod autoscaler objects. - - :param items: The items of this V2alpha1HorizontalPodAutoscalerList. - :type: list[V2alpha1HorizontalPodAutoscaler] - """ - if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") - - self._items = items - - @property - def kind(self): - """ - Gets the kind of this V2alpha1HorizontalPodAutoscalerList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :return: The kind of this V2alpha1HorizontalPodAutoscalerList. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V2alpha1HorizontalPodAutoscalerList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - - :param kind: The kind of this V2alpha1HorizontalPodAutoscalerList. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V2alpha1HorizontalPodAutoscalerList. - metadata is the standard list metadata. - - :return: The metadata of this V2alpha1HorizontalPodAutoscalerList. - :rtype: V1ListMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V2alpha1HorizontalPodAutoscalerList. - metadata is the standard list metadata. - - :param metadata: The metadata of this V2alpha1HorizontalPodAutoscalerList. - :type: V1ListMeta - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1HorizontalPodAutoscalerList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_spec.py deleted file mode 100644 index 216959846b..0000000000 --- a/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_spec.py +++ /dev/null @@ -1,199 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1HorizontalPodAutoscalerSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, max_replicas=None, metrics=None, min_replicas=None, scale_target_ref=None): - """ - V2alpha1HorizontalPodAutoscalerSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'max_replicas': 'int', - 'metrics': 'list[V2alpha1MetricSpec]', - 'min_replicas': 'int', - 'scale_target_ref': 'V2alpha1CrossVersionObjectReference' - } - - self.attribute_map = { - 'max_replicas': 'maxReplicas', - 'metrics': 'metrics', - 'min_replicas': 'minReplicas', - 'scale_target_ref': 'scaleTargetRef' - } - - self._max_replicas = max_replicas - self._metrics = metrics - self._min_replicas = min_replicas - self._scale_target_ref = scale_target_ref - - @property - def max_replicas(self): - """ - Gets the max_replicas of this V2alpha1HorizontalPodAutoscalerSpec. - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - - :return: The max_replicas of this V2alpha1HorizontalPodAutoscalerSpec. - :rtype: int - """ - return self._max_replicas - - @max_replicas.setter - def max_replicas(self, max_replicas): - """ - Sets the max_replicas of this V2alpha1HorizontalPodAutoscalerSpec. - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - - :param max_replicas: The max_replicas of this V2alpha1HorizontalPodAutoscalerSpec. - :type: int - """ - if max_replicas is None: - raise ValueError("Invalid value for `max_replicas`, must not be `None`") - - self._max_replicas = max_replicas - - @property - def metrics(self): - """ - Gets the metrics of this V2alpha1HorizontalPodAutoscalerSpec. - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. - - :return: The metrics of this V2alpha1HorizontalPodAutoscalerSpec. - :rtype: list[V2alpha1MetricSpec] - """ - return self._metrics - - @metrics.setter - def metrics(self, metrics): - """ - Sets the metrics of this V2alpha1HorizontalPodAutoscalerSpec. - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. - - :param metrics: The metrics of this V2alpha1HorizontalPodAutoscalerSpec. - :type: list[V2alpha1MetricSpec] - """ - - self._metrics = metrics - - @property - def min_replicas(self): - """ - Gets the min_replicas of this V2alpha1HorizontalPodAutoscalerSpec. - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. - - :return: The min_replicas of this V2alpha1HorizontalPodAutoscalerSpec. - :rtype: int - """ - return self._min_replicas - - @min_replicas.setter - def min_replicas(self, min_replicas): - """ - Sets the min_replicas of this V2alpha1HorizontalPodAutoscalerSpec. - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. - - :param min_replicas: The min_replicas of this V2alpha1HorizontalPodAutoscalerSpec. - :type: int - """ - - self._min_replicas = min_replicas - - @property - def scale_target_ref(self): - """ - Gets the scale_target_ref of this V2alpha1HorizontalPodAutoscalerSpec. - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. - - :return: The scale_target_ref of this V2alpha1HorizontalPodAutoscalerSpec. - :rtype: V2alpha1CrossVersionObjectReference - """ - return self._scale_target_ref - - @scale_target_ref.setter - def scale_target_ref(self, scale_target_ref): - """ - Sets the scale_target_ref of this V2alpha1HorizontalPodAutoscalerSpec. - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. - - :param scale_target_ref: The scale_target_ref of this V2alpha1HorizontalPodAutoscalerSpec. - :type: V2alpha1CrossVersionObjectReference - """ - if scale_target_ref is None: - raise ValueError("Invalid value for `scale_target_ref`, must not be `None`") - - self._scale_target_ref = scale_target_ref - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1HorizontalPodAutoscalerSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_status.py deleted file mode 100644 index dbda6c6013..0000000000 --- a/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_status.py +++ /dev/null @@ -1,227 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1HorizontalPodAutoscalerStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, current_metrics=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): - """ - V2alpha1HorizontalPodAutoscalerStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'current_metrics': 'list[V2alpha1MetricStatus]', - 'current_replicas': 'int', - 'desired_replicas': 'int', - 'last_scale_time': 'datetime', - 'observed_generation': 'int' - } - - self.attribute_map = { - 'current_metrics': 'currentMetrics', - 'current_replicas': 'currentReplicas', - 'desired_replicas': 'desiredReplicas', - 'last_scale_time': 'lastScaleTime', - 'observed_generation': 'observedGeneration' - } - - self._current_metrics = current_metrics - self._current_replicas = current_replicas - self._desired_replicas = desired_replicas - self._last_scale_time = last_scale_time - self._observed_generation = observed_generation - - @property - def current_metrics(self): - """ - Gets the current_metrics of this V2alpha1HorizontalPodAutoscalerStatus. - currentMetrics is the last read state of the metrics used by this autoscaler. - - :return: The current_metrics of this V2alpha1HorizontalPodAutoscalerStatus. - :rtype: list[V2alpha1MetricStatus] - """ - return self._current_metrics - - @current_metrics.setter - def current_metrics(self, current_metrics): - """ - Sets the current_metrics of this V2alpha1HorizontalPodAutoscalerStatus. - currentMetrics is the last read state of the metrics used by this autoscaler. - - :param current_metrics: The current_metrics of this V2alpha1HorizontalPodAutoscalerStatus. - :type: list[V2alpha1MetricStatus] - """ - if current_metrics is None: - raise ValueError("Invalid value for `current_metrics`, must not be `None`") - - self._current_metrics = current_metrics - - @property - def current_replicas(self): - """ - Gets the current_replicas of this V2alpha1HorizontalPodAutoscalerStatus. - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - - :return: The current_replicas of this V2alpha1HorizontalPodAutoscalerStatus. - :rtype: int - """ - return self._current_replicas - - @current_replicas.setter - def current_replicas(self, current_replicas): - """ - Sets the current_replicas of this V2alpha1HorizontalPodAutoscalerStatus. - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - - :param current_replicas: The current_replicas of this V2alpha1HorizontalPodAutoscalerStatus. - :type: int - """ - if current_replicas is None: - raise ValueError("Invalid value for `current_replicas`, must not be `None`") - - self._current_replicas = current_replicas - - @property - def desired_replicas(self): - """ - Gets the desired_replicas of this V2alpha1HorizontalPodAutoscalerStatus. - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - - :return: The desired_replicas of this V2alpha1HorizontalPodAutoscalerStatus. - :rtype: int - """ - return self._desired_replicas - - @desired_replicas.setter - def desired_replicas(self, desired_replicas): - """ - Sets the desired_replicas of this V2alpha1HorizontalPodAutoscalerStatus. - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - - :param desired_replicas: The desired_replicas of this V2alpha1HorizontalPodAutoscalerStatus. - :type: int - """ - if desired_replicas is None: - raise ValueError("Invalid value for `desired_replicas`, must not be `None`") - - self._desired_replicas = desired_replicas - - @property - def last_scale_time(self): - """ - Gets the last_scale_time of this V2alpha1HorizontalPodAutoscalerStatus. - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. - - :return: The last_scale_time of this V2alpha1HorizontalPodAutoscalerStatus. - :rtype: datetime - """ - return self._last_scale_time - - @last_scale_time.setter - def last_scale_time(self, last_scale_time): - """ - Sets the last_scale_time of this V2alpha1HorizontalPodAutoscalerStatus. - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. - - :param last_scale_time: The last_scale_time of this V2alpha1HorizontalPodAutoscalerStatus. - :type: datetime - """ - - self._last_scale_time = last_scale_time - - @property - def observed_generation(self): - """ - Gets the observed_generation of this V2alpha1HorizontalPodAutoscalerStatus. - observedGeneration is the most recent generation observed by this autoscaler. - - :return: The observed_generation of this V2alpha1HorizontalPodAutoscalerStatus. - :rtype: int - """ - return self._observed_generation - - @observed_generation.setter - def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V2alpha1HorizontalPodAutoscalerStatus. - observedGeneration is the most recent generation observed by this autoscaler. - - :param observed_generation: The observed_generation of this V2alpha1HorizontalPodAutoscalerStatus. - :type: int - """ - - self._observed_generation = observed_generation - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1HorizontalPodAutoscalerStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v2alpha1_job.py b/kubernetes/client/models/v2alpha1_job.py new file mode 100644 index 0000000000..040b89c6b0 --- /dev/null +++ b/kubernetes/client/models/v2alpha1_job.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1Job(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V2alpha1Job - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V2alpha1JobSpec', + 'status': 'V2alpha1JobStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V2alpha1Job. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V2alpha1Job. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V2alpha1Job. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V2alpha1Job. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V2alpha1Job. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V2alpha1Job. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V2alpha1Job. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V2alpha1Job. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V2alpha1Job. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V2alpha1Job. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V2alpha1Job. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V2alpha1Job. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V2alpha1Job. + Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The spec of this V2alpha1Job. + :rtype: V2alpha1JobSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V2alpha1Job. + Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param spec: The spec of this V2alpha1Job. + :type: V2alpha1JobSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V2alpha1Job. + Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :return: The status of this V2alpha1Job. + :rtype: V2alpha1JobStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V2alpha1Job. + Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + + :param status: The status of this V2alpha1Job. + :type: V2alpha1JobStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V2alpha1Job): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v2alpha1_job_condition.py b/kubernetes/client/models/v2alpha1_job_condition.py new file mode 100644 index 0000000000..6fa3c01084 --- /dev/null +++ b/kubernetes/client/models/v2alpha1_job_condition.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1JobCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): + """ + V2alpha1JobCondition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_probe_time': 'datetime', + 'last_transition_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'last_probe_time': 'lastProbeTime', + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + self._last_probe_time = last_probe_time + self._last_transition_time = last_transition_time + self._message = message + self._reason = reason + self._status = status + self._type = type + + @property + def last_probe_time(self): + """ + Gets the last_probe_time of this V2alpha1JobCondition. + Last time the condition was checked. + + :return: The last_probe_time of this V2alpha1JobCondition. + :rtype: datetime + """ + return self._last_probe_time + + @last_probe_time.setter + def last_probe_time(self, last_probe_time): + """ + Sets the last_probe_time of this V2alpha1JobCondition. + Last time the condition was checked. + + :param last_probe_time: The last_probe_time of this V2alpha1JobCondition. + :type: datetime + """ + + self._last_probe_time = last_probe_time + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V2alpha1JobCondition. + Last time the condition transit from one status to another. + + :return: The last_transition_time of this V2alpha1JobCondition. + :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 V2alpha1JobCondition. + Last time the condition transit from one status to another. + + :param last_transition_time: The last_transition_time of this V2alpha1JobCondition. + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """ + Gets the message of this V2alpha1JobCondition. + Human readable message indicating details about last transition. + + :return: The message of this V2alpha1JobCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V2alpha1JobCondition. + Human readable message indicating details about last transition. + + :param message: The message of this V2alpha1JobCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V2alpha1JobCondition. + (brief) reason for the condition's last transition. + + :return: The reason of this V2alpha1JobCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V2alpha1JobCondition. + (brief) reason for the condition's last transition. + + :param reason: The reason of this V2alpha1JobCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V2alpha1JobCondition. + Status of the condition, one of True, False, Unknown. + + :return: The status of this V2alpha1JobCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V2alpha1JobCondition. + Status of the condition, one of True, False, Unknown. + + :param status: The status of this V2alpha1JobCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V2alpha1JobCondition. + Type of job condition, Complete or Failed. + + :return: The type of this V2alpha1JobCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V2alpha1JobCondition. + Type of job condition, Complete or Failed. + + :param type: The type of this V2alpha1JobCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V2alpha1JobCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v2alpha1_job_list.py b/kubernetes/client/models/v2alpha1_job_list.py new file mode 100644 index 0000000000..0c8f65f1e0 --- /dev/null +++ b/kubernetes/client/models/v2alpha1_job_list.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1JobList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V2alpha1JobList - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'items': 'list[V2alpha1Job]', + 'kind': 'str', + 'metadata': 'UnversionedListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V2alpha1JobList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V2alpha1JobList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V2alpha1JobList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V2alpha1JobList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V2alpha1JobList. + Items is the list of Job. + + :return: The items of this V2alpha1JobList. + :rtype: list[V2alpha1Job] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V2alpha1JobList. + Items is the list of Job. + + :param items: The items of this V2alpha1JobList. + :type: list[V2alpha1Job] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V2alpha1JobList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V2alpha1JobList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V2alpha1JobList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V2alpha1JobList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V2alpha1JobList. + Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V2alpha1JobList. + :rtype: UnversionedListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V2alpha1JobList. + Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V2alpha1JobList. + :type: UnversionedListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V2alpha1JobList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v2alpha1_job_spec.py b/kubernetes/client/models/v2alpha1_job_spec.py new file mode 100644 index 0000000000..7ed96df60f --- /dev/null +++ b/kubernetes/client/models/v2alpha1_job_spec.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1JobSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, active_deadline_seconds=None, completions=None, manual_selector=None, parallelism=None, selector=None, template=None): + """ + V2alpha1JobSpec - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'active_deadline_seconds': 'int', + 'completions': 'int', + 'manual_selector': 'bool', + 'parallelism': 'int', + 'selector': 'UnversionedLabelSelector', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'active_deadline_seconds': 'activeDeadlineSeconds', + 'completions': 'completions', + 'manual_selector': 'manualSelector', + 'parallelism': 'parallelism', + 'selector': 'selector', + 'template': 'template' + } + + self._active_deadline_seconds = active_deadline_seconds + self._completions = completions + self._manual_selector = manual_selector + self._parallelism = parallelism + self._selector = selector + self._template = template + + @property + def active_deadline_seconds(self): + """ + Gets the active_deadline_seconds of this V2alpha1JobSpec. + Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + + :return: The active_deadline_seconds of this V2alpha1JobSpec. + :rtype: int + """ + return self._active_deadline_seconds + + @active_deadline_seconds.setter + def active_deadline_seconds(self, active_deadline_seconds): + """ + Sets the active_deadline_seconds of this V2alpha1JobSpec. + Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + + :param active_deadline_seconds: The active_deadline_seconds of this V2alpha1JobSpec. + :type: int + """ + + self._active_deadline_seconds = active_deadline_seconds + + @property + def completions(self): + """ + Gets the completions of this V2alpha1JobSpec. + Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The completions of this V2alpha1JobSpec. + :rtype: int + """ + return self._completions + + @completions.setter + def completions(self, completions): + """ + Sets the completions of this V2alpha1JobSpec. + Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs + + :param completions: The completions of this V2alpha1JobSpec. + :type: int + """ + + self._completions = completions + + @property + def manual_selector(self): + """ + Gets the manual_selector of this V2alpha1JobSpec. + ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md + + :return: The manual_selector of this V2alpha1JobSpec. + :rtype: bool + """ + return self._manual_selector + + @manual_selector.setter + def manual_selector(self, manual_selector): + """ + Sets the manual_selector of this V2alpha1JobSpec. + ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md + + :param manual_selector: The manual_selector of this V2alpha1JobSpec. + :type: bool + """ + + self._manual_selector = manual_selector + + @property + def parallelism(self): + """ + Gets the parallelism of this V2alpha1JobSpec. + Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The parallelism of this V2alpha1JobSpec. + :rtype: int + """ + return self._parallelism + + @parallelism.setter + def parallelism(self, parallelism): + """ + Sets the parallelism of this V2alpha1JobSpec. + Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs + + :param parallelism: The parallelism of this V2alpha1JobSpec. + :type: int + """ + + self._parallelism = parallelism + + @property + def selector(self): + """ + Gets the selector of this V2alpha1JobSpec. + Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :return: The selector of this V2alpha1JobSpec. + :rtype: UnversionedLabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V2alpha1JobSpec. + Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + + :param selector: The selector of this V2alpha1JobSpec. + :type: UnversionedLabelSelector + """ + + self._selector = selector + + @property + def template(self): + """ + Gets the template of this V2alpha1JobSpec. + Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The template of this V2alpha1JobSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V2alpha1JobSpec. + Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs + + :param template: The template of this V2alpha1JobSpec. + :type: V1PodTemplateSpec + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V2alpha1JobSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v2alpha1_job_status.py b/kubernetes/client/models/v2alpha1_job_status.py new file mode 100644 index 0000000000..b40f8fb93a --- /dev/null +++ b/kubernetes/client/models/v2alpha1_job_status.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1JobStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, active=None, completion_time=None, conditions=None, failed=None, start_time=None, succeeded=None): + """ + V2alpha1JobStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'active': 'int', + 'completion_time': 'datetime', + 'conditions': 'list[V2alpha1JobCondition]', + 'failed': 'int', + 'start_time': 'datetime', + 'succeeded': 'int' + } + + self.attribute_map = { + 'active': 'active', + 'completion_time': 'completionTime', + 'conditions': 'conditions', + 'failed': 'failed', + 'start_time': 'startTime', + 'succeeded': 'succeeded' + } + + self._active = active + self._completion_time = completion_time + self._conditions = conditions + self._failed = failed + self._start_time = start_time + self._succeeded = succeeded + + @property + def active(self): + """ + Gets the active of this V2alpha1JobStatus. + Active is the number of actively running pods. + + :return: The active of this V2alpha1JobStatus. + :rtype: int + """ + return self._active + + @active.setter + def active(self, active): + """ + Sets the active of this V2alpha1JobStatus. + Active is the number of actively running pods. + + :param active: The active of this V2alpha1JobStatus. + :type: int + """ + + self._active = active + + @property + def completion_time(self): + """ + Gets the completion_time of this V2alpha1JobStatus. + CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :return: The completion_time of this V2alpha1JobStatus. + :rtype: datetime + """ + return self._completion_time + + @completion_time.setter + def completion_time(self, completion_time): + """ + Sets the completion_time of this V2alpha1JobStatus. + CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :param completion_time: The completion_time of this V2alpha1JobStatus. + :type: datetime + """ + + self._completion_time = completion_time + + @property + def conditions(self): + """ + Gets the conditions of this V2alpha1JobStatus. + Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs + + :return: The conditions of this V2alpha1JobStatus. + :rtype: list[V2alpha1JobCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V2alpha1JobStatus. + Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs + + :param conditions: The conditions of this V2alpha1JobStatus. + :type: list[V2alpha1JobCondition] + """ + + self._conditions = conditions + + @property + def failed(self): + """ + Gets the failed of this V2alpha1JobStatus. + Failed is the number of pods which reached Phase Failed. + + :return: The failed of this V2alpha1JobStatus. + :rtype: int + """ + return self._failed + + @failed.setter + def failed(self, failed): + """ + Sets the failed of this V2alpha1JobStatus. + Failed is the number of pods which reached Phase Failed. + + :param failed: The failed of this V2alpha1JobStatus. + :type: int + """ + + self._failed = failed + + @property + def start_time(self): + """ + Gets the start_time of this V2alpha1JobStatus. + StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :return: The start_time of this V2alpha1JobStatus. + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this V2alpha1JobStatus. + StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + + :param start_time: The start_time of this V2alpha1JobStatus. + :type: datetime + """ + + self._start_time = start_time + + @property + def succeeded(self): + """ + Gets the succeeded of this V2alpha1JobStatus. + Succeeded is the number of pods which reached Phase Succeeded. + + :return: The succeeded of this V2alpha1JobStatus. + :rtype: int + """ + return self._succeeded + + @succeeded.setter + def succeeded(self, succeeded): + """ + Sets the succeeded of this V2alpha1JobStatus. + Succeeded is the number of pods which reached Phase Succeeded. + + :param succeeded: The succeeded of this V2alpha1JobStatus. + :type: int + """ + + self._succeeded = succeeded + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, V2alpha1JobStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/client/models/v2alpha1_job_template_spec.py b/kubernetes/client/models/v2alpha1_job_template_spec.py index 151c603dc9..dbef0c0575 100644 --- a/kubernetes/client/models/v2alpha1_job_template_spec.py +++ b/kubernetes/client/models/v2alpha1_job_template_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,7 +32,7 @@ def __init__(self, metadata=None, spec=None): """ self.swagger_types = { 'metadata': 'V1ObjectMeta', - 'spec': 'V1JobSpec' + 'spec': 'V2alpha1JobSpec' } self.attribute_map = { @@ -73,7 +73,7 @@ def spec(self): Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V2alpha1JobTemplateSpec. - :rtype: V1JobSpec + :rtype: V2alpha1JobSpec """ return self._spec @@ -84,7 +84,7 @@ def spec(self, spec): Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V2alpha1JobTemplateSpec. - :type: V1JobSpec + :type: V2alpha1JobSpec """ self._spec = spec diff --git a/kubernetes/client/models/v2alpha1_metric_spec.py b/kubernetes/client/models/v2alpha1_metric_spec.py deleted file mode 100644 index ba90e63d56..0000000000 --- a/kubernetes/client/models/v2alpha1_metric_spec.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1MetricSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, object=None, pods=None, resource=None, type=None): - """ - V2alpha1MetricSpec - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'object': 'V2alpha1ObjectMetricSource', - 'pods': 'V2alpha1PodsMetricSource', - 'resource': 'V2alpha1ResourceMetricSource', - 'type': 'str' - } - - self.attribute_map = { - 'object': 'object', - 'pods': 'pods', - 'resource': 'resource', - 'type': 'type' - } - - self._object = object - self._pods = pods - self._resource = resource - self._type = type - - @property - def object(self): - """ - Gets the object of this V2alpha1MetricSpec. - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - - :return: The object of this V2alpha1MetricSpec. - :rtype: V2alpha1ObjectMetricSource - """ - return self._object - - @object.setter - def object(self, object): - """ - Sets the object of this V2alpha1MetricSpec. - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - - :param object: The object of this V2alpha1MetricSpec. - :type: V2alpha1ObjectMetricSource - """ - - self._object = object - - @property - def pods(self): - """ - Gets the pods of this V2alpha1MetricSpec. - pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - - :return: The pods of this V2alpha1MetricSpec. - :rtype: V2alpha1PodsMetricSource - """ - return self._pods - - @pods.setter - def pods(self, pods): - """ - Sets the pods of this V2alpha1MetricSpec. - pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - - :param pods: The pods of this V2alpha1MetricSpec. - :type: V2alpha1PodsMetricSource - """ - - self._pods = pods - - @property - def resource(self): - """ - Gets the resource of this V2alpha1MetricSpec. - resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - - :return: The resource of this V2alpha1MetricSpec. - :rtype: V2alpha1ResourceMetricSource - """ - return self._resource - - @resource.setter - def resource(self, resource): - """ - Sets the resource of this V2alpha1MetricSpec. - resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - - :param resource: The resource of this V2alpha1MetricSpec. - :type: V2alpha1ResourceMetricSource - """ - - self._resource = resource - - @property - def type(self): - """ - Gets the type of this V2alpha1MetricSpec. - type is the type of metric source. It should match one of the fields below. - - :return: The type of this V2alpha1MetricSpec. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V2alpha1MetricSpec. - type is the type of metric source. It should match one of the fields below. - - :param type: The type of this V2alpha1MetricSpec. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1MetricSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v2alpha1_metric_status.py b/kubernetes/client/models/v2alpha1_metric_status.py deleted file mode 100644 index c96bb88b18..0000000000 --- a/kubernetes/client/models/v2alpha1_metric_status.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1MetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, object=None, pods=None, resource=None, type=None): - """ - V2alpha1MetricStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'object': 'V2alpha1ObjectMetricStatus', - 'pods': 'V2alpha1PodsMetricStatus', - 'resource': 'V2alpha1ResourceMetricStatus', - 'type': 'str' - } - - self.attribute_map = { - 'object': 'object', - 'pods': 'pods', - 'resource': 'resource', - 'type': 'type' - } - - self._object = object - self._pods = pods - self._resource = resource - self._type = type - - @property - def object(self): - """ - Gets the object of this V2alpha1MetricStatus. - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - - :return: The object of this V2alpha1MetricStatus. - :rtype: V2alpha1ObjectMetricStatus - """ - return self._object - - @object.setter - def object(self, object): - """ - Sets the object of this V2alpha1MetricStatus. - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - - :param object: The object of this V2alpha1MetricStatus. - :type: V2alpha1ObjectMetricStatus - """ - - self._object = object - - @property - def pods(self): - """ - Gets the pods of this V2alpha1MetricStatus. - pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - - :return: The pods of this V2alpha1MetricStatus. - :rtype: V2alpha1PodsMetricStatus - """ - return self._pods - - @pods.setter - def pods(self, pods): - """ - Sets the pods of this V2alpha1MetricStatus. - pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - - :param pods: The pods of this V2alpha1MetricStatus. - :type: V2alpha1PodsMetricStatus - """ - - self._pods = pods - - @property - def resource(self): - """ - Gets the resource of this V2alpha1MetricStatus. - resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - - :return: The resource of this V2alpha1MetricStatus. - :rtype: V2alpha1ResourceMetricStatus - """ - return self._resource - - @resource.setter - def resource(self, resource): - """ - Sets the resource of this V2alpha1MetricStatus. - resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - - :param resource: The resource of this V2alpha1MetricStatus. - :type: V2alpha1ResourceMetricStatus - """ - - self._resource = resource - - @property - def type(self): - """ - Gets the type of this V2alpha1MetricStatus. - type is the type of metric source. It will match one of the fields below. - - :return: The type of this V2alpha1MetricStatus. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V2alpha1MetricStatus. - type is the type of metric source. It will match one of the fields below. - - :param type: The type of this V2alpha1MetricStatus. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1MetricStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v2alpha1_object_metric_source.py b/kubernetes/client/models/v2alpha1_object_metric_source.py deleted file mode 100644 index 61588ddfeb..0000000000 --- a/kubernetes/client/models/v2alpha1_object_metric_source.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1ObjectMetricSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, metric_name=None, target=None, target_value=None): - """ - V2alpha1ObjectMetricSource - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'metric_name': 'str', - 'target': 'V2alpha1CrossVersionObjectReference', - 'target_value': 'str' - } - - self.attribute_map = { - 'metric_name': 'metricName', - 'target': 'target', - 'target_value': 'targetValue' - } - - self._metric_name = metric_name - self._target = target - self._target_value = target_value - - @property - def metric_name(self): - """ - Gets the metric_name of this V2alpha1ObjectMetricSource. - metricName is the name of the metric in question. - - :return: The metric_name of this V2alpha1ObjectMetricSource. - :rtype: str - """ - return self._metric_name - - @metric_name.setter - def metric_name(self, metric_name): - """ - Sets the metric_name of this V2alpha1ObjectMetricSource. - metricName is the name of the metric in question. - - :param metric_name: The metric_name of this V2alpha1ObjectMetricSource. - :type: str - """ - if metric_name is None: - raise ValueError("Invalid value for `metric_name`, must not be `None`") - - self._metric_name = metric_name - - @property - def target(self): - """ - Gets the target of this V2alpha1ObjectMetricSource. - target is the described Kubernetes object. - - :return: The target of this V2alpha1ObjectMetricSource. - :rtype: V2alpha1CrossVersionObjectReference - """ - return self._target - - @target.setter - def target(self, target): - """ - Sets the target of this V2alpha1ObjectMetricSource. - target is the described Kubernetes object. - - :param target: The target of this V2alpha1ObjectMetricSource. - :type: V2alpha1CrossVersionObjectReference - """ - if target is None: - raise ValueError("Invalid value for `target`, must not be `None`") - - self._target = target - - @property - def target_value(self): - """ - Gets the target_value of this V2alpha1ObjectMetricSource. - targetValue is the target value of the metric (as a quantity). - - :return: The target_value of this V2alpha1ObjectMetricSource. - :rtype: str - """ - return self._target_value - - @target_value.setter - def target_value(self, target_value): - """ - Sets the target_value of this V2alpha1ObjectMetricSource. - targetValue is the target value of the metric (as a quantity). - - :param target_value: The target_value of this V2alpha1ObjectMetricSource. - :type: str - """ - if target_value is None: - raise ValueError("Invalid value for `target_value`, must not be `None`") - - self._target_value = target_value - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1ObjectMetricSource): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v2alpha1_object_metric_status.py b/kubernetes/client/models/v2alpha1_object_metric_status.py deleted file mode 100644 index 6a49a3cf30..0000000000 --- a/kubernetes/client/models/v2alpha1_object_metric_status.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1ObjectMetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, current_value=None, metric_name=None, target=None): - """ - V2alpha1ObjectMetricStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'current_value': 'str', - 'metric_name': 'str', - 'target': 'V2alpha1CrossVersionObjectReference' - } - - self.attribute_map = { - 'current_value': 'currentValue', - 'metric_name': 'metricName', - 'target': 'target' - } - - self._current_value = current_value - self._metric_name = metric_name - self._target = target - - @property - def current_value(self): - """ - Gets the current_value of this V2alpha1ObjectMetricStatus. - currentValue is the current value of the metric (as a quantity). - - :return: The current_value of this V2alpha1ObjectMetricStatus. - :rtype: str - """ - return self._current_value - - @current_value.setter - def current_value(self, current_value): - """ - Sets the current_value of this V2alpha1ObjectMetricStatus. - currentValue is the current value of the metric (as a quantity). - - :param current_value: The current_value of this V2alpha1ObjectMetricStatus. - :type: str - """ - if current_value is None: - raise ValueError("Invalid value for `current_value`, must not be `None`") - - self._current_value = current_value - - @property - def metric_name(self): - """ - Gets the metric_name of this V2alpha1ObjectMetricStatus. - metricName is the name of the metric in question. - - :return: The metric_name of this V2alpha1ObjectMetricStatus. - :rtype: str - """ - return self._metric_name - - @metric_name.setter - def metric_name(self, metric_name): - """ - Sets the metric_name of this V2alpha1ObjectMetricStatus. - metricName is the name of the metric in question. - - :param metric_name: The metric_name of this V2alpha1ObjectMetricStatus. - :type: str - """ - if metric_name is None: - raise ValueError("Invalid value for `metric_name`, must not be `None`") - - self._metric_name = metric_name - - @property - def target(self): - """ - Gets the target of this V2alpha1ObjectMetricStatus. - target is the described Kubernetes object. - - :return: The target of this V2alpha1ObjectMetricStatus. - :rtype: V2alpha1CrossVersionObjectReference - """ - return self._target - - @target.setter - def target(self, target): - """ - Sets the target of this V2alpha1ObjectMetricStatus. - target is the described Kubernetes object. - - :param target: The target of this V2alpha1ObjectMetricStatus. - :type: V2alpha1CrossVersionObjectReference - """ - if target is None: - raise ValueError("Invalid value for `target`, must not be `None`") - - self._target = target - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1ObjectMetricStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v2alpha1_pods_metric_source.py b/kubernetes/client/models/v2alpha1_pods_metric_source.py deleted file mode 100644 index 7dc60e01f0..0000000000 --- a/kubernetes/client/models/v2alpha1_pods_metric_source.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1PodsMetricSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, metric_name=None, target_average_value=None): - """ - V2alpha1PodsMetricSource - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'metric_name': 'str', - 'target_average_value': 'str' - } - - self.attribute_map = { - 'metric_name': 'metricName', - 'target_average_value': 'targetAverageValue' - } - - self._metric_name = metric_name - self._target_average_value = target_average_value - - @property - def metric_name(self): - """ - Gets the metric_name of this V2alpha1PodsMetricSource. - metricName is the name of the metric in question - - :return: The metric_name of this V2alpha1PodsMetricSource. - :rtype: str - """ - return self._metric_name - - @metric_name.setter - def metric_name(self, metric_name): - """ - Sets the metric_name of this V2alpha1PodsMetricSource. - metricName is the name of the metric in question - - :param metric_name: The metric_name of this V2alpha1PodsMetricSource. - :type: str - """ - if metric_name is None: - raise ValueError("Invalid value for `metric_name`, must not be `None`") - - self._metric_name = metric_name - - @property - def target_average_value(self): - """ - Gets the target_average_value of this V2alpha1PodsMetricSource. - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) - - :return: The target_average_value of this V2alpha1PodsMetricSource. - :rtype: str - """ - return self._target_average_value - - @target_average_value.setter - def target_average_value(self, target_average_value): - """ - Sets the target_average_value of this V2alpha1PodsMetricSource. - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) - - :param target_average_value: The target_average_value of this V2alpha1PodsMetricSource. - :type: str - """ - if target_average_value is None: - raise ValueError("Invalid value for `target_average_value`, must not be `None`") - - self._target_average_value = target_average_value - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1PodsMetricSource): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v2alpha1_pods_metric_status.py b/kubernetes/client/models/v2alpha1_pods_metric_status.py deleted file mode 100644 index c1f242628e..0000000000 --- a/kubernetes/client/models/v2alpha1_pods_metric_status.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1PodsMetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, current_average_value=None, metric_name=None): - """ - V2alpha1PodsMetricStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'current_average_value': 'str', - 'metric_name': 'str' - } - - self.attribute_map = { - 'current_average_value': 'currentAverageValue', - 'metric_name': 'metricName' - } - - self._current_average_value = current_average_value - self._metric_name = metric_name - - @property - def current_average_value(self): - """ - Gets the current_average_value of this V2alpha1PodsMetricStatus. - currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) - - :return: The current_average_value of this V2alpha1PodsMetricStatus. - :rtype: str - """ - return self._current_average_value - - @current_average_value.setter - def current_average_value(self, current_average_value): - """ - Sets the current_average_value of this V2alpha1PodsMetricStatus. - currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) - - :param current_average_value: The current_average_value of this V2alpha1PodsMetricStatus. - :type: str - """ - if current_average_value is None: - raise ValueError("Invalid value for `current_average_value`, must not be `None`") - - self._current_average_value = current_average_value - - @property - def metric_name(self): - """ - Gets the metric_name of this V2alpha1PodsMetricStatus. - metricName is the name of the metric in question - - :return: The metric_name of this V2alpha1PodsMetricStatus. - :rtype: str - """ - return self._metric_name - - @metric_name.setter - def metric_name(self, metric_name): - """ - Sets the metric_name of this V2alpha1PodsMetricStatus. - metricName is the name of the metric in question - - :param metric_name: The metric_name of this V2alpha1PodsMetricStatus. - :type: str - """ - if metric_name is None: - raise ValueError("Invalid value for `metric_name`, must not be `None`") - - self._metric_name = metric_name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1PodsMetricStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v2alpha1_resource_metric_source.py b/kubernetes/client/models/v2alpha1_resource_metric_source.py deleted file mode 100644 index ee22c7b1c2..0000000000 --- a/kubernetes/client/models/v2alpha1_resource_metric_source.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1ResourceMetricSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, name=None, target_average_utilization=None, target_average_value=None): - """ - V2alpha1ResourceMetricSource - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'name': 'str', - 'target_average_utilization': 'int', - 'target_average_value': 'str' - } - - self.attribute_map = { - 'name': 'name', - 'target_average_utilization': 'targetAverageUtilization', - 'target_average_value': 'targetAverageValue' - } - - self._name = name - self._target_average_utilization = target_average_utilization - self._target_average_value = target_average_value - - @property - def name(self): - """ - Gets the name of this V2alpha1ResourceMetricSource. - name is the name of the resource in question. - - :return: The name of this V2alpha1ResourceMetricSource. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V2alpha1ResourceMetricSource. - name is the name of the resource in question. - - :param name: The name of this V2alpha1ResourceMetricSource. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - @property - def target_average_utilization(self): - """ - Gets the target_average_utilization of this V2alpha1ResourceMetricSource. - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - - :return: The target_average_utilization of this V2alpha1ResourceMetricSource. - :rtype: int - """ - return self._target_average_utilization - - @target_average_utilization.setter - def target_average_utilization(self, target_average_utilization): - """ - Sets the target_average_utilization of this V2alpha1ResourceMetricSource. - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - - :param target_average_utilization: The target_average_utilization of this V2alpha1ResourceMetricSource. - :type: int - """ - - self._target_average_utilization = target_average_utilization - - @property - def target_average_value(self): - """ - Gets the target_average_value of this V2alpha1ResourceMetricSource. - targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. - - :return: The target_average_value of this V2alpha1ResourceMetricSource. - :rtype: str - """ - return self._target_average_value - - @target_average_value.setter - def target_average_value(self, target_average_value): - """ - Sets the target_average_value of this V2alpha1ResourceMetricSource. - targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. - - :param target_average_value: The target_average_value of this V2alpha1ResourceMetricSource. - :type: str - """ - - self._target_average_value = target_average_value - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1ResourceMetricSource): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v2alpha1_resource_metric_status.py b/kubernetes/client/models/v2alpha1_resource_metric_status.py deleted file mode 100644 index d252e2835c..0000000000 --- a/kubernetes/client/models/v2alpha1_resource_metric_status.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1ResourceMetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self, current_average_utilization=None, current_average_value=None, name=None): - """ - V2alpha1ResourceMetricStatus - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'current_average_utilization': 'int', - 'current_average_value': 'str', - 'name': 'str' - } - - self.attribute_map = { - 'current_average_utilization': 'currentAverageUtilization', - 'current_average_value': 'currentAverageValue', - 'name': 'name' - } - - self._current_average_utilization = current_average_utilization - self._current_average_value = current_average_value - self._name = name - - @property - def current_average_utilization(self): - """ - Gets the current_average_utilization of this V2alpha1ResourceMetricStatus. - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. - - :return: The current_average_utilization of this V2alpha1ResourceMetricStatus. - :rtype: int - """ - return self._current_average_utilization - - @current_average_utilization.setter - def current_average_utilization(self, current_average_utilization): - """ - Sets the current_average_utilization of this V2alpha1ResourceMetricStatus. - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. - - :param current_average_utilization: The current_average_utilization of this V2alpha1ResourceMetricStatus. - :type: int - """ - - self._current_average_utilization = current_average_utilization - - @property - def current_average_value(self): - """ - Gets the current_average_value of this V2alpha1ResourceMetricStatus. - currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. - - :return: The current_average_value of this V2alpha1ResourceMetricStatus. - :rtype: str - """ - return self._current_average_value - - @current_average_value.setter - def current_average_value(self, current_average_value): - """ - Sets the current_average_value of this V2alpha1ResourceMetricStatus. - currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. - - :param current_average_value: The current_average_value of this V2alpha1ResourceMetricStatus. - :type: str - """ - if current_average_value is None: - raise ValueError("Invalid value for `current_average_value`, must not be `None`") - - self._current_average_value = current_average_value - - @property - def name(self): - """ - Gets the name of this V2alpha1ResourceMetricStatus. - name is the name of the resource in question. - - :return: The name of this V2alpha1ResourceMetricStatus. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V2alpha1ResourceMetricStatus. - name is the name of the resource in question. - - :param name: The name of this V2alpha1ResourceMetricStatus. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - 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 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, V2alpha1ResourceMetricStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/version_info.py b/kubernetes/client/models/version_info.py index ea6733ec57..d00e5f2baa 100644 --- a/kubernetes/client/models/version_info.py +++ b/kubernetes/client/models/version_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/versioned_event.py b/kubernetes/client/models/versioned_event.py new file mode 100644 index 0000000000..0c36c50228 --- /dev/null +++ b/kubernetes/client/models/versioned_event.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class VersionedEvent(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, object=None, type=None): + """ + VersionedEvent - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'object': 'RuntimeRawExtension', + 'type': 'str' + } + + self.attribute_map = { + 'object': 'object', + 'type': 'type' + } + + self._object = object + self._type = type + + @property + def object(self): + """ + Gets the object of this VersionedEvent. + Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *api.Status is recommended; other types may make sense depending on context. + + :return: The object of this VersionedEvent. + :rtype: RuntimeRawExtension + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this VersionedEvent. + Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *api.Status is recommended; other types may make sense depending on context. + + :param object: The object of this VersionedEvent. + :type: RuntimeRawExtension + """ + if object is None: + raise ValueError("Invalid value for `object`, must not be `None`") + + self._object = object + + @property + def type(self): + """ + Gets the type of this VersionedEvent. + + :return: The type of this VersionedEvent. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this VersionedEvent. + + :param type: The type of this VersionedEvent. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + 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 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, VersionedEvent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubernetes/docs/ApisApi.md b/kubernetes/docs/ApisApi.md index 4b96b25aed..996fa75238 100644 --- a/kubernetes/docs/ApisApi.md +++ b/kubernetes/docs/ApisApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_versions** -> V1APIGroupList get_api_versions() +> UnversionedAPIGroupList get_api_versions() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroupList**](V1APIGroupList.md) +[**UnversionedAPIGroupList**](UnversionedAPIGroupList.md) ### Authorization diff --git a/kubernetes/docs/AppsApi.md b/kubernetes/docs/AppsApi.md index 000d6a7986..3b56a3636b 100644 --- a/kubernetes/docs/AppsApi.md +++ b/kubernetes/docs/AppsApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> V1APIGroup get_api_group() +> UnversionedAPIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) ### Authorization diff --git a/kubernetes/docs/AppsV1beta1Api.md b/kubernetes/docs/AppsV1beta1Api.md index df4e436a6c..91860c8d1e 100644 --- a/kubernetes/docs/AppsV1beta1Api.md +++ b/kubernetes/docs/AppsV1beta1Api.md @@ -4,149 +4,21 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_namespaced_deployment**](AppsV1beta1Api.md#create_namespaced_deployment) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/deployments | -[**create_namespaced_deployment_rollback_rollback**](AppsV1beta1Api.md#create_namespaced_deployment_rollback_rollback) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | [**create_namespaced_stateful_set**](AppsV1beta1Api.md#create_namespaced_stateful_set) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | -[**delete_collection_namespaced_deployment**](AppsV1beta1Api.md#delete_collection_namespaced_deployment) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/deployments | +[**create_stateful_set_for_all_namespaces**](AppsV1beta1Api.md#create_stateful_set_for_all_namespaces) | **POST** /apis/apps/v1beta1/statefulsets | [**delete_collection_namespaced_stateful_set**](AppsV1beta1Api.md#delete_collection_namespaced_stateful_set) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | -[**delete_namespaced_deployment**](AppsV1beta1Api.md#delete_namespaced_deployment) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | [**delete_namespaced_stateful_set**](AppsV1beta1Api.md#delete_namespaced_stateful_set) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | [**get_api_resources**](AppsV1beta1Api.md#get_api_resources) | **GET** /apis/apps/v1beta1/ | -[**list_deployment_for_all_namespaces**](AppsV1beta1Api.md#list_deployment_for_all_namespaces) | **GET** /apis/apps/v1beta1/deployments | -[**list_namespaced_deployment**](AppsV1beta1Api.md#list_namespaced_deployment) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments | [**list_namespaced_stateful_set**](AppsV1beta1Api.md#list_namespaced_stateful_set) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | [**list_stateful_set_for_all_namespaces**](AppsV1beta1Api.md#list_stateful_set_for_all_namespaces) | **GET** /apis/apps/v1beta1/statefulsets | -[**patch_namespaced_deployment**](AppsV1beta1Api.md#patch_namespaced_deployment) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -[**patch_namespaced_deployment_status**](AppsV1beta1Api.md#patch_namespaced_deployment_status) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | -[**patch_namespaced_scale_scale**](AppsV1beta1Api.md#patch_namespaced_scale_scale) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | [**patch_namespaced_stateful_set**](AppsV1beta1Api.md#patch_namespaced_stateful_set) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | [**patch_namespaced_stateful_set_status**](AppsV1beta1Api.md#patch_namespaced_stateful_set_status) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | -[**read_namespaced_deployment**](AppsV1beta1Api.md#read_namespaced_deployment) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -[**read_namespaced_deployment_status**](AppsV1beta1Api.md#read_namespaced_deployment_status) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | -[**read_namespaced_scale_scale**](AppsV1beta1Api.md#read_namespaced_scale_scale) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | [**read_namespaced_stateful_set**](AppsV1beta1Api.md#read_namespaced_stateful_set) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | [**read_namespaced_stateful_set_status**](AppsV1beta1Api.md#read_namespaced_stateful_set_status) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | -[**replace_namespaced_deployment**](AppsV1beta1Api.md#replace_namespaced_deployment) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -[**replace_namespaced_deployment_status**](AppsV1beta1Api.md#replace_namespaced_deployment_status) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | -[**replace_namespaced_scale_scale**](AppsV1beta1Api.md#replace_namespaced_scale_scale) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | [**replace_namespaced_stateful_set**](AppsV1beta1Api.md#replace_namespaced_stateful_set) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | [**replace_namespaced_stateful_set_status**](AppsV1beta1Api.md#replace_namespaced_stateful_set_status) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | -# **create_namespaced_deployment** -> AppsV1beta1Deployment create_namespaced_deployment(namespace, body, pretty=pretty) - - - -create a Deployment - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.AppsV1beta1Deployment() # AppsV1beta1Deployment | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->create_namespaced_deployment: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**AppsV1beta1Deployment**](AppsV1beta1Deployment.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_namespaced_deployment_rollback_rollback** -> AppsV1beta1DeploymentRollback create_namespaced_deployment_rollback_rollback(name, namespace, body, pretty=pretty) - - - -create rollback of a DeploymentRollback - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the DeploymentRollback -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.AppsV1beta1DeploymentRollback() # AppsV1beta1DeploymentRollback | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_deployment_rollback_rollback(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->create_namespaced_deployment_rollback_rollback: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DeploymentRollback | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**AppsV1beta1DeploymentRollback**](AppsV1beta1DeploymentRollback.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1DeploymentRollback**](AppsV1beta1DeploymentRollback.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **create_namespaced_stateful_set** > V1beta1StatefulSet create_namespaced_stateful_set(namespace, body, pretty=pretty) @@ -203,12 +75,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_deployment** -> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **create_stateful_set_for_all_namespaces** +> V1beta1StatefulSet create_stateful_set_for_all_namespaces(body, pretty=pretty) -delete collection of Deployment +create a StatefulSet ### Example ```python @@ -225,36 +97,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1StatefulSet() # V1beta1StatefulSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.create_stateful_set_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_deployment: %s\n" % e) + print("Exception when calling AppsV1beta1Api->create_stateful_set_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1StatefulSet**](V1beta1StatefulSet.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1beta1StatefulSet**](V1beta1StatefulSet.md) ### Authorization @@ -268,7 +130,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_stateful_set** -> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_stateful_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -293,7 +155,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -312,77 +174,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_namespaced_deployment** -> V1Status delete_namespaced_deployment(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a Deployment - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the Deployment -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_namespaced_deployment(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->delete_namespaced_deployment: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -396,7 +194,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_stateful_set** -> V1Status delete_namespaced_stateful_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_stateful_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -422,11 +220,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_stateful_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_stateful_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->delete_namespaced_stateful_set: %s\n" % e) @@ -441,12 +238,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -460,7 +256,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** -> V1APIResourceList get_api_resources() +> UnversionedAPIResourceList get_api_resources() @@ -494,7 +290,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) ### Authorization @@ -507,12 +303,12 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_deployment_for_all_namespaces** -> AppsV1beta1DeploymentList list_deployment_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_stateful_set** +> V1beta1StatefulSetList list_namespaced_stateful_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Deployment +list or watch objects of kind StatefulSet ### Example ```python @@ -529,34 +325,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_deployment_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling AppsV1beta1Api->list_deployment_for_all_namespaces: %s\n" % e) + print("Exception when calling AppsV1beta1Api->list_namespaced_stateful_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**AppsV1beta1DeploymentList**](AppsV1beta1DeploymentList.md) +[**V1beta1StatefulSetList**](V1beta1StatefulSetList.md) ### Authorization @@ -569,12 +367,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_deployment** -> AppsV1beta1DeploymentList list_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_stateful_set_for_all_namespaces** +> V1beta1StatefulSetList list_stateful_set_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Deployment +list or watch objects of kind StatefulSet ### Example ```python @@ -591,36 +389,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_stateful_set_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling AppsV1beta1Api->list_namespaced_deployment: %s\n" % e) + print("Exception when calling AppsV1beta1Api->list_stateful_set_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**AppsV1beta1DeploymentList**](AppsV1beta1DeploymentList.md) +[**V1beta1StatefulSetList**](V1beta1StatefulSetList.md) ### Authorization @@ -633,12 +429,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_stateful_set** -> V1beta1StatefulSetList list_namespaced_stateful_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **patch_namespaced_stateful_set** +> V1beta1StatefulSet patch_namespaced_stateful_set(name, namespace, body, pretty=pretty) -list or watch objects of kind StatefulSet +partially update the specified StatefulSet ### Example ```python @@ -655,36 +451,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() +name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling AppsV1beta1Api->list_namespaced_stateful_set: %s\n" % e) + print("Exception when calling AppsV1beta1Api->patch_namespaced_stateful_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1beta1StatefulSetList**](V1beta1StatefulSetList.md) +[**V1beta1StatefulSet**](V1beta1StatefulSet.md) ### Authorization @@ -692,17 +482,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_stateful_set_for_all_namespaces** -> V1beta1StatefulSetList list_stateful_set_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **patch_namespaced_stateful_set_status** +> V1beta1StatefulSet patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty) -list or watch objects of kind StatefulSet +partially update status of the specified StatefulSet ### Example ```python @@ -719,34 +509,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +name = 'name_example' # str | name of the StatefulSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_stateful_set_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling AppsV1beta1Api->list_stateful_set_for_all_namespaces: %s\n" % e) + print("Exception when calling AppsV1beta1Api->patch_namespaced_stateful_set_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **name** | **str**| name of the StatefulSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1beta1StatefulSetList**](V1beta1StatefulSetList.md) +[**V1beta1StatefulSet**](V1beta1StatefulSet.md) ### Authorization @@ -754,17 +540,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_deployment** -> AppsV1beta1Deployment patch_namespaced_deployment(name, namespace, body, pretty=pretty) +# **read_namespaced_stateful_set** +> V1beta1StatefulSet read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) -partially update the specified Deployment +read the specified StatefulSet ### Example ```python @@ -781,30 +567,32 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the Deployment +name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty) + api_response = api_instance.read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_deployment: %s\n" % e) + print("Exception when calling AppsV1beta1Api->read_namespaced_stateful_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | + **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) +[**V1beta1StatefulSet**](V1beta1StatefulSet.md) ### Authorization @@ -812,17 +600,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Content-Type**: */* - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_deployment_status** -> AppsV1beta1Deployment patch_namespaced_deployment_status(name, namespace, body, pretty=pretty) +# **read_namespaced_stateful_set_status** +> V1beta1StatefulSet read_namespaced_stateful_set_status(name, namespace, pretty=pretty) -partially update status of the specified Deployment +read status of the specified StatefulSet ### Example ```python @@ -839,476 +627,12 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the Deployment +name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_deployment_status: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_namespaced_scale_scale** -> AppsV1beta1Scale patch_namespaced_scale_scale(name, namespace, body, pretty=pretty) - - - -partially update scale of the specified Scale - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the Scale -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_scale_scale(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_scale_scale: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Scale | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Scale**](AppsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_namespaced_stateful_set** -> V1beta1StatefulSet patch_namespaced_stateful_set(name, namespace, body, pretty=pretty) - - - -partially update the specified StatefulSet - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the StatefulSet -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_stateful_set: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the StatefulSet | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_namespaced_stateful_set_status** -> V1beta1StatefulSet patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty) - - - -partially update status of the specified StatefulSet - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the StatefulSet -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_stateful_set_status: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the StatefulSet | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_namespaced_deployment** -> AppsV1beta1Deployment read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) - - - -read the specified Deployment - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the Deployment -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) - -try: - api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->read_namespaced_deployment: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_namespaced_deployment_status** -> AppsV1beta1Deployment read_namespaced_deployment_status(name, namespace, pretty=pretty) - - - -read status of the specified Deployment - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the Deployment -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->read_namespaced_deployment_status: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_namespaced_scale_scale** -> AppsV1beta1Scale read_namespaced_scale_scale(name, namespace, pretty=pretty) - - - -read scale of the specified Scale - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the Scale -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.read_namespaced_scale_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->read_namespaced_scale_scale: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Scale | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Scale**](AppsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_namespaced_stateful_set** -> V1beta1StatefulSet read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) - - - -read the specified StatefulSet - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the StatefulSet -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) - -try: - api_response = api_instance.read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->read_namespaced_stateful_set: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the StatefulSet | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_namespaced_stateful_set_status** -> V1beta1StatefulSet read_namespaced_stateful_set_status(name, namespace, pretty=pretty) - - - -read status of the specified StatefulSet - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the StatefulSet -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.read_namespaced_stateful_set_status(name, namespace, pretty=pretty) + api_response = api_instance.read_namespaced_stateful_set_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->read_namespaced_stateful_set_status: %s\n" % e) @@ -1337,180 +661,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_deployment** -> AppsV1beta1Deployment replace_namespaced_deployment(name, namespace, body, pretty=pretty) - - - -replace the specified Deployment - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the Deployment -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.AppsV1beta1Deployment() # AppsV1beta1Deployment | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->replace_namespaced_deployment: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**AppsV1beta1Deployment**](AppsV1beta1Deployment.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_namespaced_deployment_status** -> AppsV1beta1Deployment replace_namespaced_deployment_status(name, namespace, body, pretty=pretty) - - - -replace status of the specified Deployment - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the Deployment -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.AppsV1beta1Deployment() # AppsV1beta1Deployment | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->replace_namespaced_deployment_status: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**AppsV1beta1Deployment**](AppsV1beta1Deployment.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_namespaced_scale_scale** -> AppsV1beta1Scale replace_namespaced_scale_scale(name, namespace, body, pretty=pretty) - - - -replace scale of the specified Scale - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the Scale -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.AppsV1beta1Scale() # AppsV1beta1Scale | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_namespaced_scale_scale(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->replace_namespaced_scale_scale: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Scale | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**AppsV1beta1Scale**](AppsV1beta1Scale.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Scale**](AppsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **replace_namespaced_stateful_set** > V1beta1StatefulSet replace_namespaced_stateful_set(name, namespace, body, pretty=pretty) diff --git a/kubernetes/docs/AppsV1beta1Deployment.md b/kubernetes/docs/AppsV1beta1Deployment.md deleted file mode 100644 index 790a4cd77e..0000000000 --- a/kubernetes/docs/AppsV1beta1Deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -# AppsV1beta1Deployment - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] -**spec** | [**AppsV1beta1DeploymentSpec**](AppsV1beta1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] -**status** | [**AppsV1beta1DeploymentStatus**](AppsV1beta1DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/AppsV1beta1DeploymentCondition.md b/kubernetes/docs/AppsV1beta1DeploymentCondition.md deleted file mode 100644 index 245625ef6b..0000000000 --- a/kubernetes/docs/AppsV1beta1DeploymentCondition.md +++ /dev/null @@ -1,15 +0,0 @@ -# AppsV1beta1DeploymentCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_transition_time** | **datetime** | Last time the condition transitioned from one status to another. | [optional] -**last_update_time** | **datetime** | The last time this condition was updated. | [optional] -**message** | **str** | A human readable message indicating details about the transition. | [optional] -**reason** | **str** | The reason for the condition's last transition. | [optional] -**status** | **str** | Status of the condition, one of True, False, Unknown. | -**type** | **str** | Type of deployment condition. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/AppsV1beta1DeploymentList.md b/kubernetes/docs/AppsV1beta1DeploymentList.md deleted file mode 100644 index 377638243c..0000000000 --- a/kubernetes/docs/AppsV1beta1DeploymentList.md +++ /dev/null @@ -1,13 +0,0 @@ -# AppsV1beta1DeploymentList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[AppsV1beta1Deployment]**](AppsV1beta1Deployment.md) | Items is the list of Deployments. | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/AppsV1beta1DeploymentRollback.md b/kubernetes/docs/AppsV1beta1DeploymentRollback.md deleted file mode 100644 index aacbbed2b2..0000000000 --- a/kubernetes/docs/AppsV1beta1DeploymentRollback.md +++ /dev/null @@ -1,14 +0,0 @@ -# AppsV1beta1DeploymentRollback - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**name** | **str** | Required: This must match the Name of a deployment. | -**rollback_to** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | The config of this deployment rollback. | -**updated_annotations** | **dict(str, str)** | The annotations to be updated to a deployment | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/AppsV1beta1DeploymentSpec.md b/kubernetes/docs/AppsV1beta1DeploymentSpec.md deleted file mode 100644 index 51523399a6..0000000000 --- a/kubernetes/docs/AppsV1beta1DeploymentSpec.md +++ /dev/null @@ -1,18 +0,0 @@ -# AppsV1beta1DeploymentSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] -**paused** | **bool** | Indicates that the deployment is paused. | [optional] -**progress_deadline_seconds** | **int** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. | [optional] -**replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] -**revision_history_limit** | **int** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. | [optional] -**rollback_to** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | [optional] -**strategy** | [**AppsV1beta1DeploymentStrategy**](AppsV1beta1DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/AppsV1beta1DeploymentStatus.md b/kubernetes/docs/AppsV1beta1DeploymentStatus.md deleted file mode 100644 index 5b40346137..0000000000 --- a/kubernetes/docs/AppsV1beta1DeploymentStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# AppsV1beta1DeploymentStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**available_replicas** | **int** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] -**conditions** | [**list[AppsV1beta1DeploymentCondition]**](AppsV1beta1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | [optional] -**observed_generation** | **int** | The generation observed by the deployment controller. | [optional] -**ready_replicas** | **int** | Total number of ready pods targeted by this deployment. | [optional] -**replicas** | **int** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). | [optional] -**unavailable_replicas** | **int** | Total number of unavailable pods targeted by this deployment. | [optional] -**updated_replicas** | **int** | Total number of non-terminated pods targeted by this deployment that have the desired template spec. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/AppsV1beta1DeploymentStrategy.md b/kubernetes/docs/AppsV1beta1DeploymentStrategy.md deleted file mode 100644 index 36ecb07f70..0000000000 --- a/kubernetes/docs/AppsV1beta1DeploymentStrategy.md +++ /dev/null @@ -1,11 +0,0 @@ -# AppsV1beta1DeploymentStrategy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rolling_update** | [**AppsV1beta1RollingUpdateDeployment**](AppsV1beta1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] -**type** | **str** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/AppsV1beta1RollbackConfig.md b/kubernetes/docs/AppsV1beta1RollbackConfig.md deleted file mode 100644 index 85d5227e5c..0000000000 --- a/kubernetes/docs/AppsV1beta1RollbackConfig.md +++ /dev/null @@ -1,10 +0,0 @@ -# AppsV1beta1RollbackConfig - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**revision** | **int** | The revision to rollback to. If set to 0, rollbck to the last revision. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md deleted file mode 100644 index c037908319..0000000000 --- a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md +++ /dev/null @@ -1,11 +0,0 @@ -# AppsV1beta1RollingUpdateDeployment - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_surge** | **str** | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. | [optional] -**max_unavailable** | **str** | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/AppsV1beta1Scale.md b/kubernetes/docs/AppsV1beta1Scale.md deleted file mode 100644 index 5717112d30..0000000000 --- a/kubernetes/docs/AppsV1beta1Scale.md +++ /dev/null @@ -1,14 +0,0 @@ -# AppsV1beta1Scale - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. | [optional] -**spec** | [**AppsV1beta1ScaleSpec**](AppsV1beta1ScaleSpec.md) | defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**AppsV1beta1ScaleStatus**](AppsV1beta1ScaleStatus.md) | current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/AppsV1beta1ScaleSpec.md b/kubernetes/docs/AppsV1beta1ScaleSpec.md deleted file mode 100644 index f3d6b80dcb..0000000000 --- a/kubernetes/docs/AppsV1beta1ScaleSpec.md +++ /dev/null @@ -1,10 +0,0 @@ -# AppsV1beta1ScaleSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **int** | desired number of instances for the scaled object. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/AppsV1beta1ScaleStatus.md b/kubernetes/docs/AppsV1beta1ScaleStatus.md deleted file mode 100644 index 3e199a51d6..0000000000 --- a/kubernetes/docs/AppsV1beta1ScaleStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# AppsV1beta1ScaleStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **int** | actual number of observed instances of the scaled object. | -**selector** | **dict(str, str)** | label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] -**target_selector** | **str** | label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the kubernetes.clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/AuthenticationApi.md b/kubernetes/docs/AuthenticationApi.md index 815dab5264..a504510e0d 100644 --- a/kubernetes/docs/AuthenticationApi.md +++ b/kubernetes/docs/AuthenticationApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> V1APIGroup get_api_group() +> UnversionedAPIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) ### Authorization diff --git a/kubernetes/docs/AuthenticationV1Api.md b/kubernetes/docs/AuthenticationV1Api.md deleted file mode 100644 index 1dc562499f..0000000000 --- a/kubernetes/docs/AuthenticationV1Api.md +++ /dev/null @@ -1,112 +0,0 @@ -# kubernetes.client.AuthenticationV1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_token_review**](AuthenticationV1Api.md#create_token_review) | **POST** /apis/authentication.k8s.io/v1/tokenreviews | -[**get_api_resources**](AuthenticationV1Api.md#get_api_resources) | **GET** /apis/authentication.k8s.io/v1/ | - - -# **create_token_review** -> V1TokenReview create_token_review(body, pretty=pretty) - - - -create a TokenReview - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AuthenticationV1Api() -body = kubernetes.client.V1TokenReview() # V1TokenReview | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_token_review(body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthenticationV1Api->create_token_review: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1TokenReview**](V1TokenReview.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1TokenReview**](V1TokenReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_api_resources** -> V1APIResourceList get_api_resources() - - - -get available resources - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AuthenticationV1Api() - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthenticationV1Api->get_api_resources: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/AuthenticationV1beta1Api.md b/kubernetes/docs/AuthenticationV1beta1Api.md index cd42c69e59..5690a13400 100644 --- a/kubernetes/docs/AuthenticationV1beta1Api.md +++ b/kubernetes/docs/AuthenticationV1beta1Api.md @@ -63,7 +63,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** -> V1APIResourceList get_api_resources() +> UnversionedAPIResourceList get_api_resources() @@ -97,7 +97,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) ### Authorization diff --git a/kubernetes/docs/AuthorizationApi.md b/kubernetes/docs/AuthorizationApi.md deleted file mode 100644 index 94c0bc518e..0000000000 --- a/kubernetes/docs/AuthorizationApi.md +++ /dev/null @@ -1,57 +0,0 @@ -# kubernetes.client.AuthorizationApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_api_group**](AuthorizationApi.md#get_api_group) | **GET** /apis/authorization.k8s.io/ | - - -# **get_api_group** -> V1APIGroup get_api_group() - - - -get information of a group - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationApi() - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationApi->get_api_group: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/AuthorizationV1Api.md b/kubernetes/docs/AuthorizationV1Api.md deleted file mode 100644 index ee50c37ab3..0000000000 --- a/kubernetes/docs/AuthorizationV1Api.md +++ /dev/null @@ -1,224 +0,0 @@ -# kubernetes.client.AuthorizationV1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_namespaced_local_subject_access_review**](AuthorizationV1Api.md#create_namespaced_local_subject_access_review) | **POST** /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews | -[**create_self_subject_access_review**](AuthorizationV1Api.md#create_self_subject_access_review) | **POST** /apis/authorization.k8s.io/v1/selfsubjectaccessreviews | -[**create_subject_access_review**](AuthorizationV1Api.md#create_subject_access_review) | **POST** /apis/authorization.k8s.io/v1/subjectaccessreviews | -[**get_api_resources**](AuthorizationV1Api.md#get_api_resources) | **GET** /apis/authorization.k8s.io/v1/ | - - -# **create_namespaced_local_subject_access_review** -> V1LocalSubjectAccessReview create_namespaced_local_subject_access_review(namespace, body, pretty=pretty) - - - -create a LocalSubjectAccessReview - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1LocalSubjectAccessReview() # V1LocalSubjectAccessReview | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_local_subject_access_review(namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1Api->create_namespaced_local_subject_access_review: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1LocalSubjectAccessReview**](V1LocalSubjectAccessReview.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1LocalSubjectAccessReview**](V1LocalSubjectAccessReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_self_subject_access_review** -> V1SelfSubjectAccessReview create_self_subject_access_review(body, pretty=pretty) - - - -create a SelfSubjectAccessReview - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1Api() -body = kubernetes.client.V1SelfSubjectAccessReview() # V1SelfSubjectAccessReview | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_self_subject_access_review(body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1Api->create_self_subject_access_review: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1SelfSubjectAccessReview**](V1SelfSubjectAccessReview.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1SelfSubjectAccessReview**](V1SelfSubjectAccessReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_subject_access_review** -> V1SubjectAccessReview create_subject_access_review(body, pretty=pretty) - - - -create a SubjectAccessReview - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1Api() -body = kubernetes.client.V1SubjectAccessReview() # V1SubjectAccessReview | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_subject_access_review(body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1Api->create_subject_access_review: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1SubjectAccessReview**](V1SubjectAccessReview.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1SubjectAccessReview**](V1SubjectAccessReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_api_resources** -> V1APIResourceList get_api_resources() - - - -get available resources - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1Api() - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1Api->get_api_resources: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/AuthorizationV1beta1Api.md b/kubernetes/docs/AuthorizationV1beta1Api.md deleted file mode 100644 index 6ec2a972de..0000000000 --- a/kubernetes/docs/AuthorizationV1beta1Api.md +++ /dev/null @@ -1,224 +0,0 @@ -# kubernetes.client.AuthorizationV1beta1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_namespaced_local_subject_access_review**](AuthorizationV1beta1Api.md#create_namespaced_local_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews | -[**create_self_subject_access_review**](AuthorizationV1beta1Api.md#create_self_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews | -[**create_subject_access_review**](AuthorizationV1beta1Api.md#create_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/subjectaccessreviews | -[**get_api_resources**](AuthorizationV1beta1Api.md#get_api_resources) | **GET** /apis/authorization.k8s.io/v1beta1/ | - - -# **create_namespaced_local_subject_access_review** -> V1beta1LocalSubjectAccessReview create_namespaced_local_subject_access_review(namespace, body, pretty=pretty) - - - -create a LocalSubjectAccessReview - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1LocalSubjectAccessReview() # V1beta1LocalSubjectAccessReview | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_local_subject_access_review(namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1beta1Api->create_namespaced_local_subject_access_review: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1LocalSubjectAccessReview**](V1beta1LocalSubjectAccessReview.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1LocalSubjectAccessReview**](V1beta1LocalSubjectAccessReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_self_subject_access_review** -> V1beta1SelfSubjectAccessReview create_self_subject_access_review(body, pretty=pretty) - - - -create a SelfSubjectAccessReview - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1beta1Api() -body = kubernetes.client.V1beta1SelfSubjectAccessReview() # V1beta1SelfSubjectAccessReview | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_self_subject_access_review(body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1beta1Api->create_self_subject_access_review: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1SelfSubjectAccessReview**](V1beta1SelfSubjectAccessReview.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1SelfSubjectAccessReview**](V1beta1SelfSubjectAccessReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_subject_access_review** -> V1beta1SubjectAccessReview create_subject_access_review(body, pretty=pretty) - - - -create a SubjectAccessReview - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1beta1Api() -body = kubernetes.client.V1beta1SubjectAccessReview() # V1beta1SubjectAccessReview | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_subject_access_review(body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1beta1Api->create_subject_access_review: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1SubjectAccessReview**](V1beta1SubjectAccessReview.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1SubjectAccessReview**](V1beta1SubjectAccessReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_api_resources** -> V1APIResourceList get_api_resources() - - - -get available resources - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1beta1Api() - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1beta1Api->get_api_resources: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/AutoscalingApi.md b/kubernetes/docs/AutoscalingApi.md index 4b3c5a7b3a..9fb3476fda 100644 --- a/kubernetes/docs/AutoscalingApi.md +++ b/kubernetes/docs/AutoscalingApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> V1APIGroup get_api_group() +> UnversionedAPIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) ### Authorization diff --git a/kubernetes/docs/AutoscalingV1Api.md b/kubernetes/docs/AutoscalingV1Api.md index b6f59d2ba4..218c89123b 100644 --- a/kubernetes/docs/AutoscalingV1Api.md +++ b/kubernetes/docs/AutoscalingV1Api.md @@ -4,6 +4,7 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_horizontal_pod_autoscaler_for_all_namespaces**](AutoscalingV1Api.md#create_horizontal_pod_autoscaler_for_all_namespaces) | **POST** /apis/autoscaling/v1/horizontalpodautoscalers | [**create_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#create_namespaced_horizontal_pod_autoscaler) | **POST** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | [**delete_collection_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#delete_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | [**delete_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#delete_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | @@ -18,6 +19,60 @@ Method | HTTP request | Description [**replace_namespaced_horizontal_pod_autoscaler_status**](AutoscalingV1Api.md#replace_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +# **create_horizontal_pod_autoscaler_for_all_namespaces** +> V1HorizontalPodAutoscaler create_horizontal_pod_autoscaler_for_all_namespaces(body, pretty=pretty) + + + +create a HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV1Api() +body = kubernetes.client.V1HorizontalPodAutoscaler() # V1HorizontalPodAutoscaler | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_horizontal_pod_autoscaler_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV1Api->create_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_horizontal_pod_autoscaler** > V1HorizontalPodAutoscaler create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) @@ -75,7 +130,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_horizontal_pod_autoscaler** -> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -100,7 +155,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -119,13 +174,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -139,7 +194,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_horizontal_pod_autoscaler** -> V1Status delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -165,11 +220,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV1Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) @@ -184,12 +238,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -203,7 +256,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** -> V1APIResourceList get_api_resources() +> UnversionedAPIResourceList get_api_resources() @@ -237,7 +290,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) ### Authorization @@ -251,7 +304,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_horizontal_pod_autoscaler_for_all_namespaces** -> V1HorizontalPodAutoscalerList list_horizontal_pod_autoscaler_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1HorizontalPodAutoscalerList list_horizontal_pod_autoscaler_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -272,15 +325,15 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AutoscalingV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV1Api->list_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) @@ -290,10 +343,10 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] @@ -338,7 +391,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -357,7 +410,7 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] @@ -517,7 +570,7 @@ api_instance = kubernetes.client.AutoscalingV1Api() name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -534,7 +587,7 @@ Name | Type | Description | Notes **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type diff --git a/kubernetes/docs/AutoscalingV2alpha1Api.md b/kubernetes/docs/AutoscalingV2alpha1Api.md deleted file mode 100644 index ed52b218a6..0000000000 --- a/kubernetes/docs/AutoscalingV2alpha1Api.md +++ /dev/null @@ -1,726 +0,0 @@ -# kubernetes.client.AutoscalingV2alpha1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#create_namespaced_horizontal_pod_autoscaler) | **POST** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | -[**delete_collection_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#delete_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | -[**delete_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#delete_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**get_api_resources**](AutoscalingV2alpha1Api.md#get_api_resources) | **GET** /apis/autoscaling/v2alpha1/ | -[**list_horizontal_pod_autoscaler_for_all_namespaces**](AutoscalingV2alpha1Api.md#list_horizontal_pod_autoscaler_for_all_namespaces) | **GET** /apis/autoscaling/v2alpha1/horizontalpodautoscalers | -[**list_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#list_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | -[**patch_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#patch_namespaced_horizontal_pod_autoscaler) | **PATCH** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**patch_namespaced_horizontal_pod_autoscaler_status**](AutoscalingV2alpha1Api.md#patch_namespaced_horizontal_pod_autoscaler_status) | **PATCH** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**read_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#read_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**read_namespaced_horizontal_pod_autoscaler_status**](AutoscalingV2alpha1Api.md#read_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**replace_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#replace_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**replace_namespaced_horizontal_pod_autoscaler_status**](AutoscalingV2alpha1Api.md#replace_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | - - -# **create_namespaced_horizontal_pod_autoscaler** -> V2alpha1HorizontalPodAutoscaler create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) - - - -create a HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V2alpha1HorizontalPodAutoscaler() # V2alpha1HorizontalPodAutoscaler | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2alpha1Api->create_namespaced_horizontal_pod_autoscaler: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_namespaced_horizontal_pod_autoscaler** -> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -delete collection of HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2alpha1Api->delete_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_namespaced_horizontal_pod_autoscaler** -> V1Status delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2alpha1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2alpha1Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_api_resources** -> V1APIResourceList get_api_resources() - - - -get available resources - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2alpha1Api() - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2alpha1Api->get_api_resources: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_horizontal_pod_autoscaler_for_all_namespaces** -> V2alpha1HorizontalPodAutoscalerList list_horizontal_pod_autoscaler_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2alpha1Api->list_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscalerList**](V2alpha1HorizontalPodAutoscalerList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_namespaced_horizontal_pod_autoscaler** -> V2alpha1HorizontalPodAutoscalerList list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2alpha1Api->list_namespaced_horizontal_pod_autoscaler: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscalerList**](V2alpha1HorizontalPodAutoscalerList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_namespaced_horizontal_pod_autoscaler** -> V2alpha1HorizontalPodAutoscaler patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) - - - -partially update the specified HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2alpha1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2alpha1Api->patch_namespaced_horizontal_pod_autoscaler: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_namespaced_horizontal_pod_autoscaler_status** -> V2alpha1HorizontalPodAutoscaler patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) - - - -partially update status of the specified HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2alpha1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2alpha1Api->patch_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_namespaced_horizontal_pod_autoscaler** -> V2alpha1HorizontalPodAutoscaler read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) - - - -read the specified HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2alpha1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) - -try: - api_response = api_instance.read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2alpha1Api->read_namespaced_horizontal_pod_autoscaler: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_namespaced_horizontal_pod_autoscaler_status** -> V2alpha1HorizontalPodAutoscaler read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) - - - -read status of the specified HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2alpha1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2alpha1Api->read_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_namespaced_horizontal_pod_autoscaler** -> V2alpha1HorizontalPodAutoscaler replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) - - - -replace the specified HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2alpha1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V2alpha1HorizontalPodAutoscaler() # V2alpha1HorizontalPodAutoscaler | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2alpha1Api->replace_namespaced_horizontal_pod_autoscaler: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_namespaced_horizontal_pod_autoscaler_status** -> V2alpha1HorizontalPodAutoscaler replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) - - - -replace status of the specified HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2alpha1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V2alpha1HorizontalPodAutoscaler() # V2alpha1HorizontalPodAutoscaler | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2alpha1Api->replace_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/BatchApi.md b/kubernetes/docs/BatchApi.md index c55b998865..3aa9c1fca7 100644 --- a/kubernetes/docs/BatchApi.md +++ b/kubernetes/docs/BatchApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> V1APIGroup get_api_group() +> UnversionedAPIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) ### Authorization diff --git a/kubernetes/docs/BatchV1Api.md b/kubernetes/docs/BatchV1Api.md index 148e6f534d..2142c11af0 100644 --- a/kubernetes/docs/BatchV1Api.md +++ b/kubernetes/docs/BatchV1Api.md @@ -4,6 +4,7 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_job_for_all_namespaces**](BatchV1Api.md#create_job_for_all_namespaces) | **POST** /apis/batch/v1/jobs | [**create_namespaced_job**](BatchV1Api.md#create_namespaced_job) | **POST** /apis/batch/v1/namespaces/{namespace}/jobs | [**delete_collection_namespaced_job**](BatchV1Api.md#delete_collection_namespaced_job) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs | [**delete_namespaced_job**](BatchV1Api.md#delete_namespaced_job) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | @@ -18,6 +19,60 @@ Method | HTTP request | Description [**replace_namespaced_job_status**](BatchV1Api.md#replace_namespaced_job_status) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | +# **create_job_for_all_namespaces** +> V1Job create_job_for_all_namespaces(body, pretty=pretty) + + + +create a Job + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV1Api() +body = kubernetes.client.V1Job() # V1Job | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_job_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV1Api->create_job_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Job**](V1Job.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Job**](V1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_job** > V1Job create_namespaced_job(namespace, body, pretty=pretty) @@ -75,7 +130,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_job** -> V1Status delete_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -100,7 +155,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -119,13 +174,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -139,7 +194,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_job** -> V1Status delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -165,11 +220,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling BatchV1Api->delete_namespaced_job: %s\n" % e) @@ -184,12 +238,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -203,7 +256,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** -> V1APIResourceList get_api_resources() +> UnversionedAPIResourceList get_api_resources() @@ -237,7 +290,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) ### Authorization @@ -251,7 +304,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_job_for_all_namespaces** -> V1JobList list_job_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1JobList list_job_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -272,15 +325,15 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_job_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_job_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling BatchV1Api->list_job_for_all_namespaces: %s\n" % e) @@ -290,10 +343,10 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] @@ -338,7 +391,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -357,7 +410,7 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] @@ -517,7 +570,7 @@ api_instance = kubernetes.client.BatchV1Api() name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -534,7 +587,7 @@ Name | Type | Description | Notes **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type diff --git a/kubernetes/docs/BatchV2alpha1Api.md b/kubernetes/docs/BatchV2alpha1Api.md index 9a2f5e7166..bc8711e8fa 100644 --- a/kubernetes/docs/BatchV2alpha1Api.md +++ b/kubernetes/docs/BatchV2alpha1Api.md @@ -4,31 +4,153 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_cron_job_for_all_namespaces**](BatchV2alpha1Api.md#create_cron_job_for_all_namespaces) | **POST** /apis/batch/v2alpha1/cronjobs | +[**create_job_for_all_namespaces**](BatchV2alpha1Api.md#create_job_for_all_namespaces) | **POST** /apis/batch/v2alpha1/jobs | [**create_namespaced_cron_job**](BatchV2alpha1Api.md#create_namespaced_cron_job) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | +[**create_namespaced_job**](BatchV2alpha1Api.md#create_namespaced_job) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/jobs | [**create_namespaced_scheduled_job**](BatchV2alpha1Api.md#create_namespaced_scheduled_job) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | +[**create_scheduled_job_for_all_namespaces**](BatchV2alpha1Api.md#create_scheduled_job_for_all_namespaces) | **POST** /apis/batch/v2alpha1/scheduledjobs | [**delete_collection_namespaced_cron_job**](BatchV2alpha1Api.md#delete_collection_namespaced_cron_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | +[**delete_collection_namespaced_job**](BatchV2alpha1Api.md#delete_collection_namespaced_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/jobs | [**delete_collection_namespaced_scheduled_job**](BatchV2alpha1Api.md#delete_collection_namespaced_scheduled_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | [**delete_namespaced_cron_job**](BatchV2alpha1Api.md#delete_namespaced_cron_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | +[**delete_namespaced_job**](BatchV2alpha1Api.md#delete_namespaced_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | [**delete_namespaced_scheduled_job**](BatchV2alpha1Api.md#delete_namespaced_scheduled_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | [**get_api_resources**](BatchV2alpha1Api.md#get_api_resources) | **GET** /apis/batch/v2alpha1/ | [**list_cron_job_for_all_namespaces**](BatchV2alpha1Api.md#list_cron_job_for_all_namespaces) | **GET** /apis/batch/v2alpha1/cronjobs | +[**list_job_for_all_namespaces**](BatchV2alpha1Api.md#list_job_for_all_namespaces) | **GET** /apis/batch/v2alpha1/jobs | [**list_namespaced_cron_job**](BatchV2alpha1Api.md#list_namespaced_cron_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | +[**list_namespaced_job**](BatchV2alpha1Api.md#list_namespaced_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/jobs | [**list_namespaced_scheduled_job**](BatchV2alpha1Api.md#list_namespaced_scheduled_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | [**list_scheduled_job_for_all_namespaces**](BatchV2alpha1Api.md#list_scheduled_job_for_all_namespaces) | **GET** /apis/batch/v2alpha1/scheduledjobs | [**patch_namespaced_cron_job**](BatchV2alpha1Api.md#patch_namespaced_cron_job) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | [**patch_namespaced_cron_job_status**](BatchV2alpha1Api.md#patch_namespaced_cron_job_status) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | +[**patch_namespaced_job**](BatchV2alpha1Api.md#patch_namespaced_job) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | +[**patch_namespaced_job_status**](BatchV2alpha1Api.md#patch_namespaced_job_status) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status | [**patch_namespaced_scheduled_job**](BatchV2alpha1Api.md#patch_namespaced_scheduled_job) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | [**patch_namespaced_scheduled_job_status**](BatchV2alpha1Api.md#patch_namespaced_scheduled_job_status) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | [**read_namespaced_cron_job**](BatchV2alpha1Api.md#read_namespaced_cron_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | [**read_namespaced_cron_job_status**](BatchV2alpha1Api.md#read_namespaced_cron_job_status) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | +[**read_namespaced_job**](BatchV2alpha1Api.md#read_namespaced_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | +[**read_namespaced_job_status**](BatchV2alpha1Api.md#read_namespaced_job_status) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status | [**read_namespaced_scheduled_job**](BatchV2alpha1Api.md#read_namespaced_scheduled_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | [**read_namespaced_scheduled_job_status**](BatchV2alpha1Api.md#read_namespaced_scheduled_job_status) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | [**replace_namespaced_cron_job**](BatchV2alpha1Api.md#replace_namespaced_cron_job) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | [**replace_namespaced_cron_job_status**](BatchV2alpha1Api.md#replace_namespaced_cron_job_status) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | +[**replace_namespaced_job**](BatchV2alpha1Api.md#replace_namespaced_job) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | +[**replace_namespaced_job_status**](BatchV2alpha1Api.md#replace_namespaced_job_status) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status | [**replace_namespaced_scheduled_job**](BatchV2alpha1Api.md#replace_namespaced_scheduled_job) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | [**replace_namespaced_scheduled_job_status**](BatchV2alpha1Api.md#replace_namespaced_scheduled_job_status) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | +# **create_cron_job_for_all_namespaces** +> V2alpha1CronJob create_cron_job_for_all_namespaces(body, pretty=pretty) + + + +create a CronJob + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_cron_job_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->create_cron_job_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V2alpha1CronJob**](V2alpha1CronJob.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_job_for_all_namespaces** +> V2alpha1Job create_job_for_all_namespaces(body, pretty=pretty) + + + +create a Job + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +body = kubernetes.client.V2alpha1Job() # V2alpha1Job | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_job_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->create_job_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V2alpha1Job**](V2alpha1Job.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V2alpha1Job**](V2alpha1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_cron_job** > V2alpha1CronJob create_namespaced_cron_job(namespace, body, pretty=pretty) @@ -85,6 +207,62 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_namespaced_job** +> V2alpha1Job create_namespaced_job(namespace, body, pretty=pretty) + + + +create a Job + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V2alpha1Job() # V2alpha1Job | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_job(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->create_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V2alpha1Job**](V2alpha1Job.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V2alpha1Job**](V2alpha1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_scheduled_job** > V2alpha1CronJob create_namespaced_scheduled_job(namespace, body, pretty=pretty) @@ -141,8 +319,62 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_scheduled_job_for_all_namespaces** +> V2alpha1CronJob create_scheduled_job_for_all_namespaces(body, pretty=pretty) + + + +create a ScheduledJob + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_scheduled_job_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->create_scheduled_job_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V2alpha1CronJob**](V2alpha1CronJob.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_cron_job** -> V1Status delete_collection_namespaced_cron_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_cron_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -167,7 +399,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -186,13 +418,77 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_job** +> UnversionedStatus delete_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Job + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->delete_collection_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -206,7 +502,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_scheduled_job** -> V1Status delete_collection_namespaced_scheduled_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_scheduled_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -231,7 +527,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -250,13 +546,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -270,7 +566,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_cron_job** -> V1Status delete_namespaced_cron_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_cron_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -296,11 +592,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_cron_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_cron_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling BatchV2alpha1Api->delete_namespaced_cron_job: %s\n" % e) @@ -315,12 +610,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -333,12 +627,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_scheduled_job** -> V1Status delete_namespaced_scheduled_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_namespaced_job** +> UnversionedStatus delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) -delete a ScheduledJob +delete a Job ### Example ```python @@ -355,36 +649,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the ScheduledJob +name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_scheduled_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->delete_namespaced_scheduled_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->delete_namespaced_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ScheduledJob | + **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -397,12 +689,558 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources** -> V1APIResourceList get_api_resources() +# **delete_namespaced_scheduled_job** +> UnversionedStatus delete_namespaced_scheduled_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a ScheduledJob + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +name = 'name_example' # str | name of the ScheduledJob +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_scheduled_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->delete_namespaced_scheduled_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ScheduledJob | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_api_resources** +> UnversionedAPIResourceList get_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() + +try: + api_response = api_instance.get_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->get_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cron_job_for_all_namespaces** +> V2alpha1CronJobList list_cron_job_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind CronJob + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_cron_job_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->list_cron_job_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V2alpha1CronJobList**](V2alpha1CronJobList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_job_for_all_namespaces** +> V2alpha1JobList list_job_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Job + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_job_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->list_job_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V2alpha1JobList**](V2alpha1JobList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_cron_job** +> V2alpha1CronJobList list_namespaced_cron_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind CronJob + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_cron_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->list_namespaced_cron_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V2alpha1CronJobList**](V2alpha1CronJobList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_job** +> V2alpha1JobList list_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Job + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->list_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V2alpha1JobList**](V2alpha1JobList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_scheduled_job** +> V2alpha1CronJobList list_namespaced_scheduled_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ScheduledJob + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_scheduled_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->list_namespaced_scheduled_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V2alpha1CronJobList**](V2alpha1CronJobList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_scheduled_job_for_all_namespaces** +> V2alpha1CronJobList list_scheduled_job_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ScheduledJob + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_scheduled_job_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->list_scheduled_job_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V2alpha1CronJobList**](V2alpha1CronJobList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_cron_job** +> V2alpha1CronJob patch_namespaced_cron_job(name, namespace, body, pretty=pretty) + + + +partially update the specified CronJob + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.BatchV2alpha1Api() +name = 'name_example' # str | name of the CronJob +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_cron_job(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling BatchV2alpha1Api->patch_namespaced_cron_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CronJob | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V2alpha1CronJob**](V2alpha1CronJob.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_cron_job_status** +> V2alpha1CronJob patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty) -get available resources +partially update status of the specified CronJob ### Example ```python @@ -419,20 +1257,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() +name = 'name_example' # str | name of the CronJob +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.get_api_resources() + api_response = api_instance.patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->get_api_resources: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->patch_namespaced_cron_job_status: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CronJob | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**V2alpha1CronJob**](V2alpha1CronJob.md) ### Authorization @@ -440,17 +1288,17 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_cron_job_for_all_namespaces** -> V2alpha1CronJobList list_cron_job_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **patch_namespaced_job** +> V2alpha1Job patch_namespaced_job(name, namespace, body, pretty=pretty) -list or watch objects of kind CronJob +partially update the specified Job ### Example ```python @@ -467,34 +1315,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_cron_job_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.patch_namespaced_job(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->list_cron_job_for_all_namespaces: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->patch_namespaced_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V2alpha1CronJobList**](V2alpha1CronJobList.md) +[**V2alpha1Job**](V2alpha1Job.md) ### Authorization @@ -502,17 +1346,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_cron_job** -> V2alpha1CronJobList list_namespaced_cron_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **patch_namespaced_job_status** +> V2alpha1Job patch_namespaced_job_status(name, namespace, body, pretty=pretty) -list or watch objects of kind CronJob +partially update status of the specified Job ### Example ```python @@ -529,36 +1373,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() +name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_cron_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.patch_namespaced_job_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->list_namespaced_cron_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->patch_namespaced_job_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V2alpha1CronJobList**](V2alpha1CronJobList.md) +[**V2alpha1Job**](V2alpha1Job.md) ### Authorization @@ -566,17 +1404,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_scheduled_job** -> V2alpha1CronJobList list_namespaced_scheduled_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **patch_namespaced_scheduled_job** +> V2alpha1CronJob patch_namespaced_scheduled_job(name, namespace, body, pretty=pretty) -list or watch objects of kind ScheduledJob +partially update the specified ScheduledJob ### Example ```python @@ -593,36 +1431,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() +name = 'name_example' # str | name of the ScheduledJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_scheduled_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.patch_namespaced_scheduled_job(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->list_namespaced_scheduled_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->patch_namespaced_scheduled_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ScheduledJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V2alpha1CronJobList**](V2alpha1CronJobList.md) +[**V2alpha1CronJob**](V2alpha1CronJob.md) ### Authorization @@ -630,17 +1462,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_scheduled_job_for_all_namespaces** -> V2alpha1CronJobList list_scheduled_job_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **patch_namespaced_scheduled_job_status** +> V2alpha1CronJob patch_namespaced_scheduled_job_status(name, namespace, body, pretty=pretty) -list or watch objects of kind ScheduledJob +partially update status of the specified ScheduledJob ### Example ```python @@ -657,34 +1489,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +name = 'name_example' # str | name of the ScheduledJob +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_scheduled_job_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.patch_namespaced_scheduled_job_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->list_scheduled_job_for_all_namespaces: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->patch_namespaced_scheduled_job_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **name** | **str**| name of the ScheduledJob | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V2alpha1CronJobList**](V2alpha1CronJobList.md) +[**V2alpha1CronJob**](V2alpha1CronJob.md) ### Authorization @@ -692,17 +1520,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_cron_job** -> V2alpha1CronJob patch_namespaced_cron_job(name, namespace, body, pretty=pretty) +# **read_namespaced_cron_job** +> V2alpha1CronJob read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) -partially update the specified CronJob +read the specified CronJob ### Example ```python @@ -721,14 +1549,15 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api() name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.patch_namespaced_cron_job(name, namespace, body, pretty=pretty) + api_response = api_instance.read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->patch_namespaced_cron_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->read_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -737,8 +1566,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -750,17 +1580,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Content-Type**: */* - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_cron_job_status** -> V2alpha1CronJob patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty) +# **read_namespaced_cron_job_status** +> V2alpha1CronJob read_namespaced_cron_job_status(name, namespace, pretty=pretty) -partially update status of the specified CronJob +read status of the specified CronJob ### Example ```python @@ -779,14 +1609,13 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api() name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty) + api_response = api_instance.read_namespaced_cron_job_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->patch_namespaced_cron_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->read_namespaced_cron_job_status: %s\n" % e) ``` ### Parameters @@ -795,7 +1624,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -808,17 +1636,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Content-Type**: */* - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_scheduled_job** -> V2alpha1CronJob patch_namespaced_scheduled_job(name, namespace, body, pretty=pretty) +# **read_namespaced_job** +> V2alpha1Job read_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) -partially update the specified ScheduledJob +read the specified Job ### Example ```python @@ -835,30 +1663,32 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the ScheduledJob +name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.patch_namespaced_scheduled_job(name, namespace, body, pretty=pretty) + api_response = api_instance.read_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->patch_namespaced_scheduled_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->read_namespaced_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ScheduledJob | + **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type -[**V2alpha1CronJob**](V2alpha1CronJob.md) +[**V2alpha1Job**](V2alpha1Job.md) ### Authorization @@ -866,17 +1696,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Content-Type**: */* - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_scheduled_job_status** -> V2alpha1CronJob patch_namespaced_scheduled_job_status(name, namespace, body, pretty=pretty) +# **read_namespaced_job_status** +> V2alpha1Job read_namespaced_job_status(name, namespace, pretty=pretty) -partially update status of the specified ScheduledJob +read status of the specified Job ### Example ```python @@ -893,30 +1723,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the ScheduledJob +name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_scheduled_job_status(name, namespace, body, pretty=pretty) + api_response = api_instance.read_namespaced_job_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->patch_namespaced_scheduled_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->read_namespaced_job_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ScheduledJob | + **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V2alpha1CronJob**](V2alpha1CronJob.md) +[**V2alpha1Job**](V2alpha1Job.md) ### Authorization @@ -924,17 +1752,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Content-Type**: */* - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_cron_job** -> V2alpha1CronJob read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) +# **read_namespaced_scheduled_job** +> V2alpha1CronJob read_namespaced_scheduled_job(name, namespace, pretty=pretty, exact=exact, export=export) -read the specified CronJob +read the specified ScheduledJob ### Example ```python @@ -951,27 +1779,27 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the CronJob +name = 'name_example' # str | name of the ScheduledJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.read_namespaced_scheduled_job(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->read_namespaced_cron_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->read_namespaced_scheduled_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CronJob | + **name** | **str**| name of the ScheduledJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -989,12 +1817,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_cron_job_status** -> V2alpha1CronJob read_namespaced_cron_job_status(name, namespace, pretty=pretty) +# **read_namespaced_scheduled_job_status** +> V2alpha1CronJob read_namespaced_scheduled_job_status(name, namespace, pretty=pretty) -read status of the specified CronJob +read status of the specified ScheduledJob ### Example ```python @@ -1011,22 +1839,22 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the CronJob +name = 'name_example' # str | name of the ScheduledJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.read_namespaced_cron_job_status(name, namespace, pretty=pretty) + api_response = api_instance.read_namespaced_scheduled_job_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->read_namespaced_cron_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->read_namespaced_scheduled_job_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CronJob | + **name** | **str**| name of the ScheduledJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] @@ -1045,12 +1873,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_scheduled_job** -> V2alpha1CronJob read_namespaced_scheduled_job(name, namespace, pretty=pretty, exact=exact, export=export) +# **replace_namespaced_cron_job** +> V2alpha1CronJob replace_namespaced_cron_job(name, namespace, body, pretty=pretty) -read the specified ScheduledJob +replace the specified CronJob ### Example ```python @@ -1067,28 +1895,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the ScheduledJob +name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_scheduled_job(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.replace_namespaced_cron_job(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->read_namespaced_scheduled_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->replace_namespaced_cron_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ScheduledJob | + **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -1105,12 +1931,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_scheduled_job_status** -> V2alpha1CronJob read_namespaced_scheduled_job_status(name, namespace, pretty=pretty) +# **replace_namespaced_cron_job_status** +> V2alpha1CronJob replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty) -read status of the specified ScheduledJob +replace status of the specified CronJob ### Example ```python @@ -1127,23 +1953,25 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the ScheduledJob +name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.read_namespaced_scheduled_job_status(name, namespace, pretty=pretty) + api_response = api_instance.replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->read_namespaced_scheduled_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->replace_namespaced_cron_job_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ScheduledJob | + **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1161,12 +1989,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_cron_job** -> V2alpha1CronJob replace_namespaced_cron_job(name, namespace, body, pretty=pretty) +# **replace_namespaced_job** +> V2alpha1Job replace_namespaced_job(name, namespace, body, pretty=pretty) -replace the specified CronJob +replace the specified Job ### Example ```python @@ -1183,30 +2011,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the CronJob +name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | +body = kubernetes.client.V2alpha1Job() # V2alpha1Job | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_cron_job(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_job(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->replace_namespaced_cron_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->replace_namespaced_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CronJob | + **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | + **body** | [**V2alpha1Job**](V2alpha1Job.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V2alpha1CronJob**](V2alpha1CronJob.md) +[**V2alpha1Job**](V2alpha1Job.md) ### Authorization @@ -1219,12 +2047,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_cron_job_status** -> V2alpha1CronJob replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty) +# **replace_namespaced_job_status** +> V2alpha1Job replace_namespaced_job_status(name, namespace, body, pretty=pretty) -replace status of the specified CronJob +replace status of the specified Job ### Example ```python @@ -1241,30 +2069,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the CronJob +name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | +body = kubernetes.client.V2alpha1Job() # V2alpha1Job | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_job_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->replace_namespaced_cron_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->replace_namespaced_job_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CronJob | + **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | + **body** | [**V2alpha1Job**](V2alpha1Job.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V2alpha1CronJob**](V2alpha1CronJob.md) +[**V2alpha1Job**](V2alpha1Job.md) ### Authorization diff --git a/kubernetes/docs/CertificatesApi.md b/kubernetes/docs/CertificatesApi.md index 039f87d85b..2bebfabb07 100644 --- a/kubernetes/docs/CertificatesApi.md +++ b/kubernetes/docs/CertificatesApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> V1APIGroup get_api_group() +> UnversionedAPIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) ### Authorization diff --git a/kubernetes/docs/CertificatesV1alpha1Api.md b/kubernetes/docs/CertificatesV1alpha1Api.md new file mode 100644 index 0000000000..6a253cb085 --- /dev/null +++ b/kubernetes/docs/CertificatesV1alpha1Api.md @@ -0,0 +1,586 @@ +# kubernetes.client.CertificatesV1alpha1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_certificate_signing_request**](CertificatesV1alpha1Api.md#create_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | +[**delete_certificate_signing_request**](CertificatesV1alpha1Api.md#delete_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +[**delete_collection_certificate_signing_request**](CertificatesV1alpha1Api.md#delete_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | +[**get_api_resources**](CertificatesV1alpha1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | +[**list_certificate_signing_request**](CertificatesV1alpha1Api.md#list_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | +[**patch_certificate_signing_request**](CertificatesV1alpha1Api.md#patch_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +[**read_certificate_signing_request**](CertificatesV1alpha1Api.md#read_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +[**replace_certificate_signing_request**](CertificatesV1alpha1Api.md#replace_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | +[**replace_certificate_signing_request_approval**](CertificatesV1alpha1Api.md#replace_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/approval | +[**replace_certificate_signing_request_status**](CertificatesV1alpha1Api.md#replace_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/status | + + +# **create_certificate_signing_request** +> V1alpha1CertificateSigningRequest create_certificate_signing_request(body, pretty=pretty) + + + +create a CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CertificatesV1alpha1Api() +body = kubernetes.client.V1alpha1CertificateSigningRequest() # V1alpha1CertificateSigningRequest | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_certificate_signing_request(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->create_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_certificate_signing_request** +> UnversionedStatus delete_certificate_signing_request(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CertificatesV1alpha1Api() +name = 'name_example' # str | name of the CertificateSigningRequest +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_certificate_signing_request(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->delete_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_certificate_signing_request** +> UnversionedStatus delete_collection_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CertificatesV1alpha1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->delete_collection_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_api_resources** +> UnversionedAPIResourceList get_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CertificatesV1alpha1Api() + +try: + api_response = api_instance.get_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->get_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_certificate_signing_request** +> V1alpha1CertificateSigningRequestList list_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CertificatesV1alpha1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->list_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequestList**](V1alpha1CertificateSigningRequestList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_certificate_signing_request** +> V1alpha1CertificateSigningRequest patch_certificate_signing_request(name, body, pretty=pretty) + + + +partially update the specified CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CertificatesV1alpha1Api() +name = 'name_example' # str | name of the CertificateSigningRequest +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_certificate_signing_request(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->patch_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_certificate_signing_request** +> V1alpha1CertificateSigningRequest read_certificate_signing_request(name, pretty=pretty, exact=exact, export=export) + + + +read the specified CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CertificatesV1alpha1Api() +name = 'name_example' # str | name of the CertificateSigningRequest +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_certificate_signing_request(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->read_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_certificate_signing_request** +> V1alpha1CertificateSigningRequest replace_certificate_signing_request(name, body, pretty=pretty) + + + +replace the specified CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CertificatesV1alpha1Api() +name = 'name_example' # str | name of the CertificateSigningRequest +body = kubernetes.client.V1alpha1CertificateSigningRequest() # V1alpha1CertificateSigningRequest | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_certificate_signing_request(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->replace_certificate_signing_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **body** | [**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_certificate_signing_request_approval** +> V1alpha1CertificateSigningRequest replace_certificate_signing_request_approval(body, name, pretty=pretty) + + + +replace approval of the specified CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CertificatesV1alpha1Api() +body = kubernetes.client.V1alpha1CertificateSigningRequest() # V1alpha1CertificateSigningRequest | +name = 'name_example' # str | name of the CertificateSigningRequest +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_certificate_signing_request_approval(body, name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->replace_certificate_signing_request_approval: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md)| | + **name** | **str**| name of the CertificateSigningRequest | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_certificate_signing_request_status** +> V1alpha1CertificateSigningRequest replace_certificate_signing_request_status(body, name, pretty=pretty) + + + +replace status of the specified CertificateSigningRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CertificatesV1alpha1Api() +body = kubernetes.client.V1alpha1CertificateSigningRequest() # V1alpha1CertificateSigningRequest | +name = 'name_example' # str | name of the CertificateSigningRequest +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_certificate_signing_request_status(body, name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CertificatesV1alpha1Api->replace_certificate_signing_request_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md)| | + **name** | **str**| name of the CertificateSigningRequest | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/CertificatesV1beta1Api.md b/kubernetes/docs/CertificatesV1beta1Api.md deleted file mode 100644 index bd2ec65d4b..0000000000 --- a/kubernetes/docs/CertificatesV1beta1Api.md +++ /dev/null @@ -1,588 +0,0 @@ -# kubernetes.client.CertificatesV1beta1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_certificate_signing_request**](CertificatesV1beta1Api.md#create_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | -[**delete_certificate_signing_request**](CertificatesV1beta1Api.md#delete_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -[**delete_collection_certificate_signing_request**](CertificatesV1beta1Api.md#delete_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | -[**get_api_resources**](CertificatesV1beta1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1beta1/ | -[**list_certificate_signing_request**](CertificatesV1beta1Api.md#list_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | -[**patch_certificate_signing_request**](CertificatesV1beta1Api.md#patch_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -[**read_certificate_signing_request**](CertificatesV1beta1Api.md#read_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -[**replace_certificate_signing_request**](CertificatesV1beta1Api.md#replace_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -[**replace_certificate_signing_request_approval**](CertificatesV1beta1Api.md#replace_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval | -[**replace_certificate_signing_request_status**](CertificatesV1beta1Api.md#replace_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status | - - -# **create_certificate_signing_request** -> V1beta1CertificateSigningRequest create_certificate_signing_request(body, pretty=pretty) - - - -create a CertificateSigningRequest - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api() -body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_certificate_signing_request(body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->create_certificate_signing_request: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_certificate_signing_request** -> V1Status delete_certificate_signing_request(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a CertificateSigningRequest - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api() -name = 'name_example' # str | name of the CertificateSigningRequest -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_certificate_signing_request(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->delete_certificate_signing_request: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_certificate_signing_request** -> V1Status delete_collection_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -delete collection of CertificateSigningRequest - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api() -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.delete_collection_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->delete_collection_certificate_signing_request: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_api_resources** -> V1APIResourceList get_api_resources() - - - -get available resources - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api() - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->get_api_resources: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_certificate_signing_request** -> V1beta1CertificateSigningRequestList list_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind CertificateSigningRequest - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api() -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->list_certificate_signing_request: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequestList**](V1beta1CertificateSigningRequestList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_certificate_signing_request** -> V1beta1CertificateSigningRequest patch_certificate_signing_request(name, body, pretty=pretty) - - - -partially update the specified CertificateSigningRequest - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api() -name = 'name_example' # str | name of the CertificateSigningRequest -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_certificate_signing_request(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->patch_certificate_signing_request: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_certificate_signing_request** -> V1beta1CertificateSigningRequest read_certificate_signing_request(name, pretty=pretty, exact=exact, export=export) - - - -read the specified CertificateSigningRequest - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api() -name = 'name_example' # str | name of the CertificateSigningRequest -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) - -try: - api_response = api_instance.read_certificate_signing_request(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->read_certificate_signing_request: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_certificate_signing_request** -> V1beta1CertificateSigningRequest replace_certificate_signing_request(name, body, pretty=pretty) - - - -replace the specified CertificateSigningRequest - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api() -name = 'name_example' # str | name of the CertificateSigningRequest -body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_certificate_signing_request(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->replace_certificate_signing_request: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | [**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_certificate_signing_request_approval** -> V1beta1CertificateSigningRequest replace_certificate_signing_request_approval(name, body, pretty=pretty) - - - -replace approval of the specified CertificateSigningRequest - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api() -name = 'name_example' # str | name of the CertificateSigningRequest -body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_certificate_signing_request_approval(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->replace_certificate_signing_request_approval: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | [**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_certificate_signing_request_status** -> V1beta1CertificateSigningRequest replace_certificate_signing_request_status(name, body, pretty=pretty) - - - -replace status of the specified CertificateSigningRequest - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api() -name = 'name_example' # str | name of the CertificateSigningRequest -body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_certificate_signing_request_status(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->replace_certificate_signing_request_status: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | [**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/CoreApi.md b/kubernetes/docs/CoreApi.md index 07cc530107..a0e62c2eeb 100644 --- a/kubernetes/docs/CoreApi.md +++ b/kubernetes/docs/CoreApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_versions** -> V1APIVersions get_api_versions() +> UnversionedAPIVersions get_api_versions() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIVersions**](V1APIVersions.md) +[**UnversionedAPIVersions**](UnversionedAPIVersions.md) ### Authorization diff --git a/kubernetes/docs/CoreV1Api.md b/kubernetes/docs/CoreV1Api.md index 3dcc3e89ad..adddc9a770 100644 --- a/kubernetes/docs/CoreV1Api.md +++ b/kubernetes/docs/CoreV1Api.md @@ -46,6 +46,11 @@ Method | HTTP request | Description [**connect_put_namespaced_service_proxy_with_path**](CoreV1Api.md#connect_put_namespaced_service_proxy_with_path) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | [**connect_put_node_proxy**](CoreV1Api.md#connect_put_node_proxy) | **PUT** /api/v1/nodes/{name}/proxy | [**connect_put_node_proxy_with_path**](CoreV1Api.md#connect_put_node_proxy_with_path) | **PUT** /api/v1/nodes/{name}/proxy/{path} | +[**create_binding_for_all_namespaces**](CoreV1Api.md#create_binding_for_all_namespaces) | **POST** /api/v1/bindings | +[**create_config_map_for_all_namespaces**](CoreV1Api.md#create_config_map_for_all_namespaces) | **POST** /api/v1/configmaps | +[**create_endpoints_for_all_namespaces**](CoreV1Api.md#create_endpoints_for_all_namespaces) | **POST** /api/v1/endpoints | +[**create_event_for_all_namespaces**](CoreV1Api.md#create_event_for_all_namespaces) | **POST** /api/v1/events | +[**create_limit_range_for_all_namespaces**](CoreV1Api.md#create_limit_range_for_all_namespaces) | **POST** /api/v1/limitranges | [**create_namespace**](CoreV1Api.md#create_namespace) | **POST** /api/v1/namespaces | [**create_namespaced_binding**](CoreV1Api.md#create_namespaced_binding) | **POST** /api/v1/namespaces/{namespace}/bindings | [**create_namespaced_binding_binding**](CoreV1Api.md#create_namespaced_binding_binding) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/binding | @@ -64,6 +69,15 @@ Method | HTTP request | Description [**create_namespaced_service_account**](CoreV1Api.md#create_namespaced_service_account) | **POST** /api/v1/namespaces/{namespace}/serviceaccounts | [**create_node**](CoreV1Api.md#create_node) | **POST** /api/v1/nodes | [**create_persistent_volume**](CoreV1Api.md#create_persistent_volume) | **POST** /api/v1/persistentvolumes | +[**create_persistent_volume_claim_for_all_namespaces**](CoreV1Api.md#create_persistent_volume_claim_for_all_namespaces) | **POST** /api/v1/persistentvolumeclaims | +[**create_pod_for_all_namespaces**](CoreV1Api.md#create_pod_for_all_namespaces) | **POST** /api/v1/pods | +[**create_pod_template_for_all_namespaces**](CoreV1Api.md#create_pod_template_for_all_namespaces) | **POST** /api/v1/podtemplates | +[**create_replication_controller_for_all_namespaces**](CoreV1Api.md#create_replication_controller_for_all_namespaces) | **POST** /api/v1/replicationcontrollers | +[**create_resource_quota_for_all_namespaces**](CoreV1Api.md#create_resource_quota_for_all_namespaces) | **POST** /api/v1/resourcequotas | +[**create_secret_for_all_namespaces**](CoreV1Api.md#create_secret_for_all_namespaces) | **POST** /api/v1/secrets | +[**create_security_context_constraints**](CoreV1Api.md#create_security_context_constraints) | **POST** /api/v1/securitycontextconstraints | +[**create_service_account_for_all_namespaces**](CoreV1Api.md#create_service_account_for_all_namespaces) | **POST** /api/v1/serviceaccounts | +[**create_service_for_all_namespaces**](CoreV1Api.md#create_service_for_all_namespaces) | **POST** /api/v1/services | [**delete_collection_namespace**](CoreV1Api.md#delete_collection_namespace) | **DELETE** /api/v1/namespaces | [**delete_collection_namespaced_config_map**](CoreV1Api.md#delete_collection_namespaced_config_map) | **DELETE** /api/v1/namespaces/{namespace}/configmaps | [**delete_collection_namespaced_endpoints**](CoreV1Api.md#delete_collection_namespaced_endpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints | @@ -78,6 +92,7 @@ Method | HTTP request | Description [**delete_collection_namespaced_service_account**](CoreV1Api.md#delete_collection_namespaced_service_account) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts | [**delete_collection_node**](CoreV1Api.md#delete_collection_node) | **DELETE** /api/v1/nodes | [**delete_collection_persistent_volume**](CoreV1Api.md#delete_collection_persistent_volume) | **DELETE** /api/v1/persistentvolumes | +[**delete_collection_security_context_constraints**](CoreV1Api.md#delete_collection_security_context_constraints) | **DELETE** /api/v1/securitycontextconstraints | [**delete_namespace**](CoreV1Api.md#delete_namespace) | **DELETE** /api/v1/namespaces/{name} | [**delete_namespaced_config_map**](CoreV1Api.md#delete_namespaced_config_map) | **DELETE** /api/v1/namespaces/{namespace}/configmaps/{name} | [**delete_namespaced_endpoints**](CoreV1Api.md#delete_namespaced_endpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints/{name} | @@ -93,6 +108,7 @@ Method | HTTP request | Description [**delete_namespaced_service_account**](CoreV1Api.md#delete_namespaced_service_account) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | [**delete_node**](CoreV1Api.md#delete_node) | **DELETE** /api/v1/nodes/{name} | [**delete_persistent_volume**](CoreV1Api.md#delete_persistent_volume) | **DELETE** /api/v1/persistentvolumes/{name} | +[**delete_security_context_constraints**](CoreV1Api.md#delete_security_context_constraints) | **DELETE** /api/v1/securitycontextconstraints/{name} | [**get_api_resources**](CoreV1Api.md#get_api_resources) | **GET** /api/v1/ | [**list_component_status**](CoreV1Api.md#list_component_status) | **GET** /api/v1/componentstatuses | [**list_config_map_for_all_namespaces**](CoreV1Api.md#list_config_map_for_all_namespaces) | **GET** /api/v1/configmaps | @@ -120,6 +136,7 @@ Method | HTTP request | Description [**list_replication_controller_for_all_namespaces**](CoreV1Api.md#list_replication_controller_for_all_namespaces) | **GET** /api/v1/replicationcontrollers | [**list_resource_quota_for_all_namespaces**](CoreV1Api.md#list_resource_quota_for_all_namespaces) | **GET** /api/v1/resourcequotas | [**list_secret_for_all_namespaces**](CoreV1Api.md#list_secret_for_all_namespaces) | **GET** /api/v1/secrets | +[**list_security_context_constraints**](CoreV1Api.md#list_security_context_constraints) | **GET** /api/v1/securitycontextconstraints | [**list_service_account_for_all_namespaces**](CoreV1Api.md#list_service_account_for_all_namespaces) | **GET** /api/v1/serviceaccounts | [**list_service_for_all_namespaces**](CoreV1Api.md#list_service_for_all_namespaces) | **GET** /api/v1/services | [**patch_namespace**](CoreV1Api.md#patch_namespace) | **PATCH** /api/v1/namespaces/{name} | @@ -146,6 +163,7 @@ Method | HTTP request | Description [**patch_node_status**](CoreV1Api.md#patch_node_status) | **PATCH** /api/v1/nodes/{name}/status | [**patch_persistent_volume**](CoreV1Api.md#patch_persistent_volume) | **PATCH** /api/v1/persistentvolumes/{name} | [**patch_persistent_volume_status**](CoreV1Api.md#patch_persistent_volume_status) | **PATCH** /api/v1/persistentvolumes/{name}/status | +[**patch_security_context_constraints**](CoreV1Api.md#patch_security_context_constraints) | **PATCH** /api/v1/securitycontextconstraints/{name} | [**proxy_delete_namespaced_pod**](CoreV1Api.md#proxy_delete_namespaced_pod) | **DELETE** /api/v1/proxy/namespaces/{namespace}/pods/{name} | [**proxy_delete_namespaced_pod_with_path**](CoreV1Api.md#proxy_delete_namespaced_pod_with_path) | **DELETE** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | [**proxy_delete_namespaced_service**](CoreV1Api.md#proxy_delete_namespaced_service) | **DELETE** /api/v1/proxy/namespaces/{namespace}/services/{name} | @@ -170,12 +188,6 @@ Method | HTTP request | Description [**proxy_options_namespaced_service_with_path**](CoreV1Api.md#proxy_options_namespaced_service_with_path) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | [**proxy_options_node**](CoreV1Api.md#proxy_options_node) | **OPTIONS** /api/v1/proxy/nodes/{name} | [**proxy_options_node_with_path**](CoreV1Api.md#proxy_options_node_with_path) | **OPTIONS** /api/v1/proxy/nodes/{name}/{path} | -[**proxy_patch_namespaced_pod**](CoreV1Api.md#proxy_patch_namespaced_pod) | **PATCH** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -[**proxy_patch_namespaced_pod_with_path**](CoreV1Api.md#proxy_patch_namespaced_pod_with_path) | **PATCH** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -[**proxy_patch_namespaced_service**](CoreV1Api.md#proxy_patch_namespaced_service) | **PATCH** /api/v1/proxy/namespaces/{namespace}/services/{name} | -[**proxy_patch_namespaced_service_with_path**](CoreV1Api.md#proxy_patch_namespaced_service_with_path) | **PATCH** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -[**proxy_patch_node**](CoreV1Api.md#proxy_patch_node) | **PATCH** /api/v1/proxy/nodes/{name} | -[**proxy_patch_node_with_path**](CoreV1Api.md#proxy_patch_node_with_path) | **PATCH** /api/v1/proxy/nodes/{name}/{path} | [**proxy_post_namespaced_pod**](CoreV1Api.md#proxy_post_namespaced_pod) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name} | [**proxy_post_namespaced_pod_with_path**](CoreV1Api.md#proxy_post_namespaced_pod_with_path) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | [**proxy_post_namespaced_service**](CoreV1Api.md#proxy_post_namespaced_service) | **POST** /api/v1/proxy/namespaces/{namespace}/services/{name} | @@ -214,6 +226,7 @@ Method | HTTP request | Description [**read_node_status**](CoreV1Api.md#read_node_status) | **GET** /api/v1/nodes/{name}/status | [**read_persistent_volume**](CoreV1Api.md#read_persistent_volume) | **GET** /api/v1/persistentvolumes/{name} | [**read_persistent_volume_status**](CoreV1Api.md#read_persistent_volume_status) | **GET** /api/v1/persistentvolumes/{name}/status | +[**read_security_context_constraints**](CoreV1Api.md#read_security_context_constraints) | **GET** /api/v1/securitycontextconstraints/{name} | [**replace_namespace**](CoreV1Api.md#replace_namespace) | **PUT** /api/v1/namespaces/{name} | [**replace_namespace_finalize**](CoreV1Api.md#replace_namespace_finalize) | **PUT** /api/v1/namespaces/{name}/finalize | [**replace_namespace_status**](CoreV1Api.md#replace_namespace_status) | **PUT** /api/v1/namespaces/{name}/status | @@ -239,6 +252,7 @@ Method | HTTP request | Description [**replace_node_status**](CoreV1Api.md#replace_node_status) | **PUT** /api/v1/nodes/{name}/status | [**replace_persistent_volume**](CoreV1Api.md#replace_persistent_volume) | **PUT** /api/v1/persistentvolumes/{name} | [**replace_persistent_volume_status**](CoreV1Api.md#replace_persistent_volume_status) | **PUT** /api/v1/persistentvolumes/{name}/status | +[**replace_security_context_constraints**](CoreV1Api.md#replace_security_context_constraints) | **PUT** /api/v1/securitycontextconstraints/{name} | # **connect_delete_namespaced_pod_proxy** @@ -710,7 +724,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_get_namespaced_pod_portforward** -> str connect_get_namespaced_pod_portforward(name, namespace, ports=ports) +> str connect_get_namespaced_pod_portforward(name, namespace) @@ -733,10 +747,9 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -ports = 56 # int | List of ports to forward Required when using WebSockets (optional) try: - api_response = api_instance.connect_get_namespaced_pod_portforward(name, namespace, ports=ports) + api_response = api_instance.connect_get_namespaced_pod_portforward(name, namespace) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_get_namespaced_pod_portforward: %s\n" % e) @@ -748,7 +761,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **ports** | **int**| List of ports to forward Required when using WebSockets | [optional] ### Return type @@ -1910,7 +1922,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_post_namespaced_pod_portforward** -> str connect_post_namespaced_pod_portforward(name, namespace, ports=ports) +> str connect_post_namespaced_pod_portforward(name, namespace) @@ -1933,10 +1945,9 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -ports = 56 # int | List of ports to forward Required when using WebSockets (optional) try: - api_response = api_instance.connect_post_namespaced_pod_portforward(name, namespace, ports=ports) + api_response = api_instance.connect_post_namespaced_pod_portforward(name, namespace) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_post_namespaced_pod_portforward: %s\n" % e) @@ -1948,7 +1959,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **ports** | **int**| List of ports to forward Required when using WebSockets | [optional] ### Return type @@ -2641,12 +2651,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespace** -> V1Namespace create_namespace(body, pretty=pretty) +# **create_binding_for_all_namespaces** +> V1Binding create_binding_for_all_namespaces(body, pretty=pretty) -create a Namespace +create a Binding ### Example ```python @@ -2663,26 +2673,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -body = kubernetes.client.V1Namespace() # V1Namespace | +body = kubernetes.client.V1Binding() # V1Binding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespace(body, pretty=pretty) + api_response = api_instance.create_binding_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespace: %s\n" % e) + print("Exception when calling CoreV1Api->create_binding_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1Namespace**](V1Namespace.md)| | + **body** | [**V1Binding**](V1Binding.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Namespace**](V1Namespace.md) +[**V1Binding**](V1Binding.md) ### Authorization @@ -2695,12 +2705,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_binding** -> V1Binding create_namespaced_binding(namespace, body, pretty=pretty) +# **create_config_map_for_all_namespaces** +> V1ConfigMap create_config_map_for_all_namespaces(body, pretty=pretty) -create a Binding +create a ConfigMap ### Example ```python @@ -2717,28 +2727,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Binding() # V1Binding | +body = kubernetes.client.V1ConfigMap() # V1ConfigMap | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_binding(namespace, body, pretty=pretty) + api_response = api_instance.create_config_map_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_binding: %s\n" % e) + print("Exception when calling CoreV1Api->create_config_map_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Binding**](V1Binding.md)| | + **body** | [**V1ConfigMap**](V1ConfigMap.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Binding**](V1Binding.md) +[**V1ConfigMap**](V1ConfigMap.md) ### Authorization @@ -2751,12 +2759,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_binding_binding** -> V1Binding create_namespaced_binding_binding(name, namespace, body, pretty=pretty) +# **create_endpoints_for_all_namespaces** +> V1Endpoints create_endpoints_for_all_namespaces(body, pretty=pretty) -create binding of a Binding +create Endpoints ### Example ```python @@ -2773,30 +2781,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Binding -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Binding() # V1Binding | +body = kubernetes.client.V1Endpoints() # V1Endpoints | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_binding_binding(name, namespace, body, pretty=pretty) + api_response = api_instance.create_endpoints_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_binding_binding: %s\n" % e) + print("Exception when calling CoreV1Api->create_endpoints_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Binding | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Binding**](V1Binding.md)| | + **body** | [**V1Endpoints**](V1Endpoints.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Binding**](V1Binding.md) +[**V1Endpoints**](V1Endpoints.md) ### Authorization @@ -2809,12 +2813,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_config_map** -> V1ConfigMap create_namespaced_config_map(namespace, body, pretty=pretty) +# **create_event_for_all_namespaces** +> V1Event create_event_for_all_namespaces(body, pretty=pretty) -create a ConfigMap +create an Event ### Example ```python @@ -2831,28 +2835,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1ConfigMap() # V1ConfigMap | +body = kubernetes.client.V1Event() # V1Event | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_config_map(namespace, body, pretty=pretty) + api_response = api_instance.create_event_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_config_map: %s\n" % e) + print("Exception when calling CoreV1Api->create_event_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1ConfigMap**](V1ConfigMap.md)| | + **body** | [**V1Event**](V1Event.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1ConfigMap**](V1ConfigMap.md) +[**V1Event**](V1Event.md) ### Authorization @@ -2865,12 +2867,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_endpoints** -> V1Endpoints create_namespaced_endpoints(namespace, body, pretty=pretty) +# **create_limit_range_for_all_namespaces** +> V1LimitRange create_limit_range_for_all_namespaces(body, pretty=pretty) -create Endpoints +create a LimitRange ### Example ```python @@ -2887,28 +2889,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Endpoints() # V1Endpoints | +body = kubernetes.client.V1LimitRange() # V1LimitRange | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_endpoints(namespace, body, pretty=pretty) + api_response = api_instance.create_limit_range_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_endpoints: %s\n" % e) + print("Exception when calling CoreV1Api->create_limit_range_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Endpoints**](V1Endpoints.md)| | + **body** | [**V1LimitRange**](V1LimitRange.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Endpoints**](V1Endpoints.md) +[**V1LimitRange**](V1LimitRange.md) ### Authorization @@ -2921,12 +2921,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_event** -> V1Event create_namespaced_event(namespace, body, pretty=pretty) +# **create_namespace** +> V1Namespace create_namespace(body, pretty=pretty) -create an Event +create a Namespace ### Example ```python @@ -2943,28 +2943,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Event() # V1Event | +body = kubernetes.client.V1Namespace() # V1Namespace | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_event(namespace, body, pretty=pretty) + api_response = api_instance.create_namespace(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_event: %s\n" % e) + print("Exception when calling CoreV1Api->create_namespace: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Event**](V1Event.md)| | + **body** | [**V1Namespace**](V1Namespace.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Event**](V1Event.md) +[**V1Namespace**](V1Namespace.md) ### Authorization @@ -2977,12 +2975,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_eviction_eviction** -> V1beta1Eviction create_namespaced_eviction_eviction(name, namespace, body, pretty=pretty) +# **create_namespaced_binding** +> V1Binding create_namespaced_binding(body, namespace, pretty=pretty) -create eviction of an Eviction +create a Binding ### Example ```python @@ -2999,30 +2997,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Eviction +body = kubernetes.client.V1Binding() # V1Binding | namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1Eviction() # V1beta1Eviction | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_eviction_eviction(name, namespace, body, pretty=pretty) + api_response = api_instance.create_namespaced_binding(body, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_eviction_eviction: %s\n" % e) + print("Exception when calling CoreV1Api->create_namespaced_binding: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Eviction | + **body** | [**V1Binding**](V1Binding.md)| | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Eviction**](V1beta1Eviction.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Eviction**](V1beta1Eviction.md) +[**V1Binding**](V1Binding.md) ### Authorization @@ -3035,12 +3031,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_limit_range** -> V1LimitRange create_namespaced_limit_range(namespace, body, pretty=pretty) +# **create_namespaced_binding_binding** +> V1Binding create_namespaced_binding_binding(body, name, namespace, pretty=pretty) -create a LimitRange +create binding of a Binding ### Example ```python @@ -3057,28 +3053,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() +body = kubernetes.client.V1Binding() # V1Binding | +name = 'name_example' # str | name of the Binding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1LimitRange() # V1LimitRange | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_limit_range(namespace, body, pretty=pretty) + api_response = api_instance.create_namespaced_binding_binding(body, name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_limit_range: %s\n" % e) + print("Exception when calling CoreV1Api->create_namespaced_binding_binding: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **body** | [**V1Binding**](V1Binding.md)| | + **name** | **str**| name of the Binding | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1LimitRange**](V1LimitRange.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1LimitRange**](V1LimitRange.md) +[**V1Binding**](V1Binding.md) ### Authorization @@ -3091,12 +3089,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_persistent_volume_claim** -> V1PersistentVolumeClaim create_namespaced_persistent_volume_claim(namespace, body, pretty=pretty) +# **create_namespaced_config_map** +> V1ConfigMap create_namespaced_config_map(namespace, body, pretty=pretty) -create a PersistentVolumeClaim +create a ConfigMap ### Example ```python @@ -3114,14 +3112,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1PersistentVolumeClaim() # V1PersistentVolumeClaim | +body = kubernetes.client.V1ConfigMap() # V1ConfigMap | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_persistent_volume_claim(namespace, body, pretty=pretty) + api_response = api_instance.create_namespaced_config_map(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_persistent_volume_claim: %s\n" % e) + print("Exception when calling CoreV1Api->create_namespaced_config_map: %s\n" % e) ``` ### Parameters @@ -3129,12 +3127,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | + **body** | [**V1ConfigMap**](V1ConfigMap.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) +[**V1ConfigMap**](V1ConfigMap.md) ### Authorization @@ -3147,12 +3145,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_pod** -> V1Pod create_namespaced_pod(namespace, body, pretty=pretty) +# **create_namespaced_endpoints** +> V1Endpoints create_namespaced_endpoints(namespace, body, pretty=pretty) -create a Pod +create Endpoints ### Example ```python @@ -3170,14 +3168,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Pod() # V1Pod | +body = kubernetes.client.V1Endpoints() # V1Endpoints | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_pod(namespace, body, pretty=pretty) + api_response = api_instance.create_namespaced_endpoints(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_pod: %s\n" % e) + print("Exception when calling CoreV1Api->create_namespaced_endpoints: %s\n" % e) ``` ### Parameters @@ -3185,12 +3183,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Pod**](V1Pod.md)| | + **body** | [**V1Endpoints**](V1Endpoints.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Pod**](V1Pod.md) +[**V1Endpoints**](V1Endpoints.md) ### Authorization @@ -3203,12 +3201,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_pod_template** -> V1PodTemplate create_namespaced_pod_template(namespace, body, pretty=pretty) +# **create_namespaced_event** +> V1Event create_namespaced_event(namespace, body, pretty=pretty) -create a PodTemplate +create an Event ### Example ```python @@ -3226,14 +3224,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1PodTemplate() # V1PodTemplate | +body = kubernetes.client.V1Event() # V1Event | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_pod_template(namespace, body, pretty=pretty) + api_response = api_instance.create_namespaced_event(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_pod_template: %s\n" % e) + print("Exception when calling CoreV1Api->create_namespaced_event: %s\n" % e) ``` ### Parameters @@ -3241,12 +3239,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1PodTemplate**](V1PodTemplate.md)| | + **body** | [**V1Event**](V1Event.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1PodTemplate**](V1PodTemplate.md) +[**V1Event**](V1Event.md) ### Authorization @@ -3259,12 +3257,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_replication_controller** -> V1ReplicationController create_namespaced_replication_controller(namespace, body, pretty=pretty) +# **create_namespaced_eviction_eviction** +> V1beta1Eviction create_namespaced_eviction_eviction(body, name, namespace, pretty=pretty) -create a ReplicationController +create eviction of an Eviction ### Example ```python @@ -3281,28 +3279,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() +body = kubernetes.client.V1beta1Eviction() # V1beta1Eviction | +name = 'name_example' # str | name of the Eviction namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1ReplicationController() # V1ReplicationController | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_replication_controller(namespace, body, pretty=pretty) + api_response = api_instance.create_namespaced_eviction_eviction(body, name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_replication_controller: %s\n" % e) + print("Exception when calling CoreV1Api->create_namespaced_eviction_eviction: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1Eviction**](V1beta1Eviction.md)| | + **name** | **str**| name of the Eviction | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1ReplicationController**](V1ReplicationController.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1ReplicationController**](V1ReplicationController.md) +[**V1beta1Eviction**](V1beta1Eviction.md) ### Authorization @@ -3315,12 +3315,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_resource_quota** -> V1ResourceQuota create_namespaced_resource_quota(namespace, body, pretty=pretty) +# **create_namespaced_limit_range** +> V1LimitRange create_namespaced_limit_range(namespace, body, pretty=pretty) -create a ResourceQuota +create a LimitRange ### Example ```python @@ -3338,14 +3338,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1ResourceQuota() # V1ResourceQuota | +body = kubernetes.client.V1LimitRange() # V1LimitRange | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_resource_quota(namespace, body, pretty=pretty) + api_response = api_instance.create_namespaced_limit_range(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_resource_quota: %s\n" % e) + print("Exception when calling CoreV1Api->create_namespaced_limit_range: %s\n" % e) ``` ### Parameters @@ -3353,12 +3353,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | + **body** | [**V1LimitRange**](V1LimitRange.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1ResourceQuota**](V1ResourceQuota.md) +[**V1LimitRange**](V1LimitRange.md) ### Authorization @@ -3371,12 +3371,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_secret** -> V1Secret create_namespaced_secret(namespace, body, pretty=pretty) +# **create_namespaced_persistent_volume_claim** +> V1PersistentVolumeClaim create_namespaced_persistent_volume_claim(namespace, body, pretty=pretty) -create a Secret +create a PersistentVolumeClaim ### Example ```python @@ -3394,14 +3394,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Secret() # V1Secret | +body = kubernetes.client.V1PersistentVolumeClaim() # V1PersistentVolumeClaim | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_secret(namespace, body, pretty=pretty) + api_response = api_instance.create_namespaced_persistent_volume_claim(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_secret: %s\n" % e) + print("Exception when calling CoreV1Api->create_namespaced_persistent_volume_claim: %s\n" % e) ``` ### Parameters @@ -3409,12 +3409,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Secret**](V1Secret.md)| | + **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Secret**](V1Secret.md) +[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) ### Authorization @@ -3427,12 +3427,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_service** -> V1Service create_namespaced_service(namespace, body, pretty=pretty) +# **create_namespaced_pod** +> V1Pod create_namespaced_pod(namespace, body, pretty=pretty) -create a Service +create a Pod ### Example ```python @@ -3450,14 +3450,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Service() # V1Service | +body = kubernetes.client.V1Pod() # V1Pod | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_service(namespace, body, pretty=pretty) + api_response = api_instance.create_namespaced_pod(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_service: %s\n" % e) + print("Exception when calling CoreV1Api->create_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -3465,12 +3465,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Service**](V1Service.md)| | + **body** | [**V1Pod**](V1Pod.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Service**](V1Service.md) +[**V1Pod**](V1Pod.md) ### Authorization @@ -3483,12 +3483,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_service_account** -> V1ServiceAccount create_namespaced_service_account(namespace, body, pretty=pretty) +# **create_namespaced_pod_template** +> V1PodTemplate create_namespaced_pod_template(namespace, body, pretty=pretty) -create a ServiceAccount +create a PodTemplate ### Example ```python @@ -3506,14 +3506,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1ServiceAccount() # V1ServiceAccount | +body = kubernetes.client.V1PodTemplate() # V1PodTemplate | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_service_account(namespace, body, pretty=pretty) + api_response = api_instance.create_namespaced_pod_template(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_service_account: %s\n" % e) + print("Exception when calling CoreV1Api->create_namespaced_pod_template: %s\n" % e) ``` ### Parameters @@ -3521,12 +3521,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | + **body** | [**V1PodTemplate**](V1PodTemplate.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1ServiceAccount**](V1ServiceAccount.md) +[**V1PodTemplate**](V1PodTemplate.md) ### Authorization @@ -3539,12 +3539,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_node** -> V1Node create_node(body, pretty=pretty) +# **create_namespaced_replication_controller** +> V1ReplicationController create_namespaced_replication_controller(namespace, body, pretty=pretty) -create a Node +create a ReplicationController ### Example ```python @@ -3561,26 +3561,792 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -body = kubernetes.client.V1Node() # V1Node | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1ReplicationController() # V1ReplicationController | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_node(body, pretty=pretty) + api_response = api_instance.create_namespaced_replication_controller(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_node: %s\n" % e) + print("Exception when calling CoreV1Api->create_namespaced_replication_controller: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1Node**](V1Node.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ReplicationController**](V1ReplicationController.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ReplicationController**](V1ReplicationController.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_resource_quota** +> V1ResourceQuota create_namespaced_resource_quota(namespace, body, pretty=pretty) + + + +create a ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1ResourceQuota() # V1ResourceQuota | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_resource_quota(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ResourceQuota**](V1ResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_secret** +> V1Secret create_namespaced_secret(namespace, body, pretty=pretty) + + + +create a Secret + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Secret() # V1Secret | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_secret(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_secret: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Secret**](V1Secret.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Secret**](V1Secret.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_service** +> V1Service create_namespaced_service(namespace, body, pretty=pretty) + + + +create a Service + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Service() # V1Service | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_service(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_service: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Service**](V1Service.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Service**](V1Service.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_service_account** +> V1ServiceAccount create_namespaced_service_account(namespace, body, pretty=pretty) + + + +create a ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1ServiceAccount() # V1ServiceAccount | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_service_account(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_service_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ServiceAccount**](V1ServiceAccount.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_node** +> V1Node create_node(body, pretty=pretty) + + + +create a Node + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +body = kubernetes.client.V1Node() # V1Node | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_node(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_node: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Node**](V1Node.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Node**](V1Node.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_persistent_volume** +> V1PersistentVolume create_persistent_volume(body, pretty=pretty) + + + +create a PersistentVolume + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +body = kubernetes.client.V1PersistentVolume() # V1PersistentVolume | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_persistent_volume(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_persistent_volume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolume**](V1PersistentVolume.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_persistent_volume_claim_for_all_namespaces** +> V1PersistentVolumeClaim create_persistent_volume_claim_for_all_namespaces(body, pretty=pretty) + + + +create a PersistentVolumeClaim + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +body = kubernetes.client.V1PersistentVolumeClaim() # V1PersistentVolumeClaim | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_persistent_volume_claim_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_persistent_volume_claim_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_pod_for_all_namespaces** +> V1Pod create_pod_for_all_namespaces(body, pretty=pretty) + + + +create a Pod + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +body = kubernetes.client.V1Pod() # V1Pod | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_pod_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_pod_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Pod**](V1Pod.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Pod**](V1Pod.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_pod_template_for_all_namespaces** +> V1PodTemplate create_pod_template_for_all_namespaces(body, pretty=pretty) + + + +create a PodTemplate + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +body = kubernetes.client.V1PodTemplate() # V1PodTemplate | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_pod_template_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_pod_template_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1PodTemplate**](V1PodTemplate.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PodTemplate**](V1PodTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_replication_controller_for_all_namespaces** +> V1ReplicationController create_replication_controller_for_all_namespaces(body, pretty=pretty) + + + +create a ReplicationController + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +body = kubernetes.client.V1ReplicationController() # V1ReplicationController | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_replication_controller_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_replication_controller_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ReplicationController**](V1ReplicationController.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ReplicationController**](V1ReplicationController.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_resource_quota_for_all_namespaces** +> V1ResourceQuota create_resource_quota_for_all_namespaces(body, pretty=pretty) + + + +create a ResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +body = kubernetes.client.V1ResourceQuota() # V1ResourceQuota | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_resource_quota_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_resource_quota_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ResourceQuota**](V1ResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_secret_for_all_namespaces** +> V1Secret create_secret_for_all_namespaces(body, pretty=pretty) + + + +create a Secret + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +body = kubernetes.client.V1Secret() # V1Secret | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_secret_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_secret_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Secret**](V1Secret.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Secret**](V1Secret.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_security_context_constraints** +> V1SecurityContextConstraints create_security_context_constraints(body, pretty=pretty) + + + +create SecurityContextConstraints + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +body = kubernetes.client.V1SecurityContextConstraints() # V1SecurityContextConstraints | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_security_context_constraints(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_security_context_constraints: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1SecurityContextConstraints**](V1SecurityContextConstraints.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1SecurityContextConstraints**](V1SecurityContextConstraints.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_service_account_for_all_namespaces** +> V1ServiceAccount create_service_account_for_all_namespaces(body, pretty=pretty) + + + +create a ServiceAccount + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +body = kubernetes.client.V1ServiceAccount() # V1ServiceAccount | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_service_account_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->create_service_account_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Node**](V1Node.md) +[**V1ServiceAccount**](V1ServiceAccount.md) ### Authorization @@ -3593,12 +4359,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_persistent_volume** -> V1PersistentVolume create_persistent_volume(body, pretty=pretty) +# **create_service_for_all_namespaces** +> V1Service create_service_for_all_namespaces(body, pretty=pretty) -create a PersistentVolume +create a Service ### Example ```python @@ -3615,26 +4381,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -body = kubernetes.client.V1PersistentVolume() # V1PersistentVolume | +body = kubernetes.client.V1Service() # V1Service | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_persistent_volume(body, pretty=pretty) + api_response = api_instance.create_service_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->create_persistent_volume: %s\n" % e) + print("Exception when calling CoreV1Api->create_service_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | + **body** | [**V1Service**](V1Service.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1PersistentVolume**](V1PersistentVolume.md) +[**V1Service**](V1Service.md) ### Authorization @@ -3648,7 +4414,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespace** -> V1Status delete_collection_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3672,7 +4438,7 @@ api_instance = kubernetes.client.CoreV1Api() pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -3690,13 +4456,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -3710,7 +4476,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_config_map** -> V1Status delete_collection_namespaced_config_map(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_config_map(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3735,7 +4501,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -3754,13 +4520,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -3774,7 +4540,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_endpoints** -> V1Status delete_collection_namespaced_endpoints(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_endpoints(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3799,7 +4565,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -3818,13 +4584,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -3838,7 +4604,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_event** -> V1Status delete_collection_namespaced_event(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_event(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3863,7 +4629,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -3882,13 +4648,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -3902,7 +4668,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_limit_range** -> V1Status delete_collection_namespaced_limit_range(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_limit_range(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3927,7 +4693,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -3946,13 +4712,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -3966,7 +4732,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_persistent_volume_claim** -> V1Status delete_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3991,7 +4757,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -4010,13 +4776,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4030,7 +4796,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_pod** -> V1Status delete_collection_namespaced_pod(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_pod(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4055,7 +4821,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -4074,13 +4840,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4094,7 +4860,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_pod_template** -> V1Status delete_collection_namespaced_pod_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_pod_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4119,7 +4885,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -4138,13 +4904,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4158,7 +4924,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_replication_controller** -> V1Status delete_collection_namespaced_replication_controller(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_replication_controller(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4183,7 +4949,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -4202,13 +4968,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4222,7 +4988,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_resource_quota** -> V1Status delete_collection_namespaced_resource_quota(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_resource_quota(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4247,7 +5013,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -4266,13 +5032,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4286,7 +5052,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_secret** -> V1Status delete_collection_namespaced_secret(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_secret(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4311,7 +5077,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -4330,13 +5096,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4350,7 +5116,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_service_account** -> V1Status delete_collection_namespaced_service_account(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_service_account(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4375,7 +5141,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -4394,13 +5160,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4414,7 +5180,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_node** -> V1Status delete_collection_node(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_node(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4438,7 +5204,7 @@ api_instance = kubernetes.client.CoreV1Api() pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -4456,13 +5222,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4476,7 +5242,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_persistent_volume** -> V1Status delete_collection_persistent_volume(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_persistent_volume(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4500,7 +5266,7 @@ api_instance = kubernetes.client.CoreV1Api() pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -4518,13 +5284,75 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_security_context_constraints** +> UnversionedStatus delete_collection_security_context_constraints(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of SecurityContextConstraints + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_security_context_constraints(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_security_context_constraints: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4538,7 +5366,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespace** -> V1Status delete_namespace(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespace(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -4563,11 +5391,10 @@ name = 'name_example' # str | name of the Namespace body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespace(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespace(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespace: %s\n" % e) @@ -4581,12 +5408,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4600,7 +5426,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_config_map** -> V1Status delete_namespaced_config_map(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_config_map(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -4626,11 +5452,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_config_map(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_config_map(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_config_map: %s\n" % e) @@ -4645,12 +5470,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4664,7 +5488,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_endpoints** -> V1Status delete_namespaced_endpoints(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_endpoints(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -4690,11 +5514,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_endpoints(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_endpoints(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_endpoints: %s\n" % e) @@ -4709,12 +5532,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4728,7 +5550,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_event** -> V1Status delete_namespaced_event(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_event(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -4754,11 +5576,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_event(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_event(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_event: %s\n" % e) @@ -4773,12 +5594,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4792,7 +5612,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_limit_range** -> V1Status delete_namespaced_limit_range(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_limit_range(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -4818,11 +5638,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_limit_range(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_limit_range(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_limit_range: %s\n" % e) @@ -4837,12 +5656,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4856,7 +5674,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_persistent_volume_claim** -> V1Status delete_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -4882,11 +5700,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_persistent_volume_claim: %s\n" % e) @@ -4901,12 +5718,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4920,7 +5736,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_pod** -> V1Status delete_namespaced_pod(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_pod(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -4946,11 +5762,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_pod(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_pod(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_pod: %s\n" % e) @@ -4965,12 +5780,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -4984,7 +5798,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_pod_template** -> V1Status delete_namespaced_pod_template(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_pod_template(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -5010,11 +5824,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_pod_template(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_pod_template(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_pod_template: %s\n" % e) @@ -5029,12 +5842,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -5048,7 +5860,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_replication_controller** -> V1Status delete_namespaced_replication_controller(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_replication_controller(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -5074,11 +5886,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_replication_controller(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_replication_controller(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_replication_controller: %s\n" % e) @@ -5093,12 +5904,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -5112,7 +5922,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_resource_quota** -> V1Status delete_namespaced_resource_quota(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_resource_quota(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -5138,11 +5948,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_resource_quota(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_resource_quota(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_resource_quota: %s\n" % e) @@ -5157,12 +5966,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -5176,7 +5984,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_secret** -> V1Status delete_namespaced_secret(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_secret(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -5202,11 +6010,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_secret(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_secret(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_secret: %s\n" % e) @@ -5221,12 +6028,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -5240,7 +6046,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_service** -> V1Status delete_namespaced_service(name, namespace, pretty=pretty) +> UnversionedStatus delete_namespaced_service(name, namespace, pretty=pretty) @@ -5282,7 +6088,7 @@ Name | Type | Description | Notes ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -5296,7 +6102,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_service_account** -> V1Status delete_namespaced_service_account(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_service_account(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -5322,11 +6128,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_service_account(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_service_account(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_service_account: %s\n" % e) @@ -5341,12 +6146,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -5360,7 +6164,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_node** -> V1Status delete_node(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_node(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -5385,11 +6189,10 @@ name = 'name_example' # str | name of the Node body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_node(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_node(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_node: %s\n" % e) @@ -5400,187 +6203,14 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Node | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_persistent_volume** -> V1Status delete_persistent_volume(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a PersistentVolume - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the PersistentVolume -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_persistent_volume(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_persistent_volume: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PersistentVolume | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_api_resources** -> V1APIResourceList get_api_resources() - - - -get available resources - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api() - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->get_api_resources: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_component_status** -> V1ComponentStatusList list_component_status(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list objects of kind ComponentStatus - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_component_status(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_component_status: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1ComponentStatusList**](V1ComponentStatusList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -5589,16 +6219,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_config_map_for_all_namespaces** -> V1ConfigMapList list_config_map_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_persistent_volume** +> UnversionedStatus delete_persistent_volume(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) -list or watch objects of kind ConfigMap +delete a PersistentVolume ### Example ```python @@ -5615,34 +6245,32 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +name = 'name_example' # str | name of the PersistentVolume +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.list_config_map_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_persistent_volume(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_config_map_for_all_namespaces: %s\n" % e) + print("Exception when calling CoreV1Api->delete_persistent_volume: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **name** | **str**| name of the PersistentVolume | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1ConfigMapList**](V1ConfigMapList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -5651,16 +6279,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_endpoints_for_all_namespaces** -> V1EndpointsList list_endpoints_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_security_context_constraints** +> UnversionedStatus delete_security_context_constraints(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) -list or watch objects of kind Endpoints +delete SecurityContextConstraints ### Example ```python @@ -5677,34 +6305,32 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +name = 'name_example' # str | name of the SecurityContextConstraints +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.list_endpoints_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_security_context_constraints(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_endpoints_for_all_namespaces: %s\n" % e) + print("Exception when calling CoreV1Api->delete_security_context_constraints: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **name** | **str**| name of the SecurityContextConstraints | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1EndpointsList**](V1EndpointsList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -5713,16 +6339,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_event_for_all_namespaces** -> V1EventList list_event_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **get_api_resources** +> UnversionedAPIResourceList get_api_resources() -list or watch objects of kind Event +get available resources ### Example ```python @@ -5739,34 +6365,20 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_event_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_event_for_all_namespaces: %s\n" % e) + print("Exception when calling CoreV1Api->get_api_resources: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +This endpoint does not need any parameter. ### Return type -[**V1EventList**](V1EventList.md) +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) ### Authorization @@ -5774,17 +6386,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_limit_range_for_all_namespaces** -> V1LimitRangeList list_limit_range_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_component_status** +> V1ComponentStatusList list_component_status(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind LimitRange +list objects of kind ComponentStatus ### Example ```python @@ -5804,15 +6416,15 @@ api_instance = kubernetes.client.CoreV1Api() field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_limit_range_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_component_status(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_limit_range_for_all_namespaces: %s\n" % e) + print("Exception when calling CoreV1Api->list_component_status: %s\n" % e) ``` ### Parameters @@ -5822,13 +6434,13 @@ Name | Type | Description | Notes **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1LimitRangeList**](V1LimitRangeList.md) +[**V1ComponentStatusList**](V1ComponentStatusList.md) ### Authorization @@ -5841,12 +6453,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespace** -> V1NamespaceList list_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_config_map_for_all_namespaces** +> V1ConfigMapList list_config_map_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Namespace +list or watch objects of kind ConfigMap ### Example ```python @@ -5866,15 +6478,15 @@ api_instance = kubernetes.client.CoreV1Api() pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_config_map_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespace: %s\n" % e) + print("Exception when calling CoreV1Api->list_config_map_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -5884,13 +6496,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1NamespaceList**](V1NamespaceList.md) +[**V1ConfigMapList**](V1ConfigMapList.md) ### Authorization @@ -5903,12 +6515,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_config_map** -> V1ConfigMapList list_namespaced_config_map(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_endpoints_for_all_namespaces** +> V1EndpointsList list_endpoints_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ConfigMap +list or watch objects of kind Endpoints ### Example ```python @@ -5925,36 +6537,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_config_map(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_endpoints_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_config_map: %s\n" % e) + print("Exception when calling CoreV1Api->list_endpoints_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1ConfigMapList**](V1ConfigMapList.md) +[**V1EndpointsList**](V1EndpointsList.md) ### Authorization @@ -5967,12 +6577,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_endpoints** -> V1EndpointsList list_namespaced_endpoints(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_event_for_all_namespaces** +> V1EventList list_event_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Endpoints +list or watch objects of kind Event ### Example ```python @@ -5989,36 +6599,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_endpoints(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_event_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_endpoints: %s\n" % e) + print("Exception when calling CoreV1Api->list_event_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1EndpointsList**](V1EndpointsList.md) +[**V1EventList**](V1EventList.md) ### Authorization @@ -6031,12 +6639,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_event** -> V1EventList list_namespaced_event(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_limit_range_for_all_namespaces** +> V1LimitRangeList list_limit_range_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Event +list or watch objects of kind LimitRange ### Example ```python @@ -6053,36 +6661,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_event(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_limit_range_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_event: %s\n" % e) + print("Exception when calling CoreV1Api->list_limit_range_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1EventList**](V1EventList.md) +[**V1LimitRangeList**](V1LimitRangeList.md) ### Authorization @@ -6095,12 +6701,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_limit_range** -> V1LimitRangeList list_namespaced_limit_range(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespace** +> V1NamespaceList list_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind LimitRange +list or watch objects of kind Namespace ### Example ```python @@ -6117,36 +6723,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_limit_range(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_limit_range: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespace: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1LimitRangeList**](V1LimitRangeList.md) +[**V1NamespaceList**](V1NamespaceList.md) ### Authorization @@ -6159,12 +6763,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_persistent_volume_claim** -> V1PersistentVolumeClaimList list_namespaced_persistent_volume_claim(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_config_map** +> V1ConfigMapList list_namespaced_config_map(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind PersistentVolumeClaim +list or watch objects of kind ConfigMap ### Example ```python @@ -6185,15 +6789,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_persistent_volume_claim(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_config_map(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_persistent_volume_claim: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespaced_config_map: %s\n" % e) ``` ### Parameters @@ -6204,13 +6808,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1PersistentVolumeClaimList**](V1PersistentVolumeClaimList.md) +[**V1ConfigMapList**](V1ConfigMapList.md) ### Authorization @@ -6223,12 +6827,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_pod** -> V1PodList list_namespaced_pod(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_endpoints** +> V1EndpointsList list_namespaced_endpoints(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Pod +list or watch objects of kind Endpoints ### Example ```python @@ -6249,15 +6853,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_pod(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_endpoints(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_pod: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespaced_endpoints: %s\n" % e) ``` ### Parameters @@ -6268,13 +6872,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1PodList**](V1PodList.md) +[**V1EndpointsList**](V1EndpointsList.md) ### Authorization @@ -6287,12 +6891,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_pod_template** -> V1PodTemplateList list_namespaced_pod_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_event** +> V1EventList list_namespaced_event(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind PodTemplate +list or watch objects of kind Event ### Example ```python @@ -6313,15 +6917,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_pod_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_event(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_pod_template: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespaced_event: %s\n" % e) ``` ### Parameters @@ -6332,13 +6936,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1PodTemplateList**](V1PodTemplateList.md) +[**V1EventList**](V1EventList.md) ### Authorization @@ -6351,12 +6955,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_replication_controller** -> V1ReplicationControllerList list_namespaced_replication_controller(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_limit_range** +> V1LimitRangeList list_namespaced_limit_range(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ReplicationController +list or watch objects of kind LimitRange ### Example ```python @@ -6377,15 +6981,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_replication_controller(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_limit_range(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_replication_controller: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespaced_limit_range: %s\n" % e) ``` ### Parameters @@ -6396,13 +7000,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1ReplicationControllerList**](V1ReplicationControllerList.md) +[**V1LimitRangeList**](V1LimitRangeList.md) ### Authorization @@ -6415,12 +7019,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_resource_quota** -> V1ResourceQuotaList list_namespaced_resource_quota(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_persistent_volume_claim** +> V1PersistentVolumeClaimList list_namespaced_persistent_volume_claim(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ResourceQuota +list or watch objects of kind PersistentVolumeClaim ### Example ```python @@ -6441,15 +7045,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_resource_quota(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_persistent_volume_claim(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_resource_quota: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespaced_persistent_volume_claim: %s\n" % e) ``` ### Parameters @@ -6460,13 +7064,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1ResourceQuotaList**](V1ResourceQuotaList.md) +[**V1PersistentVolumeClaimList**](V1PersistentVolumeClaimList.md) ### Authorization @@ -6479,12 +7083,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_secret** -> V1SecretList list_namespaced_secret(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_pod** +> V1PodList list_namespaced_pod(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Secret +list or watch objects of kind Pod ### Example ```python @@ -6505,15 +7109,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_secret(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_pod(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_secret: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -6524,13 +7128,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1SecretList**](V1SecretList.md) +[**V1PodList**](V1PodList.md) ### Authorization @@ -6543,12 +7147,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_service** -> V1ServiceList list_namespaced_service(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_pod_template** +> V1PodTemplateList list_namespaced_pod_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Service +list or watch objects of kind PodTemplate ### Example ```python @@ -6569,15 +7173,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_service(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_pod_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_service: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespaced_pod_template: %s\n" % e) ``` ### Parameters @@ -6588,13 +7192,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1ServiceList**](V1ServiceList.md) +[**V1PodTemplateList**](V1PodTemplateList.md) ### Authorization @@ -6607,12 +7211,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_service_account** -> V1ServiceAccountList list_namespaced_service_account(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_replication_controller** +> V1ReplicationControllerList list_namespaced_replication_controller(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ServiceAccount +list or watch objects of kind ReplicationController ### Example ```python @@ -6633,15 +7237,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_service_account(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_replication_controller(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_service_account: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespaced_replication_controller: %s\n" % e) ``` ### Parameters @@ -6652,13 +7256,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1ServiceAccountList**](V1ServiceAccountList.md) +[**V1ReplicationControllerList**](V1ReplicationControllerList.md) ### Authorization @@ -6671,12 +7275,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_node** -> V1NodeList list_node(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_resource_quota** +> V1ResourceQuotaList list_namespaced_resource_quota(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Node +list or watch objects of kind ResourceQuota ### Example ```python @@ -6693,34 +7297,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_node(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_resource_quota(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_node: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespaced_resource_quota: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1NodeList**](V1NodeList.md) +[**V1ResourceQuotaList**](V1ResourceQuotaList.md) ### Authorization @@ -6733,12 +7339,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_persistent_volume** -> V1PersistentVolumeList list_persistent_volume(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_secret** +> V1SecretList list_namespaced_secret(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind PersistentVolume +list or watch objects of kind Secret ### Example ```python @@ -6755,34 +7361,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_persistent_volume(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_secret(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_persistent_volume: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespaced_secret: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1PersistentVolumeList**](V1PersistentVolumeList.md) +[**V1SecretList**](V1SecretList.md) ### Authorization @@ -6795,12 +7403,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_persistent_volume_claim_for_all_namespaces** -> V1PersistentVolumeClaimList list_persistent_volume_claim_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_service** +> V1ServiceList list_namespaced_service(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind PersistentVolumeClaim +list or watch objects of kind Service ### Example ```python @@ -6817,34 +7425,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_persistent_volume_claim_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_service(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_persistent_volume_claim_for_all_namespaces: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespaced_service: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1PersistentVolumeClaimList**](V1PersistentVolumeClaimList.md) +[**V1ServiceList**](V1ServiceList.md) ### Authorization @@ -6857,12 +7467,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_pod_for_all_namespaces** -> V1PodList list_pod_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_service_account** +> V1ServiceAccountList list_namespaced_service_account(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Pod +list or watch objects of kind ServiceAccount ### Example ```python @@ -6879,34 +7489,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_pod_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_service_account(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_pod_for_all_namespaces: %s\n" % e) + print("Exception when calling CoreV1Api->list_namespaced_service_account: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1PodList**](V1PodList.md) +[**V1ServiceAccountList**](V1ServiceAccountList.md) ### Authorization @@ -6919,12 +7531,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_pod_template_for_all_namespaces** -> V1PodTemplateList list_pod_template_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_node** +> V1NodeList list_node(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind PodTemplate +list or watch objects of kind Node ### Example ```python @@ -6941,34 +7553,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_pod_template_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_node(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_pod_template_for_all_namespaces: %s\n" % e) + print("Exception when calling CoreV1Api->list_node: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1PodTemplateList**](V1PodTemplateList.md) +[**V1NodeList**](V1NodeList.md) ### Authorization @@ -6981,12 +7593,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_replication_controller_for_all_namespaces** -> V1ReplicationControllerList list_replication_controller_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_persistent_volume** +> V1PersistentVolumeList list_persistent_volume(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ReplicationController +list or watch objects of kind PersistentVolume ### Example ```python @@ -7003,34 +7615,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_replication_controller_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_persistent_volume(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_replication_controller_for_all_namespaces: %s\n" % e) + print("Exception when calling CoreV1Api->list_persistent_volume: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1ReplicationControllerList**](V1ReplicationControllerList.md) +[**V1PersistentVolumeList**](V1PersistentVolumeList.md) ### Authorization @@ -7043,12 +7655,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_resource_quota_for_all_namespaces** -> V1ResourceQuotaList list_resource_quota_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_persistent_volume_claim_for_all_namespaces** +> V1PersistentVolumeClaimList list_persistent_volume_claim_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ResourceQuota +list or watch objects of kind PersistentVolumeClaim ### Example ```python @@ -7065,34 +7677,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_resource_quota_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_persistent_volume_claim_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_resource_quota_for_all_namespaces: %s\n" % e) + print("Exception when calling CoreV1Api->list_persistent_volume_claim_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1ResourceQuotaList**](V1ResourceQuotaList.md) +[**V1PersistentVolumeClaimList**](V1PersistentVolumeClaimList.md) ### Authorization @@ -7105,12 +7717,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_secret_for_all_namespaces** -> V1SecretList list_secret_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_pod_for_all_namespaces** +> V1PodList list_pod_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Secret +list or watch objects of kind Pod ### Example ```python @@ -7127,34 +7739,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_secret_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_pod_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_secret_for_all_namespaces: %s\n" % e) + print("Exception when calling CoreV1Api->list_pod_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1SecretList**](V1SecretList.md) +[**V1PodList**](V1PodList.md) ### Authorization @@ -7167,12 +7779,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_service_account_for_all_namespaces** -> V1ServiceAccountList list_service_account_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_pod_template_for_all_namespaces** +> V1PodTemplateList list_pod_template_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ServiceAccount +list or watch objects of kind PodTemplate ### Example ```python @@ -7189,34 +7801,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_service_account_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_pod_template_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_service_account_for_all_namespaces: %s\n" % e) + print("Exception when calling CoreV1Api->list_pod_template_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1ServiceAccountList**](V1ServiceAccountList.md) +[**V1PodTemplateList**](V1PodTemplateList.md) ### Authorization @@ -7229,12 +7841,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_service_for_all_namespaces** -> V1ServiceList list_service_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_replication_controller_for_all_namespaces** +> V1ReplicationControllerList list_replication_controller_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Service +list or watch objects of kind ReplicationController ### Example ```python @@ -7251,34 +7863,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_service_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_replication_controller_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->list_service_for_all_namespaces: %s\n" % e) + print("Exception when calling CoreV1Api->list_replication_controller_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1ServiceList**](V1ServiceList.md) +[**V1ReplicationControllerList**](V1ReplicationControllerList.md) ### Authorization @@ -7291,12 +7903,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespace** -> V1Namespace patch_namespace(name, body, pretty=pretty) +# **list_resource_quota_for_all_namespaces** +> V1ResourceQuotaList list_resource_quota_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -partially update the specified Namespace +list or watch objects of kind ResourceQuota ### Example ```python @@ -7313,28 +7925,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Namespace -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.patch_namespace(name, body, pretty=pretty) + api_response = api_instance.list_resource_quota_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespace: %s\n" % e) + print("Exception when calling CoreV1Api->list_resource_quota_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Namespace | - **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Namespace**](V1Namespace.md) +[**V1ResourceQuotaList**](V1ResourceQuotaList.md) ### Authorization @@ -7342,17 +7960,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespace_status** -> V1Namespace patch_namespace_status(name, body, pretty=pretty) +# **list_secret_for_all_namespaces** +> V1SecretList list_secret_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -partially update status of the specified Namespace +list or watch objects of kind Secret ### Example ```python @@ -7369,28 +7987,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Namespace -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.patch_namespace_status(name, body, pretty=pretty) + api_response = api_instance.list_secret_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespace_status: %s\n" % e) + print("Exception when calling CoreV1Api->list_secret_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Namespace | - **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Namespace**](V1Namespace.md) +[**V1SecretList**](V1SecretList.md) ### Authorization @@ -7398,17 +8022,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_config_map** -> V1ConfigMap patch_namespaced_config_map(name, namespace, body, pretty=pretty) +# **list_security_context_constraints** +> V1SecurityContextConstraintsList list_security_context_constraints(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -partially update the specified ConfigMap +list or watch objects of kind SecurityContextConstraints ### Example ```python @@ -7425,30 +8049,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the ConfigMap -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.patch_namespaced_config_map(name, namespace, body, pretty=pretty) + api_response = api_instance.list_security_context_constraints(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_config_map: %s\n" % e) + print("Exception when calling CoreV1Api->list_security_context_constraints: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ConfigMap | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1ConfigMap**](V1ConfigMap.md) +[**V1SecurityContextConstraintsList**](V1SecurityContextConstraintsList.md) ### Authorization @@ -7456,17 +8084,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_endpoints** -> V1Endpoints patch_namespaced_endpoints(name, namespace, body, pretty=pretty) +# **list_service_account_for_all_namespaces** +> V1ServiceAccountList list_service_account_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -partially update the specified Endpoints +list or watch objects of kind ServiceAccount ### Example ```python @@ -7483,30 +8111,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Endpoints -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.patch_namespaced_endpoints(name, namespace, body, pretty=pretty) + api_response = api_instance.list_service_account_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_endpoints: %s\n" % e) + print("Exception when calling CoreV1Api->list_service_account_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Endpoints | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Endpoints**](V1Endpoints.md) +[**V1ServiceAccountList**](V1ServiceAccountList.md) ### Authorization @@ -7514,17 +8146,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_event** -> V1Event patch_namespaced_event(name, namespace, body, pretty=pretty) +# **list_service_for_all_namespaces** +> V1ServiceList list_service_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -partially update the specified Event +list or watch objects of kind Service ### Example ```python @@ -7541,30 +8173,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Event -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.patch_namespaced_event(name, namespace, body, pretty=pretty) + api_response = api_instance.list_service_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_event: %s\n" % e) + print("Exception when calling CoreV1Api->list_service_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Event | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Event**](V1Event.md) +[**V1ServiceList**](V1ServiceList.md) ### Authorization @@ -7572,17 +8208,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_limit_range** -> V1LimitRange patch_namespaced_limit_range(name, namespace, body, pretty=pretty) +# **patch_namespace** +> V1Namespace patch_namespace(name, body, pretty=pretty) -partially update the specified LimitRange +partially update the specified Namespace ### Example ```python @@ -7599,30 +8235,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the LimitRange -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +name = 'name_example' # str | name of the Namespace body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_limit_range(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespace(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_limit_range: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespace: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the LimitRange | - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **name** | **str**| name of the Namespace | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1LimitRange**](V1LimitRange.md) +[**V1Namespace**](V1Namespace.md) ### Authorization @@ -7635,12 +8269,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_persistent_volume_claim** -> V1PersistentVolumeClaim patch_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty) +# **patch_namespace_status** +> V1Namespace patch_namespace_status(name, body, pretty=pretty) -partially update the specified PersistentVolumeClaim +partially update status of the specified Namespace ### Example ```python @@ -7657,30 +8291,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the PersistentVolumeClaim -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +name = 'name_example' # str | name of the Namespace body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespace_status(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_persistent_volume_claim: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespace_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PersistentVolumeClaim | - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **name** | **str**| name of the Namespace | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) +[**V1Namespace**](V1Namespace.md) ### Authorization @@ -7693,12 +8325,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_persistent_volume_claim_status** -> V1PersistentVolumeClaim patch_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty) +# **patch_namespaced_config_map** +> V1ConfigMap patch_namespaced_config_map(name, namespace, body, pretty=pretty) -partially update status of the specified PersistentVolumeClaim +partially update the specified ConfigMap ### Example ```python @@ -7715,30 +8347,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the PersistentVolumeClaim +name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_config_map(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_persistent_volume_claim_status: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_config_map: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PersistentVolumeClaim | + **name** | **str**| name of the ConfigMap | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) +[**V1ConfigMap**](V1ConfigMap.md) ### Authorization @@ -7751,12 +8383,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_pod** -> V1Pod patch_namespaced_pod(name, namespace, body, pretty=pretty) +# **patch_namespaced_endpoints** +> V1Endpoints patch_namespaced_endpoints(name, namespace, body, pretty=pretty) -partially update the specified Pod +partially update the specified Endpoints ### Example ```python @@ -7773,30 +8405,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Pod +name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_pod(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_endpoints(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_pod: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_endpoints: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Pod | + **name** | **str**| name of the Endpoints | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Pod**](V1Pod.md) +[**V1Endpoints**](V1Endpoints.md) ### Authorization @@ -7809,12 +8441,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_pod_status** -> V1Pod patch_namespaced_pod_status(name, namespace, body, pretty=pretty) +# **patch_namespaced_event** +> V1Event patch_namespaced_event(name, namespace, body, pretty=pretty) -partially update status of the specified Pod +partially update the specified Event ### Example ```python @@ -7831,30 +8463,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Pod +name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_pod_status(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_event(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_pod_status: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_event: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Pod | + **name** | **str**| name of the Event | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Pod**](V1Pod.md) +[**V1Event**](V1Event.md) ### Authorization @@ -7867,12 +8499,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_pod_template** -> V1PodTemplate patch_namespaced_pod_template(name, namespace, body, pretty=pretty) +# **patch_namespaced_limit_range** +> V1LimitRange patch_namespaced_limit_range(name, namespace, body, pretty=pretty) -partially update the specified PodTemplate +partially update the specified LimitRange ### Example ```python @@ -7889,30 +8521,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the PodTemplate +name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_pod_template(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_limit_range(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_pod_template: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_limit_range: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PodTemplate | + **name** | **str**| name of the LimitRange | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1PodTemplate**](V1PodTemplate.md) +[**V1LimitRange**](V1LimitRange.md) ### Authorization @@ -7925,12 +8557,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_replication_controller** -> V1ReplicationController patch_namespaced_replication_controller(name, namespace, body, pretty=pretty) +# **patch_namespaced_persistent_volume_claim** +> V1PersistentVolumeClaim patch_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty) -partially update the specified ReplicationController +partially update the specified PersistentVolumeClaim ### Example ```python @@ -7947,30 +8579,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the ReplicationController +name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_replication_controller(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_replication_controller: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_persistent_volume_claim: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ReplicationController | + **name** | **str**| name of the PersistentVolumeClaim | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1ReplicationController**](V1ReplicationController.md) +[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) ### Authorization @@ -7983,12 +8615,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_replication_controller_status** -> V1ReplicationController patch_namespaced_replication_controller_status(name, namespace, body, pretty=pretty) +# **patch_namespaced_persistent_volume_claim_status** +> V1PersistentVolumeClaim patch_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty) -partially update status of the specified ReplicationController +partially update status of the specified PersistentVolumeClaim ### Example ```python @@ -8005,30 +8637,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the ReplicationController +name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_replication_controller_status(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_replication_controller_status: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_persistent_volume_claim_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ReplicationController | + **name** | **str**| name of the PersistentVolumeClaim | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1ReplicationController**](V1ReplicationController.md) +[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) ### Authorization @@ -8041,12 +8673,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_resource_quota** -> V1ResourceQuota patch_namespaced_resource_quota(name, namespace, body, pretty=pretty) +# **patch_namespaced_pod** +> V1Pod patch_namespaced_pod(name, namespace, body, pretty=pretty) -partially update the specified ResourceQuota +partially update the specified Pod ### Example ```python @@ -8063,30 +8695,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the ResourceQuota +name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_resource_quota(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_pod(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_resource_quota: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_pod: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceQuota | + **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1ResourceQuota**](V1ResourceQuota.md) +[**V1Pod**](V1Pod.md) ### Authorization @@ -8099,12 +8731,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_resource_quota_status** -> V1ResourceQuota patch_namespaced_resource_quota_status(name, namespace, body, pretty=pretty) +# **patch_namespaced_pod_status** +> V1Pod patch_namespaced_pod_status(name, namespace, body, pretty=pretty) -partially update status of the specified ResourceQuota +partially update status of the specified Pod ### Example ```python @@ -8121,30 +8753,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the ResourceQuota +name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_resource_quota_status(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_pod_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_resource_quota_status: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_pod_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceQuota | + **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1ResourceQuota**](V1ResourceQuota.md) +[**V1Pod**](V1Pod.md) ### Authorization @@ -8157,12 +8789,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_scale_scale** -> V1Scale patch_namespaced_scale_scale(name, namespace, body, pretty=pretty) +# **patch_namespaced_pod_template** +> V1PodTemplate patch_namespaced_pod_template(name, namespace, body, pretty=pretty) -partially update scale of the specified Scale +partially update the specified PodTemplate ### Example ```python @@ -8179,30 +8811,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Scale +name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_scale_scale(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_pod_template(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_scale_scale: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_pod_template: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Scale | + **name** | **str**| name of the PodTemplate | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Scale**](V1Scale.md) +[**V1PodTemplate**](V1PodTemplate.md) ### Authorization @@ -8215,12 +8847,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_secret** -> V1Secret patch_namespaced_secret(name, namespace, body, pretty=pretty) +# **patch_namespaced_replication_controller** +> V1ReplicationController patch_namespaced_replication_controller(name, namespace, body, pretty=pretty) -partially update the specified Secret +partially update the specified ReplicationController ### Example ```python @@ -8237,30 +8869,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Secret +name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_secret(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_replication_controller(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_secret: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_replication_controller: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Secret | + **name** | **str**| name of the ReplicationController | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Secret**](V1Secret.md) +[**V1ReplicationController**](V1ReplicationController.md) ### Authorization @@ -8273,12 +8905,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_service** -> V1Service patch_namespaced_service(name, namespace, body, pretty=pretty) +# **patch_namespaced_replication_controller_status** +> V1ReplicationController patch_namespaced_replication_controller_status(name, namespace, body, pretty=pretty) -partially update the specified Service +partially update status of the specified ReplicationController ### Example ```python @@ -8295,30 +8927,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Service +name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_service(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_replication_controller_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_service: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_replication_controller_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Service | + **name** | **str**| name of the ReplicationController | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Service**](V1Service.md) +[**V1ReplicationController**](V1ReplicationController.md) ### Authorization @@ -8331,12 +8963,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_service_account** -> V1ServiceAccount patch_namespaced_service_account(name, namespace, body, pretty=pretty) +# **patch_namespaced_resource_quota** +> V1ResourceQuota patch_namespaced_resource_quota(name, namespace, body, pretty=pretty) -partially update the specified ServiceAccount +partially update the specified ResourceQuota ### Example ```python @@ -8353,30 +8985,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the ServiceAccount +name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_service_account(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_resource_quota(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_service_account: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_resource_quota: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceAccount | + **name** | **str**| name of the ResourceQuota | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1ServiceAccount**](V1ServiceAccount.md) +[**V1ResourceQuota**](V1ResourceQuota.md) ### Authorization @@ -8389,12 +9021,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_service_status** -> V1Service patch_namespaced_service_status(name, namespace, body, pretty=pretty) +# **patch_namespaced_resource_quota_status** +> V1ResourceQuota patch_namespaced_resource_quota_status(name, namespace, body, pretty=pretty) -partially update status of the specified Service +partially update status of the specified ResourceQuota ### Example ```python @@ -8411,30 +9043,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Service +name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_service_status(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_resource_quota_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_service_status: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_resource_quota_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Service | + **name** | **str**| name of the ResourceQuota | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Service**](V1Service.md) +[**V1ResourceQuota**](V1ResourceQuota.md) ### Authorization @@ -8447,12 +9079,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_node** -> V1Node patch_node(name, body, pretty=pretty) +# **patch_namespaced_scale_scale** +> V1Scale patch_namespaced_scale_scale(name, namespace, body, pretty=pretty) -partially update the specified Node +partially update scale of the specified Scale ### Example ```python @@ -8469,28 +9101,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Node +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_node(name, body, pretty=pretty) + api_response = api_instance.patch_namespaced_scale_scale(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_node: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_scale_scale: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Node | + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Node**](V1Node.md) +[**V1Scale**](V1Scale.md) ### Authorization @@ -8503,12 +9137,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_node_status** -> V1Node patch_node_status(name, body, pretty=pretty) +# **patch_namespaced_secret** +> V1Secret patch_namespaced_secret(name, namespace, body, pretty=pretty) -partially update status of the specified Node +partially update the specified Secret ### Example ```python @@ -8525,28 +9159,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Node +name = 'name_example' # str | name of the Secret +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_node_status(name, body, pretty=pretty) + api_response = api_instance.patch_namespaced_secret(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_node_status: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_secret: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Node | + **name** | **str**| name of the Secret | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1Node**](V1Node.md) +[**V1Secret**](V1Secret.md) ### Authorization @@ -8559,12 +9195,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_persistent_volume** -> V1PersistentVolume patch_persistent_volume(name, body, pretty=pretty) +# **patch_namespaced_service** +> V1Service patch_namespaced_service(name, namespace, body, pretty=pretty) -partially update the specified PersistentVolume +partially update the specified Service ### Example ```python @@ -8581,28 +9217,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the PersistentVolume +name = 'name_example' # str | name of the Service +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_persistent_volume(name, body, pretty=pretty) + api_response = api_instance.patch_namespaced_service(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_persistent_volume: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_service: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PersistentVolume | + **name** | **str**| name of the Service | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1PersistentVolume**](V1PersistentVolume.md) +[**V1Service**](V1Service.md) ### Authorization @@ -8615,12 +9253,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_persistent_volume_status** -> V1PersistentVolume patch_persistent_volume_status(name, body, pretty=pretty) +# **patch_namespaced_service_account** +> V1ServiceAccount patch_namespaced_service_account(name, namespace, body, pretty=pretty) -partially update status of the specified PersistentVolume +partially update the specified ServiceAccount ### Example ```python @@ -8637,28 +9275,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the PersistentVolume +name = 'name_example' # str | name of the ServiceAccount +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_persistent_volume_status(name, body, pretty=pretty) + api_response = api_instance.patch_namespaced_service_account(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->patch_persistent_volume_status: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_service_account: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PersistentVolume | + **name** | **str**| name of the ServiceAccount | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1PersistentVolume**](V1PersistentVolume.md) +[**V1ServiceAccount**](V1ServiceAccount.md) ### Authorization @@ -8671,12 +9311,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_delete_namespaced_pod** -> str proxy_delete_namespaced_pod(name, namespace) +# **patch_namespaced_service_status** +> V1Service patch_namespaced_service_status(name, namespace, body, pretty=pretty) -proxy DELETE requests to Pod +partially update status of the specified Service ### Example ```python @@ -8693,26 +9333,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Pod +name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.proxy_delete_namespaced_pod(name, namespace) + api_response = api_instance.patch_namespaced_service_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_delete_namespaced_pod: %s\n" % e) + print("Exception when calling CoreV1Api->patch_namespaced_service_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Pod | + **name** | **str**| name of the Service | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -**str** +[**V1Service**](V1Service.md) ### Authorization @@ -8720,17 +9364,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: */* + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_delete_namespaced_pod_with_path** -> str proxy_delete_namespaced_pod_with_path(name, namespace, path) +# **patch_node** +> V1Node patch_node(name, body, pretty=pretty) -proxy DELETE requests to Pod +partially update the specified Node ### Example ```python @@ -8747,28 +9391,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Pod -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -path = 'path_example' # str | path to the resource +name = 'name_example' # str | name of the Node +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.proxy_delete_namespaced_pod_with_path(name, namespace, path) + api_response = api_instance.patch_node(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_delete_namespaced_pod_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->patch_node: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Pod | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **path** | **str**| path to the resource | + **name** | **str**| name of the Node | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -**str** +[**V1Node**](V1Node.md) ### Authorization @@ -8776,17 +9420,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: */* + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_delete_namespaced_service** -> str proxy_delete_namespaced_service(name, namespace) +# **patch_node_status** +> V1Node patch_node_status(name, body, pretty=pretty) -proxy DELETE requests to Service +partially update status of the specified Node ### Example ```python @@ -8803,26 +9447,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Service -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +name = 'name_example' # str | name of the Node +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.proxy_delete_namespaced_service(name, namespace) + api_response = api_instance.patch_node_status(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_delete_namespaced_service: %s\n" % e) + print("Exception when calling CoreV1Api->patch_node_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Service | - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **name** | **str**| name of the Node | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -**str** +[**V1Node**](V1Node.md) ### Authorization @@ -8830,17 +9476,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: */* + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_delete_namespaced_service_with_path** -> str proxy_delete_namespaced_service_with_path(name, namespace, path) +# **patch_persistent_volume** +> V1PersistentVolume patch_persistent_volume(name, body, pretty=pretty) -proxy DELETE requests to Service +partially update the specified PersistentVolume ### Example ```python @@ -8857,28 +9503,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Service -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -path = 'path_example' # str | path to the resource +name = 'name_example' # str | name of the PersistentVolume +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.proxy_delete_namespaced_service_with_path(name, namespace, path) + api_response = api_instance.patch_persistent_volume(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_delete_namespaced_service_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->patch_persistent_volume: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Service | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **path** | **str**| path to the resource | + **name** | **str**| name of the PersistentVolume | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -**str** +[**V1PersistentVolume**](V1PersistentVolume.md) ### Authorization @@ -8886,17 +9532,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: */* + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_delete_node** -> str proxy_delete_node(name) +# **patch_persistent_volume_status** +> V1PersistentVolume patch_persistent_volume_status(name, body, pretty=pretty) -proxy DELETE requests to Node +partially update status of the specified PersistentVolume ### Example ```python @@ -8913,24 +9559,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Node +name = 'name_example' # str | name of the PersistentVolume +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.proxy_delete_node(name) + api_response = api_instance.patch_persistent_volume_status(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_delete_node: %s\n" % e) + print("Exception when calling CoreV1Api->patch_persistent_volume_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Node | + **name** | **str**| name of the PersistentVolume | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -**str** +[**V1PersistentVolume**](V1PersistentVolume.md) ### Authorization @@ -8938,17 +9588,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: */* + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_delete_node_with_path** -> str proxy_delete_node_with_path(name, path) +# **patch_security_context_constraints** +> V1SecurityContextConstraints patch_security_context_constraints(name, body, pretty=pretty) -proxy DELETE requests to Node +partially update the specified SecurityContextConstraints ### Example ```python @@ -8965,26 +9615,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Node -path = 'path_example' # str | path to the resource +name = 'name_example' # str | name of the SecurityContextConstraints +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.proxy_delete_node_with_path(name, path) + api_response = api_instance.patch_security_context_constraints(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_delete_node_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->patch_security_context_constraints: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Node | - **path** | **str**| path to the resource | + **name** | **str**| name of the SecurityContextConstraints | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -**str** +[**V1SecurityContextConstraints**](V1SecurityContextConstraints.md) ### Authorization @@ -8992,17 +9644,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: */* + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_get_namespaced_pod** -> str proxy_get_namespaced_pod(name, namespace) +# **proxy_delete_namespaced_pod** +> str proxy_delete_namespaced_pod(name, namespace) -proxy GET requests to Pod +proxy DELETE requests to Pod ### Example ```python @@ -9023,10 +9675,10 @@ name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects try: - api_response = api_instance.proxy_get_namespaced_pod(name, namespace) + api_response = api_instance.proxy_delete_namespaced_pod(name, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_get_namespaced_pod: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_delete_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -9051,12 +9703,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_get_namespaced_pod_with_path** -> str proxy_get_namespaced_pod_with_path(name, namespace, path) +# **proxy_delete_namespaced_pod_with_path** +> str proxy_delete_namespaced_pod_with_path(name, namespace, path) -proxy GET requests to Pod +proxy DELETE requests to Pod ### Example ```python @@ -9078,10 +9730,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource try: - api_response = api_instance.proxy_get_namespaced_pod_with_path(name, namespace, path) + api_response = api_instance.proxy_delete_namespaced_pod_with_path(name, namespace, path) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_get_namespaced_pod_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_delete_namespaced_pod_with_path: %s\n" % e) ``` ### Parameters @@ -9107,12 +9759,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_get_namespaced_service** -> str proxy_get_namespaced_service(name, namespace) +# **proxy_delete_namespaced_service** +> str proxy_delete_namespaced_service(name, namespace) -proxy GET requests to Service +proxy DELETE requests to Service ### Example ```python @@ -9133,10 +9785,10 @@ name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects try: - api_response = api_instance.proxy_get_namespaced_service(name, namespace) + api_response = api_instance.proxy_delete_namespaced_service(name, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_get_namespaced_service: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_delete_namespaced_service: %s\n" % e) ``` ### Parameters @@ -9161,12 +9813,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_get_namespaced_service_with_path** -> str proxy_get_namespaced_service_with_path(name, namespace, path) +# **proxy_delete_namespaced_service_with_path** +> str proxy_delete_namespaced_service_with_path(name, namespace, path) -proxy GET requests to Service +proxy DELETE requests to Service ### Example ```python @@ -9188,10 +9840,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource try: - api_response = api_instance.proxy_get_namespaced_service_with_path(name, namespace, path) + api_response = api_instance.proxy_delete_namespaced_service_with_path(name, namespace, path) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_get_namespaced_service_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_delete_namespaced_service_with_path: %s\n" % e) ``` ### Parameters @@ -9217,12 +9869,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_get_node** -> str proxy_get_node(name) +# **proxy_delete_node** +> str proxy_delete_node(name) -proxy GET requests to Node +proxy DELETE requests to Node ### Example ```python @@ -9242,10 +9894,10 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Node try: - api_response = api_instance.proxy_get_node(name) + api_response = api_instance.proxy_delete_node(name) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_get_node: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_delete_node: %s\n" % e) ``` ### Parameters @@ -9269,12 +9921,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_get_node_with_path** -> str proxy_get_node_with_path(name, path) +# **proxy_delete_node_with_path** +> str proxy_delete_node_with_path(name, path) -proxy GET requests to Node +proxy DELETE requests to Node ### Example ```python @@ -9295,10 +9947,10 @@ name = 'name_example' # str | name of the Node path = 'path_example' # str | path to the resource try: - api_response = api_instance.proxy_get_node_with_path(name, path) + api_response = api_instance.proxy_delete_node_with_path(name, path) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_get_node_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_delete_node_with_path: %s\n" % e) ``` ### Parameters @@ -9323,12 +9975,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_head_namespaced_pod** -> str proxy_head_namespaced_pod(name, namespace) +# **proxy_get_namespaced_pod** +> str proxy_get_namespaced_pod(name, namespace) -proxy HEAD requests to Pod +proxy GET requests to Pod ### Example ```python @@ -9349,10 +10001,10 @@ name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects try: - api_response = api_instance.proxy_head_namespaced_pod(name, namespace) + api_response = api_instance.proxy_get_namespaced_pod(name, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_head_namespaced_pod: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_get_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -9377,12 +10029,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_head_namespaced_pod_with_path** -> str proxy_head_namespaced_pod_with_path(name, namespace, path) +# **proxy_get_namespaced_pod_with_path** +> str proxy_get_namespaced_pod_with_path(name, namespace, path) -proxy HEAD requests to Pod +proxy GET requests to Pod ### Example ```python @@ -9404,10 +10056,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource try: - api_response = api_instance.proxy_head_namespaced_pod_with_path(name, namespace, path) + api_response = api_instance.proxy_get_namespaced_pod_with_path(name, namespace, path) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_head_namespaced_pod_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_get_namespaced_pod_with_path: %s\n" % e) ``` ### Parameters @@ -9433,12 +10085,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_head_namespaced_service** -> str proxy_head_namespaced_service(name, namespace) +# **proxy_get_namespaced_service** +> str proxy_get_namespaced_service(name, namespace) -proxy HEAD requests to Service +proxy GET requests to Service ### Example ```python @@ -9459,10 +10111,10 @@ name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects try: - api_response = api_instance.proxy_head_namespaced_service(name, namespace) + api_response = api_instance.proxy_get_namespaced_service(name, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_head_namespaced_service: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_get_namespaced_service: %s\n" % e) ``` ### Parameters @@ -9487,12 +10139,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_head_namespaced_service_with_path** -> str proxy_head_namespaced_service_with_path(name, namespace, path) +# **proxy_get_namespaced_service_with_path** +> str proxy_get_namespaced_service_with_path(name, namespace, path) -proxy HEAD requests to Service +proxy GET requests to Service ### Example ```python @@ -9514,10 +10166,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource try: - api_response = api_instance.proxy_head_namespaced_service_with_path(name, namespace, path) + api_response = api_instance.proxy_get_namespaced_service_with_path(name, namespace, path) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_head_namespaced_service_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_get_namespaced_service_with_path: %s\n" % e) ``` ### Parameters @@ -9543,12 +10195,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_head_node** -> str proxy_head_node(name) +# **proxy_get_node** +> str proxy_get_node(name) -proxy HEAD requests to Node +proxy GET requests to Node ### Example ```python @@ -9568,10 +10220,10 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Node try: - api_response = api_instance.proxy_head_node(name) + api_response = api_instance.proxy_get_node(name) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_head_node: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_get_node: %s\n" % e) ``` ### Parameters @@ -9595,12 +10247,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_head_node_with_path** -> str proxy_head_node_with_path(name, path) +# **proxy_get_node_with_path** +> str proxy_get_node_with_path(name, path) -proxy HEAD requests to Node +proxy GET requests to Node ### Example ```python @@ -9621,10 +10273,10 @@ name = 'name_example' # str | name of the Node path = 'path_example' # str | path to the resource try: - api_response = api_instance.proxy_head_node_with_path(name, path) + api_response = api_instance.proxy_get_node_with_path(name, path) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_head_node_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_get_node_with_path: %s\n" % e) ``` ### Parameters @@ -9649,12 +10301,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_options_namespaced_pod** -> str proxy_options_namespaced_pod(name, namespace) +# **proxy_head_namespaced_pod** +> str proxy_head_namespaced_pod(name, namespace) -proxy OPTIONS requests to Pod +proxy HEAD requests to Pod ### Example ```python @@ -9675,10 +10327,10 @@ name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects try: - api_response = api_instance.proxy_options_namespaced_pod(name, namespace) + api_response = api_instance.proxy_head_namespaced_pod(name, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_options_namespaced_pod: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_head_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -9703,12 +10355,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_options_namespaced_pod_with_path** -> str proxy_options_namespaced_pod_with_path(name, namespace, path) +# **proxy_head_namespaced_pod_with_path** +> str proxy_head_namespaced_pod_with_path(name, namespace, path) -proxy OPTIONS requests to Pod +proxy HEAD requests to Pod ### Example ```python @@ -9730,10 +10382,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource try: - api_response = api_instance.proxy_options_namespaced_pod_with_path(name, namespace, path) + api_response = api_instance.proxy_head_namespaced_pod_with_path(name, namespace, path) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_options_namespaced_pod_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_head_namespaced_pod_with_path: %s\n" % e) ``` ### Parameters @@ -9759,12 +10411,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_options_namespaced_service** -> str proxy_options_namespaced_service(name, namespace) +# **proxy_head_namespaced_service** +> str proxy_head_namespaced_service(name, namespace) -proxy OPTIONS requests to Service +proxy HEAD requests to Service ### Example ```python @@ -9785,10 +10437,10 @@ name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects try: - api_response = api_instance.proxy_options_namespaced_service(name, namespace) + api_response = api_instance.proxy_head_namespaced_service(name, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_options_namespaced_service: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_head_namespaced_service: %s\n" % e) ``` ### Parameters @@ -9813,12 +10465,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_options_namespaced_service_with_path** -> str proxy_options_namespaced_service_with_path(name, namespace, path) +# **proxy_head_namespaced_service_with_path** +> str proxy_head_namespaced_service_with_path(name, namespace, path) -proxy OPTIONS requests to Service +proxy HEAD requests to Service ### Example ```python @@ -9840,10 +10492,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource try: - api_response = api_instance.proxy_options_namespaced_service_with_path(name, namespace, path) + api_response = api_instance.proxy_head_namespaced_service_with_path(name, namespace, path) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_options_namespaced_service_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_head_namespaced_service_with_path: %s\n" % e) ``` ### Parameters @@ -9869,12 +10521,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_options_node** -> str proxy_options_node(name) +# **proxy_head_node** +> str proxy_head_node(name) -proxy OPTIONS requests to Node +proxy HEAD requests to Node ### Example ```python @@ -9894,10 +10546,10 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Node try: - api_response = api_instance.proxy_options_node(name) + api_response = api_instance.proxy_head_node(name) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_options_node: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_head_node: %s\n" % e) ``` ### Parameters @@ -9921,12 +10573,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_options_node_with_path** -> str proxy_options_node_with_path(name, path) +# **proxy_head_node_with_path** +> str proxy_head_node_with_path(name, path) -proxy OPTIONS requests to Node +proxy HEAD requests to Node ### Example ```python @@ -9947,10 +10599,10 @@ name = 'name_example' # str | name of the Node path = 'path_example' # str | path to the resource try: - api_response = api_instance.proxy_options_node_with_path(name, path) + api_response = api_instance.proxy_head_node_with_path(name, path) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_options_node_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_head_node_with_path: %s\n" % e) ``` ### Parameters @@ -9975,12 +10627,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_patch_namespaced_pod** -> str proxy_patch_namespaced_pod(name, namespace) +# **proxy_options_namespaced_pod** +> str proxy_options_namespaced_pod(name, namespace) -proxy PATCH requests to Pod +proxy OPTIONS requests to Pod ### Example ```python @@ -10001,10 +10653,10 @@ name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects try: - api_response = api_instance.proxy_patch_namespaced_pod(name, namespace) + api_response = api_instance.proxy_options_namespaced_pod(name, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_patch_namespaced_pod: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_options_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -10029,12 +10681,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_patch_namespaced_pod_with_path** -> str proxy_patch_namespaced_pod_with_path(name, namespace, path) +# **proxy_options_namespaced_pod_with_path** +> str proxy_options_namespaced_pod_with_path(name, namespace, path) -proxy PATCH requests to Pod +proxy OPTIONS requests to Pod ### Example ```python @@ -10056,10 +10708,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource try: - api_response = api_instance.proxy_patch_namespaced_pod_with_path(name, namespace, path) + api_response = api_instance.proxy_options_namespaced_pod_with_path(name, namespace, path) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_patch_namespaced_pod_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_options_namespaced_pod_with_path: %s\n" % e) ``` ### Parameters @@ -10085,12 +10737,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_patch_namespaced_service** -> str proxy_patch_namespaced_service(name, namespace) +# **proxy_options_namespaced_service** +> str proxy_options_namespaced_service(name, namespace) -proxy PATCH requests to Service +proxy OPTIONS requests to Service ### Example ```python @@ -10111,10 +10763,10 @@ name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects try: - api_response = api_instance.proxy_patch_namespaced_service(name, namespace) + api_response = api_instance.proxy_options_namespaced_service(name, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_patch_namespaced_service: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_options_namespaced_service: %s\n" % e) ``` ### Parameters @@ -10139,12 +10791,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_patch_namespaced_service_with_path** -> str proxy_patch_namespaced_service_with_path(name, namespace, path) +# **proxy_options_namespaced_service_with_path** +> str proxy_options_namespaced_service_with_path(name, namespace, path) -proxy PATCH requests to Service +proxy OPTIONS requests to Service ### Example ```python @@ -10166,10 +10818,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource try: - api_response = api_instance.proxy_patch_namespaced_service_with_path(name, namespace, path) + api_response = api_instance.proxy_options_namespaced_service_with_path(name, namespace, path) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_patch_namespaced_service_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_options_namespaced_service_with_path: %s\n" % e) ``` ### Parameters @@ -10195,12 +10847,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_patch_node** -> str proxy_patch_node(name) +# **proxy_options_node** +> str proxy_options_node(name) -proxy PATCH requests to Node +proxy OPTIONS requests to Node ### Example ```python @@ -10220,10 +10872,10 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Node try: - api_response = api_instance.proxy_patch_node(name) + api_response = api_instance.proxy_options_node(name) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_patch_node: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_options_node: %s\n" % e) ``` ### Parameters @@ -10247,12 +10899,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **proxy_patch_node_with_path** -> str proxy_patch_node_with_path(name, path) +# **proxy_options_node_with_path** +> str proxy_options_node_with_path(name, path) -proxy PATCH requests to Node +proxy OPTIONS requests to Node ### Example ```python @@ -10273,10 +10925,10 @@ name = 'name_example' # str | name of the Node path = 'path_example' # str | path to the resource try: - api_response = api_instance.proxy_patch_node_with_path(name, path) + api_response = api_instance.proxy_options_node_with_path(name, path) pprint(api_response) except ApiException as e: - print("Exception when calling CoreV1Api->proxy_patch_node_with_path: %s\n" % e) + print("Exception when calling CoreV1Api->proxy_options_node_with_path: %s\n" % e) ``` ### Parameters @@ -11031,7 +11683,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Namespace pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -11047,7 +11699,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Namespace | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -11144,7 +11796,7 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -11161,7 +11813,7 @@ Name | Type | Description | Notes **name** | **str**| name of the ConfigMap | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -11204,7 +11856,7 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -11221,7 +11873,7 @@ Name | Type | Description | Notes **name** | **str**| name of the Endpoints | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -11264,7 +11916,7 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -11281,7 +11933,7 @@ Name | Type | Description | Notes **name** | **str**| name of the Event | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -11324,7 +11976,7 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -11341,7 +11993,7 @@ Name | Type | Description | Notes **name** | **str**| name of the LimitRange | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -11384,7 +12036,7 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -11401,7 +12053,7 @@ Name | Type | Description | Notes **name** | **str**| name of the PersistentVolumeClaim | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -11500,7 +12152,7 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -11517,7 +12169,7 @@ Name | Type | Description | Notes **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -11536,7 +12188,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_pod_log** -> str read_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, tail_lines=tail_lines, timestamps=timestamps) +> str read_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, since_time=since_time, tail_lines=tail_lines, timestamps=timestamps) @@ -11565,11 +12217,12 @@ limit_bytes = 56 # int | If set, the number of bytes to read from the server bef pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) previous = true # bool | Return previous terminated container logs. Defaults to false. (optional) since_seconds = 56 # int | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) +since_time = 'since_time_example' # str | An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) tail_lines = 56 # int | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) timestamps = true # bool | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) try: - api_response = api_instance.read_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, tail_lines=tail_lines, timestamps=timestamps) + api_response = api_instance.read_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, since_time=since_time, tail_lines=tail_lines, timestamps=timestamps) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_pod_log: %s\n" % e) @@ -11587,6 +12240,7 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **previous** | **bool**| Return previous terminated container logs. Defaults to false. | [optional] **since_seconds** | **int**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. | [optional] + **since_time** | **str**| An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. | [optional] **tail_lines** | **int**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime | [optional] **timestamps** | **bool**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. | [optional] @@ -11686,7 +12340,7 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -11703,7 +12357,7 @@ Name | Type | Description | Notes **name** | **str**| name of the PodTemplate | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -11746,7 +12400,7 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -11763,7 +12417,7 @@ Name | Type | Description | Notes **name** | **str**| name of the ReplicationController | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -11862,7 +12516,7 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -11879,7 +12533,7 @@ Name | Type | Description | Notes **name** | **str**| name of the ResourceQuota | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -12034,7 +12688,7 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -12051,7 +12705,7 @@ Name | Type | Description | Notes **name** | **str**| name of the Secret | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -12094,7 +12748,7 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -12111,7 +12765,7 @@ Name | Type | Description | Notes **name** | **str**| name of the Service | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -12154,7 +12808,7 @@ api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -12171,7 +12825,7 @@ Name | Type | Description | Notes **name** | **str**| name of the ServiceAccount | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -12269,7 +12923,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Node pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -12285,7 +12939,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Node | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -12381,7 +13035,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the PersistentVolume pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -12397,7 +13051,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolume | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -12469,6 +13123,64 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **read_security_context_constraints** +> V1SecurityContextConstraints read_security_context_constraints(name, pretty=pretty, exact=exact, export=export) + + + +read the specified SecurityContextConstraints + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +name = 'name_example' # str | name of the SecurityContextConstraints +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_security_context_constraints(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->read_security_context_constraints: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the SecurityContextConstraints | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1SecurityContextConstraints**](V1SecurityContextConstraints.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespace** > V1Namespace replace_namespace(name, body, pretty=pretty) @@ -12526,7 +13238,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespace_finalize** -> V1Namespace replace_namespace_finalize(name, body, pretty=pretty) +> V1Namespace replace_namespace_finalize(body, name, pretty=pretty) @@ -12547,12 +13259,12 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -name = 'name_example' # str | name of the Namespace body = kubernetes.client.V1Namespace() # V1Namespace | +name = 'name_example' # str | name of the Namespace pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespace_finalize(name, body, pretty=pretty) + api_response = api_instance.replace_namespace_finalize(body, name, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespace_finalize: %s\n" % e) @@ -12562,8 +13274,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Namespace | **body** | [**V1Namespace**](V1Namespace.md)| | + **name** | **str**| name of the Namespace | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -13905,3 +14617,59 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_security_context_constraints** +> V1SecurityContextConstraints replace_security_context_constraints(name, body, pretty=pretty) + + + +replace the specified SecurityContextConstraints + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +name = 'name_example' # str | name of the SecurityContextConstraints +body = kubernetes.client.V1SecurityContextConstraints() # V1SecurityContextConstraints | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_security_context_constraints(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->replace_security_context_constraints: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the SecurityContextConstraints | + **body** | [**V1SecurityContextConstraints**](V1SecurityContextConstraints.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1SecurityContextConstraints**](V1SecurityContextConstraints.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/DefaultApi.md b/kubernetes/docs/DefaultApi.md new file mode 100644 index 0000000000..ffda5d89c8 --- /dev/null +++ b/kubernetes/docs/DefaultApi.md @@ -0,0 +1,177 @@ +# kubernetes.client.DefaultApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_namespaced_processed_template**](DefaultApi.md#create_namespaced_processed_template) | **POST** /oapi/v1/namespaces/{namespace}/processedtemplates | +[**create_processed_template_for_all_namespaces**](DefaultApi.md#create_processed_template_for_all_namespaces) | **POST** /oapi/v1/processedtemplates | +[**generate_namespaced_deployment_config**](DefaultApi.md#generate_namespaced_deployment_config) | **GET** /oapi/v1/namespaces/{namespace}/generatedeploymentconfigs/{name} | + + +# **create_namespaced_processed_template** +> V1Template create_namespaced_processed_template(body, namespace, pretty=pretty) + + + +create a Template + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.DefaultApi() +body = kubernetes.client.V1Template() # V1Template | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_processed_template(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_namespaced_processed_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Template**](V1Template.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Template**](V1Template.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_processed_template_for_all_namespaces** +> V1Template create_processed_template_for_all_namespaces(body, pretty=pretty) + + + +create a Template + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.DefaultApi() +body = kubernetes.client.V1Template() # V1Template | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_processed_template_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_processed_template_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Template**](V1Template.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Template**](V1Template.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **generate_namespaced_deployment_config** +> V1DeploymentConfig generate_namespaced_deployment_config(name, namespace, pretty=pretty) + + + +read the specified DeploymentConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.DefaultApi() +name = 'name_example' # str | name of the DeploymentConfig +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.generate_namespaced_deployment_config(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->generate_namespaced_deployment_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeploymentConfig | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1DeploymentConfig**](V1DeploymentConfig.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/ExtensionsApi.md b/kubernetes/docs/ExtensionsApi.md index 5fb2804d89..17652eb61b 100644 --- a/kubernetes/docs/ExtensionsApi.md +++ b/kubernetes/docs/ExtensionsApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> V1APIGroup get_api_group() +> UnversionedAPIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) ### Authorization diff --git a/kubernetes/docs/ExtensionsV1beta1Api.md b/kubernetes/docs/ExtensionsV1beta1Api.md index cd855644c0..122b4d0d58 100644 --- a/kubernetes/docs/ExtensionsV1beta1Api.md +++ b/kubernetes/docs/ExtensionsV1beta1Api.md @@ -4,24 +4,37 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_daemon_set_for_all_namespaces**](ExtensionsV1beta1Api.md#create_daemon_set_for_all_namespaces) | **POST** /apis/extensions/v1beta1/daemonsets | +[**create_deployment_for_all_namespaces**](ExtensionsV1beta1Api.md#create_deployment_for_all_namespaces) | **POST** /apis/extensions/v1beta1/deployments | +[**create_horizontal_pod_autoscaler_for_all_namespaces**](ExtensionsV1beta1Api.md#create_horizontal_pod_autoscaler_for_all_namespaces) | **POST** /apis/extensions/v1beta1/horizontalpodautoscalers | +[**create_ingress_for_all_namespaces**](ExtensionsV1beta1Api.md#create_ingress_for_all_namespaces) | **POST** /apis/extensions/v1beta1/ingresses | +[**create_job_for_all_namespaces**](ExtensionsV1beta1Api.md#create_job_for_all_namespaces) | **POST** /apis/extensions/v1beta1/jobs | [**create_namespaced_daemon_set**](ExtensionsV1beta1Api.md#create_namespaced_daemon_set) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | [**create_namespaced_deployment**](ExtensionsV1beta1Api.md#create_namespaced_deployment) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | [**create_namespaced_deployment_rollback_rollback**](ExtensionsV1beta1Api.md#create_namespaced_deployment_rollback_rollback) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | +[**create_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#create_namespaced_horizontal_pod_autoscaler) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | [**create_namespaced_ingress**](ExtensionsV1beta1Api.md#create_namespaced_ingress) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | +[**create_namespaced_job**](ExtensionsV1beta1Api.md#create_namespaced_job) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | [**create_namespaced_network_policy**](ExtensionsV1beta1Api.md#create_namespaced_network_policy) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | [**create_namespaced_replica_set**](ExtensionsV1beta1Api.md#create_namespaced_replica_set) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | +[**create_network_policy_for_all_namespaces**](ExtensionsV1beta1Api.md#create_network_policy_for_all_namespaces) | **POST** /apis/extensions/v1beta1/networkpolicies | [**create_pod_security_policy**](ExtensionsV1beta1Api.md#create_pod_security_policy) | **POST** /apis/extensions/v1beta1/podsecuritypolicies | +[**create_replica_set_for_all_namespaces**](ExtensionsV1beta1Api.md#create_replica_set_for_all_namespaces) | **POST** /apis/extensions/v1beta1/replicasets | [**create_third_party_resource**](ExtensionsV1beta1Api.md#create_third_party_resource) | **POST** /apis/extensions/v1beta1/thirdpartyresources | [**delete_collection_namespaced_daemon_set**](ExtensionsV1beta1Api.md#delete_collection_namespaced_daemon_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | [**delete_collection_namespaced_deployment**](ExtensionsV1beta1Api.md#delete_collection_namespaced_deployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | +[**delete_collection_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#delete_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | [**delete_collection_namespaced_ingress**](ExtensionsV1beta1Api.md#delete_collection_namespaced_ingress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | +[**delete_collection_namespaced_job**](ExtensionsV1beta1Api.md#delete_collection_namespaced_job) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | [**delete_collection_namespaced_network_policy**](ExtensionsV1beta1Api.md#delete_collection_namespaced_network_policy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | [**delete_collection_namespaced_replica_set**](ExtensionsV1beta1Api.md#delete_collection_namespaced_replica_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | [**delete_collection_pod_security_policy**](ExtensionsV1beta1Api.md#delete_collection_pod_security_policy) | **DELETE** /apis/extensions/v1beta1/podsecuritypolicies | [**delete_collection_third_party_resource**](ExtensionsV1beta1Api.md#delete_collection_third_party_resource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources | [**delete_namespaced_daemon_set**](ExtensionsV1beta1Api.md#delete_namespaced_daemon_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | [**delete_namespaced_deployment**](ExtensionsV1beta1Api.md#delete_namespaced_deployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | +[**delete_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#delete_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | [**delete_namespaced_ingress**](ExtensionsV1beta1Api.md#delete_namespaced_ingress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | +[**delete_namespaced_job**](ExtensionsV1beta1Api.md#delete_namespaced_job) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | [**delete_namespaced_network_policy**](ExtensionsV1beta1Api.md#delete_namespaced_network_policy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | [**delete_namespaced_replica_set**](ExtensionsV1beta1Api.md#delete_namespaced_replica_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | [**delete_pod_security_policy**](ExtensionsV1beta1Api.md#delete_pod_security_policy) | **DELETE** /apis/extensions/v1beta1/podsecuritypolicies/{name} | @@ -29,10 +42,14 @@ Method | HTTP request | Description [**get_api_resources**](ExtensionsV1beta1Api.md#get_api_resources) | **GET** /apis/extensions/v1beta1/ | [**list_daemon_set_for_all_namespaces**](ExtensionsV1beta1Api.md#list_daemon_set_for_all_namespaces) | **GET** /apis/extensions/v1beta1/daemonsets | [**list_deployment_for_all_namespaces**](ExtensionsV1beta1Api.md#list_deployment_for_all_namespaces) | **GET** /apis/extensions/v1beta1/deployments | +[**list_horizontal_pod_autoscaler_for_all_namespaces**](ExtensionsV1beta1Api.md#list_horizontal_pod_autoscaler_for_all_namespaces) | **GET** /apis/extensions/v1beta1/horizontalpodautoscalers | [**list_ingress_for_all_namespaces**](ExtensionsV1beta1Api.md#list_ingress_for_all_namespaces) | **GET** /apis/extensions/v1beta1/ingresses | +[**list_job_for_all_namespaces**](ExtensionsV1beta1Api.md#list_job_for_all_namespaces) | **GET** /apis/extensions/v1beta1/jobs | [**list_namespaced_daemon_set**](ExtensionsV1beta1Api.md#list_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | [**list_namespaced_deployment**](ExtensionsV1beta1Api.md#list_namespaced_deployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | +[**list_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#list_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | [**list_namespaced_ingress**](ExtensionsV1beta1Api.md#list_namespaced_ingress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | +[**list_namespaced_job**](ExtensionsV1beta1Api.md#list_namespaced_job) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | [**list_namespaced_network_policy**](ExtensionsV1beta1Api.md#list_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | [**list_namespaced_replica_set**](ExtensionsV1beta1Api.md#list_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | [**list_network_policy_for_all_namespaces**](ExtensionsV1beta1Api.md#list_network_policy_for_all_namespaces) | **GET** /apis/extensions/v1beta1/networkpolicies | @@ -44,8 +61,12 @@ Method | HTTP request | Description [**patch_namespaced_deployment**](ExtensionsV1beta1Api.md#patch_namespaced_deployment) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | [**patch_namespaced_deployment_status**](ExtensionsV1beta1Api.md#patch_namespaced_deployment_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | [**patch_namespaced_deployments_scale**](ExtensionsV1beta1Api.md#patch_namespaced_deployments_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | +[**patch_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#patch_namespaced_horizontal_pod_autoscaler) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**patch_namespaced_horizontal_pod_autoscaler_status**](ExtensionsV1beta1Api.md#patch_namespaced_horizontal_pod_autoscaler_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | [**patch_namespaced_ingress**](ExtensionsV1beta1Api.md#patch_namespaced_ingress) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | [**patch_namespaced_ingress_status**](ExtensionsV1beta1Api.md#patch_namespaced_ingress_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | +[**patch_namespaced_job**](ExtensionsV1beta1Api.md#patch_namespaced_job) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +[**patch_namespaced_job_status**](ExtensionsV1beta1Api.md#patch_namespaced_job_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | [**patch_namespaced_network_policy**](ExtensionsV1beta1Api.md#patch_namespaced_network_policy) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | [**patch_namespaced_replica_set**](ExtensionsV1beta1Api.md#patch_namespaced_replica_set) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | [**patch_namespaced_replica_set_status**](ExtensionsV1beta1Api.md#patch_namespaced_replica_set_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | @@ -58,8 +79,12 @@ Method | HTTP request | Description [**read_namespaced_deployment**](ExtensionsV1beta1Api.md#read_namespaced_deployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | [**read_namespaced_deployment_status**](ExtensionsV1beta1Api.md#read_namespaced_deployment_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | [**read_namespaced_deployments_scale**](ExtensionsV1beta1Api.md#read_namespaced_deployments_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | +[**read_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#read_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**read_namespaced_horizontal_pod_autoscaler_status**](ExtensionsV1beta1Api.md#read_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | [**read_namespaced_ingress**](ExtensionsV1beta1Api.md#read_namespaced_ingress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | [**read_namespaced_ingress_status**](ExtensionsV1beta1Api.md#read_namespaced_ingress_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | +[**read_namespaced_job**](ExtensionsV1beta1Api.md#read_namespaced_job) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +[**read_namespaced_job_status**](ExtensionsV1beta1Api.md#read_namespaced_job_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | [**read_namespaced_network_policy**](ExtensionsV1beta1Api.md#read_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | [**read_namespaced_replica_set**](ExtensionsV1beta1Api.md#read_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | [**read_namespaced_replica_set_status**](ExtensionsV1beta1Api.md#read_namespaced_replica_set_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | @@ -72,8 +97,12 @@ Method | HTTP request | Description [**replace_namespaced_deployment**](ExtensionsV1beta1Api.md#replace_namespaced_deployment) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | [**replace_namespaced_deployment_status**](ExtensionsV1beta1Api.md#replace_namespaced_deployment_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | [**replace_namespaced_deployments_scale**](ExtensionsV1beta1Api.md#replace_namespaced_deployments_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | +[**replace_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#replace_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**replace_namespaced_horizontal_pod_autoscaler_status**](ExtensionsV1beta1Api.md#replace_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | [**replace_namespaced_ingress**](ExtensionsV1beta1Api.md#replace_namespaced_ingress) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | [**replace_namespaced_ingress_status**](ExtensionsV1beta1Api.md#replace_namespaced_ingress_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | +[**replace_namespaced_job**](ExtensionsV1beta1Api.md#replace_namespaced_job) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | +[**replace_namespaced_job_status**](ExtensionsV1beta1Api.md#replace_namespaced_job_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | [**replace_namespaced_network_policy**](ExtensionsV1beta1Api.md#replace_namespaced_network_policy) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | [**replace_namespaced_replica_set**](ExtensionsV1beta1Api.md#replace_namespaced_replica_set) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | [**replace_namespaced_replica_set_status**](ExtensionsV1beta1Api.md#replace_namespaced_replica_set_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | @@ -83,8 +112,8 @@ Method | HTTP request | Description [**replace_third_party_resource**](ExtensionsV1beta1Api.md#replace_third_party_resource) | **PUT** /apis/extensions/v1beta1/thirdpartyresources/{name} | -# **create_namespaced_daemon_set** -> V1beta1DaemonSet create_namespaced_daemon_set(namespace, body, pretty=pretty) +# **create_daemon_set_for_all_namespaces** +> V1beta1DaemonSet create_daemon_set_for_all_namespaces(body, pretty=pretty) @@ -105,22 +134,20 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1DaemonSet() # V1beta1DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_daemon_set(namespace, body, pretty=pretty) + api_response = api_instance.create_daemon_set_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_namespaced_daemon_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_daemon_set_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | [**V1beta1DaemonSet**](V1beta1DaemonSet.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] @@ -139,8 +166,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_deployment** -> ExtensionsV1beta1Deployment create_namespaced_deployment(namespace, body, pretty=pretty) +# **create_deployment_for_all_namespaces** +> V1beta1Deployment create_deployment_for_all_namespaces(body, pretty=pretty) @@ -161,28 +188,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.ExtensionsV1beta1Deployment() # ExtensionsV1beta1Deployment | +body = kubernetes.client.V1beta1Deployment() # V1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty) + api_response = api_instance.create_deployment_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_namespaced_deployment: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_deployment_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md)| | + **body** | [**V1beta1Deployment**](V1beta1Deployment.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) +[**V1beta1Deployment**](V1beta1Deployment.md) ### Authorization @@ -195,12 +220,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_deployment_rollback_rollback** -> ExtensionsV1beta1DeploymentRollback create_namespaced_deployment_rollback_rollback(name, namespace, body, pretty=pretty) +# **create_horizontal_pod_autoscaler_for_all_namespaces** +> V1beta1HorizontalPodAutoscaler create_horizontal_pod_autoscaler_for_all_namespaces(body, pretty=pretty) -create rollback of a DeploymentRollback +create a HorizontalPodAutoscaler ### Example ```python @@ -217,30 +242,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the DeploymentRollback -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.ExtensionsV1beta1DeploymentRollback() # ExtensionsV1beta1DeploymentRollback | +body = kubernetes.client.V1beta1HorizontalPodAutoscaler() # V1beta1HorizontalPodAutoscaler | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_deployment_rollback_rollback(name, namespace, body, pretty=pretty) + api_response = api_instance.create_horizontal_pod_autoscaler_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_namespaced_deployment_rollback_rollback: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DeploymentRollback | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1DeploymentRollback**](ExtensionsV1beta1DeploymentRollback.md)| | + **body** | [**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**ExtensionsV1beta1DeploymentRollback**](ExtensionsV1beta1DeploymentRollback.md) +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) ### Authorization @@ -253,8 +274,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_ingress** -> V1beta1Ingress create_namespaced_ingress(namespace, body, pretty=pretty) +# **create_ingress_for_all_namespaces** +> V1beta1Ingress create_ingress_for_all_namespaces(body, pretty=pretty) @@ -275,22 +296,20 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1Ingress() # V1beta1Ingress | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_ingress(namespace, body, pretty=pretty) + api_response = api_instance.create_ingress_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_namespaced_ingress: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_ingress_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | [**V1beta1Ingress**](V1beta1Ingress.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] @@ -309,12 +328,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_network_policy** -> V1beta1NetworkPolicy create_namespaced_network_policy(namespace, body, pretty=pretty) +# **create_job_for_all_namespaces** +> V1beta1Job create_job_for_all_namespaces(body, pretty=pretty) -create a NetworkPolicy +create a Job ### Example ```python @@ -331,28 +350,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1NetworkPolicy() # V1beta1NetworkPolicy | +body = kubernetes.client.V1beta1Job() # V1beta1Job | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_network_policy(namespace, body, pretty=pretty) + api_response = api_instance.create_job_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_namespaced_network_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_job_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md)| | + **body** | [**V1beta1Job**](V1beta1Job.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) +[**V1beta1Job**](V1beta1Job.md) ### Authorization @@ -365,12 +382,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_replica_set** -> V1beta1ReplicaSet create_namespaced_replica_set(namespace, body, pretty=pretty) +# **create_namespaced_daemon_set** +> V1beta1DaemonSet create_namespaced_daemon_set(namespace, body, pretty=pretty) -create a ReplicaSet +create a DaemonSet ### Example ```python @@ -388,14 +405,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1ReplicaSet() # V1beta1ReplicaSet | +body = kubernetes.client.V1beta1DaemonSet() # V1beta1DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_replica_set(namespace, body, pretty=pretty) + api_response = api_instance.create_namespaced_daemon_set(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_namespaced_replica_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -403,12 +420,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1ReplicaSet**](V1beta1ReplicaSet.md)| | + **body** | [**V1beta1DaemonSet**](V1beta1DaemonSet.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) ### Authorization @@ -421,12 +438,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_pod_security_policy** -> V1beta1PodSecurityPolicy create_pod_security_policy(body, pretty=pretty) +# **create_namespaced_deployment** +> V1beta1Deployment create_namespaced_deployment(namespace, body, pretty=pretty) -create a PodSecurityPolicy +create a Deployment ### Example ```python @@ -443,26 +460,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -body = kubernetes.client.V1beta1PodSecurityPolicy() # V1beta1PodSecurityPolicy | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1Deployment() # V1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_pod_security_policy(body, pretty=pretty) + api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_pod_security_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_deployment: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Deployment**](V1beta1Deployment.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) +[**V1beta1Deployment**](V1beta1Deployment.md) ### Authorization @@ -475,12 +494,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_third_party_resource** -> V1beta1ThirdPartyResource create_third_party_resource(body, pretty=pretty) +# **create_namespaced_deployment_rollback_rollback** +> V1beta1DeploymentRollback create_namespaced_deployment_rollback_rollback(body, name, namespace, pretty=pretty) -create a ThirdPartyResource +create rollback of a DeploymentRollback ### Example ```python @@ -497,26 +516,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -body = kubernetes.client.V1beta1ThirdPartyResource() # V1beta1ThirdPartyResource | +body = kubernetes.client.V1beta1DeploymentRollback() # V1beta1DeploymentRollback | +name = 'name_example' # str | name of the DeploymentRollback +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_third_party_resource(body, pretty=pretty) + api_response = api_instance.create_namespaced_deployment_rollback_rollback(body, name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_third_party_resource: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_deployment_rollback_rollback: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md)| | + **body** | [**V1beta1DeploymentRollback**](V1beta1DeploymentRollback.md)| | + **name** | **str**| name of the DeploymentRollback | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) +[**V1beta1DeploymentRollback**](V1beta1DeploymentRollback.md) ### Authorization @@ -529,12 +552,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_daemon_set** -> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **create_namespaced_horizontal_pod_autoscaler** +> V1beta1HorizontalPodAutoscaler create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) -delete collection of DaemonSet +create a HorizontalPodAutoscaler ### Example ```python @@ -552,18 +575,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1HorizontalPodAutoscaler() # V1beta1HorizontalPodAutoscaler | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_daemon_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -571,16 +590,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) ### Authorization @@ -593,12 +608,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_deployment** -> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **create_namespaced_ingress** +> V1beta1Ingress create_namespaced_ingress(namespace, body, pretty=pretty) -delete collection of Deployment +create an Ingress ### Example ```python @@ -616,18 +631,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1Ingress() # V1beta1Ingress | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.create_namespaced_ingress(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_deployment: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -635,16 +646,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Ingress**](V1beta1Ingress.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1beta1Ingress**](V1beta1Ingress.md) ### Authorization @@ -657,12 +664,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_ingress** -> V1Status delete_collection_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **create_namespaced_job** +> V1beta1Job create_namespaced_job(namespace, body, pretty=pretty) -delete collection of Ingress +create a Job ### Example ```python @@ -680,18 +687,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1Job() # V1beta1Job | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.create_namespaced_job(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_ingress: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_job: %s\n" % e) ``` ### Parameters @@ -699,16 +702,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Job**](V1beta1Job.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1beta1Job**](V1beta1Job.md) ### Authorization @@ -721,12 +720,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_network_policy** -> V1Status delete_collection_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **create_namespaced_network_policy** +> V1beta1NetworkPolicy create_namespaced_network_policy(namespace, body, pretty=pretty) -delete collection of NetworkPolicy +create a NetworkPolicy ### Example ```python @@ -744,18 +743,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1NetworkPolicy() # V1beta1NetworkPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.create_namespaced_network_policy(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_network_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -763,16 +758,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) ### Authorization @@ -785,12 +776,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_replica_set** -> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **create_namespaced_replica_set** +> V1beta1ReplicaSet create_namespaced_replica_set(namespace, body, pretty=pretty) -delete collection of ReplicaSet +create a ReplicaSet ### Example ```python @@ -808,18 +799,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1ReplicaSet() # V1beta1ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.create_namespaced_replica_set(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_replica_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -827,16 +814,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1ReplicaSet**](V1beta1ReplicaSet.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) ### Authorization @@ -849,12 +832,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_pod_security_policy** -> V1Status delete_collection_pod_security_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **create_network_policy_for_all_namespaces** +> V1beta1NetworkPolicy create_network_policy_for_all_namespaces(body, pretty=pretty) -delete collection of PodSecurityPolicy +create a NetworkPolicy ### Example ```python @@ -871,34 +854,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +body = kubernetes.client.V1beta1NetworkPolicy() # V1beta1NetworkPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_pod_security_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.create_network_policy_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_pod_security_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_network_policy_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) ### Authorization @@ -911,12 +886,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_third_party_resource** -> V1Status delete_collection_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **create_pod_security_policy** +> V1beta1PodSecurityPolicy create_pod_security_policy(body, pretty=pretty) -delete collection of ThirdPartyResource +create a PodSecurityPolicy ### Example ```python @@ -933,34 +908,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +body = kubernetes.client.V1beta1PodSecurityPolicy() # V1beta1PodSecurityPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.create_pod_security_policy(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_third_party_resource: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_pod_security_policy: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) ### Authorization @@ -973,12 +940,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_daemon_set** -> V1Status delete_namespaced_daemon_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **create_replica_set_for_all_namespaces** +> V1beta1ReplicaSet create_replica_set_for_all_namespaces(body, pretty=pretty) -delete a DaemonSet +create a ReplicaSet ### Example ```python @@ -995,36 +962,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the DaemonSet -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +body = kubernetes.client.V1beta1ReplicaSet() # V1beta1ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_daemon_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.create_replica_set_for_all_namespaces(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_daemon_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_replica_set_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DaemonSet | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**V1beta1ReplicaSet**](V1beta1ReplicaSet.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) ### Authorization @@ -1037,12 +994,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_deployment** -> V1Status delete_namespaced_deployment(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **create_third_party_resource** +> V1beta1ThirdPartyResource create_third_party_resource(body, pretty=pretty) -delete a Deployment +create a ThirdPartyResource ### Example ```python @@ -1059,36 +1016,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Deployment -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +body = kubernetes.client.V1beta1ThirdPartyResource() # V1beta1ThirdPartyResource | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_deployment(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.create_third_party_resource(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_deployment: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_third_party_resource: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) ### Authorization @@ -1101,12 +1048,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_ingress** -> V1Status delete_namespaced_ingress(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_collection_namespaced_daemon_set** +> UnversionedStatus delete_collection_namespaced_daemon_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -delete an Ingress +delete collection of DaemonSet ### Example ```python @@ -1123,36 +1070,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_namespaced_ingress(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_ingress: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_daemon_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1165,12 +1112,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_network_policy** -> V1Status delete_namespaced_network_policy(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_collection_namespaced_deployment** +> UnversionedStatus delete_collection_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -delete a NetworkPolicy +delete collection of Deployment ### Example ```python @@ -1187,36 +1134,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_namespaced_network_policy(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_network_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_deployment: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the NetworkPolicy | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1229,12 +1176,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_replica_set** -> V1Status delete_namespaced_replica_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_collection_namespaced_horizontal_pod_autoscaler** +> UnversionedStatus delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -delete a ReplicaSet +delete collection of HorizontalPodAutoscaler ### Example ```python @@ -1251,36 +1198,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_namespaced_replica_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_replica_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1293,12 +1240,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_pod_security_policy** -> V1Status delete_pod_security_policy(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_collection_namespaced_ingress** +> UnversionedStatus delete_collection_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -delete a PodSecurityPolicy +delete collection of Ingress ### Example ```python @@ -1315,34 +1262,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the PodSecurityPolicy -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_pod_security_policy(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_collection_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_pod_security_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_ingress: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PodSecurityPolicy | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1355,12 +1304,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_third_party_resource** -> V1Status delete_third_party_resource(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_collection_namespaced_job** +> UnversionedStatus delete_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -delete a ThirdPartyResource +delete collection of Job ### Example ```python @@ -1377,34 +1326,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ThirdPartyResource -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_third_party_resource(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_third_party_resource: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ThirdPartyResource | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1417,12 +1368,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources** -> V1APIResourceList get_api_resources() +# **delete_collection_namespaced_network_policy** +> UnversionedStatus delete_collection_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -get available resources +delete collection of NetworkPolicy ### Example ```python @@ -1439,20 +1390,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.get_api_resources() + api_response = api_instance.delete_collection_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->get_api_resources: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_network_policy: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1460,17 +1427,17 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: */* - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_daemon_set_for_all_namespaces** -> V1beta1DaemonSetList list_daemon_set_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_namespaced_replica_set** +> UnversionedStatus delete_collection_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind DaemonSet +delete collection of ReplicaSet ### Example ```python @@ -1487,34 +1454,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_daemon_set_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_daemon_set_for_all_namespaces: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_replica_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1beta1DaemonSetList**](V1beta1DaemonSetList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1523,16 +1492,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_deployment_for_all_namespaces** -> ExtensionsV1beta1DeploymentList list_deployment_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_pod_security_policy** +> UnversionedStatus delete_collection_pod_security_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Deployment +delete collection of PodSecurityPolicy ### Example ```python @@ -1549,34 +1518,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_deployment_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_collection_pod_security_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_deployment_for_all_namespaces: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_pod_security_policy: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**ExtensionsV1beta1DeploymentList**](ExtensionsV1beta1DeploymentList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1585,16 +1554,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_ingress_for_all_namespaces** -> V1beta1IngressList list_ingress_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_third_party_resource** +> UnversionedStatus delete_collection_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind Ingress +delete collection of ThirdPartyResource ### Example ```python @@ -1611,34 +1580,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_ingress_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_collection_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_ingress_for_all_namespaces: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_third_party_resource: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1beta1IngressList**](V1beta1IngressList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1647,16 +1616,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_daemon_set** -> V1beta1DaemonSetList list_namespaced_daemon_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_namespaced_daemon_set** +> UnversionedStatus delete_namespaced_daemon_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) -list or watch objects of kind DaemonSet +delete a DaemonSet ### Example ```python @@ -1673,36 +1642,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_namespaced_daemon_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_namespaced_daemon_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_daemon_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1beta1DaemonSetList**](V1beta1DaemonSetList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1711,16 +1678,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_deployment** -> ExtensionsV1beta1DeploymentList list_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_namespaced_deployment** +> UnversionedStatus delete_namespaced_deployment(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) -list or watch objects of kind Deployment +delete a Deployment ### Example ```python @@ -1737,36 +1704,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_namespaced_deployment(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_namespaced_deployment: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_deployment: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**ExtensionsV1beta1DeploymentList**](ExtensionsV1beta1DeploymentList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1775,16 +1740,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_ingress** -> V1beta1IngressList list_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_namespaced_horizontal_pod_autoscaler** +> UnversionedStatus delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) -list or watch objects of kind Ingress +delete a HorizontalPodAutoscaler ### Example ```python @@ -1801,36 +1766,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.list_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_namespaced_ingress: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1beta1IngressList**](V1beta1IngressList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1839,16 +1802,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_network_policy** -> V1beta1NetworkPolicyList list_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_namespaced_ingress** +> UnversionedStatus delete_namespaced_ingress(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) -list or watch objects of kind NetworkPolicy +delete an Ingress ### Example ```python @@ -1865,36 +1828,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.list_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_namespaced_ingress(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_namespaced_network_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_ingress: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1beta1NetworkPolicyList**](V1beta1NetworkPolicyList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1903,16 +1864,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_replica_set** -> V1beta1ReplicaSetList list_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_namespaced_job** +> UnversionedStatus delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) -list or watch objects of kind ReplicaSet +delete a Job ### Example ```python @@ -1929,36 +1890,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_namespaced_replica_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1beta1ReplicaSetList**](V1beta1ReplicaSetList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -1967,16 +1926,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_network_policy_for_all_namespaces** -> V1beta1NetworkPolicyList list_network_policy_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_namespaced_network_policy** +> UnversionedStatus delete_namespaced_network_policy(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) -list or watch objects of kind NetworkPolicy +delete a NetworkPolicy ### Example ```python @@ -1993,34 +1952,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +name = 'name_example' # str | name of the NetworkPolicy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.list_network_policy_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_namespaced_network_policy(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_network_policy_for_all_namespaces: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_network_policy: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **name** | **str**| name of the NetworkPolicy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1beta1NetworkPolicyList**](V1beta1NetworkPolicyList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -2029,16 +1988,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_pod_security_policy** -> V1beta1PodSecurityPolicyList list_pod_security_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_namespaced_replica_set** +> UnversionedStatus delete_namespaced_replica_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) -list or watch objects of kind PodSecurityPolicy +delete a ReplicaSet ### Example ```python @@ -2055,34 +2014,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ReplicaSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.list_pod_security_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_namespaced_replica_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_pod_security_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_replica_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ReplicaSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1beta1PodSecurityPolicyList**](V1beta1PodSecurityPolicyList.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -2091,16 +2050,184 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_replica_set_for_all_namespaces** -> V1beta1ReplicaSetList list_replica_set_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_pod_security_policy** +> UnversionedStatus delete_pod_security_policy(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) -list or watch objects of kind ReplicaSet +delete a PodSecurityPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the PodSecurityPolicy +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_pod_security_policy(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_pod_security_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodSecurityPolicy | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_third_party_resource** +> UnversionedStatus delete_third_party_resource(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a ThirdPartyResource + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the ThirdPartyResource +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_third_party_resource(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_third_party_resource: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ThirdPartyResource | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_api_resources** +> UnversionedAPIResourceList get_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() + +try: + api_response = api_instance.get_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->get_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_daemon_set_for_all_namespaces** +> V1beta1DaemonSetList list_daemon_set_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind DaemonSet ### Example ```python @@ -2117,34 +2244,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_replica_set_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_daemon_set_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_replica_set_for_all_namespaces: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->list_daemon_set_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1beta1ReplicaSetList**](V1beta1ReplicaSetList.md) +[**V1beta1DaemonSetList**](V1beta1DaemonSetList.md) ### Authorization @@ -2157,12 +2284,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_third_party_resource** -> V1beta1ThirdPartyResourceList list_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_deployment_for_all_namespaces** +> V1beta1DeploymentList list_deployment_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ThirdPartyResource +list or watch objects of kind Deployment ### Example ```python @@ -2180,33 +2307,1379 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_deployment_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_deployment_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1DeploymentList**](V1beta1DeploymentList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_horizontal_pod_autoscaler_for_all_namespaces** +> V1beta1HorizontalPodAutoscalerList list_horizontal_pod_autoscaler_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscalerList**](V1beta1HorizontalPodAutoscalerList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_ingress_for_all_namespaces** +> V1beta1IngressList list_ingress_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Ingress + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_ingress_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_ingress_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1IngressList**](V1beta1IngressList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_job_for_all_namespaces** +> V1beta1JobList list_job_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Job + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_job_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_job_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1JobList**](V1beta1JobList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_daemon_set** +> V1beta1DaemonSetList list_namespaced_daemon_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_daemon_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1DaemonSetList**](V1beta1DaemonSetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_deployment** +> V1beta1DeploymentList list_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Deployment + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_deployment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1DeploymentList**](V1beta1DeploymentList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_horizontal_pod_autoscaler** +> V1beta1HorizontalPodAutoscalerList list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscalerList**](V1beta1HorizontalPodAutoscalerList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_ingress** +> V1beta1IngressList list_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Ingress + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_ingress: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1IngressList**](V1beta1IngressList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_job** +> V1beta1JobList list_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Job + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1JobList**](V1beta1JobList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_network_policy** +> V1beta1NetworkPolicyList list_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1NetworkPolicyList**](V1beta1NetworkPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_replica_set** +> V1beta1ReplicaSetList list_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_replica_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ReplicaSetList**](V1beta1ReplicaSetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_network_policy_for_all_namespaces** +> V1beta1NetworkPolicyList list_network_policy_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind NetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_network_policy_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_network_policy_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1NetworkPolicyList**](V1beta1NetworkPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_pod_security_policy** +> V1beta1PodSecurityPolicyList list_pod_security_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind PodSecurityPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_pod_security_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_pod_security_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1PodSecurityPolicyList**](V1beta1PodSecurityPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_replica_set_for_all_namespaces** +> V1beta1ReplicaSetList list_replica_set_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ReplicaSet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_replica_set_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_replica_set_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ReplicaSetList**](V1beta1ReplicaSetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_third_party_resource** +> V1beta1ThirdPartyResourceList list_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ThirdPartyResource + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_third_party_resource: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ThirdPartyResourceList**](V1beta1ThirdPartyResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_daemon_set** +> V1beta1DaemonSet patch_namespaced_daemon_set(name, namespace, body, pretty=pretty) + + + +partially update the specified DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the DaemonSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_daemon_set(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_daemon_set: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DaemonSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_daemon_set_status** +> V1beta1DaemonSet patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified DaemonSet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the DaemonSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_daemon_set_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DaemonSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_deployment** +> V1beta1Deployment patch_namespaced_deployment(name, namespace, body, pretty=pretty) + + + +partially update the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Deployment | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Deployment**](V1beta1Deployment.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_deployment_status** +> V1beta1Deployment patch_namespaced_deployment_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployment_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Deployment | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Deployment**](V1beta1Deployment.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_deployments_scale** +> V1beta1Scale patch_namespaced_deployments_scale(name, namespace, body, pretty=pretty) + + + +partially update scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_deployments_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployments_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_horizontal_pod_autoscaler** +> V1beta1HorizontalPodAutoscaler patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + + + +partially update the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_horizontal_pod_autoscaler_status** +> V1beta1HorizontalPodAutoscaler patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + + + +partially update status of the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_ingress** +> V1beta1Ingress patch_namespaced_ingress(name, namespace, body, pretty=pretty) + + + +partially update the specified Ingress + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Ingress +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.list_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.patch_namespaced_ingress(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_third_party_resource: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_ingress: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Ingress | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1beta1ThirdPartyResourceList**](V1beta1ThirdPartyResourceList.md) +[**V1beta1Ingress**](V1beta1Ingress.md) ### Authorization @@ -2214,17 +3687,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_daemon_set** -> V1beta1DaemonSet patch_namespaced_daemon_set(name, namespace, body, pretty=pretty) +# **patch_namespaced_ingress_status** +> V1beta1Ingress patch_namespaced_ingress_status(name, namespace, body, pretty=pretty) -partially update the specified DaemonSet +partially update status of the specified Ingress ### Example ```python @@ -2241,30 +3714,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the DaemonSet +name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_daemon_set(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_ingress_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_daemon_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_ingress_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DaemonSet | + **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) +[**V1beta1Ingress**](V1beta1Ingress.md) ### Authorization @@ -2277,12 +3750,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_daemon_set_status** -> V1beta1DaemonSet patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) +# **patch_namespaced_job** +> V1beta1Job patch_namespaced_job(name, namespace, body, pretty=pretty) -partially update status of the specified DaemonSet +partially update the specified Job ### Example ```python @@ -2299,30 +3772,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the DaemonSet +name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_job(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_daemon_set_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DaemonSet | + **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) +[**V1beta1Job**](V1beta1Job.md) ### Authorization @@ -2335,12 +3808,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_deployment** -> ExtensionsV1beta1Deployment patch_namespaced_deployment(name, namespace, body, pretty=pretty) +# **patch_namespaced_job_status** +> V1beta1Job patch_namespaced_job_status(name, namespace, body, pretty=pretty) -partially update the specified Deployment +partially update status of the specified Job ### Example ```python @@ -2357,30 +3830,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Deployment +name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_job_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployment: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_job_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | + **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) +[**V1beta1Job**](V1beta1Job.md) ### Authorization @@ -2393,12 +3866,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_deployment_status** -> ExtensionsV1beta1Deployment patch_namespaced_deployment_status(name, namespace, body, pretty=pretty) +# **patch_namespaced_network_policy** +> V1beta1NetworkPolicy patch_namespaced_network_policy(name, namespace, body, pretty=pretty) -partially update status of the specified Deployment +partially update the specified NetworkPolicy ### Example ```python @@ -2415,30 +3888,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Deployment +name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_network_policy(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployment_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_network_policy: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | + **name** | **str**| name of the NetworkPolicy | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) +[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) ### Authorization @@ -2451,12 +3924,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_deployments_scale** -> ExtensionsV1beta1Scale patch_namespaced_deployments_scale(name, namespace, body, pretty=pretty) +# **patch_namespaced_replica_set** +> V1beta1ReplicaSet patch_namespaced_replica_set(name, namespace, body, pretty=pretty) -partially update scale of the specified Scale +partially update the specified ReplicaSet ### Example ```python @@ -2473,30 +3946,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Scale +name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_deployments_scale(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployments_scale: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Scale | + **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) ### Authorization @@ -2509,12 +3982,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_ingress** -> V1beta1Ingress patch_namespaced_ingress(name, namespace, body, pretty=pretty) +# **patch_namespaced_replica_set_status** +> V1beta1ReplicaSet patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty) -partially update the specified Ingress +partially update status of the specified ReplicaSet ### Example ```python @@ -2531,30 +4004,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Ingress +name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_ingress(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_ingress: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Ingress | + **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Ingress**](V1beta1Ingress.md) +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) ### Authorization @@ -2567,12 +4040,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_ingress_status** -> V1beta1Ingress patch_namespaced_ingress_status(name, namespace, body, pretty=pretty) +# **patch_namespaced_replicasets_scale** +> V1beta1Scale patch_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) -partially update status of the specified Ingress +partially update scale of the specified Scale ### Example ```python @@ -2589,30 +4062,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Ingress +name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_ingress_status(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_ingress_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replicasets_scale: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Ingress | + **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Ingress**](V1beta1Ingress.md) +[**V1beta1Scale**](V1beta1Scale.md) ### Authorization @@ -2625,12 +4098,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_network_policy** -> V1beta1NetworkPolicy patch_namespaced_network_policy(name, namespace, body, pretty=pretty) +# **patch_namespaced_replicationcontrollers_scale** +> V1beta1Scale patch_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) -partially update the specified NetworkPolicy +partially update scale of the specified Scale ### Example ```python @@ -2647,30 +4120,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the NetworkPolicy +name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_network_policy(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_network_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replicationcontrollers_scale: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the NetworkPolicy | + **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) +[**V1beta1Scale**](V1beta1Scale.md) ### Authorization @@ -2683,12 +4156,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_replica_set** -> V1beta1ReplicaSet patch_namespaced_replica_set(name, namespace, body, pretty=pretty) +# **patch_pod_security_policy** +> V1beta1PodSecurityPolicy patch_pod_security_policy(name, body, pretty=pretty) -partially update the specified ReplicaSet +partially update the specified PodSecurityPolicy ### Example ```python @@ -2705,30 +4178,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ReplicaSet -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +name = 'name_example' # str | name of the PodSecurityPolicy body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_pod_security_policy(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_pod_security_policy: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ReplicaSet | - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **name** | **str**| name of the PodSecurityPolicy | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) +[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) ### Authorization @@ -2741,12 +4212,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_replica_set_status** -> V1beta1ReplicaSet patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty) +# **patch_third_party_resource** +> V1beta1ThirdPartyResource patch_third_party_resource(name, body, pretty=pretty) -partially update status of the specified ReplicaSet +partially update the specified ThirdPartyResource ### Example ```python @@ -2763,30 +4234,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ReplicaSet -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +name = 'name_example' # str | name of the ThirdPartyResource body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_third_party_resource(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_third_party_resource: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ReplicaSet | - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **name** | **str**| name of the ThirdPartyResource | **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) +[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) ### Authorization @@ -2799,12 +4268,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_replicasets_scale** -> ExtensionsV1beta1Scale patch_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) +# **read_namespaced_daemon_set** +> V1beta1DaemonSet read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) -partially update scale of the specified Scale +read the specified DaemonSet ### Example ```python @@ -2821,30 +4290,32 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Scale +name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.patch_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) + api_response = api_instance.read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replicasets_scale: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_daemon_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Scale | + **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) ### Authorization @@ -2852,17 +4323,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Content-Type**: */* - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_replicationcontrollers_scale** -> ExtensionsV1beta1Scale patch_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) +# **read_namespaced_daemon_set_status** +> V1beta1DaemonSet read_namespaced_daemon_set_status(name, namespace, pretty=pretty) -partially update scale of the specified Scale +read status of the specified DaemonSet ### Example ```python @@ -2879,30 +4350,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Scale +name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) + api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replicationcontrollers_scale: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Scale | + **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) ### Authorization @@ -2910,17 +4379,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Content-Type**: */* - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_pod_security_policy** -> V1beta1PodSecurityPolicy patch_pod_security_policy(name, body, pretty=pretty) +# **read_namespaced_deployment** +> V1beta1Deployment read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) -partially update the specified PodSecurityPolicy +read the specified Deployment ### Example ```python @@ -2937,28 +4406,32 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the PodSecurityPolicy -body = NULL # object | +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.patch_pod_security_policy(name, body, pretty=pretty) + api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_pod_security_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PodSecurityPolicy | - **body** | **object**| | + **name** | **str**| name of the Deployment | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type -[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) +[**V1beta1Deployment**](V1beta1Deployment.md) ### Authorization @@ -2966,17 +4439,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Content-Type**: */* - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_third_party_resource** -> V1beta1ThirdPartyResource patch_third_party_resource(name, body, pretty=pretty) +# **read_namespaced_deployment_status** +> V1beta1Deployment read_namespaced_deployment_status(name, namespace, pretty=pretty) -partially update the specified ThirdPartyResource +read status of the specified Deployment ### Example ```python @@ -2993,28 +4466,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ThirdPartyResource -body = NULL # object | +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_third_party_resource(name, body, pretty=pretty) + api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_third_party_resource: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ThirdPartyResource | - **body** | **object**| | + **name** | **str**| name of the Deployment | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) +[**V1beta1Deployment**](V1beta1Deployment.md) ### Authorization @@ -3022,17 +4495,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Content-Type**: */* - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_daemon_set** -> V1beta1DaemonSet read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) +# **read_namespaced_deployments_scale** +> V1beta1Scale read_namespaced_deployments_scale(name, namespace, pretty=pretty) -read the specified DaemonSet +read scale of the specified Scale ### Example ```python @@ -3049,32 +4522,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the DaemonSet +name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.read_namespaced_deployments_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_daemon_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployments_scale: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DaemonSet | + **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) +[**V1beta1Scale**](V1beta1Scale.md) ### Authorization @@ -3087,12 +4556,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_daemon_set_status** -> V1beta1DaemonSet read_namespaced_daemon_set_status(name, namespace, pretty=pretty) +# **read_namespaced_horizontal_pod_autoscaler** +> V1beta1HorizontalPodAutoscaler read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) -read status of the specified DaemonSet +read the specified HorizontalPodAutoscaler ### Example ```python @@ -3109,28 +4578,32 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the DaemonSet +name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) + api_response = api_instance.read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_daemon_set_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DaemonSet | + **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) ### Authorization @@ -3143,12 +4616,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_deployment** -> ExtensionsV1beta1Deployment read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) +# **read_namespaced_horizontal_pod_autoscaler_status** +> V1beta1HorizontalPodAutoscaler read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) -read the specified Deployment +read status of the specified HorizontalPodAutoscaler ### Example ```python @@ -3165,32 +4638,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Deployment +name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | + **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) ### Authorization @@ -3203,12 +4672,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_deployment_status** -> ExtensionsV1beta1Deployment read_namespaced_deployment_status(name, namespace, pretty=pretty) +# **read_namespaced_ingress** +> V1beta1Ingress read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) -read status of the specified Deployment +read the specified Ingress ### Example ```python @@ -3225,28 +4694,32 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Deployment +name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) + api_response = api_instance.read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_ingress: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | + **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) +[**V1beta1Ingress**](V1beta1Ingress.md) ### Authorization @@ -3259,12 +4732,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_deployments_scale** -> ExtensionsV1beta1Scale read_namespaced_deployments_scale(name, namespace, pretty=pretty) +# **read_namespaced_ingress_status** +> V1beta1Ingress read_namespaced_ingress_status(name, namespace, pretty=pretty) -read scale of the specified Scale +read status of the specified Ingress ### Example ```python @@ -3281,28 +4754,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Scale +name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.read_namespaced_deployments_scale(name, namespace, pretty=pretty) + api_response = api_instance.read_namespaced_ingress_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployments_scale: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_ingress_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Scale | + **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) +[**V1beta1Ingress**](V1beta1Ingress.md) ### Authorization @@ -3315,12 +4788,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_ingress** -> V1beta1Ingress read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) +# **read_namespaced_job** +> V1beta1Job read_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) -read the specified Ingress +read the specified Job ### Example ```python @@ -3337,32 +4810,32 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Ingress +name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.read_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_ingress: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Ingress | + **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type -[**V1beta1Ingress**](V1beta1Ingress.md) +[**V1beta1Job**](V1beta1Job.md) ### Authorization @@ -3375,12 +4848,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_ingress_status** -> V1beta1Ingress read_namespaced_ingress_status(name, namespace, pretty=pretty) +# **read_namespaced_job_status** +> V1beta1Job read_namespaced_job_status(name, namespace, pretty=pretty) -read status of the specified Ingress +read status of the specified Job ### Example ```python @@ -3397,28 +4870,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Ingress +name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.read_namespaced_ingress_status(name, namespace, pretty=pretty) + api_response = api_instance.read_namespaced_job_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_ingress_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_job_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Ingress | + **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Ingress**](V1beta1Ingress.md) +[**V1beta1Job**](V1beta1Job.md) ### Authorization @@ -3456,7 +4929,7 @@ api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -3473,7 +4946,7 @@ Name | Type | Description | Notes **name** | **str**| name of the NetworkPolicy | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -3516,7 +4989,7 @@ api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -3533,7 +5006,7 @@ Name | Type | Description | Notes **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -3608,7 +5081,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replicasets_scale** -> ExtensionsV1beta1Scale read_namespaced_replicasets_scale(name, namespace, pretty=pretty) +> V1beta1Scale read_namespaced_replicasets_scale(name, namespace, pretty=pretty) @@ -3650,7 +5123,7 @@ Name | Type | Description | Notes ### Return type -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) +[**V1beta1Scale**](V1beta1Scale.md) ### Authorization @@ -3664,7 +5137,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replicationcontrollers_scale** -> ExtensionsV1beta1Scale read_namespaced_replicationcontrollers_scale(name, namespace, pretty=pretty) +> V1beta1Scale read_namespaced_replicationcontrollers_scale(name, namespace, pretty=pretty) @@ -3706,7 +5179,7 @@ Name | Type | Description | Notes ### Return type -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) +[**V1beta1Scale**](V1beta1Scale.md) ### Authorization @@ -3743,7 +5216,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the PodSecurityPolicy pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -3759,7 +5232,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodSecurityPolicy | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -3801,7 +5274,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the ThirdPartyResource pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -3817,7 +5290,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ThirdPartyResource | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type @@ -3952,7 +5425,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment** -> ExtensionsV1beta1Deployment replace_namespaced_deployment(name, namespace, body, pretty=pretty) +> V1beta1Deployment replace_namespaced_deployment(name, namespace, body, pretty=pretty) @@ -3975,7 +5448,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.ExtensionsV1beta1Deployment() # ExtensionsV1beta1Deployment | +body = kubernetes.client.V1beta1Deployment() # V1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -3991,12 +5464,12 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md)| | + **body** | [**V1beta1Deployment**](V1beta1Deployment.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) +[**V1beta1Deployment**](V1beta1Deployment.md) ### Authorization @@ -4010,7 +5483,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment_status** -> ExtensionsV1beta1Deployment replace_namespaced_deployment_status(name, namespace, body, pretty=pretty) +> V1beta1Deployment replace_namespaced_deployment_status(name, namespace, body, pretty=pretty) @@ -4033,7 +5506,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.ExtensionsV1beta1Deployment() # ExtensionsV1beta1Deployment | +body = kubernetes.client.V1beta1Deployment() # V1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -4049,12 +5522,12 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md)| | + **body** | [**V1beta1Deployment**](V1beta1Deployment.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) +[**V1beta1Deployment**](V1beta1Deployment.md) ### Authorization @@ -4068,7 +5541,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployments_scale** -> ExtensionsV1beta1Scale replace_namespaced_deployments_scale(name, namespace, body, pretty=pretty) +> V1beta1Scale replace_namespaced_deployments_scale(name, namespace, body, pretty=pretty) @@ -4091,7 +5564,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.ExtensionsV1beta1Scale() # ExtensionsV1beta1Scale | +body = kubernetes.client.V1beta1Scale() # V1beta1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -4107,12 +5580,128 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md)| | + **body** | [**V1beta1Scale**](V1beta1Scale.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_horizontal_pod_autoscaler** +> V1beta1HorizontalPodAutoscaler replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + + + +replace the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1HorizontalPodAutoscaler() # V1beta1HorizontalPodAutoscaler | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_horizontal_pod_autoscaler: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_horizontal_pod_autoscaler_status** +> V1beta1HorizontalPodAutoscaler replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1HorizontalPodAutoscaler() # V1beta1HorizontalPodAutoscaler | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HorizontalPodAutoscaler | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) +[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) ### Authorization @@ -4241,6 +5830,122 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_namespaced_job** +> V1beta1Job replace_namespaced_job(name, namespace, body, pretty=pretty) + + + +replace the specified Job + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1Job() # V1beta1Job | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_job(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Job**](V1beta1Job.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Job**](V1beta1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_job_status** +> V1beta1Job replace_namespaced_job_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified Job + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.ExtensionsV1beta1Api() +name = 'name_example' # str | name of the Job +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1Job() # V1beta1Job | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_job_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_job_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Job | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Job**](V1beta1Job.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Job**](V1beta1Job.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_network_policy** > V1beta1NetworkPolicy replace_namespaced_network_policy(name, namespace, body, pretty=pretty) @@ -4416,7 +6121,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replicasets_scale** -> ExtensionsV1beta1Scale replace_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) +> V1beta1Scale replace_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) @@ -4439,7 +6144,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.ExtensionsV1beta1Scale() # ExtensionsV1beta1Scale | +body = kubernetes.client.V1beta1Scale() # V1beta1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -4455,12 +6160,12 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md)| | + **body** | [**V1beta1Scale**](V1beta1Scale.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) +[**V1beta1Scale**](V1beta1Scale.md) ### Authorization @@ -4474,7 +6179,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replicationcontrollers_scale** -> ExtensionsV1beta1Scale replace_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) +> V1beta1Scale replace_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) @@ -4497,7 +6202,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.ExtensionsV1beta1Scale() # ExtensionsV1beta1Scale | +body = kubernetes.client.V1beta1Scale() # V1beta1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -4513,12 +6218,12 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md)| | + **body** | [**V1beta1Scale**](V1beta1Scale.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) +[**V1beta1Scale**](V1beta1Scale.md) ### Authorization diff --git a/kubernetes/docs/ExtensionsV1beta1Deployment.md b/kubernetes/docs/ExtensionsV1beta1Deployment.md deleted file mode 100644 index a5dc8b1b36..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1Deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -# ExtensionsV1beta1Deployment - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] -**spec** | [**ExtensionsV1beta1DeploymentSpec**](ExtensionsV1beta1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] -**status** | [**ExtensionsV1beta1DeploymentStatus**](ExtensionsV1beta1DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md b/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md deleted file mode 100644 index 8a1e61f582..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md +++ /dev/null @@ -1,15 +0,0 @@ -# ExtensionsV1beta1DeploymentCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_transition_time** | **datetime** | Last time the condition transitioned from one status to another. | [optional] -**last_update_time** | **datetime** | The last time this condition was updated. | [optional] -**message** | **str** | A human readable message indicating details about the transition. | [optional] -**reason** | **str** | The reason for the condition's last transition. | [optional] -**status** | **str** | Status of the condition, one of True, False, Unknown. | -**type** | **str** | Type of deployment condition. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentList.md b/kubernetes/docs/ExtensionsV1beta1DeploymentList.md deleted file mode 100644 index 97579db74c..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentList.md +++ /dev/null @@ -1,13 +0,0 @@ -# ExtensionsV1beta1DeploymentList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[ExtensionsV1beta1Deployment]**](ExtensionsV1beta1Deployment.md) | Items is the list of Deployments. | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md b/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md deleted file mode 100644 index a8c3ae8aeb..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md +++ /dev/null @@ -1,14 +0,0 @@ -# ExtensionsV1beta1DeploymentRollback - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**name** | **str** | Required: This must match the Name of a deployment. | -**rollback_to** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | The config of this deployment rollback. | -**updated_annotations** | **dict(str, str)** | The annotations to be updated to a deployment | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md b/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md deleted file mode 100644 index 8d08b0f7d4..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md +++ /dev/null @@ -1,18 +0,0 @@ -# ExtensionsV1beta1DeploymentSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] -**paused** | **bool** | Indicates that the deployment is paused and will not be processed by the deployment controller. | [optional] -**progress_deadline_seconds** | **int** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. | [optional] -**replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] -**revision_history_limit** | **int** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. | [optional] -**rollback_to** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | [optional] -**strategy** | [**ExtensionsV1beta1DeploymentStrategy**](ExtensionsV1beta1DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md b/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md deleted file mode 100644 index 0d367220ae..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# ExtensionsV1beta1DeploymentStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**available_replicas** | **int** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] -**conditions** | [**list[ExtensionsV1beta1DeploymentCondition]**](ExtensionsV1beta1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | [optional] -**observed_generation** | **int** | The generation observed by the deployment controller. | [optional] -**ready_replicas** | **int** | Total number of ready pods targeted by this deployment. | [optional] -**replicas** | **int** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). | [optional] -**unavailable_replicas** | **int** | Total number of unavailable pods targeted by this deployment. | [optional] -**updated_replicas** | **int** | Total number of non-terminated pods targeted by this deployment that have the desired template spec. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md b/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md deleted file mode 100644 index 336f836a85..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md +++ /dev/null @@ -1,11 +0,0 @@ -# ExtensionsV1beta1DeploymentStrategy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rolling_update** | [**ExtensionsV1beta1RollingUpdateDeployment**](ExtensionsV1beta1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] -**type** | **str** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md b/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md deleted file mode 100644 index b55f8fd54f..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md +++ /dev/null @@ -1,10 +0,0 @@ -# ExtensionsV1beta1RollbackConfig - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**revision** | **int** | The revision to rollback to. If set to 0, rollbck to the last revision. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md deleted file mode 100644 index 0c8ac9e218..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md +++ /dev/null @@ -1,11 +0,0 @@ -# ExtensionsV1beta1RollingUpdateDeployment - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_surge** | **str** | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. | [optional] -**max_unavailable** | **str** | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/ExtensionsV1beta1Scale.md b/kubernetes/docs/ExtensionsV1beta1Scale.md deleted file mode 100644 index 29c7cfe110..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1Scale.md +++ /dev/null @@ -1,14 +0,0 @@ -# ExtensionsV1beta1Scale - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. | [optional] -**spec** | [**ExtensionsV1beta1ScaleSpec**](ExtensionsV1beta1ScaleSpec.md) | defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**ExtensionsV1beta1ScaleStatus**](ExtensionsV1beta1ScaleStatus.md) | current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md b/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md deleted file mode 100644 index 832e3a2db8..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md +++ /dev/null @@ -1,10 +0,0 @@ -# ExtensionsV1beta1ScaleSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **int** | desired number of instances for the scaled object. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md b/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md deleted file mode 100644 index 968a35101e..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# ExtensionsV1beta1ScaleStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **int** | actual number of observed instances of the scaled object. | -**selector** | **dict(str, str)** | label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] -**target_selector** | **str** | label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the kubernetes.clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/LogsApi.md b/kubernetes/docs/LogsApi.md deleted file mode 100644 index 20861ce3b7..0000000000 --- a/kubernetes/docs/LogsApi.md +++ /dev/null @@ -1,104 +0,0 @@ -# kubernetes.client.LogsApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**log_file_handler**](LogsApi.md#log_file_handler) | **GET** /logs/{logpath} | -[**log_file_list_handler**](LogsApi.md#log_file_list_handler) | **GET** /logs/ | - - -# **log_file_handler** -> log_file_handler(logpath) - - - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.LogsApi() -logpath = 'logpath_example' # str | path to the log - -try: - api_instance.log_file_handler(logpath) -except ApiException as e: - print("Exception when calling LogsApi->log_file_handler: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **logpath** | **str**| path to the log | - -### Return type - -void (empty response body) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **log_file_list_handler** -> log_file_list_handler() - - - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.LogsApi() - -try: - api_instance.log_file_list_handler() -except ApiException as e: - print("Exception when calling LogsApi->log_file_list_handler: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -void (empty response body) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/OapiApi.md b/kubernetes/docs/OapiApi.md new file mode 100644 index 0000000000..69b9498278 --- /dev/null +++ b/kubernetes/docs/OapiApi.md @@ -0,0 +1,17166 @@ +# kubernetes.client.OapiApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**connect_post_namespaced_binary_build_request_options_instantiatebinary**](OapiApi.md#connect_post_namespaced_binary_build_request_options_instantiatebinary) | **POST** /oapi/v1/namespaces/{namespace}/buildconfigs/{name}/instantiatebinary | +[**connect_post_namespaced_status_webhooks**](OapiApi.md#connect_post_namespaced_status_webhooks) | **POST** /oapi/v1/namespaces/{namespace}/buildconfigs/{name}/webhooks | +[**connect_post_namespaced_status_webhooks_with_path**](OapiApi.md#connect_post_namespaced_status_webhooks_with_path) | **POST** /oapi/v1/namespaces/{namespace}/buildconfigs/{name}/webhooks/{path} | +[**create_build_config_for_all_namespaces**](OapiApi.md#create_build_config_for_all_namespaces) | **POST** /oapi/v1/buildconfigs | +[**create_build_for_all_namespaces**](OapiApi.md#create_build_for_all_namespaces) | **POST** /oapi/v1/builds | +[**create_cluster_network**](OapiApi.md#create_cluster_network) | **POST** /oapi/v1/clusternetworks | +[**create_cluster_policy**](OapiApi.md#create_cluster_policy) | **POST** /oapi/v1/clusterpolicies | +[**create_cluster_policy_binding**](OapiApi.md#create_cluster_policy_binding) | **POST** /oapi/v1/clusterpolicybindings | +[**create_cluster_resource_quota**](OapiApi.md#create_cluster_resource_quota) | **POST** /oapi/v1/clusterresourcequotas | +[**create_cluster_role**](OapiApi.md#create_cluster_role) | **POST** /oapi/v1/clusterroles | +[**create_cluster_role_binding**](OapiApi.md#create_cluster_role_binding) | **POST** /oapi/v1/clusterrolebindings | +[**create_deployment_config_for_all_namespaces**](OapiApi.md#create_deployment_config_for_all_namespaces) | **POST** /oapi/v1/deploymentconfigs | +[**create_deployment_config_rollback_for_all_namespaces**](OapiApi.md#create_deployment_config_rollback_for_all_namespaces) | **POST** /oapi/v1/deploymentconfigrollbacks | +[**create_egress_network_policy_for_all_namespaces**](OapiApi.md#create_egress_network_policy_for_all_namespaces) | **POST** /oapi/v1/egressnetworkpolicies | +[**create_group**](OapiApi.md#create_group) | **POST** /oapi/v1/groups | +[**create_host_subnet**](OapiApi.md#create_host_subnet) | **POST** /oapi/v1/hostsubnets | +[**create_identity**](OapiApi.md#create_identity) | **POST** /oapi/v1/identities | +[**create_image**](OapiApi.md#create_image) | **POST** /oapi/v1/images | +[**create_image_signature**](OapiApi.md#create_image_signature) | **POST** /oapi/v1/imagesignatures | +[**create_image_stream_for_all_namespaces**](OapiApi.md#create_image_stream_for_all_namespaces) | **POST** /oapi/v1/imagestreams | +[**create_image_stream_import_for_all_namespaces**](OapiApi.md#create_image_stream_import_for_all_namespaces) | **POST** /oapi/v1/imagestreamimports | +[**create_image_stream_mapping_for_all_namespaces**](OapiApi.md#create_image_stream_mapping_for_all_namespaces) | **POST** /oapi/v1/imagestreammappings | +[**create_image_stream_tag_for_all_namespaces**](OapiApi.md#create_image_stream_tag_for_all_namespaces) | **POST** /oapi/v1/imagestreamtags | +[**create_local_resource_access_review_for_all_namespaces**](OapiApi.md#create_local_resource_access_review_for_all_namespaces) | **POST** /oapi/v1/localresourceaccessreviews | +[**create_local_subject_access_review_for_all_namespaces**](OapiApi.md#create_local_subject_access_review_for_all_namespaces) | **POST** /oapi/v1/localsubjectaccessreviews | +[**create_namespaced_build**](OapiApi.md#create_namespaced_build) | **POST** /oapi/v1/namespaces/{namespace}/builds | +[**create_namespaced_build_config**](OapiApi.md#create_namespaced_build_config) | **POST** /oapi/v1/namespaces/{namespace}/buildconfigs | +[**create_namespaced_build_request_clone**](OapiApi.md#create_namespaced_build_request_clone) | **POST** /oapi/v1/namespaces/{namespace}/builds/{name}/clone | +[**create_namespaced_build_request_instantiate**](OapiApi.md#create_namespaced_build_request_instantiate) | **POST** /oapi/v1/namespaces/{namespace}/buildconfigs/{name}/instantiate | +[**create_namespaced_deployment_config**](OapiApi.md#create_namespaced_deployment_config) | **POST** /oapi/v1/namespaces/{namespace}/deploymentconfigs | +[**create_namespaced_deployment_config_rollback**](OapiApi.md#create_namespaced_deployment_config_rollback) | **POST** /oapi/v1/namespaces/{namespace}/deploymentconfigrollbacks | +[**create_namespaced_deployment_config_rollback_rollback**](OapiApi.md#create_namespaced_deployment_config_rollback_rollback) | **POST** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/rollback | +[**create_namespaced_deployment_request_instantiate**](OapiApi.md#create_namespaced_deployment_request_instantiate) | **POST** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/instantiate | +[**create_namespaced_egress_network_policy**](OapiApi.md#create_namespaced_egress_network_policy) | **POST** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies | +[**create_namespaced_image_stream**](OapiApi.md#create_namespaced_image_stream) | **POST** /oapi/v1/namespaces/{namespace}/imagestreams | +[**create_namespaced_image_stream_import**](OapiApi.md#create_namespaced_image_stream_import) | **POST** /oapi/v1/namespaces/{namespace}/imagestreamimports | +[**create_namespaced_image_stream_mapping**](OapiApi.md#create_namespaced_image_stream_mapping) | **POST** /oapi/v1/namespaces/{namespace}/imagestreammappings | +[**create_namespaced_image_stream_tag**](OapiApi.md#create_namespaced_image_stream_tag) | **POST** /oapi/v1/namespaces/{namespace}/imagestreamtags | +[**create_namespaced_local_resource_access_review**](OapiApi.md#create_namespaced_local_resource_access_review) | **POST** /oapi/v1/namespaces/{namespace}/localresourceaccessreviews | +[**create_namespaced_local_subject_access_review**](OapiApi.md#create_namespaced_local_subject_access_review) | **POST** /oapi/v1/namespaces/{namespace}/localsubjectaccessreviews | +[**create_namespaced_pod_security_policy_review**](OapiApi.md#create_namespaced_pod_security_policy_review) | **POST** /oapi/v1/namespaces/{namespace}/podsecuritypolicyreviews | +[**create_namespaced_pod_security_policy_self_subject_review**](OapiApi.md#create_namespaced_pod_security_policy_self_subject_review) | **POST** /oapi/v1/namespaces/{namespace}/podsecuritypolicyselfsubjectreviews | +[**create_namespaced_pod_security_policy_subject_review**](OapiApi.md#create_namespaced_pod_security_policy_subject_review) | **POST** /oapi/v1/namespaces/{namespace}/podsecuritypolicysubjectreviews | +[**create_namespaced_policy**](OapiApi.md#create_namespaced_policy) | **POST** /oapi/v1/namespaces/{namespace}/policies | +[**create_namespaced_policy_binding**](OapiApi.md#create_namespaced_policy_binding) | **POST** /oapi/v1/namespaces/{namespace}/policybindings | +[**create_namespaced_resource_access_review**](OapiApi.md#create_namespaced_resource_access_review) | **POST** /oapi/v1/namespaces/{namespace}/resourceaccessreviews | +[**create_namespaced_role**](OapiApi.md#create_namespaced_role) | **POST** /oapi/v1/namespaces/{namespace}/roles | +[**create_namespaced_role_binding**](OapiApi.md#create_namespaced_role_binding) | **POST** /oapi/v1/namespaces/{namespace}/rolebindings | +[**create_namespaced_role_binding_restriction**](OapiApi.md#create_namespaced_role_binding_restriction) | **POST** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions | +[**create_namespaced_route**](OapiApi.md#create_namespaced_route) | **POST** /oapi/v1/namespaces/{namespace}/routes | +[**create_namespaced_self_subject_rules_review**](OapiApi.md#create_namespaced_self_subject_rules_review) | **POST** /oapi/v1/namespaces/{namespace}/selfsubjectrulesreviews | +[**create_namespaced_subject_access_review**](OapiApi.md#create_namespaced_subject_access_review) | **POST** /oapi/v1/namespaces/{namespace}/subjectaccessreviews | +[**create_namespaced_subject_rules_review**](OapiApi.md#create_namespaced_subject_rules_review) | **POST** /oapi/v1/namespaces/{namespace}/subjectrulesreviews | +[**create_namespaced_template**](OapiApi.md#create_namespaced_template) | **POST** /oapi/v1/namespaces/{namespace}/templates | +[**create_net_namespace**](OapiApi.md#create_net_namespace) | **POST** /oapi/v1/netnamespaces | +[**create_o_auth_access_token**](OapiApi.md#create_o_auth_access_token) | **POST** /oapi/v1/oauthaccesstokens | +[**create_o_auth_authorize_token**](OapiApi.md#create_o_auth_authorize_token) | **POST** /oapi/v1/oauthauthorizetokens | +[**create_o_auth_client**](OapiApi.md#create_o_auth_client) | **POST** /oapi/v1/oauthclients | +[**create_o_auth_client_authorization**](OapiApi.md#create_o_auth_client_authorization) | **POST** /oapi/v1/oauthclientauthorizations | +[**create_pod_security_policy_review_for_all_namespaces**](OapiApi.md#create_pod_security_policy_review_for_all_namespaces) | **POST** /oapi/v1/podsecuritypolicyreviews | +[**create_pod_security_policy_self_subject_review_for_all_namespaces**](OapiApi.md#create_pod_security_policy_self_subject_review_for_all_namespaces) | **POST** /oapi/v1/podsecuritypolicyselfsubjectreviews | +[**create_pod_security_policy_subject_review_for_all_namespaces**](OapiApi.md#create_pod_security_policy_subject_review_for_all_namespaces) | **POST** /oapi/v1/podsecuritypolicysubjectreviews | +[**create_policy_binding_for_all_namespaces**](OapiApi.md#create_policy_binding_for_all_namespaces) | **POST** /oapi/v1/policybindings | +[**create_policy_for_all_namespaces**](OapiApi.md#create_policy_for_all_namespaces) | **POST** /oapi/v1/policies | +[**create_project**](OapiApi.md#create_project) | **POST** /oapi/v1/projects | +[**create_project_request**](OapiApi.md#create_project_request) | **POST** /oapi/v1/projectrequests | +[**create_resource_access_review_for_all_namespaces**](OapiApi.md#create_resource_access_review_for_all_namespaces) | **POST** /oapi/v1/resourceaccessreviews | +[**create_role_binding_for_all_namespaces**](OapiApi.md#create_role_binding_for_all_namespaces) | **POST** /oapi/v1/rolebindings | +[**create_role_binding_restriction_for_all_namespaces**](OapiApi.md#create_role_binding_restriction_for_all_namespaces) | **POST** /oapi/v1/rolebindingrestrictions | +[**create_role_for_all_namespaces**](OapiApi.md#create_role_for_all_namespaces) | **POST** /oapi/v1/roles | +[**create_route_for_all_namespaces**](OapiApi.md#create_route_for_all_namespaces) | **POST** /oapi/v1/routes | +[**create_self_subject_rules_review_for_all_namespaces**](OapiApi.md#create_self_subject_rules_review_for_all_namespaces) | **POST** /oapi/v1/selfsubjectrulesreviews | +[**create_subject_access_review_for_all_namespaces**](OapiApi.md#create_subject_access_review_for_all_namespaces) | **POST** /oapi/v1/subjectaccessreviews | +[**create_subject_rules_review_for_all_namespaces**](OapiApi.md#create_subject_rules_review_for_all_namespaces) | **POST** /oapi/v1/subjectrulesreviews | +[**create_template_for_all_namespaces**](OapiApi.md#create_template_for_all_namespaces) | **POST** /oapi/v1/templates | +[**create_user**](OapiApi.md#create_user) | **POST** /oapi/v1/users | +[**create_user_identity_mapping**](OapiApi.md#create_user_identity_mapping) | **POST** /oapi/v1/useridentitymappings | +[**delete_cluster_network**](OapiApi.md#delete_cluster_network) | **DELETE** /oapi/v1/clusternetworks/{name} | +[**delete_cluster_policy**](OapiApi.md#delete_cluster_policy) | **DELETE** /oapi/v1/clusterpolicies/{name} | +[**delete_cluster_policy_binding**](OapiApi.md#delete_cluster_policy_binding) | **DELETE** /oapi/v1/clusterpolicybindings/{name} | +[**delete_cluster_resource_quota**](OapiApi.md#delete_cluster_resource_quota) | **DELETE** /oapi/v1/clusterresourcequotas/{name} | +[**delete_cluster_role**](OapiApi.md#delete_cluster_role) | **DELETE** /oapi/v1/clusterroles/{name} | +[**delete_cluster_role_binding**](OapiApi.md#delete_cluster_role_binding) | **DELETE** /oapi/v1/clusterrolebindings/{name} | +[**delete_collection_cluster_network**](OapiApi.md#delete_collection_cluster_network) | **DELETE** /oapi/v1/clusternetworks | +[**delete_collection_cluster_policy**](OapiApi.md#delete_collection_cluster_policy) | **DELETE** /oapi/v1/clusterpolicies | +[**delete_collection_cluster_policy_binding**](OapiApi.md#delete_collection_cluster_policy_binding) | **DELETE** /oapi/v1/clusterpolicybindings | +[**delete_collection_cluster_resource_quota**](OapiApi.md#delete_collection_cluster_resource_quota) | **DELETE** /oapi/v1/clusterresourcequotas | +[**delete_collection_group**](OapiApi.md#delete_collection_group) | **DELETE** /oapi/v1/groups | +[**delete_collection_host_subnet**](OapiApi.md#delete_collection_host_subnet) | **DELETE** /oapi/v1/hostsubnets | +[**delete_collection_identity**](OapiApi.md#delete_collection_identity) | **DELETE** /oapi/v1/identities | +[**delete_collection_image**](OapiApi.md#delete_collection_image) | **DELETE** /oapi/v1/images | +[**delete_collection_namespaced_build**](OapiApi.md#delete_collection_namespaced_build) | **DELETE** /oapi/v1/namespaces/{namespace}/builds | +[**delete_collection_namespaced_build_config**](OapiApi.md#delete_collection_namespaced_build_config) | **DELETE** /oapi/v1/namespaces/{namespace}/buildconfigs | +[**delete_collection_namespaced_deployment_config**](OapiApi.md#delete_collection_namespaced_deployment_config) | **DELETE** /oapi/v1/namespaces/{namespace}/deploymentconfigs | +[**delete_collection_namespaced_egress_network_policy**](OapiApi.md#delete_collection_namespaced_egress_network_policy) | **DELETE** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies | +[**delete_collection_namespaced_image_stream**](OapiApi.md#delete_collection_namespaced_image_stream) | **DELETE** /oapi/v1/namespaces/{namespace}/imagestreams | +[**delete_collection_namespaced_policy**](OapiApi.md#delete_collection_namespaced_policy) | **DELETE** /oapi/v1/namespaces/{namespace}/policies | +[**delete_collection_namespaced_policy_binding**](OapiApi.md#delete_collection_namespaced_policy_binding) | **DELETE** /oapi/v1/namespaces/{namespace}/policybindings | +[**delete_collection_namespaced_role_binding_restriction**](OapiApi.md#delete_collection_namespaced_role_binding_restriction) | **DELETE** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions | +[**delete_collection_namespaced_route**](OapiApi.md#delete_collection_namespaced_route) | **DELETE** /oapi/v1/namespaces/{namespace}/routes | +[**delete_collection_namespaced_template**](OapiApi.md#delete_collection_namespaced_template) | **DELETE** /oapi/v1/namespaces/{namespace}/templates | +[**delete_collection_net_namespace**](OapiApi.md#delete_collection_net_namespace) | **DELETE** /oapi/v1/netnamespaces | +[**delete_collection_o_auth_access_token**](OapiApi.md#delete_collection_o_auth_access_token) | **DELETE** /oapi/v1/oauthaccesstokens | +[**delete_collection_o_auth_authorize_token**](OapiApi.md#delete_collection_o_auth_authorize_token) | **DELETE** /oapi/v1/oauthauthorizetokens | +[**delete_collection_o_auth_client**](OapiApi.md#delete_collection_o_auth_client) | **DELETE** /oapi/v1/oauthclients | +[**delete_collection_o_auth_client_authorization**](OapiApi.md#delete_collection_o_auth_client_authorization) | **DELETE** /oapi/v1/oauthclientauthorizations | +[**delete_collection_user**](OapiApi.md#delete_collection_user) | **DELETE** /oapi/v1/users | +[**delete_group**](OapiApi.md#delete_group) | **DELETE** /oapi/v1/groups/{name} | +[**delete_host_subnet**](OapiApi.md#delete_host_subnet) | **DELETE** /oapi/v1/hostsubnets/{name} | +[**delete_identity**](OapiApi.md#delete_identity) | **DELETE** /oapi/v1/identities/{name} | +[**delete_image**](OapiApi.md#delete_image) | **DELETE** /oapi/v1/images/{name} | +[**delete_image_signature**](OapiApi.md#delete_image_signature) | **DELETE** /oapi/v1/imagesignatures/{name} | +[**delete_namespaced_build**](OapiApi.md#delete_namespaced_build) | **DELETE** /oapi/v1/namespaces/{namespace}/builds/{name} | +[**delete_namespaced_build_config**](OapiApi.md#delete_namespaced_build_config) | **DELETE** /oapi/v1/namespaces/{namespace}/buildconfigs/{name} | +[**delete_namespaced_deployment_config**](OapiApi.md#delete_namespaced_deployment_config) | **DELETE** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name} | +[**delete_namespaced_egress_network_policy**](OapiApi.md#delete_namespaced_egress_network_policy) | **DELETE** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name} | +[**delete_namespaced_image_stream**](OapiApi.md#delete_namespaced_image_stream) | **DELETE** /oapi/v1/namespaces/{namespace}/imagestreams/{name} | +[**delete_namespaced_image_stream_tag**](OapiApi.md#delete_namespaced_image_stream_tag) | **DELETE** /oapi/v1/namespaces/{namespace}/imagestreamtags/{name} | +[**delete_namespaced_policy**](OapiApi.md#delete_namespaced_policy) | **DELETE** /oapi/v1/namespaces/{namespace}/policies/{name} | +[**delete_namespaced_policy_binding**](OapiApi.md#delete_namespaced_policy_binding) | **DELETE** /oapi/v1/namespaces/{namespace}/policybindings/{name} | +[**delete_namespaced_role**](OapiApi.md#delete_namespaced_role) | **DELETE** /oapi/v1/namespaces/{namespace}/roles/{name} | +[**delete_namespaced_role_binding**](OapiApi.md#delete_namespaced_role_binding) | **DELETE** /oapi/v1/namespaces/{namespace}/rolebindings/{name} | +[**delete_namespaced_role_binding_restriction**](OapiApi.md#delete_namespaced_role_binding_restriction) | **DELETE** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name} | +[**delete_namespaced_route**](OapiApi.md#delete_namespaced_route) | **DELETE** /oapi/v1/namespaces/{namespace}/routes/{name} | +[**delete_namespaced_template**](OapiApi.md#delete_namespaced_template) | **DELETE** /oapi/v1/namespaces/{namespace}/templates/{name} | +[**delete_net_namespace**](OapiApi.md#delete_net_namespace) | **DELETE** /oapi/v1/netnamespaces/{name} | +[**delete_o_auth_access_token**](OapiApi.md#delete_o_auth_access_token) | **DELETE** /oapi/v1/oauthaccesstokens/{name} | +[**delete_o_auth_authorize_token**](OapiApi.md#delete_o_auth_authorize_token) | **DELETE** /oapi/v1/oauthauthorizetokens/{name} | +[**delete_o_auth_client**](OapiApi.md#delete_o_auth_client) | **DELETE** /oapi/v1/oauthclients/{name} | +[**delete_o_auth_client_authorization**](OapiApi.md#delete_o_auth_client_authorization) | **DELETE** /oapi/v1/oauthclientauthorizations/{name} | +[**delete_project**](OapiApi.md#delete_project) | **DELETE** /oapi/v1/projects/{name} | +[**delete_user**](OapiApi.md#delete_user) | **DELETE** /oapi/v1/users/{name} | +[**delete_user_identity_mapping**](OapiApi.md#delete_user_identity_mapping) | **DELETE** /oapi/v1/useridentitymappings/{name} | +[**get_api_resources**](OapiApi.md#get_api_resources) | **GET** /oapi/v1/ | +[**get_version**](OapiApi.md#get_version) | **GET** /oapi/ | +[**list_applied_cluster_resource_quota_for_all_namespaces**](OapiApi.md#list_applied_cluster_resource_quota_for_all_namespaces) | **GET** /oapi/v1/appliedclusterresourcequotas | +[**list_build_config_for_all_namespaces**](OapiApi.md#list_build_config_for_all_namespaces) | **GET** /oapi/v1/buildconfigs | +[**list_build_for_all_namespaces**](OapiApi.md#list_build_for_all_namespaces) | **GET** /oapi/v1/builds | +[**list_cluster_network**](OapiApi.md#list_cluster_network) | **GET** /oapi/v1/clusternetworks | +[**list_cluster_policy**](OapiApi.md#list_cluster_policy) | **GET** /oapi/v1/clusterpolicies | +[**list_cluster_policy_binding**](OapiApi.md#list_cluster_policy_binding) | **GET** /oapi/v1/clusterpolicybindings | +[**list_cluster_resource_quota**](OapiApi.md#list_cluster_resource_quota) | **GET** /oapi/v1/clusterresourcequotas | +[**list_cluster_role**](OapiApi.md#list_cluster_role) | **GET** /oapi/v1/clusterroles | +[**list_cluster_role_binding**](OapiApi.md#list_cluster_role_binding) | **GET** /oapi/v1/clusterrolebindings | +[**list_deployment_config_for_all_namespaces**](OapiApi.md#list_deployment_config_for_all_namespaces) | **GET** /oapi/v1/deploymentconfigs | +[**list_egress_network_policy_for_all_namespaces**](OapiApi.md#list_egress_network_policy_for_all_namespaces) | **GET** /oapi/v1/egressnetworkpolicies | +[**list_group**](OapiApi.md#list_group) | **GET** /oapi/v1/groups | +[**list_host_subnet**](OapiApi.md#list_host_subnet) | **GET** /oapi/v1/hostsubnets | +[**list_identity**](OapiApi.md#list_identity) | **GET** /oapi/v1/identities | +[**list_image**](OapiApi.md#list_image) | **GET** /oapi/v1/images | +[**list_image_stream_for_all_namespaces**](OapiApi.md#list_image_stream_for_all_namespaces) | **GET** /oapi/v1/imagestreams | +[**list_image_stream_tag_for_all_namespaces**](OapiApi.md#list_image_stream_tag_for_all_namespaces) | **GET** /oapi/v1/imagestreamtags | +[**list_namespaced_applied_cluster_resource_quota**](OapiApi.md#list_namespaced_applied_cluster_resource_quota) | **GET** /oapi/v1/namespaces/{namespace}/appliedclusterresourcequotas | +[**list_namespaced_build**](OapiApi.md#list_namespaced_build) | **GET** /oapi/v1/namespaces/{namespace}/builds | +[**list_namespaced_build_config**](OapiApi.md#list_namespaced_build_config) | **GET** /oapi/v1/namespaces/{namespace}/buildconfigs | +[**list_namespaced_deployment_config**](OapiApi.md#list_namespaced_deployment_config) | **GET** /oapi/v1/namespaces/{namespace}/deploymentconfigs | +[**list_namespaced_egress_network_policy**](OapiApi.md#list_namespaced_egress_network_policy) | **GET** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies | +[**list_namespaced_image_stream**](OapiApi.md#list_namespaced_image_stream) | **GET** /oapi/v1/namespaces/{namespace}/imagestreams | +[**list_namespaced_image_stream_tag**](OapiApi.md#list_namespaced_image_stream_tag) | **GET** /oapi/v1/namespaces/{namespace}/imagestreamtags | +[**list_namespaced_policy**](OapiApi.md#list_namespaced_policy) | **GET** /oapi/v1/namespaces/{namespace}/policies | +[**list_namespaced_policy_binding**](OapiApi.md#list_namespaced_policy_binding) | **GET** /oapi/v1/namespaces/{namespace}/policybindings | +[**list_namespaced_role**](OapiApi.md#list_namespaced_role) | **GET** /oapi/v1/namespaces/{namespace}/roles | +[**list_namespaced_role_binding**](OapiApi.md#list_namespaced_role_binding) | **GET** /oapi/v1/namespaces/{namespace}/rolebindings | +[**list_namespaced_role_binding_restriction**](OapiApi.md#list_namespaced_role_binding_restriction) | **GET** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions | +[**list_namespaced_route**](OapiApi.md#list_namespaced_route) | **GET** /oapi/v1/namespaces/{namespace}/routes | +[**list_namespaced_template**](OapiApi.md#list_namespaced_template) | **GET** /oapi/v1/namespaces/{namespace}/templates | +[**list_net_namespace**](OapiApi.md#list_net_namespace) | **GET** /oapi/v1/netnamespaces | +[**list_o_auth_access_token**](OapiApi.md#list_o_auth_access_token) | **GET** /oapi/v1/oauthaccesstokens | +[**list_o_auth_authorize_token**](OapiApi.md#list_o_auth_authorize_token) | **GET** /oapi/v1/oauthauthorizetokens | +[**list_o_auth_client**](OapiApi.md#list_o_auth_client) | **GET** /oapi/v1/oauthclients | +[**list_o_auth_client_authorization**](OapiApi.md#list_o_auth_client_authorization) | **GET** /oapi/v1/oauthclientauthorizations | +[**list_policy_binding_for_all_namespaces**](OapiApi.md#list_policy_binding_for_all_namespaces) | **GET** /oapi/v1/policybindings | +[**list_policy_for_all_namespaces**](OapiApi.md#list_policy_for_all_namespaces) | **GET** /oapi/v1/policies | +[**list_project**](OapiApi.md#list_project) | **GET** /oapi/v1/projects | +[**list_project_request**](OapiApi.md#list_project_request) | **GET** /oapi/v1/projectrequests | +[**list_role_binding_for_all_namespaces**](OapiApi.md#list_role_binding_for_all_namespaces) | **GET** /oapi/v1/rolebindings | +[**list_role_binding_restriction_for_all_namespaces**](OapiApi.md#list_role_binding_restriction_for_all_namespaces) | **GET** /oapi/v1/rolebindingrestrictions | +[**list_role_for_all_namespaces**](OapiApi.md#list_role_for_all_namespaces) | **GET** /oapi/v1/roles | +[**list_route_for_all_namespaces**](OapiApi.md#list_route_for_all_namespaces) | **GET** /oapi/v1/routes | +[**list_template_for_all_namespaces**](OapiApi.md#list_template_for_all_namespaces) | **GET** /oapi/v1/templates | +[**list_user**](OapiApi.md#list_user) | **GET** /oapi/v1/users | +[**patch_cluster_network**](OapiApi.md#patch_cluster_network) | **PATCH** /oapi/v1/clusternetworks/{name} | +[**patch_cluster_policy**](OapiApi.md#patch_cluster_policy) | **PATCH** /oapi/v1/clusterpolicies/{name} | +[**patch_cluster_policy_binding**](OapiApi.md#patch_cluster_policy_binding) | **PATCH** /oapi/v1/clusterpolicybindings/{name} | +[**patch_cluster_resource_quota**](OapiApi.md#patch_cluster_resource_quota) | **PATCH** /oapi/v1/clusterresourcequotas/{name} | +[**patch_cluster_resource_quota_status**](OapiApi.md#patch_cluster_resource_quota_status) | **PATCH** /oapi/v1/clusterresourcequotas/{name}/status | +[**patch_cluster_role**](OapiApi.md#patch_cluster_role) | **PATCH** /oapi/v1/clusterroles/{name} | +[**patch_cluster_role_binding**](OapiApi.md#patch_cluster_role_binding) | **PATCH** /oapi/v1/clusterrolebindings/{name} | +[**patch_group**](OapiApi.md#patch_group) | **PATCH** /oapi/v1/groups/{name} | +[**patch_host_subnet**](OapiApi.md#patch_host_subnet) | **PATCH** /oapi/v1/hostsubnets/{name} | +[**patch_identity**](OapiApi.md#patch_identity) | **PATCH** /oapi/v1/identities/{name} | +[**patch_image**](OapiApi.md#patch_image) | **PATCH** /oapi/v1/images/{name} | +[**patch_namespaced_build**](OapiApi.md#patch_namespaced_build) | **PATCH** /oapi/v1/namespaces/{namespace}/builds/{name} | +[**patch_namespaced_build_config**](OapiApi.md#patch_namespaced_build_config) | **PATCH** /oapi/v1/namespaces/{namespace}/buildconfigs/{name} | +[**patch_namespaced_deployment_config**](OapiApi.md#patch_namespaced_deployment_config) | **PATCH** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name} | +[**patch_namespaced_egress_network_policy**](OapiApi.md#patch_namespaced_egress_network_policy) | **PATCH** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name} | +[**patch_namespaced_image_stream**](OapiApi.md#patch_namespaced_image_stream) | **PATCH** /oapi/v1/namespaces/{namespace}/imagestreams/{name} | +[**patch_namespaced_image_stream_tag**](OapiApi.md#patch_namespaced_image_stream_tag) | **PATCH** /oapi/v1/namespaces/{namespace}/imagestreamtags/{name} | +[**patch_namespaced_policy**](OapiApi.md#patch_namespaced_policy) | **PATCH** /oapi/v1/namespaces/{namespace}/policies/{name} | +[**patch_namespaced_policy_binding**](OapiApi.md#patch_namespaced_policy_binding) | **PATCH** /oapi/v1/namespaces/{namespace}/policybindings/{name} | +[**patch_namespaced_role**](OapiApi.md#patch_namespaced_role) | **PATCH** /oapi/v1/namespaces/{namespace}/roles/{name} | +[**patch_namespaced_role_binding**](OapiApi.md#patch_namespaced_role_binding) | **PATCH** /oapi/v1/namespaces/{namespace}/rolebindings/{name} | +[**patch_namespaced_role_binding_restriction**](OapiApi.md#patch_namespaced_role_binding_restriction) | **PATCH** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name} | +[**patch_namespaced_route**](OapiApi.md#patch_namespaced_route) | **PATCH** /oapi/v1/namespaces/{namespace}/routes/{name} | +[**patch_namespaced_scale_scale**](OapiApi.md#patch_namespaced_scale_scale) | **PATCH** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale | +[**patch_namespaced_template**](OapiApi.md#patch_namespaced_template) | **PATCH** /oapi/v1/namespaces/{namespace}/templates/{name} | +[**patch_net_namespace**](OapiApi.md#patch_net_namespace) | **PATCH** /oapi/v1/netnamespaces/{name} | +[**patch_o_auth_access_token**](OapiApi.md#patch_o_auth_access_token) | **PATCH** /oapi/v1/oauthaccesstokens/{name} | +[**patch_o_auth_authorize_token**](OapiApi.md#patch_o_auth_authorize_token) | **PATCH** /oapi/v1/oauthauthorizetokens/{name} | +[**patch_o_auth_client**](OapiApi.md#patch_o_auth_client) | **PATCH** /oapi/v1/oauthclients/{name} | +[**patch_o_auth_client_authorization**](OapiApi.md#patch_o_auth_client_authorization) | **PATCH** /oapi/v1/oauthclientauthorizations/{name} | +[**patch_project**](OapiApi.md#patch_project) | **PATCH** /oapi/v1/projects/{name} | +[**patch_user**](OapiApi.md#patch_user) | **PATCH** /oapi/v1/users/{name} | +[**patch_user_identity_mapping**](OapiApi.md#patch_user_identity_mapping) | **PATCH** /oapi/v1/useridentitymappings/{name} | +[**read_cluster_network**](OapiApi.md#read_cluster_network) | **GET** /oapi/v1/clusternetworks/{name} | +[**read_cluster_policy**](OapiApi.md#read_cluster_policy) | **GET** /oapi/v1/clusterpolicies/{name} | +[**read_cluster_policy_binding**](OapiApi.md#read_cluster_policy_binding) | **GET** /oapi/v1/clusterpolicybindings/{name} | +[**read_cluster_resource_quota**](OapiApi.md#read_cluster_resource_quota) | **GET** /oapi/v1/clusterresourcequotas/{name} | +[**read_cluster_resource_quota_status**](OapiApi.md#read_cluster_resource_quota_status) | **GET** /oapi/v1/clusterresourcequotas/{name}/status | +[**read_cluster_role**](OapiApi.md#read_cluster_role) | **GET** /oapi/v1/clusterroles/{name} | +[**read_cluster_role_binding**](OapiApi.md#read_cluster_role_binding) | **GET** /oapi/v1/clusterrolebindings/{name} | +[**read_group**](OapiApi.md#read_group) | **GET** /oapi/v1/groups/{name} | +[**read_host_subnet**](OapiApi.md#read_host_subnet) | **GET** /oapi/v1/hostsubnets/{name} | +[**read_identity**](OapiApi.md#read_identity) | **GET** /oapi/v1/identities/{name} | +[**read_image**](OapiApi.md#read_image) | **GET** /oapi/v1/images/{name} | +[**read_namespaced_applied_cluster_resource_quota**](OapiApi.md#read_namespaced_applied_cluster_resource_quota) | **GET** /oapi/v1/namespaces/{namespace}/appliedclusterresourcequotas/{name} | +[**read_namespaced_build**](OapiApi.md#read_namespaced_build) | **GET** /oapi/v1/namespaces/{namespace}/builds/{name} | +[**read_namespaced_build_config**](OapiApi.md#read_namespaced_build_config) | **GET** /oapi/v1/namespaces/{namespace}/buildconfigs/{name} | +[**read_namespaced_build_log_log**](OapiApi.md#read_namespaced_build_log_log) | **GET** /oapi/v1/namespaces/{namespace}/builds/{name}/log | +[**read_namespaced_deployment_config**](OapiApi.md#read_namespaced_deployment_config) | **GET** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name} | +[**read_namespaced_deployment_log_log**](OapiApi.md#read_namespaced_deployment_log_log) | **GET** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/log | +[**read_namespaced_egress_network_policy**](OapiApi.md#read_namespaced_egress_network_policy) | **GET** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name} | +[**read_namespaced_image_stream**](OapiApi.md#read_namespaced_image_stream) | **GET** /oapi/v1/namespaces/{namespace}/imagestreams/{name} | +[**read_namespaced_image_stream_image**](OapiApi.md#read_namespaced_image_stream_image) | **GET** /oapi/v1/namespaces/{namespace}/imagestreamimages/{name} | +[**read_namespaced_image_stream_tag**](OapiApi.md#read_namespaced_image_stream_tag) | **GET** /oapi/v1/namespaces/{namespace}/imagestreamtags/{name} | +[**read_namespaced_policy**](OapiApi.md#read_namespaced_policy) | **GET** /oapi/v1/namespaces/{namespace}/policies/{name} | +[**read_namespaced_policy_binding**](OapiApi.md#read_namespaced_policy_binding) | **GET** /oapi/v1/namespaces/{namespace}/policybindings/{name} | +[**read_namespaced_role**](OapiApi.md#read_namespaced_role) | **GET** /oapi/v1/namespaces/{namespace}/roles/{name} | +[**read_namespaced_role_binding**](OapiApi.md#read_namespaced_role_binding) | **GET** /oapi/v1/namespaces/{namespace}/rolebindings/{name} | +[**read_namespaced_role_binding_restriction**](OapiApi.md#read_namespaced_role_binding_restriction) | **GET** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name} | +[**read_namespaced_route**](OapiApi.md#read_namespaced_route) | **GET** /oapi/v1/namespaces/{namespace}/routes/{name} | +[**read_namespaced_scale_scale**](OapiApi.md#read_namespaced_scale_scale) | **GET** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale | +[**read_namespaced_secret_list_secrets**](OapiApi.md#read_namespaced_secret_list_secrets) | **GET** /oapi/v1/namespaces/{namespace}/imagestreams/{name}/secrets | +[**read_namespaced_template**](OapiApi.md#read_namespaced_template) | **GET** /oapi/v1/namespaces/{namespace}/templates/{name} | +[**read_net_namespace**](OapiApi.md#read_net_namespace) | **GET** /oapi/v1/netnamespaces/{name} | +[**read_o_auth_access_token**](OapiApi.md#read_o_auth_access_token) | **GET** /oapi/v1/oauthaccesstokens/{name} | +[**read_o_auth_authorize_token**](OapiApi.md#read_o_auth_authorize_token) | **GET** /oapi/v1/oauthauthorizetokens/{name} | +[**read_o_auth_client**](OapiApi.md#read_o_auth_client) | **GET** /oapi/v1/oauthclients/{name} | +[**read_o_auth_client_authorization**](OapiApi.md#read_o_auth_client_authorization) | **GET** /oapi/v1/oauthclientauthorizations/{name} | +[**read_project**](OapiApi.md#read_project) | **GET** /oapi/v1/projects/{name} | +[**read_user**](OapiApi.md#read_user) | **GET** /oapi/v1/users/{name} | +[**read_user_identity_mapping**](OapiApi.md#read_user_identity_mapping) | **GET** /oapi/v1/useridentitymappings/{name} | +[**replace_cluster_network**](OapiApi.md#replace_cluster_network) | **PUT** /oapi/v1/clusternetworks/{name} | +[**replace_cluster_policy**](OapiApi.md#replace_cluster_policy) | **PUT** /oapi/v1/clusterpolicies/{name} | +[**replace_cluster_policy_binding**](OapiApi.md#replace_cluster_policy_binding) | **PUT** /oapi/v1/clusterpolicybindings/{name} | +[**replace_cluster_resource_quota**](OapiApi.md#replace_cluster_resource_quota) | **PUT** /oapi/v1/clusterresourcequotas/{name} | +[**replace_cluster_resource_quota_status**](OapiApi.md#replace_cluster_resource_quota_status) | **PUT** /oapi/v1/clusterresourcequotas/{name}/status | +[**replace_cluster_role**](OapiApi.md#replace_cluster_role) | **PUT** /oapi/v1/clusterroles/{name} | +[**replace_cluster_role_binding**](OapiApi.md#replace_cluster_role_binding) | **PUT** /oapi/v1/clusterrolebindings/{name} | +[**replace_group**](OapiApi.md#replace_group) | **PUT** /oapi/v1/groups/{name} | +[**replace_host_subnet**](OapiApi.md#replace_host_subnet) | **PUT** /oapi/v1/hostsubnets/{name} | +[**replace_identity**](OapiApi.md#replace_identity) | **PUT** /oapi/v1/identities/{name} | +[**replace_image**](OapiApi.md#replace_image) | **PUT** /oapi/v1/images/{name} | +[**replace_namespaced_build**](OapiApi.md#replace_namespaced_build) | **PUT** /oapi/v1/namespaces/{namespace}/builds/{name} | +[**replace_namespaced_build_config**](OapiApi.md#replace_namespaced_build_config) | **PUT** /oapi/v1/namespaces/{namespace}/buildconfigs/{name} | +[**replace_namespaced_build_details**](OapiApi.md#replace_namespaced_build_details) | **PUT** /oapi/v1/namespaces/{namespace}/builds/{name}/details | +[**replace_namespaced_deployment_config**](OapiApi.md#replace_namespaced_deployment_config) | **PUT** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name} | +[**replace_namespaced_deployment_config_status**](OapiApi.md#replace_namespaced_deployment_config_status) | **PUT** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/status | +[**replace_namespaced_egress_network_policy**](OapiApi.md#replace_namespaced_egress_network_policy) | **PUT** /oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name} | +[**replace_namespaced_image_stream**](OapiApi.md#replace_namespaced_image_stream) | **PUT** /oapi/v1/namespaces/{namespace}/imagestreams/{name} | +[**replace_namespaced_image_stream_status**](OapiApi.md#replace_namespaced_image_stream_status) | **PUT** /oapi/v1/namespaces/{namespace}/imagestreams/{name}/status | +[**replace_namespaced_image_stream_tag**](OapiApi.md#replace_namespaced_image_stream_tag) | **PUT** /oapi/v1/namespaces/{namespace}/imagestreamtags/{name} | +[**replace_namespaced_policy**](OapiApi.md#replace_namespaced_policy) | **PUT** /oapi/v1/namespaces/{namespace}/policies/{name} | +[**replace_namespaced_policy_binding**](OapiApi.md#replace_namespaced_policy_binding) | **PUT** /oapi/v1/namespaces/{namespace}/policybindings/{name} | +[**replace_namespaced_role**](OapiApi.md#replace_namespaced_role) | **PUT** /oapi/v1/namespaces/{namespace}/roles/{name} | +[**replace_namespaced_role_binding**](OapiApi.md#replace_namespaced_role_binding) | **PUT** /oapi/v1/namespaces/{namespace}/rolebindings/{name} | +[**replace_namespaced_role_binding_restriction**](OapiApi.md#replace_namespaced_role_binding_restriction) | **PUT** /oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name} | +[**replace_namespaced_route**](OapiApi.md#replace_namespaced_route) | **PUT** /oapi/v1/namespaces/{namespace}/routes/{name} | +[**replace_namespaced_route_status**](OapiApi.md#replace_namespaced_route_status) | **PUT** /oapi/v1/namespaces/{namespace}/routes/{name}/status | +[**replace_namespaced_scale_scale**](OapiApi.md#replace_namespaced_scale_scale) | **PUT** /oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale | +[**replace_namespaced_template**](OapiApi.md#replace_namespaced_template) | **PUT** /oapi/v1/namespaces/{namespace}/templates/{name} | +[**replace_net_namespace**](OapiApi.md#replace_net_namespace) | **PUT** /oapi/v1/netnamespaces/{name} | +[**replace_o_auth_access_token**](OapiApi.md#replace_o_auth_access_token) | **PUT** /oapi/v1/oauthaccesstokens/{name} | +[**replace_o_auth_authorize_token**](OapiApi.md#replace_o_auth_authorize_token) | **PUT** /oapi/v1/oauthauthorizetokens/{name} | +[**replace_o_auth_client**](OapiApi.md#replace_o_auth_client) | **PUT** /oapi/v1/oauthclients/{name} | +[**replace_o_auth_client_authorization**](OapiApi.md#replace_o_auth_client_authorization) | **PUT** /oapi/v1/oauthclientauthorizations/{name} | +[**replace_project**](OapiApi.md#replace_project) | **PUT** /oapi/v1/projects/{name} | +[**replace_user**](OapiApi.md#replace_user) | **PUT** /oapi/v1/users/{name} | +[**replace_user_identity_mapping**](OapiApi.md#replace_user_identity_mapping) | **PUT** /oapi/v1/useridentitymappings/{name} | + + +# **connect_post_namespaced_binary_build_request_options_instantiatebinary** +> str connect_post_namespaced_binary_build_request_options_instantiatebinary(name, namespace, as_file=as_file, revision_author_email=revision_author_email, revision_author_name=revision_author_name, revision_commit=revision_commit, revision_committer_email=revision_committer_email, revision_committer_name=revision_committer_name, revision_message=revision_message) + + + +connect POST requests to instantiatebinary of BinaryBuildRequestOptions + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the BinaryBuildRequestOptions +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +as_file = 'as_file_example' # str | asFile determines if the binary should be created as a file within the source rather than extracted as an archive (optional) +revision_author_email = 'revision_author_email_example' # str | revision.authorEmail of the source control user (optional) +revision_author_name = 'revision_author_name_example' # str | revision.authorName of the source control user (optional) +revision_commit = 'revision_commit_example' # str | revision.commit is the value identifying a specific commit (optional) +revision_committer_email = 'revision_committer_email_example' # str | revision.committerEmail of the source control user (optional) +revision_committer_name = 'revision_committer_name_example' # str | revision.committerName of the source control user (optional) +revision_message = 'revision_message_example' # str | revision.message is the description of a specific commit (optional) + +try: + api_response = api_instance.connect_post_namespaced_binary_build_request_options_instantiatebinary(name, namespace, as_file=as_file, revision_author_email=revision_author_email, revision_author_name=revision_author_name, revision_commit=revision_commit, revision_committer_email=revision_committer_email, revision_committer_name=revision_committer_name, revision_message=revision_message) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->connect_post_namespaced_binary_build_request_options_instantiatebinary: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the BinaryBuildRequestOptions | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **as_file** | **str**| asFile determines if the binary should be created as a file within the source rather than extracted as an archive | [optional] + **revision_author_email** | **str**| revision.authorEmail of the source control user | [optional] + **revision_author_name** | **str**| revision.authorName of the source control user | [optional] + **revision_commit** | **str**| revision.commit is the value identifying a specific commit | [optional] + **revision_committer_email** | **str**| revision.committerEmail of the source control user | [optional] + **revision_committer_name** | **str**| revision.committerName of the source control user | [optional] + **revision_message** | **str**| revision.message is the description of a specific commit | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_post_namespaced_status_webhooks** +> str connect_post_namespaced_status_webhooks(name, namespace, path=path) + + + +connect POST requests to webhooks of Status + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Status +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_post_namespaced_status_webhooks(name, namespace, path=path) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->connect_post_namespaced_status_webhooks: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Status | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **connect_post_namespaced_status_webhooks_with_path** +> str connect_post_namespaced_status_webhooks_with_path(name, namespace, path, path2=path2) + + + +connect POST requests to webhooks of Status + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Status +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +path = 'path_example' # str | path to the resource +path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) + +try: + api_response = api_instance.connect_post_namespaced_status_webhooks_with_path(name, namespace, path, path2=path2) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->connect_post_namespaced_status_webhooks_with_path: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Status | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **path** | **str**| path to the resource | + **path2** | **str**| Path is the URL path to use for the current proxy request to pod. | [optional] + +### Return type + +**str** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_build_config_for_all_namespaces** +> V1BuildConfig create_build_config_for_all_namespaces(body, pretty=pretty) + + + +create a BuildConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1BuildConfig() # V1BuildConfig | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_build_config_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_build_config_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1BuildConfig**](V1BuildConfig.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1BuildConfig**](V1BuildConfig.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_build_for_all_namespaces** +> V1Build create_build_for_all_namespaces(body, pretty=pretty) + + + +create a Build + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1Build() # V1Build | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_build_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_build_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Build**](V1Build.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Build**](V1Build.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_network** +> V1ClusterNetwork create_cluster_network(body, pretty=pretty) + + + +create a ClusterNetwork + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ClusterNetwork() # V1ClusterNetwork | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_cluster_network(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_cluster_network: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ClusterNetwork**](V1ClusterNetwork.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterNetwork**](V1ClusterNetwork.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_policy** +> V1ClusterPolicy create_cluster_policy(body, pretty=pretty) + + + +create a ClusterPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ClusterPolicy() # V1ClusterPolicy | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_cluster_policy(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_cluster_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ClusterPolicy**](V1ClusterPolicy.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterPolicy**](V1ClusterPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_policy_binding** +> V1ClusterPolicyBinding create_cluster_policy_binding(body, pretty=pretty) + + + +create a ClusterPolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ClusterPolicyBinding() # V1ClusterPolicyBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_cluster_policy_binding(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_cluster_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ClusterPolicyBinding**](V1ClusterPolicyBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterPolicyBinding**](V1ClusterPolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_resource_quota** +> V1ClusterResourceQuota create_cluster_resource_quota(body, pretty=pretty) + + + +create a ClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ClusterResourceQuota() # V1ClusterResourceQuota | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_cluster_resource_quota(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_cluster_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ClusterResourceQuota**](V1ClusterResourceQuota.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterResourceQuota**](V1ClusterResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_role** +> V1ClusterRole create_cluster_role(body, pretty=pretty) + + + +create a ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ClusterRole() # V1ClusterRole | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_cluster_role(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ClusterRole**](V1ClusterRole.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterRole**](V1ClusterRole.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_role_binding** +> V1ClusterRoleBinding create_cluster_role_binding(body, pretty=pretty) + + + +create a ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ClusterRoleBinding() # V1ClusterRoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_cluster_role_binding(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ClusterRoleBinding**](V1ClusterRoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterRoleBinding**](V1ClusterRoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_deployment_config_for_all_namespaces** +> V1DeploymentConfig create_deployment_config_for_all_namespaces(body, pretty=pretty) + + + +create a DeploymentConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1DeploymentConfig() # V1DeploymentConfig | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_deployment_config_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_deployment_config_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1DeploymentConfig**](V1DeploymentConfig.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1DeploymentConfig**](V1DeploymentConfig.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_deployment_config_rollback_for_all_namespaces** +> V1DeploymentConfigRollback create_deployment_config_rollback_for_all_namespaces(body, pretty=pretty) + + + +create a DeploymentConfigRollback + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1DeploymentConfigRollback() # V1DeploymentConfigRollback | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_deployment_config_rollback_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_deployment_config_rollback_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1DeploymentConfigRollback**](V1DeploymentConfigRollback.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1DeploymentConfigRollback**](V1DeploymentConfigRollback.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_egress_network_policy_for_all_namespaces** +> V1EgressNetworkPolicy create_egress_network_policy_for_all_namespaces(body, pretty=pretty) + + + +create an EgressNetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1EgressNetworkPolicy() # V1EgressNetworkPolicy | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_egress_network_policy_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_egress_network_policy_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1EgressNetworkPolicy**](V1EgressNetworkPolicy.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1EgressNetworkPolicy**](V1EgressNetworkPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_group** +> V1Group create_group(body, pretty=pretty) + + + +create a Group + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1Group() # V1Group | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_group(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Group**](V1Group.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Group**](V1Group.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_host_subnet** +> V1HostSubnet create_host_subnet(body, pretty=pretty) + + + +create a HostSubnet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1HostSubnet() # V1HostSubnet | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_host_subnet(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_host_subnet: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1HostSubnet**](V1HostSubnet.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1HostSubnet**](V1HostSubnet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_identity** +> V1Identity create_identity(body, pretty=pretty) + + + +create an Identity + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1Identity() # V1Identity | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_identity(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_identity: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Identity**](V1Identity.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Identity**](V1Identity.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_image** +> V1Image create_image(body, pretty=pretty) + + + +create an Image + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1Image() # V1Image | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_image(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_image: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Image**](V1Image.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Image**](V1Image.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_image_signature** +> V1ImageSignature create_image_signature(body, pretty=pretty) + + + +create an ImageSignature + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ImageSignature() # V1ImageSignature | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_image_signature(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_image_signature: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ImageSignature**](V1ImageSignature.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageSignature**](V1ImageSignature.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_image_stream_for_all_namespaces** +> V1ImageStream create_image_stream_for_all_namespaces(body, pretty=pretty) + + + +create an ImageStream + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ImageStream() # V1ImageStream | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_image_stream_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_image_stream_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ImageStream**](V1ImageStream.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStream**](V1ImageStream.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_image_stream_import_for_all_namespaces** +> V1ImageStreamImport create_image_stream_import_for_all_namespaces(body, pretty=pretty) + + + +create an ImageStreamImport + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ImageStreamImport() # V1ImageStreamImport | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_image_stream_import_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_image_stream_import_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ImageStreamImport**](V1ImageStreamImport.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStreamImport**](V1ImageStreamImport.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_image_stream_mapping_for_all_namespaces** +> V1ImageStreamMapping create_image_stream_mapping_for_all_namespaces(body, pretty=pretty) + + + +create an ImageStreamMapping + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ImageStreamMapping() # V1ImageStreamMapping | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_image_stream_mapping_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_image_stream_mapping_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ImageStreamMapping**](V1ImageStreamMapping.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStreamMapping**](V1ImageStreamMapping.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_image_stream_tag_for_all_namespaces** +> V1ImageStreamTag create_image_stream_tag_for_all_namespaces(body, pretty=pretty) + + + +create an ImageStreamTag + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ImageStreamTag() # V1ImageStreamTag | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_image_stream_tag_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_image_stream_tag_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ImageStreamTag**](V1ImageStreamTag.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStreamTag**](V1ImageStreamTag.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_local_resource_access_review_for_all_namespaces** +> V1LocalResourceAccessReview create_local_resource_access_review_for_all_namespaces(body, pretty=pretty) + + + +create a LocalResourceAccessReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1LocalResourceAccessReview() # V1LocalResourceAccessReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_local_resource_access_review_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_local_resource_access_review_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1LocalResourceAccessReview**](V1LocalResourceAccessReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1LocalResourceAccessReview**](V1LocalResourceAccessReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_local_subject_access_review_for_all_namespaces** +> V1LocalSubjectAccessReview create_local_subject_access_review_for_all_namespaces(body, pretty=pretty) + + + +create a LocalSubjectAccessReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1LocalSubjectAccessReview() # V1LocalSubjectAccessReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_local_subject_access_review_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_local_subject_access_review_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1LocalSubjectAccessReview**](V1LocalSubjectAccessReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1LocalSubjectAccessReview**](V1LocalSubjectAccessReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_build** +> V1Build create_namespaced_build(namespace, body, pretty=pretty) + + + +create a Build + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Build() # V1Build | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_build(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Build**](V1Build.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Build**](V1Build.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_build_config** +> V1BuildConfig create_namespaced_build_config(namespace, body, pretty=pretty) + + + +create a BuildConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1BuildConfig() # V1BuildConfig | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_build_config(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_build_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1BuildConfig**](V1BuildConfig.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1BuildConfig**](V1BuildConfig.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_build_request_clone** +> V1BuildRequest create_namespaced_build_request_clone(body, name, namespace, pretty=pretty) + + + +create clone of a BuildRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1BuildRequest() # V1BuildRequest | +name = 'name_example' # str | name of the BuildRequest +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_build_request_clone(body, name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_build_request_clone: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1BuildRequest**](V1BuildRequest.md)| | + **name** | **str**| name of the BuildRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1BuildRequest**](V1BuildRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_build_request_instantiate** +> V1BuildRequest create_namespaced_build_request_instantiate(body, name, namespace, pretty=pretty) + + + +create instantiate of a BuildRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1BuildRequest() # V1BuildRequest | +name = 'name_example' # str | name of the BuildRequest +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_build_request_instantiate(body, name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_build_request_instantiate: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1BuildRequest**](V1BuildRequest.md)| | + **name** | **str**| name of the BuildRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1BuildRequest**](V1BuildRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_deployment_config** +> V1DeploymentConfig create_namespaced_deployment_config(namespace, body, pretty=pretty) + + + +create a DeploymentConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeploymentConfig() # V1DeploymentConfig | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_deployment_config(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_deployment_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeploymentConfig**](V1DeploymentConfig.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1DeploymentConfig**](V1DeploymentConfig.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_deployment_config_rollback** +> V1DeploymentConfigRollback create_namespaced_deployment_config_rollback(body, namespace, pretty=pretty) + + + +create a DeploymentConfigRollback + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1DeploymentConfigRollback() # V1DeploymentConfigRollback | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_deployment_config_rollback(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_deployment_config_rollback: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1DeploymentConfigRollback**](V1DeploymentConfigRollback.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1DeploymentConfigRollback**](V1DeploymentConfigRollback.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_deployment_config_rollback_rollback** +> V1DeploymentConfigRollback create_namespaced_deployment_config_rollback_rollback(body, name, namespace, pretty=pretty) + + + +create rollback of a DeploymentConfigRollback + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1DeploymentConfigRollback() # V1DeploymentConfigRollback | +name = 'name_example' # str | name of the DeploymentConfigRollback +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_deployment_config_rollback_rollback(body, name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_deployment_config_rollback_rollback: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1DeploymentConfigRollback**](V1DeploymentConfigRollback.md)| | + **name** | **str**| name of the DeploymentConfigRollback | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1DeploymentConfigRollback**](V1DeploymentConfigRollback.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_deployment_request_instantiate** +> V1DeploymentRequest create_namespaced_deployment_request_instantiate(body, name, namespace, pretty=pretty) + + + +create instantiate of a DeploymentRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1DeploymentRequest() # V1DeploymentRequest | +name = 'name_example' # str | name of the DeploymentRequest +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_deployment_request_instantiate(body, name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_deployment_request_instantiate: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1DeploymentRequest**](V1DeploymentRequest.md)| | + **name** | **str**| name of the DeploymentRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1DeploymentRequest**](V1DeploymentRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_egress_network_policy** +> V1EgressNetworkPolicy create_namespaced_egress_network_policy(namespace, body, pretty=pretty) + + + +create an EgressNetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1EgressNetworkPolicy() # V1EgressNetworkPolicy | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_egress_network_policy(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_egress_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1EgressNetworkPolicy**](V1EgressNetworkPolicy.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1EgressNetworkPolicy**](V1EgressNetworkPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_image_stream** +> V1ImageStream create_namespaced_image_stream(namespace, body, pretty=pretty) + + + +create an ImageStream + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1ImageStream() # V1ImageStream | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_image_stream(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_image_stream: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ImageStream**](V1ImageStream.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStream**](V1ImageStream.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_image_stream_import** +> V1ImageStreamImport create_namespaced_image_stream_import(body, namespace, pretty=pretty) + + + +create an ImageStreamImport + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ImageStreamImport() # V1ImageStreamImport | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_image_stream_import(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_image_stream_import: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ImageStreamImport**](V1ImageStreamImport.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStreamImport**](V1ImageStreamImport.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_image_stream_mapping** +> V1ImageStreamMapping create_namespaced_image_stream_mapping(body, namespace, pretty=pretty) + + + +create an ImageStreamMapping + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ImageStreamMapping() # V1ImageStreamMapping | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_image_stream_mapping(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_image_stream_mapping: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ImageStreamMapping**](V1ImageStreamMapping.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStreamMapping**](V1ImageStreamMapping.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_image_stream_tag** +> V1ImageStreamTag create_namespaced_image_stream_tag(namespace, body, pretty=pretty) + + + +create an ImageStreamTag + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1ImageStreamTag() # V1ImageStreamTag | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_image_stream_tag(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_image_stream_tag: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ImageStreamTag**](V1ImageStreamTag.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStreamTag**](V1ImageStreamTag.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_local_resource_access_review** +> V1LocalResourceAccessReview create_namespaced_local_resource_access_review(body, namespace, pretty=pretty) + + + +create a LocalResourceAccessReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1LocalResourceAccessReview() # V1LocalResourceAccessReview | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_local_resource_access_review(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_local_resource_access_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1LocalResourceAccessReview**](V1LocalResourceAccessReview.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1LocalResourceAccessReview**](V1LocalResourceAccessReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_local_subject_access_review** +> V1LocalSubjectAccessReview create_namespaced_local_subject_access_review(body, namespace, pretty=pretty) + + + +create a LocalSubjectAccessReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1LocalSubjectAccessReview() # V1LocalSubjectAccessReview | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_local_subject_access_review(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_local_subject_access_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1LocalSubjectAccessReview**](V1LocalSubjectAccessReview.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1LocalSubjectAccessReview**](V1LocalSubjectAccessReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_pod_security_policy_review** +> V1PodSecurityPolicyReview create_namespaced_pod_security_policy_review(body, namespace, pretty=pretty) + + + +create a PodSecurityPolicyReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1PodSecurityPolicyReview() # V1PodSecurityPolicyReview | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_pod_security_policy_review(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_pod_security_policy_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1PodSecurityPolicyReview**](V1PodSecurityPolicyReview.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PodSecurityPolicyReview**](V1PodSecurityPolicyReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_pod_security_policy_self_subject_review** +> V1PodSecurityPolicySelfSubjectReview create_namespaced_pod_security_policy_self_subject_review(body, namespace, pretty=pretty) + + + +create a PodSecurityPolicySelfSubjectReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1PodSecurityPolicySelfSubjectReview() # V1PodSecurityPolicySelfSubjectReview | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_pod_security_policy_self_subject_review(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_pod_security_policy_self_subject_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1PodSecurityPolicySelfSubjectReview**](V1PodSecurityPolicySelfSubjectReview.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PodSecurityPolicySelfSubjectReview**](V1PodSecurityPolicySelfSubjectReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_pod_security_policy_subject_review** +> V1PodSecurityPolicySubjectReview create_namespaced_pod_security_policy_subject_review(body, namespace, pretty=pretty) + + + +create a PodSecurityPolicySubjectReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1PodSecurityPolicySubjectReview() # V1PodSecurityPolicySubjectReview | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_pod_security_policy_subject_review(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_pod_security_policy_subject_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1PodSecurityPolicySubjectReview**](V1PodSecurityPolicySubjectReview.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PodSecurityPolicySubjectReview**](V1PodSecurityPolicySubjectReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_policy** +> V1Policy create_namespaced_policy(namespace, body, pretty=pretty) + + + +create a Policy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Policy() # V1Policy | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_policy(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Policy**](V1Policy.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Policy**](V1Policy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_policy_binding** +> V1PolicyBinding create_namespaced_policy_binding(namespace, body, pretty=pretty) + + + +create a PolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1PolicyBinding() # V1PolicyBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_policy_binding(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PolicyBinding**](V1PolicyBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PolicyBinding**](V1PolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_resource_access_review** +> V1ResourceAccessReview create_namespaced_resource_access_review(body, namespace, pretty=pretty) + + + +create a ResourceAccessReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ResourceAccessReview() # V1ResourceAccessReview | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_resource_access_review(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_resource_access_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ResourceAccessReview**](V1ResourceAccessReview.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ResourceAccessReview**](V1ResourceAccessReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_role** +> V1Role create_namespaced_role(namespace, body, pretty=pretty) + + + +create a Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Role() # V1Role | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Role**](V1Role.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Role**](V1Role.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_role_binding** +> V1RoleBinding create_namespaced_role_binding(namespace, body, pretty=pretty) + + + +create a RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1RoleBinding() # V1RoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1RoleBinding**](V1RoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1RoleBinding**](V1RoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_role_binding_restriction** +> V1RoleBindingRestriction create_namespaced_role_binding_restriction(namespace, body, pretty=pretty) + + + +create a RoleBindingRestriction + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1RoleBindingRestriction() # V1RoleBindingRestriction | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_role_binding_restriction(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_role_binding_restriction: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1RoleBindingRestriction**](V1RoleBindingRestriction.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1RoleBindingRestriction**](V1RoleBindingRestriction.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_route** +> V1Route create_namespaced_route(namespace, body, pretty=pretty) + + + +create a Route + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Route() # V1Route | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_route(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_route: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Route**](V1Route.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Route**](V1Route.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_self_subject_rules_review** +> V1SelfSubjectRulesReview create_namespaced_self_subject_rules_review(body, namespace, pretty=pretty) + + + +create a SelfSubjectRulesReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1SelfSubjectRulesReview() # V1SelfSubjectRulesReview | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_self_subject_rules_review(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_self_subject_rules_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1SelfSubjectRulesReview**](V1SelfSubjectRulesReview.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1SelfSubjectRulesReview**](V1SelfSubjectRulesReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_subject_access_review** +> V1SubjectAccessReview create_namespaced_subject_access_review(body, namespace, pretty=pretty) + + + +create a SubjectAccessReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1SubjectAccessReview() # V1SubjectAccessReview | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_subject_access_review(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_subject_access_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1SubjectAccessReview**](V1SubjectAccessReview.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1SubjectAccessReview**](V1SubjectAccessReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_subject_rules_review** +> V1SubjectRulesReview create_namespaced_subject_rules_review(body, namespace, pretty=pretty) + + + +create a SubjectRulesReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1SubjectRulesReview() # V1SubjectRulesReview | +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_subject_rules_review(body, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_subject_rules_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1SubjectRulesReview**](V1SubjectRulesReview.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1SubjectRulesReview**](V1SubjectRulesReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_template** +> V1Template create_namespaced_template(namespace, body, pretty=pretty) + + + +create a Template + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Template() # V1Template | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_template(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_namespaced_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Template**](V1Template.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Template**](V1Template.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_net_namespace** +> V1NetNamespace create_net_namespace(body, pretty=pretty) + + + +create a NetNamespace + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1NetNamespace() # V1NetNamespace | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_net_namespace(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_net_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1NetNamespace**](V1NetNamespace.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1NetNamespace**](V1NetNamespace.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_o_auth_access_token** +> V1OAuthAccessToken create_o_auth_access_token(body, pretty=pretty) + + + +create an OAuthAccessToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1OAuthAccessToken() # V1OAuthAccessToken | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_o_auth_access_token(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_o_auth_access_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1OAuthAccessToken**](V1OAuthAccessToken.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1OAuthAccessToken**](V1OAuthAccessToken.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_o_auth_authorize_token** +> V1OAuthAuthorizeToken create_o_auth_authorize_token(body, pretty=pretty) + + + +create an OAuthAuthorizeToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1OAuthAuthorizeToken() # V1OAuthAuthorizeToken | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_o_auth_authorize_token(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_o_auth_authorize_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1OAuthAuthorizeToken**](V1OAuthAuthorizeToken.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1OAuthAuthorizeToken**](V1OAuthAuthorizeToken.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_o_auth_client** +> V1OAuthClient create_o_auth_client(body, pretty=pretty) + + + +create an OAuthClient + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1OAuthClient() # V1OAuthClient | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_o_auth_client(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_o_auth_client: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1OAuthClient**](V1OAuthClient.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1OAuthClient**](V1OAuthClient.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_o_auth_client_authorization** +> V1OAuthClientAuthorization create_o_auth_client_authorization(body, pretty=pretty) + + + +create an OAuthClientAuthorization + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1OAuthClientAuthorization() # V1OAuthClientAuthorization | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_o_auth_client_authorization(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_o_auth_client_authorization: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1OAuthClientAuthorization**](V1OAuthClientAuthorization.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1OAuthClientAuthorization**](V1OAuthClientAuthorization.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_pod_security_policy_review_for_all_namespaces** +> V1PodSecurityPolicyReview create_pod_security_policy_review_for_all_namespaces(body, pretty=pretty) + + + +create a PodSecurityPolicyReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1PodSecurityPolicyReview() # V1PodSecurityPolicyReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_pod_security_policy_review_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_pod_security_policy_review_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1PodSecurityPolicyReview**](V1PodSecurityPolicyReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PodSecurityPolicyReview**](V1PodSecurityPolicyReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_pod_security_policy_self_subject_review_for_all_namespaces** +> V1PodSecurityPolicySelfSubjectReview create_pod_security_policy_self_subject_review_for_all_namespaces(body, pretty=pretty) + + + +create a PodSecurityPolicySelfSubjectReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1PodSecurityPolicySelfSubjectReview() # V1PodSecurityPolicySelfSubjectReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_pod_security_policy_self_subject_review_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_pod_security_policy_self_subject_review_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1PodSecurityPolicySelfSubjectReview**](V1PodSecurityPolicySelfSubjectReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PodSecurityPolicySelfSubjectReview**](V1PodSecurityPolicySelfSubjectReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_pod_security_policy_subject_review_for_all_namespaces** +> V1PodSecurityPolicySubjectReview create_pod_security_policy_subject_review_for_all_namespaces(body, pretty=pretty) + + + +create a PodSecurityPolicySubjectReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1PodSecurityPolicySubjectReview() # V1PodSecurityPolicySubjectReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_pod_security_policy_subject_review_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_pod_security_policy_subject_review_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1PodSecurityPolicySubjectReview**](V1PodSecurityPolicySubjectReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PodSecurityPolicySubjectReview**](V1PodSecurityPolicySubjectReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_policy_binding_for_all_namespaces** +> V1PolicyBinding create_policy_binding_for_all_namespaces(body, pretty=pretty) + + + +create a PolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1PolicyBinding() # V1PolicyBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_policy_binding_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_policy_binding_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1PolicyBinding**](V1PolicyBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PolicyBinding**](V1PolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_policy_for_all_namespaces** +> V1Policy create_policy_for_all_namespaces(body, pretty=pretty) + + + +create a Policy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1Policy() # V1Policy | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_policy_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_policy_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Policy**](V1Policy.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Policy**](V1Policy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_project** +> V1Project create_project(body, pretty=pretty) + + + +create a Project + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1Project() # V1Project | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_project(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Project**](V1Project.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Project**](V1Project.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_project_request** +> V1ProjectRequest create_project_request(body, pretty=pretty) + + + +create a ProjectRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ProjectRequest() # V1ProjectRequest | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_project_request(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_project_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ProjectRequest**](V1ProjectRequest.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ProjectRequest**](V1ProjectRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_resource_access_review_for_all_namespaces** +> V1ResourceAccessReview create_resource_access_review_for_all_namespaces(body, pretty=pretty) + + + +create a ResourceAccessReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ResourceAccessReview() # V1ResourceAccessReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_resource_access_review_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_resource_access_review_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ResourceAccessReview**](V1ResourceAccessReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ResourceAccessReview**](V1ResourceAccessReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_role_binding_for_all_namespaces** +> V1RoleBinding create_role_binding_for_all_namespaces(body, pretty=pretty) + + + +create a RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1RoleBinding() # V1RoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_role_binding_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_role_binding_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1RoleBinding**](V1RoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1RoleBinding**](V1RoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_role_binding_restriction_for_all_namespaces** +> V1RoleBindingRestriction create_role_binding_restriction_for_all_namespaces(body, pretty=pretty) + + + +create a RoleBindingRestriction + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1RoleBindingRestriction() # V1RoleBindingRestriction | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_role_binding_restriction_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_role_binding_restriction_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1RoleBindingRestriction**](V1RoleBindingRestriction.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1RoleBindingRestriction**](V1RoleBindingRestriction.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_role_for_all_namespaces** +> V1Role create_role_for_all_namespaces(body, pretty=pretty) + + + +create a Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1Role() # V1Role | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_role_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_role_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Role**](V1Role.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Role**](V1Role.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_route_for_all_namespaces** +> V1Route create_route_for_all_namespaces(body, pretty=pretty) + + + +create a Route + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1Route() # V1Route | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_route_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_route_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Route**](V1Route.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Route**](V1Route.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_self_subject_rules_review_for_all_namespaces** +> V1SelfSubjectRulesReview create_self_subject_rules_review_for_all_namespaces(body, pretty=pretty) + + + +create a SelfSubjectRulesReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1SelfSubjectRulesReview() # V1SelfSubjectRulesReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_self_subject_rules_review_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_self_subject_rules_review_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1SelfSubjectRulesReview**](V1SelfSubjectRulesReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1SelfSubjectRulesReview**](V1SelfSubjectRulesReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_subject_access_review_for_all_namespaces** +> V1SubjectAccessReview create_subject_access_review_for_all_namespaces(body, pretty=pretty) + + + +create a SubjectAccessReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1SubjectAccessReview() # V1SubjectAccessReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_subject_access_review_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_subject_access_review_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1SubjectAccessReview**](V1SubjectAccessReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1SubjectAccessReview**](V1SubjectAccessReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_subject_rules_review_for_all_namespaces** +> V1SubjectRulesReview create_subject_rules_review_for_all_namespaces(body, pretty=pretty) + + + +create a SubjectRulesReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1SubjectRulesReview() # V1SubjectRulesReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_subject_rules_review_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_subject_rules_review_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1SubjectRulesReview**](V1SubjectRulesReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1SubjectRulesReview**](V1SubjectRulesReview.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_template_for_all_namespaces** +> V1Template create_template_for_all_namespaces(body, pretty=pretty) + + + +create a Template + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1Template() # V1Template | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_template_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_template_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Template**](V1Template.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Template**](V1Template.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_user** +> V1User create_user(body, pretty=pretty) + + + +create an User + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1User() # V1User | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_user(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_user: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1User**](V1User.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1User**](V1User.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_user_identity_mapping** +> V1UserIdentityMapping create_user_identity_mapping(body, pretty=pretty) + + + +create an UserIdentityMapping + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1UserIdentityMapping() # V1UserIdentityMapping | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_user_identity_mapping(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->create_user_identity_mapping: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1UserIdentityMapping**](V1UserIdentityMapping.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1UserIdentityMapping**](V1UserIdentityMapping.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_cluster_network** +> UnversionedStatus delete_cluster_network(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a ClusterNetwork + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterNetwork +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_cluster_network(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_cluster_network: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterNetwork | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_cluster_policy** +> UnversionedStatus delete_cluster_policy(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a ClusterPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterPolicy +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_cluster_policy(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_cluster_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterPolicy | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_cluster_policy_binding** +> UnversionedStatus delete_cluster_policy_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a ClusterPolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterPolicyBinding +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_cluster_policy_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_cluster_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterPolicyBinding | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_cluster_resource_quota** +> UnversionedStatus delete_cluster_resource_quota(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a ClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterResourceQuota +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_cluster_resource_quota(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_cluster_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterResourceQuota | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_cluster_role** +> UnversionedStatus delete_cluster_role(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterRole +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_cluster_role(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRole | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_cluster_role_binding** +> UnversionedStatus delete_cluster_role_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterRoleBinding +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_cluster_role_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRoleBinding | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_cluster_network** +> UnversionedStatus delete_collection_cluster_network(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ClusterNetwork + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_cluster_network(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_cluster_network: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_cluster_policy** +> UnversionedStatus delete_collection_cluster_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ClusterPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_cluster_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_cluster_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_cluster_policy_binding** +> UnversionedStatus delete_collection_cluster_policy_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ClusterPolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_cluster_policy_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_cluster_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_cluster_resource_quota** +> UnversionedStatus delete_collection_cluster_resource_quota(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_cluster_resource_quota(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_cluster_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_group** +> UnversionedStatus delete_collection_group(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Group + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_group(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_host_subnet** +> UnversionedStatus delete_collection_host_subnet(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of HostSubnet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_host_subnet(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_host_subnet: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_identity** +> UnversionedStatus delete_collection_identity(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Identity + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_identity(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_identity: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_image** +> UnversionedStatus delete_collection_image(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Image + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_image(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_image: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_build** +> UnversionedStatus delete_collection_namespaced_build(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Build + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_build(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_namespaced_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_build_config** +> UnversionedStatus delete_collection_namespaced_build_config(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of BuildConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_build_config(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_namespaced_build_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_deployment_config** +> UnversionedStatus delete_collection_namespaced_deployment_config(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of DeploymentConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_deployment_config(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_namespaced_deployment_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_egress_network_policy** +> UnversionedStatus delete_collection_namespaced_egress_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of EgressNetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_egress_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_namespaced_egress_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_image_stream** +> UnversionedStatus delete_collection_namespaced_image_stream(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of ImageStream + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_image_stream(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_namespaced_image_stream: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_policy** +> UnversionedStatus delete_collection_namespaced_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Policy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_namespaced_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_policy_binding** +> UnversionedStatus delete_collection_namespaced_policy_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of PolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_policy_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_namespaced_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_role_binding_restriction** +> UnversionedStatus delete_collection_namespaced_role_binding_restriction(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of RoleBindingRestriction + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_role_binding_restriction(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_namespaced_role_binding_restriction: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_route** +> UnversionedStatus delete_collection_namespaced_route(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Route + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_route(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_namespaced_route: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_template** +> UnversionedStatus delete_collection_namespaced_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of Template + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_namespaced_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_net_namespace** +> UnversionedStatus delete_collection_net_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of NetNamespace + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_net_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_net_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_o_auth_access_token** +> UnversionedStatus delete_collection_o_auth_access_token(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of OAuthAccessToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_o_auth_access_token(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_o_auth_access_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_o_auth_authorize_token** +> UnversionedStatus delete_collection_o_auth_authorize_token(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of OAuthAuthorizeToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_o_auth_authorize_token(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_o_auth_authorize_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_o_auth_client** +> UnversionedStatus delete_collection_o_auth_client(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of OAuthClient + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_o_auth_client(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_o_auth_client: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_o_auth_client_authorization** +> UnversionedStatus delete_collection_o_auth_client_authorization(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of OAuthClientAuthorization + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_o_auth_client_authorization(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_o_auth_client_authorization: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_user** +> UnversionedStatus delete_collection_user(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of User + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_user(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_collection_user: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_group** +> UnversionedStatus delete_group(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a Group + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Group +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_group(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Group | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_host_subnet** +> UnversionedStatus delete_host_subnet(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a HostSubnet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the HostSubnet +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_host_subnet(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_host_subnet: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HostSubnet | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_identity** +> UnversionedStatus delete_identity(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete an Identity + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Identity +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_identity(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_identity: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Identity | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_image** +> UnversionedStatus delete_image(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete an Image + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Image +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_image(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_image: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Image | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_image_signature** +> UnversionedStatus delete_image_signature(name, pretty=pretty) + + + +delete an ImageSignature + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ImageSignature +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_image_signature(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_image_signature: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ImageSignature | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_build** +> UnversionedStatus delete_namespaced_build(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a Build + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Build +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_build(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Build | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_build_config** +> UnversionedStatus delete_namespaced_build_config(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a BuildConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the BuildConfig +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_build_config(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_build_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the BuildConfig | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_deployment_config** +> UnversionedStatus delete_namespaced_deployment_config(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a DeploymentConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the DeploymentConfig +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_deployment_config(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_deployment_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeploymentConfig | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_egress_network_policy** +> UnversionedStatus delete_namespaced_egress_network_policy(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete an EgressNetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the EgressNetworkPolicy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_egress_network_policy(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_egress_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the EgressNetworkPolicy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_image_stream** +> UnversionedStatus delete_namespaced_image_stream(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete an ImageStream + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ImageStream +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_image_stream(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_image_stream: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ImageStream | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_image_stream_tag** +> UnversionedStatus delete_namespaced_image_stream_tag(name, namespace, pretty=pretty) + + + +delete an ImageStreamTag + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ImageStreamTag +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_namespaced_image_stream_tag(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_image_stream_tag: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ImageStreamTag | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_policy** +> UnversionedStatus delete_namespaced_policy(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a Policy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Policy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_policy(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Policy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_policy_binding** +> UnversionedStatus delete_namespaced_policy_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a PolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the PolicyBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_policy_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PolicyBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_role** +> UnversionedStatus delete_namespaced_role(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Role +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_role(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Role | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_role_binding** +> UnversionedStatus delete_namespaced_role_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the RoleBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_role_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_role_binding_restriction** +> UnversionedStatus delete_namespaced_role_binding_restriction(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a RoleBindingRestriction + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the RoleBindingRestriction +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_role_binding_restriction(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_role_binding_restriction: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBindingRestriction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_route** +> UnversionedStatus delete_namespaced_route(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a Route + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Route +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_route(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_route: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Route | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_template** +> UnversionedStatus delete_namespaced_template(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a Template + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Template +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_namespaced_template(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_namespaced_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Template | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_net_namespace** +> UnversionedStatus delete_net_namespace(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete a NetNamespace + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the NetNamespace +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_net_namespace(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_net_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the NetNamespace | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_o_auth_access_token** +> UnversionedStatus delete_o_auth_access_token(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete an OAuthAccessToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthAccessToken +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_o_auth_access_token(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_o_auth_access_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthAccessToken | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_o_auth_authorize_token** +> UnversionedStatus delete_o_auth_authorize_token(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete an OAuthAuthorizeToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthAuthorizeToken +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_o_auth_authorize_token(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_o_auth_authorize_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthAuthorizeToken | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_o_auth_client** +> UnversionedStatus delete_o_auth_client(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete an OAuthClient + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthClient +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_o_auth_client(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_o_auth_client: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthClient | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_o_auth_client_authorization** +> UnversionedStatus delete_o_auth_client_authorization(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete an OAuthClientAuthorization + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthClientAuthorization +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_o_auth_client_authorization(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_o_auth_client_authorization: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthClientAuthorization | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_project** +> UnversionedStatus delete_project(name, pretty=pretty) + + + +delete a Project + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Project +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_project(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Project | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_user** +> UnversionedStatus delete_user(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + + + +delete an User + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the User +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) + +try: + api_response = api_instance.delete_user(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_user: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the User | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_user_identity_mapping** +> UnversionedStatus delete_user_identity_mapping(name, pretty=pretty) + + + +delete an UserIdentityMapping + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the UserIdentityMapping +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.delete_user_identity_mapping(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->delete_user_identity_mapping: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the UserIdentityMapping | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_api_resources** +> UnversionedAPIResourceList get_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() + +try: + api_response = api_instance.get_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->get_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_version** +> get_version() + + + +list supported server API versions + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() + +try: + api_instance.get_version() +except ApiException as e: + print("Exception when calling OapiApi->get_version: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_applied_cluster_resource_quota_for_all_namespaces** +> V1AppliedClusterResourceQuotaList list_applied_cluster_resource_quota_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list objects of kind AppliedClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_applied_cluster_resource_quota_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_applied_cluster_resource_quota_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1AppliedClusterResourceQuotaList**](V1AppliedClusterResourceQuotaList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_build_config_for_all_namespaces** +> V1BuildConfigList list_build_config_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind BuildConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_build_config_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_build_config_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1BuildConfigList**](V1BuildConfigList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_build_for_all_namespaces** +> V1BuildList list_build_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Build + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_build_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_build_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1BuildList**](V1BuildList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cluster_network** +> V1ClusterNetworkList list_cluster_network(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ClusterNetwork + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_cluster_network(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_cluster_network: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ClusterNetworkList**](V1ClusterNetworkList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cluster_policy** +> V1ClusterPolicyList list_cluster_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ClusterPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_cluster_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_cluster_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ClusterPolicyList**](V1ClusterPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cluster_policy_binding** +> V1ClusterPolicyBindingList list_cluster_policy_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ClusterPolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_cluster_policy_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_cluster_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ClusterPolicyBindingList**](V1ClusterPolicyBindingList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cluster_resource_quota** +> V1ClusterResourceQuotaList list_cluster_resource_quota(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_cluster_resource_quota(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_cluster_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ClusterResourceQuotaList**](V1ClusterResourceQuotaList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cluster_role** +> V1ClusterRoleList list_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list objects of kind ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ClusterRoleList**](V1ClusterRoleList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cluster_role_binding** +> V1ClusterRoleBindingList list_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list objects of kind ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ClusterRoleBindingList**](V1ClusterRoleBindingList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_deployment_config_for_all_namespaces** +> V1DeploymentConfigList list_deployment_config_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind DeploymentConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_deployment_config_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_deployment_config_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1DeploymentConfigList**](V1DeploymentConfigList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_egress_network_policy_for_all_namespaces** +> V1EgressNetworkPolicyList list_egress_network_policy_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind EgressNetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_egress_network_policy_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_egress_network_policy_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1EgressNetworkPolicyList**](V1EgressNetworkPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_group** +> V1GroupList list_group(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Group + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_group(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1GroupList**](V1GroupList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_host_subnet** +> V1HostSubnetList list_host_subnet(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind HostSubnet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_host_subnet(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_host_subnet: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1HostSubnetList**](V1HostSubnetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_identity** +> V1IdentityList list_identity(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Identity + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_identity(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_identity: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1IdentityList**](V1IdentityList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_image** +> V1ImageList list_image(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Image + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_image(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_image: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ImageList**](V1ImageList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_image_stream_for_all_namespaces** +> V1ImageStreamList list_image_stream_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ImageStream + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_image_stream_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_image_stream_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ImageStreamList**](V1ImageStreamList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_image_stream_tag_for_all_namespaces** +> V1ImageStreamTagList list_image_stream_tag_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list objects of kind ImageStreamTag + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_image_stream_tag_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_image_stream_tag_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ImageStreamTagList**](V1ImageStreamTagList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_applied_cluster_resource_quota** +> V1AppliedClusterResourceQuotaList list_namespaced_applied_cluster_resource_quota(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list objects of kind AppliedClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_applied_cluster_resource_quota(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_applied_cluster_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1AppliedClusterResourceQuotaList**](V1AppliedClusterResourceQuotaList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_build** +> V1BuildList list_namespaced_build(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Build + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_build(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1BuildList**](V1BuildList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_build_config** +> V1BuildConfigList list_namespaced_build_config(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind BuildConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_build_config(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_build_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1BuildConfigList**](V1BuildConfigList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_deployment_config** +> V1DeploymentConfigList list_namespaced_deployment_config(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind DeploymentConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_deployment_config(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_deployment_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1DeploymentConfigList**](V1DeploymentConfigList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_egress_network_policy** +> V1EgressNetworkPolicyList list_namespaced_egress_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind EgressNetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_egress_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_egress_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1EgressNetworkPolicyList**](V1EgressNetworkPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_image_stream** +> V1ImageStreamList list_namespaced_image_stream(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind ImageStream + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_image_stream(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_image_stream: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ImageStreamList**](V1ImageStreamList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_image_stream_tag** +> V1ImageStreamTagList list_namespaced_image_stream_tag(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list objects of kind ImageStreamTag + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_image_stream_tag(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_image_stream_tag: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ImageStreamTagList**](V1ImageStreamTagList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_policy** +> V1PolicyList list_namespaced_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Policy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PolicyList**](V1PolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_policy_binding** +> V1PolicyBindingList list_namespaced_policy_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind PolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_policy_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PolicyBindingList**](V1PolicyBindingList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_role** +> V1RoleList list_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list objects of kind Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1RoleList**](V1RoleList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_role_binding** +> V1RoleBindingList list_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list objects of kind RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1RoleBindingList**](V1RoleBindingList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_role_binding_restriction** +> V1RoleBindingRestrictionList list_namespaced_role_binding_restriction(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind RoleBindingRestriction + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_role_binding_restriction(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_role_binding_restriction: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1RoleBindingRestrictionList**](V1RoleBindingRestrictionList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_route** +> V1RouteList list_namespaced_route(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Route + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_route(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_route: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1RouteList**](V1RouteList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_template** +> V1TemplateList list_namespaced_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Template + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_template(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_namespaced_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1TemplateList**](V1TemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_net_namespace** +> V1NetNamespaceList list_net_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind NetNamespace + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_net_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_net_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1NetNamespaceList**](V1NetNamespaceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_o_auth_access_token** +> V1OAuthAccessTokenList list_o_auth_access_token(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind OAuthAccessToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_o_auth_access_token(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_o_auth_access_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1OAuthAccessTokenList**](V1OAuthAccessTokenList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_o_auth_authorize_token** +> V1OAuthAuthorizeTokenList list_o_auth_authorize_token(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind OAuthAuthorizeToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_o_auth_authorize_token(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_o_auth_authorize_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1OAuthAuthorizeTokenList**](V1OAuthAuthorizeTokenList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_o_auth_client** +> V1OAuthClientList list_o_auth_client(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind OAuthClient + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_o_auth_client(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_o_auth_client: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1OAuthClientList**](V1OAuthClientList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_o_auth_client_authorization** +> V1OAuthClientAuthorizationList list_o_auth_client_authorization(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind OAuthClientAuthorization + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_o_auth_client_authorization(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_o_auth_client_authorization: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1OAuthClientAuthorizationList**](V1OAuthClientAuthorizationList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_policy_binding_for_all_namespaces** +> V1PolicyBindingList list_policy_binding_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind PolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_policy_binding_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_policy_binding_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PolicyBindingList**](V1PolicyBindingList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_policy_for_all_namespaces** +> V1PolicyList list_policy_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Policy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_policy_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_policy_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PolicyList**](V1PolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_project** +> V1ProjectList list_project(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Project + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_project(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ProjectList**](V1ProjectList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_project_request** +> UnversionedStatus list_project_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list objects of kind ProjectRequest + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_project_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_project_request: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**UnversionedStatus**](UnversionedStatus.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_role_binding_for_all_namespaces** +> V1RoleBindingList list_role_binding_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list objects of kind RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_role_binding_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_role_binding_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1RoleBindingList**](V1RoleBindingList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_role_binding_restriction_for_all_namespaces** +> V1RoleBindingRestrictionList list_role_binding_restriction_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind RoleBindingRestriction + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_role_binding_restriction_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_role_binding_restriction_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1RoleBindingRestrictionList**](V1RoleBindingRestrictionList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_role_for_all_namespaces** +> V1RoleList list_role_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list objects of kind Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_role_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_role_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1RoleList**](V1RoleList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_route_for_all_namespaces** +> V1RouteList list_route_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Route + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_route_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_route_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1RouteList**](V1RouteList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_template_for_all_namespaces** +> V1TemplateList list_template_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind Template + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_template_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_template_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1TemplateList**](V1TemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_user** +> V1UserList list_user(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +list or watch objects of kind User + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_user(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->list_user: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1UserList**](V1UserList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_cluster_network** +> V1ClusterNetwork patch_cluster_network(name, body, pretty=pretty) + + + +partially update the specified ClusterNetwork + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterNetwork +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_cluster_network(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_cluster_network: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterNetwork | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterNetwork**](V1ClusterNetwork.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_cluster_policy** +> V1ClusterPolicy patch_cluster_policy(name, body, pretty=pretty) + + + +partially update the specified ClusterPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterPolicy +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_cluster_policy(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_cluster_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterPolicy | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterPolicy**](V1ClusterPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_cluster_policy_binding** +> V1ClusterPolicyBinding patch_cluster_policy_binding(name, body, pretty=pretty) + + + +partially update the specified ClusterPolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterPolicyBinding +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_cluster_policy_binding(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_cluster_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterPolicyBinding | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterPolicyBinding**](V1ClusterPolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_cluster_resource_quota** +> V1ClusterResourceQuota patch_cluster_resource_quota(name, body, pretty=pretty) + + + +partially update the specified ClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterResourceQuota +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_cluster_resource_quota(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_cluster_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterResourceQuota | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterResourceQuota**](V1ClusterResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_cluster_resource_quota_status** +> V1ClusterResourceQuota patch_cluster_resource_quota_status(name, body, pretty=pretty) + + + +partially update status of the specified ClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterResourceQuota +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_cluster_resource_quota_status(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_cluster_resource_quota_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterResourceQuota | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterResourceQuota**](V1ClusterResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_cluster_role** +> V1ClusterRole patch_cluster_role(name, body, pretty=pretty) + + + +partially update the specified ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterRole +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_cluster_role(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRole | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterRole**](V1ClusterRole.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_cluster_role_binding** +> V1ClusterRoleBinding patch_cluster_role_binding(name, body, pretty=pretty) + + + +partially update the specified ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterRoleBinding +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRoleBinding | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterRoleBinding**](V1ClusterRoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_group** +> V1Group patch_group(name, body, pretty=pretty) + + + +partially update the specified Group + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Group +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_group(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Group | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Group**](V1Group.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_host_subnet** +> V1HostSubnet patch_host_subnet(name, body, pretty=pretty) + + + +partially update the specified HostSubnet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the HostSubnet +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_host_subnet(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_host_subnet: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HostSubnet | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1HostSubnet**](V1HostSubnet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_identity** +> V1Identity patch_identity(name, body, pretty=pretty) + + + +partially update the specified Identity + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Identity +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_identity(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_identity: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Identity | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Identity**](V1Identity.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_image** +> V1Image patch_image(name, body, pretty=pretty) + + + +partially update the specified Image + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Image +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_image(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_image: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Image | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Image**](V1Image.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_build** +> V1Build patch_namespaced_build(name, namespace, body, pretty=pretty) + + + +partially update the specified Build + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Build +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_build(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Build | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Build**](V1Build.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_build_config** +> V1BuildConfig patch_namespaced_build_config(name, namespace, body, pretty=pretty) + + + +partially update the specified BuildConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the BuildConfig +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_build_config(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_build_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the BuildConfig | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1BuildConfig**](V1BuildConfig.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_deployment_config** +> V1DeploymentConfig patch_namespaced_deployment_config(name, namespace, body, pretty=pretty) + + + +partially update the specified DeploymentConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the DeploymentConfig +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_deployment_config(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_deployment_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeploymentConfig | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1DeploymentConfig**](V1DeploymentConfig.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_egress_network_policy** +> V1EgressNetworkPolicy patch_namespaced_egress_network_policy(name, namespace, body, pretty=pretty) + + + +partially update the specified EgressNetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the EgressNetworkPolicy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_egress_network_policy(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_egress_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the EgressNetworkPolicy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1EgressNetworkPolicy**](V1EgressNetworkPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_image_stream** +> V1ImageStream patch_namespaced_image_stream(name, namespace, body, pretty=pretty) + + + +partially update the specified ImageStream + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ImageStream +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_image_stream(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_image_stream: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ImageStream | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStream**](V1ImageStream.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_image_stream_tag** +> V1ImageStreamTag patch_namespaced_image_stream_tag(name, namespace, body, pretty=pretty) + + + +partially update the specified ImageStreamTag + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ImageStreamTag +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_image_stream_tag(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_image_stream_tag: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ImageStreamTag | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStreamTag**](V1ImageStreamTag.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_policy** +> V1Policy patch_namespaced_policy(name, namespace, body, pretty=pretty) + + + +partially update the specified Policy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Policy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_policy(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Policy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Policy**](V1Policy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_policy_binding** +> V1PolicyBinding patch_namespaced_policy_binding(name, namespace, body, pretty=pretty) + + + +partially update the specified PolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the PolicyBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_policy_binding(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PolicyBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PolicyBinding**](V1PolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_role** +> V1Role patch_namespaced_role(name, namespace, body, pretty=pretty) + + + +partially update the specified Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Role +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Role | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Role**](V1Role.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_role_binding** +> V1RoleBinding patch_namespaced_role_binding(name, namespace, body, pretty=pretty) + + + +partially update the specified RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the RoleBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1RoleBinding**](V1RoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_role_binding_restriction** +> V1RoleBindingRestriction patch_namespaced_role_binding_restriction(name, namespace, body, pretty=pretty) + + + +partially update the specified RoleBindingRestriction + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the RoleBindingRestriction +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_role_binding_restriction(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_role_binding_restriction: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBindingRestriction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1RoleBindingRestriction**](V1RoleBindingRestriction.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_route** +> V1Route patch_namespaced_route(name, namespace, body, pretty=pretty) + + + +partially update the specified Route + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Route +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_route(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_route: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Route | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Route**](V1Route.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_scale_scale** +> V1beta1Scale patch_namespaced_scale_scale(name, namespace, body, pretty=pretty) + + + +partially update scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_scale_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_scale_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_template** +> V1Template patch_namespaced_template(name, namespace, body, pretty=pretty) + + + +partially update the specified Template + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Template +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_template(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_namespaced_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Template | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Template**](V1Template.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_net_namespace** +> V1NetNamespace patch_net_namespace(name, body, pretty=pretty) + + + +partially update the specified NetNamespace + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the NetNamespace +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_net_namespace(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_net_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the NetNamespace | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1NetNamespace**](V1NetNamespace.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_o_auth_access_token** +> V1OAuthAccessToken patch_o_auth_access_token(name, body, pretty=pretty) + + + +partially update the specified OAuthAccessToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthAccessToken +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_o_auth_access_token(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_o_auth_access_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthAccessToken | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1OAuthAccessToken**](V1OAuthAccessToken.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_o_auth_authorize_token** +> V1OAuthAuthorizeToken patch_o_auth_authorize_token(name, body, pretty=pretty) + + + +partially update the specified OAuthAuthorizeToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthAuthorizeToken +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_o_auth_authorize_token(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_o_auth_authorize_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthAuthorizeToken | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1OAuthAuthorizeToken**](V1OAuthAuthorizeToken.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_o_auth_client** +> V1OAuthClient patch_o_auth_client(name, body, pretty=pretty) + + + +partially update the specified OAuthClient + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthClient +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_o_auth_client(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_o_auth_client: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthClient | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1OAuthClient**](V1OAuthClient.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_o_auth_client_authorization** +> V1OAuthClientAuthorization patch_o_auth_client_authorization(name, body, pretty=pretty) + + + +partially update the specified OAuthClientAuthorization + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthClientAuthorization +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_o_auth_client_authorization(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_o_auth_client_authorization: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthClientAuthorization | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1OAuthClientAuthorization**](V1OAuthClientAuthorization.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_project** +> V1Project patch_project(name, body, pretty=pretty) + + + +partially update the specified Project + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Project +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_project(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Project | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Project**](V1Project.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_user** +> V1User patch_user(name, body, pretty=pretty) + + + +partially update the specified User + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the User +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_user(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_user: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the User | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1User**](V1User.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_user_identity_mapping** +> V1UserIdentityMapping patch_user_identity_mapping(name, body, pretty=pretty) + + + +partially update the specified UserIdentityMapping + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the UserIdentityMapping +body = NULL # object | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_user_identity_mapping(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->patch_user_identity_mapping: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the UserIdentityMapping | + **body** | **object**| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1UserIdentityMapping**](V1UserIdentityMapping.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_cluster_network** +> V1ClusterNetwork read_cluster_network(name, pretty=pretty, exact=exact, export=export) + + + +read the specified ClusterNetwork + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterNetwork +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_cluster_network(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_cluster_network: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterNetwork | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1ClusterNetwork**](V1ClusterNetwork.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_cluster_policy** +> V1ClusterPolicy read_cluster_policy(name, pretty=pretty, exact=exact, export=export) + + + +read the specified ClusterPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterPolicy +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_cluster_policy(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_cluster_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterPolicy | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1ClusterPolicy**](V1ClusterPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_cluster_policy_binding** +> V1ClusterPolicyBinding read_cluster_policy_binding(name, pretty=pretty, exact=exact, export=export) + + + +read the specified ClusterPolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterPolicyBinding +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_cluster_policy_binding(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_cluster_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterPolicyBinding | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1ClusterPolicyBinding**](V1ClusterPolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_cluster_resource_quota** +> V1ClusterResourceQuota read_cluster_resource_quota(name, pretty=pretty, exact=exact, export=export) + + + +read the specified ClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterResourceQuota +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_cluster_resource_quota(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_cluster_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterResourceQuota | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1ClusterResourceQuota**](V1ClusterResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_cluster_resource_quota_status** +> V1ClusterResourceQuota read_cluster_resource_quota_status(name, pretty=pretty) + + + +read status of the specified ClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterResourceQuota +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_cluster_resource_quota_status(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_cluster_resource_quota_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterResourceQuota | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterResourceQuota**](V1ClusterResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_cluster_role** +> V1ClusterRole read_cluster_role(name, pretty=pretty) + + + +read the specified ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterRole +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_cluster_role(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRole | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterRole**](V1ClusterRole.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_cluster_role_binding** +> V1ClusterRoleBinding read_cluster_role_binding(name, pretty=pretty) + + + +read the specified ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterRoleBinding +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_cluster_role_binding(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRoleBinding | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterRoleBinding**](V1ClusterRoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_group** +> V1Group read_group(name, pretty=pretty, exact=exact, export=export) + + + +read the specified Group + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Group +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_group(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Group | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Group**](V1Group.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_host_subnet** +> V1HostSubnet read_host_subnet(name, pretty=pretty, exact=exact, export=export) + + + +read the specified HostSubnet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the HostSubnet +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_host_subnet(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_host_subnet: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HostSubnet | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1HostSubnet**](V1HostSubnet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_identity** +> V1Identity read_identity(name, pretty=pretty, exact=exact, export=export) + + + +read the specified Identity + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Identity +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_identity(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_identity: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Identity | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Identity**](V1Identity.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_image** +> V1Image read_image(name, pretty=pretty, exact=exact, export=export) + + + +read the specified Image + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Image +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_image(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_image: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Image | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Image**](V1Image.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_applied_cluster_resource_quota** +> V1AppliedClusterResourceQuota read_namespaced_applied_cluster_resource_quota(name, namespace, pretty=pretty) + + + +read the specified AppliedClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the AppliedClusterResourceQuota +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_namespaced_applied_cluster_resource_quota(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_applied_cluster_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the AppliedClusterResourceQuota | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1AppliedClusterResourceQuota**](V1AppliedClusterResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_build** +> V1Build read_namespaced_build(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Build + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Build +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_build(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Build | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Build**](V1Build.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_build_config** +> V1BuildConfig read_namespaced_build_config(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified BuildConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the BuildConfig +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_build_config(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_build_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the BuildConfig | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1BuildConfig**](V1BuildConfig.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_build_log_log** +> V1BuildLog read_namespaced_build_log_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, nowait=nowait, pretty=pretty, previous=previous, since_seconds=since_seconds, since_time=since_time, tail_lines=tail_lines, timestamps=timestamps, version=version) + + + +read log of the specified BuildLog + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the BuildLog +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +container = 'container_example' # str | cointainer for which to stream logs. Defaults to only container if there is one container in the pod. (optional) +follow = true # bool | follow if true indicates that the build log should be streamed until the build terminates. (optional) +limit_bytes = 56 # int | limitBytes, If set, is the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. (optional) +nowait = true # bool | noWait if true causes the call to return immediately even if the build is not available yet. Otherwise the server will wait until the build has started. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +previous = true # bool | previous returns previous build logs. Defaults to false. (optional) +since_seconds = 56 # int | sinceSeconds is a relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) +since_time = 'since_time_example' # str | sinceTime is an RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) +tail_lines = 56 # int | tailLines, If set, is the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) +timestamps = true # bool | timestamps, If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) +version = 56 # int | version of the build for which to view logs. (optional) + +try: + api_response = api_instance.read_namespaced_build_log_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, nowait=nowait, pretty=pretty, previous=previous, since_seconds=since_seconds, since_time=since_time, tail_lines=tail_lines, timestamps=timestamps, version=version) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_build_log_log: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the BuildLog | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **container** | **str**| cointainer for which to stream logs. Defaults to only container if there is one container in the pod. | [optional] + **follow** | **bool**| follow if true indicates that the build log should be streamed until the build terminates. | [optional] + **limit_bytes** | **int**| limitBytes, If set, is the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. | [optional] + **nowait** | **bool**| noWait if true causes the call to return immediately even if the build is not available yet. Otherwise the server will wait until the build has started. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **previous** | **bool**| previous returns previous build logs. Defaults to false. | [optional] + **since_seconds** | **int**| sinceSeconds is a relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. | [optional] + **since_time** | **str**| sinceTime is an RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. | [optional] + **tail_lines** | **int**| tailLines, If set, is the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime | [optional] + **timestamps** | **bool**| timestamps, If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. | [optional] + **version** | **int**| version of the build for which to view logs. | [optional] + +### Return type + +[**V1BuildLog**](V1BuildLog.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_deployment_config** +> V1DeploymentConfig read_namespaced_deployment_config(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified DeploymentConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the DeploymentConfig +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_deployment_config(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_deployment_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeploymentConfig | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1DeploymentConfig**](V1DeploymentConfig.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_deployment_log_log** +> V1DeploymentLog read_namespaced_deployment_log_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, nowait=nowait, pretty=pretty, previous=previous, since_seconds=since_seconds, since_time=since_time, tail_lines=tail_lines, timestamps=timestamps, version=version) + + + +read log of the specified DeploymentLog + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the DeploymentLog +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +container = 'container_example' # str | The container for which to stream logs. Defaults to only container if there is one container in the pod. (optional) +follow = true # bool | Follow if true indicates that the build log should be streamed until the build terminates. (optional) +limit_bytes = 56 # int | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. (optional) +nowait = true # bool | NoWait if true causes the call to return immediately even if the deployment is not available yet. Otherwise the server will wait until the deployment has started. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +previous = true # bool | Return previous deployment logs. Defaults to false. (optional) +since_seconds = 56 # int | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) +since_time = 'since_time_example' # str | An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) +tail_lines = 56 # int | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) +timestamps = true # bool | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) +version = 56 # int | Version of the deployment for which to view logs. (optional) + +try: + api_response = api_instance.read_namespaced_deployment_log_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, nowait=nowait, pretty=pretty, previous=previous, since_seconds=since_seconds, since_time=since_time, tail_lines=tail_lines, timestamps=timestamps, version=version) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_deployment_log_log: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeploymentLog | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **container** | **str**| The container for which to stream logs. Defaults to only container if there is one container in the pod. | [optional] + **follow** | **bool**| Follow if true indicates that the build log should be streamed until the build terminates. | [optional] + **limit_bytes** | **int**| If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. | [optional] + **nowait** | **bool**| NoWait if true causes the call to return immediately even if the deployment is not available yet. Otherwise the server will wait until the deployment has started. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **previous** | **bool**| Return previous deployment logs. Defaults to false. | [optional] + **since_seconds** | **int**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. | [optional] + **since_time** | **str**| An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. | [optional] + **tail_lines** | **int**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime | [optional] + **timestamps** | **bool**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. | [optional] + **version** | **int**| Version of the deployment for which to view logs. | [optional] + +### Return type + +[**V1DeploymentLog**](V1DeploymentLog.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_egress_network_policy** +> V1EgressNetworkPolicy read_namespaced_egress_network_policy(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified EgressNetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the EgressNetworkPolicy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_egress_network_policy(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_egress_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the EgressNetworkPolicy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1EgressNetworkPolicy**](V1EgressNetworkPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_image_stream** +> V1ImageStream read_namespaced_image_stream(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified ImageStream + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ImageStream +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_image_stream(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_image_stream: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ImageStream | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1ImageStream**](V1ImageStream.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_image_stream_image** +> V1ImageStreamImage read_namespaced_image_stream_image(name, namespace, pretty=pretty) + + + +read the specified ImageStreamImage + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ImageStreamImage +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_namespaced_image_stream_image(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_image_stream_image: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ImageStreamImage | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStreamImage**](V1ImageStreamImage.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_image_stream_tag** +> V1ImageStreamTag read_namespaced_image_stream_tag(name, namespace, pretty=pretty) + + + +read the specified ImageStreamTag + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ImageStreamTag +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_namespaced_image_stream_tag(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_image_stream_tag: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ImageStreamTag | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStreamTag**](V1ImageStreamTag.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_policy** +> V1Policy read_namespaced_policy(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Policy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Policy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_policy(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Policy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Policy**](V1Policy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_policy_binding** +> V1PolicyBinding read_namespaced_policy_binding(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified PolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the PolicyBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_policy_binding(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PolicyBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1PolicyBinding**](V1PolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_role** +> V1Role read_namespaced_role(name, namespace, pretty=pretty) + + + +read the specified Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Role +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_namespaced_role(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Role | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Role**](V1Role.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_role_binding** +> V1RoleBinding read_namespaced_role_binding(name, namespace, pretty=pretty) + + + +read the specified RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the RoleBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_namespaced_role_binding(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1RoleBinding**](V1RoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_role_binding_restriction** +> V1RoleBindingRestriction read_namespaced_role_binding_restriction(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified RoleBindingRestriction + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the RoleBindingRestriction +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_role_binding_restriction(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_role_binding_restriction: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBindingRestriction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1RoleBindingRestriction**](V1RoleBindingRestriction.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_route** +> V1Route read_namespaced_route(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Route + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Route +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_route(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_route: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Route | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Route**](V1Route.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_scale_scale** +> V1beta1Scale read_namespaced_scale_scale(name, namespace, pretty=pretty) + + + +read scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_namespaced_scale_scale(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_scale_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_secret_list_secrets** +> V1SecretList read_namespaced_secret_list_secrets(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +read secrets of the specified SecretList + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the SecretList +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.read_namespaced_secret_list_secrets(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_secret_list_secrets: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the SecretList | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1SecretList**](V1SecretList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_template** +> V1Template read_namespaced_template(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Template + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Template +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_template(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_namespaced_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Template | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1Template**](V1Template.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_net_namespace** +> V1NetNamespace read_net_namespace(name, pretty=pretty, exact=exact, export=export) + + + +read the specified NetNamespace + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the NetNamespace +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_net_namespace(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_net_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the NetNamespace | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1NetNamespace**](V1NetNamespace.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_o_auth_access_token** +> V1OAuthAccessToken read_o_auth_access_token(name, pretty=pretty, exact=exact, export=export) + + + +read the specified OAuthAccessToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthAccessToken +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_o_auth_access_token(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_o_auth_access_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthAccessToken | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1OAuthAccessToken**](V1OAuthAccessToken.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_o_auth_authorize_token** +> V1OAuthAuthorizeToken read_o_auth_authorize_token(name, pretty=pretty, exact=exact, export=export) + + + +read the specified OAuthAuthorizeToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthAuthorizeToken +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_o_auth_authorize_token(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_o_auth_authorize_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthAuthorizeToken | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1OAuthAuthorizeToken**](V1OAuthAuthorizeToken.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_o_auth_client** +> V1OAuthClient read_o_auth_client(name, pretty=pretty, exact=exact, export=export) + + + +read the specified OAuthClient + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthClient +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_o_auth_client(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_o_auth_client: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthClient | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1OAuthClient**](V1OAuthClient.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_o_auth_client_authorization** +> V1OAuthClientAuthorization read_o_auth_client_authorization(name, pretty=pretty, exact=exact, export=export) + + + +read the specified OAuthClientAuthorization + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthClientAuthorization +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_o_auth_client_authorization(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_o_auth_client_authorization: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthClientAuthorization | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1OAuthClientAuthorization**](V1OAuthClientAuthorization.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_project** +> V1Project read_project(name, pretty=pretty) + + + +read the specified Project + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Project +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_project(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Project | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Project**](V1Project.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_user** +> V1User read_user(name, pretty=pretty, exact=exact, export=export) + + + +read the specified User + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the User +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_user(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_user: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the User | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1User**](V1User.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_user_identity_mapping** +> V1UserIdentityMapping read_user_identity_mapping(name, pretty=pretty) + + + +read the specified UserIdentityMapping + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the UserIdentityMapping +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.read_user_identity_mapping(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->read_user_identity_mapping: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the UserIdentityMapping | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1UserIdentityMapping**](V1UserIdentityMapping.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_cluster_network** +> V1ClusterNetwork replace_cluster_network(name, body, pretty=pretty) + + + +replace the specified ClusterNetwork + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterNetwork +body = kubernetes.client.V1ClusterNetwork() # V1ClusterNetwork | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_cluster_network(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_cluster_network: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterNetwork | + **body** | [**V1ClusterNetwork**](V1ClusterNetwork.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterNetwork**](V1ClusterNetwork.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_cluster_policy** +> V1ClusterPolicy replace_cluster_policy(name, body, pretty=pretty) + + + +replace the specified ClusterPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterPolicy +body = kubernetes.client.V1ClusterPolicy() # V1ClusterPolicy | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_cluster_policy(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_cluster_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterPolicy | + **body** | [**V1ClusterPolicy**](V1ClusterPolicy.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterPolicy**](V1ClusterPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_cluster_policy_binding** +> V1ClusterPolicyBinding replace_cluster_policy_binding(name, body, pretty=pretty) + + + +replace the specified ClusterPolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterPolicyBinding +body = kubernetes.client.V1ClusterPolicyBinding() # V1ClusterPolicyBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_cluster_policy_binding(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_cluster_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterPolicyBinding | + **body** | [**V1ClusterPolicyBinding**](V1ClusterPolicyBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterPolicyBinding**](V1ClusterPolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_cluster_resource_quota** +> V1ClusterResourceQuota replace_cluster_resource_quota(name, body, pretty=pretty) + + + +replace the specified ClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterResourceQuota +body = kubernetes.client.V1ClusterResourceQuota() # V1ClusterResourceQuota | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_cluster_resource_quota(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_cluster_resource_quota: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterResourceQuota | + **body** | [**V1ClusterResourceQuota**](V1ClusterResourceQuota.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterResourceQuota**](V1ClusterResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_cluster_resource_quota_status** +> V1ClusterResourceQuota replace_cluster_resource_quota_status(name, body, pretty=pretty) + + + +replace status of the specified ClusterResourceQuota + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterResourceQuota +body = kubernetes.client.V1ClusterResourceQuota() # V1ClusterResourceQuota | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_cluster_resource_quota_status(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_cluster_resource_quota_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterResourceQuota | + **body** | [**V1ClusterResourceQuota**](V1ClusterResourceQuota.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterResourceQuota**](V1ClusterResourceQuota.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_cluster_role** +> V1ClusterRole replace_cluster_role(name, body, pretty=pretty) + + + +replace the specified ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterRole +body = kubernetes.client.V1ClusterRole() # V1ClusterRole | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_cluster_role(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRole | + **body** | [**V1ClusterRole**](V1ClusterRole.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterRole**](V1ClusterRole.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_cluster_role_binding** +> V1ClusterRoleBinding replace_cluster_role_binding(name, body, pretty=pretty) + + + +replace the specified ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ClusterRoleBinding +body = kubernetes.client.V1ClusterRoleBinding() # V1ClusterRoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRoleBinding | + **body** | [**V1ClusterRoleBinding**](V1ClusterRoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ClusterRoleBinding**](V1ClusterRoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_group** +> V1Group replace_group(name, body, pretty=pretty) + + + +replace the specified Group + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Group +body = kubernetes.client.V1Group() # V1Group | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_group(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Group | + **body** | [**V1Group**](V1Group.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Group**](V1Group.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_host_subnet** +> V1HostSubnet replace_host_subnet(name, body, pretty=pretty) + + + +replace the specified HostSubnet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the HostSubnet +body = kubernetes.client.V1HostSubnet() # V1HostSubnet | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_host_subnet(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_host_subnet: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the HostSubnet | + **body** | [**V1HostSubnet**](V1HostSubnet.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1HostSubnet**](V1HostSubnet.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_identity** +> V1Identity replace_identity(name, body, pretty=pretty) + + + +replace the specified Identity + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Identity +body = kubernetes.client.V1Identity() # V1Identity | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_identity(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_identity: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Identity | + **body** | [**V1Identity**](V1Identity.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Identity**](V1Identity.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_image** +> V1Image replace_image(name, body, pretty=pretty) + + + +replace the specified Image + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Image +body = kubernetes.client.V1Image() # V1Image | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_image(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_image: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Image | + **body** | [**V1Image**](V1Image.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Image**](V1Image.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_build** +> V1Build replace_namespaced_build(name, namespace, body, pretty=pretty) + + + +replace the specified Build + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Build +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Build() # V1Build | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_build(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Build | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Build**](V1Build.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Build**](V1Build.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_build_config** +> V1BuildConfig replace_namespaced_build_config(name, namespace, body, pretty=pretty) + + + +replace the specified BuildConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the BuildConfig +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1BuildConfig() # V1BuildConfig | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_build_config(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_build_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the BuildConfig | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1BuildConfig**](V1BuildConfig.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1BuildConfig**](V1BuildConfig.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_build_details** +> V1Build replace_namespaced_build_details(body, name, namespace, pretty=pretty) + + + +replace details of the specified Build + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1Build() # V1Build | +name = 'name_example' # str | name of the Build +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_build_details(body, name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_build_details: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Build**](V1Build.md)| | + **name** | **str**| name of the Build | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Build**](V1Build.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_deployment_config** +> V1DeploymentConfig replace_namespaced_deployment_config(name, namespace, body, pretty=pretty) + + + +replace the specified DeploymentConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the DeploymentConfig +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeploymentConfig() # V1DeploymentConfig | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_deployment_config(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_deployment_config: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeploymentConfig | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1DeploymentConfig**](V1DeploymentConfig.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1DeploymentConfig**](V1DeploymentConfig.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_deployment_config_status** +> V1DeploymentConfig replace_namespaced_deployment_config_status(body, name, namespace, pretty=pretty) + + + +replace status of the specified DeploymentConfig + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1DeploymentConfig() # V1DeploymentConfig | +name = 'name_example' # str | name of the DeploymentConfig +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_deployment_config_status(body, name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_deployment_config_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1DeploymentConfig**](V1DeploymentConfig.md)| | + **name** | **str**| name of the DeploymentConfig | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1DeploymentConfig**](V1DeploymentConfig.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_egress_network_policy** +> V1EgressNetworkPolicy replace_namespaced_egress_network_policy(name, namespace, body, pretty=pretty) + + + +replace the specified EgressNetworkPolicy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the EgressNetworkPolicy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1EgressNetworkPolicy() # V1EgressNetworkPolicy | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_egress_network_policy(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_egress_network_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the EgressNetworkPolicy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1EgressNetworkPolicy**](V1EgressNetworkPolicy.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1EgressNetworkPolicy**](V1EgressNetworkPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_image_stream** +> V1ImageStream replace_namespaced_image_stream(name, namespace, body, pretty=pretty) + + + +replace the specified ImageStream + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ImageStream +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1ImageStream() # V1ImageStream | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_image_stream(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_image_stream: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ImageStream | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ImageStream**](V1ImageStream.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStream**](V1ImageStream.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_image_stream_status** +> V1ImageStream replace_namespaced_image_stream_status(body, name, namespace, pretty=pretty) + + + +replace status of the specified ImageStream + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1ImageStream() # V1ImageStream | +name = 'name_example' # str | name of the ImageStream +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_image_stream_status(body, name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_image_stream_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ImageStream**](V1ImageStream.md)| | + **name** | **str**| name of the ImageStream | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStream**](V1ImageStream.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_image_stream_tag** +> V1ImageStreamTag replace_namespaced_image_stream_tag(name, namespace, body, pretty=pretty) + + + +replace the specified ImageStreamTag + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the ImageStreamTag +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1ImageStreamTag() # V1ImageStreamTag | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_image_stream_tag(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_image_stream_tag: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ImageStreamTag | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1ImageStreamTag**](V1ImageStreamTag.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1ImageStreamTag**](V1ImageStreamTag.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_policy** +> V1Policy replace_namespaced_policy(name, namespace, body, pretty=pretty) + + + +replace the specified Policy + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Policy +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Policy() # V1Policy | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_policy(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Policy | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Policy**](V1Policy.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Policy**](V1Policy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_policy_binding** +> V1PolicyBinding replace_namespaced_policy_binding(name, namespace, body, pretty=pretty) + + + +replace the specified PolicyBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the PolicyBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1PolicyBinding() # V1PolicyBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_policy_binding(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_policy_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PolicyBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PolicyBinding**](V1PolicyBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1PolicyBinding**](V1PolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_role** +> V1Role replace_namespaced_role(name, namespace, body, pretty=pretty) + + + +replace the specified Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Role +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Role() # V1Role | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Role | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Role**](V1Role.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Role**](V1Role.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_role_binding** +> V1RoleBinding replace_namespaced_role_binding(name, namespace, body, pretty=pretty) + + + +replace the specified RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the RoleBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1RoleBinding() # V1RoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBinding | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1RoleBinding**](V1RoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1RoleBinding**](V1RoleBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_role_binding_restriction** +> V1RoleBindingRestriction replace_namespaced_role_binding_restriction(name, namespace, body, pretty=pretty) + + + +replace the specified RoleBindingRestriction + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the RoleBindingRestriction +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1RoleBindingRestriction() # V1RoleBindingRestriction | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_role_binding_restriction(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_role_binding_restriction: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the RoleBindingRestriction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1RoleBindingRestriction**](V1RoleBindingRestriction.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1RoleBindingRestriction**](V1RoleBindingRestriction.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_route** +> V1Route replace_namespaced_route(name, namespace, body, pretty=pretty) + + + +replace the specified Route + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Route +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Route() # V1Route | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_route(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_route: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Route | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Route**](V1Route.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Route**](V1Route.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_route_status** +> V1Route replace_namespaced_route_status(body, name, namespace, pretty=pretty) + + + +replace status of the specified Route + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +body = kubernetes.client.V1Route() # V1Route | +name = 'name_example' # str | name of the Route +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_route_status(body, name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_route_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Route**](V1Route.md)| | + **name** | **str**| name of the Route | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Route**](V1Route.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_scale_scale** +> V1beta1Scale replace_namespaced_scale_scale(name, namespace, body, pretty=pretty) + + + +replace scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1Scale() # V1beta1Scale | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_scale_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_scale_scale: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Scale | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Scale**](V1beta1Scale.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Scale**](V1beta1Scale.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_template** +> V1Template replace_namespaced_template(name, namespace, body, pretty=pretty) + + + +replace the specified Template + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Template +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Template() # V1Template | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_template(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_namespaced_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Template | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Template**](V1Template.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Template**](V1Template.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_net_namespace** +> V1NetNamespace replace_net_namespace(name, body, pretty=pretty) + + + +replace the specified NetNamespace + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the NetNamespace +body = kubernetes.client.V1NetNamespace() # V1NetNamespace | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_net_namespace(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_net_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the NetNamespace | + **body** | [**V1NetNamespace**](V1NetNamespace.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1NetNamespace**](V1NetNamespace.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_o_auth_access_token** +> V1OAuthAccessToken replace_o_auth_access_token(name, body, pretty=pretty) + + + +replace the specified OAuthAccessToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthAccessToken +body = kubernetes.client.V1OAuthAccessToken() # V1OAuthAccessToken | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_o_auth_access_token(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_o_auth_access_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthAccessToken | + **body** | [**V1OAuthAccessToken**](V1OAuthAccessToken.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1OAuthAccessToken**](V1OAuthAccessToken.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_o_auth_authorize_token** +> V1OAuthAuthorizeToken replace_o_auth_authorize_token(name, body, pretty=pretty) + + + +replace the specified OAuthAuthorizeToken + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthAuthorizeToken +body = kubernetes.client.V1OAuthAuthorizeToken() # V1OAuthAuthorizeToken | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_o_auth_authorize_token(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_o_auth_authorize_token: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthAuthorizeToken | + **body** | [**V1OAuthAuthorizeToken**](V1OAuthAuthorizeToken.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1OAuthAuthorizeToken**](V1OAuthAuthorizeToken.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_o_auth_client** +> V1OAuthClient replace_o_auth_client(name, body, pretty=pretty) + + + +replace the specified OAuthClient + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthClient +body = kubernetes.client.V1OAuthClient() # V1OAuthClient | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_o_auth_client(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_o_auth_client: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthClient | + **body** | [**V1OAuthClient**](V1OAuthClient.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1OAuthClient**](V1OAuthClient.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_o_auth_client_authorization** +> V1OAuthClientAuthorization replace_o_auth_client_authorization(name, body, pretty=pretty) + + + +replace the specified OAuthClientAuthorization + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the OAuthClientAuthorization +body = kubernetes.client.V1OAuthClientAuthorization() # V1OAuthClientAuthorization | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_o_auth_client_authorization(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_o_auth_client_authorization: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the OAuthClientAuthorization | + **body** | [**V1OAuthClientAuthorization**](V1OAuthClientAuthorization.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1OAuthClientAuthorization**](V1OAuthClientAuthorization.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_project** +> V1Project replace_project(name, body, pretty=pretty) + + + +replace the specified Project + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the Project +body = kubernetes.client.V1Project() # V1Project | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_project(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Project | + **body** | [**V1Project**](V1Project.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1Project**](V1Project.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_user** +> V1User replace_user(name, body, pretty=pretty) + + + +replace the specified User + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the User +body = kubernetes.client.V1User() # V1User | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_user(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_user: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the User | + **body** | [**V1User**](V1User.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1User**](V1User.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_user_identity_mapping** +> V1UserIdentityMapping replace_user_identity_mapping(name, body, pretty=pretty) + + + +replace the specified UserIdentityMapping + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OapiApi() +name = 'name_example' # str | name of the UserIdentityMapping +body = kubernetes.client.V1UserIdentityMapping() # V1UserIdentityMapping | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_user_identity_mapping(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling OapiApi->replace_user_identity_mapping: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the UserIdentityMapping | + **body** | [**V1UserIdentityMapping**](V1UserIdentityMapping.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1UserIdentityMapping**](V1UserIdentityMapping.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/OsapiApi.md b/kubernetes/docs/OsapiApi.md new file mode 100644 index 0000000000..179d22d6f8 --- /dev/null +++ b/kubernetes/docs/OsapiApi.md @@ -0,0 +1,56 @@ +# kubernetes.client.OsapiApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_version**](OsapiApi.md#get_version) | **GET** /osapi/ | + + +# **get_version** +> get_version() + + + +list supported server API versions + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.OsapiApi() + +try: + api_instance.get_version() +except ApiException as e: + print("Exception when calling OsapiApi->get_version: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/PolicyApi.md b/kubernetes/docs/PolicyApi.md index aec5f83f9d..924f1ed75c 100644 --- a/kubernetes/docs/PolicyApi.md +++ b/kubernetes/docs/PolicyApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> V1APIGroup get_api_group() +> UnversionedAPIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) ### Authorization diff --git a/kubernetes/docs/PolicyV1beta1Api.md b/kubernetes/docs/PolicyV1beta1Api.md index a1566a0b70..17d2961e81 100644 --- a/kubernetes/docs/PolicyV1beta1Api.md +++ b/kubernetes/docs/PolicyV1beta1Api.md @@ -5,6 +5,7 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_namespaced_pod_disruption_budget**](PolicyV1beta1Api.md#create_namespaced_pod_disruption_budget) | **POST** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | +[**create_pod_disruption_budget_for_all_namespaces**](PolicyV1beta1Api.md#create_pod_disruption_budget_for_all_namespaces) | **POST** /apis/policy/v1beta1/poddisruptionbudgets | [**delete_collection_namespaced_pod_disruption_budget**](PolicyV1beta1Api.md#delete_collection_namespaced_pod_disruption_budget) | **DELETE** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | [**delete_namespaced_pod_disruption_budget**](PolicyV1beta1Api.md#delete_namespaced_pod_disruption_budget) | **DELETE** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | [**get_api_resources**](PolicyV1beta1Api.md#get_api_resources) | **GET** /apis/policy/v1beta1/ | @@ -74,8 +75,62 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_pod_disruption_budget_for_all_namespaces** +> V1beta1PodDisruptionBudget create_pod_disruption_budget_for_all_namespaces(body, pretty=pretty) + + + +create a PodDisruptionBudget + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.PolicyV1beta1Api() +body = kubernetes.client.V1beta1PodDisruptionBudget() # V1beta1PodDisruptionBudget | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_pod_disruption_budget_for_all_namespaces(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling PolicyV1beta1Api->create_pod_disruption_budget_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_pod_disruption_budget** -> V1Status delete_collection_namespaced_pod_disruption_budget(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_namespaced_pod_disruption_budget(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -100,7 +155,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -119,13 +174,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -139,7 +194,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_pod_disruption_budget** -> V1Status delete_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -165,11 +220,10 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling PolicyV1beta1Api->delete_namespaced_pod_disruption_budget: %s\n" % e) @@ -184,12 +238,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -203,7 +256,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** -> V1APIResourceList get_api_resources() +> UnversionedAPIResourceList get_api_resources() @@ -237,7 +290,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) ### Authorization @@ -276,7 +329,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -295,7 +348,7 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] @@ -315,7 +368,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_disruption_budget_for_all_namespaces** -> V1beta1PodDisruptionBudgetList list_pod_disruption_budget_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1PodDisruptionBudgetList list_pod_disruption_budget_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -336,15 +389,15 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.PolicyV1beta1Api() +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_pod_disruption_budget_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_pod_disruption_budget_for_all_namespaces(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling PolicyV1beta1Api->list_pod_disruption_budget_for_all_namespaces: %s\n" % e) @@ -354,10 +407,10 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] @@ -517,7 +570,7 @@ api_instance = kubernetes.client.PolicyV1beta1Api() name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -534,7 +587,7 @@ Name | Type | Description | Notes **name** | **str**| name of the PodDisruptionBudget | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type diff --git a/kubernetes/docs/RbacAuthorizationApi.md b/kubernetes/docs/RbacAuthorizationApi.md deleted file mode 100644 index c7686fea00..0000000000 --- a/kubernetes/docs/RbacAuthorizationApi.md +++ /dev/null @@ -1,57 +0,0 @@ -# kubernetes.client.RbacAuthorizationApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_api_group**](RbacAuthorizationApi.md#get_api_group) | **GET** /apis/rbac.authorization.k8s.io/ | - - -# **get_api_group** -> V1APIGroup get_api_group() - - - -get information of a group - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationApi() - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationApi->get_api_group: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/RbacAuthorizationV1alpha1Api.md b/kubernetes/docs/RbacAuthorizationV1alpha1Api.md deleted file mode 100644 index 159b9f8556..0000000000 --- a/kubernetes/docs/RbacAuthorizationV1alpha1Api.md +++ /dev/null @@ -1,1863 +0,0 @@ -# kubernetes.client.RbacAuthorizationV1alpha1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_cluster_role**](RbacAuthorizationV1alpha1Api.md#create_cluster_role) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | -[**create_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#create_cluster_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | -[**create_namespaced_role**](RbacAuthorizationV1alpha1Api.md#create_namespaced_role) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | -[**create_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#create_namespaced_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | -[**delete_cluster_role**](RbacAuthorizationV1alpha1Api.md#delete_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -[**delete_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#delete_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -[**delete_collection_cluster_role**](RbacAuthorizationV1alpha1Api.md#delete_collection_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | -[**delete_collection_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#delete_collection_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | -[**delete_collection_namespaced_role**](RbacAuthorizationV1alpha1Api.md#delete_collection_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | -[**delete_collection_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#delete_collection_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | -[**delete_namespaced_role**](RbacAuthorizationV1alpha1Api.md#delete_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -[**delete_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#delete_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -[**get_api_resources**](RbacAuthorizationV1alpha1Api.md#get_api_resources) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/ | -[**list_cluster_role**](RbacAuthorizationV1alpha1Api.md#list_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | -[**list_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#list_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | -[**list_namespaced_role**](RbacAuthorizationV1alpha1Api.md#list_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | -[**list_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#list_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | -[**list_role_binding_for_all_namespaces**](RbacAuthorizationV1alpha1Api.md#list_role_binding_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/rolebindings | -[**list_role_for_all_namespaces**](RbacAuthorizationV1alpha1Api.md#list_role_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/roles | -[**patch_cluster_role**](RbacAuthorizationV1alpha1Api.md#patch_cluster_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -[**patch_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#patch_cluster_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -[**patch_namespaced_role**](RbacAuthorizationV1alpha1Api.md#patch_namespaced_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -[**patch_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#patch_namespaced_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -[**read_cluster_role**](RbacAuthorizationV1alpha1Api.md#read_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -[**read_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#read_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -[**read_namespaced_role**](RbacAuthorizationV1alpha1Api.md#read_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -[**read_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#read_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -[**replace_cluster_role**](RbacAuthorizationV1alpha1Api.md#replace_cluster_role) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -[**replace_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#replace_cluster_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -[**replace_namespaced_role**](RbacAuthorizationV1alpha1Api.md#replace_namespaced_role) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -[**replace_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#replace_namespaced_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | - - -# **create_cluster_role** -> V1alpha1ClusterRole create_cluster_role(body, pretty=pretty) - - - -create a ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -body = kubernetes.client.V1alpha1ClusterRole() # V1alpha1ClusterRole | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_cluster_role(body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->create_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ClusterRole**](V1alpha1ClusterRole.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRole**](V1alpha1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_cluster_role_binding** -> V1alpha1ClusterRoleBinding create_cluster_role_binding(body, pretty=pretty) - - - -create a ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -body = kubernetes.client.V1alpha1ClusterRoleBinding() # V1alpha1ClusterRoleBinding | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_cluster_role_binding(body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->create_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_namespaced_role** -> V1alpha1Role create_namespaced_role(namespace, body, pretty=pretty) - - - -create a Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1alpha1Role() # V1alpha1Role | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->create_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1Role**](V1alpha1Role.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1Role**](V1alpha1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_namespaced_role_binding** -> V1alpha1RoleBinding create_namespaced_role_binding(namespace, body, pretty=pretty) - - - -create a RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1alpha1RoleBinding() # V1alpha1RoleBinding | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->create_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1RoleBinding**](V1alpha1RoleBinding.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1RoleBinding**](V1alpha1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_cluster_role** -> V1Status delete_cluster_role(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the ClusterRole -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_cluster_role(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRole | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_cluster_role_binding** -> V1Status delete_cluster_role_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the ClusterRoleBinding -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_cluster_role_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRoleBinding | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_cluster_role** -> V1Status delete_collection_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -delete collection of ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.delete_collection_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_cluster_role_binding** -> V1Status delete_collection_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -delete collection of ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_namespaced_role** -> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -delete collection of Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_namespaced_role_binding** -> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -delete collection of RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_namespaced_role** -> V1Status delete_namespaced_role(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the Role -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_namespaced_role(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Role | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_namespaced_role_binding** -> V1Status delete_namespaced_role_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the RoleBinding -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_namespaced_role_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the RoleBinding | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_api_resources** -> V1APIResourceList get_api_resources() - - - -get available resources - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->get_api_resources: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_cluster_role** -> V1alpha1ClusterRoleList list_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->list_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1ClusterRoleList**](V1alpha1ClusterRoleList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_cluster_role_binding** -> V1alpha1ClusterRoleBindingList list_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->list_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1ClusterRoleBindingList**](V1alpha1ClusterRoleBindingList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_namespaced_role** -> V1alpha1RoleList list_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->list_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1RoleList**](V1alpha1RoleList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_namespaced_role_binding** -> V1alpha1RoleBindingList list_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->list_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1RoleBindingList**](V1alpha1RoleBindingList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_role_binding_for_all_namespaces** -> V1alpha1RoleBindingList list_role_binding_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_role_binding_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->list_role_binding_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1RoleBindingList**](V1alpha1RoleBindingList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_role_for_all_namespaces** -> V1alpha1RoleList list_role_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_role_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->list_role_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1RoleList**](V1alpha1RoleList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_cluster_role** -> V1alpha1ClusterRole patch_cluster_role(name, body, pretty=pretty) - - - -partially update the specified ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the ClusterRole -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_cluster_role(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->patch_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRole | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRole**](V1alpha1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_cluster_role_binding** -> V1alpha1ClusterRoleBinding patch_cluster_role_binding(name, body, pretty=pretty) - - - -partially update the specified ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the ClusterRoleBinding -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->patch_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRoleBinding | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_namespaced_role** -> V1alpha1Role patch_namespaced_role(name, namespace, body, pretty=pretty) - - - -partially update the specified Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the Role -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->patch_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Role | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1Role**](V1alpha1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_namespaced_role_binding** -> V1alpha1RoleBinding patch_namespaced_role_binding(name, namespace, body, pretty=pretty) - - - -partially update the specified RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the RoleBinding -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->patch_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the RoleBinding | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1RoleBinding**](V1alpha1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_cluster_role** -> V1alpha1ClusterRole read_cluster_role(name, pretty=pretty) - - - -read the specified ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the ClusterRole -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.read_cluster_role(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->read_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRole | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRole**](V1alpha1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_cluster_role_binding** -> V1alpha1ClusterRoleBinding read_cluster_role_binding(name, pretty=pretty) - - - -read the specified ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the ClusterRoleBinding -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.read_cluster_role_binding(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->read_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRoleBinding | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_namespaced_role** -> V1alpha1Role read_namespaced_role(name, namespace, pretty=pretty) - - - -read the specified Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the Role -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.read_namespaced_role(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->read_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Role | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1Role**](V1alpha1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_namespaced_role_binding** -> V1alpha1RoleBinding read_namespaced_role_binding(name, namespace, pretty=pretty) - - - -read the specified RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the RoleBinding -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.read_namespaced_role_binding(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->read_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the RoleBinding | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1RoleBinding**](V1alpha1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_cluster_role** -> V1alpha1ClusterRole replace_cluster_role(name, body, pretty=pretty) - - - -replace the specified ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the ClusterRole -body = kubernetes.client.V1alpha1ClusterRole() # V1alpha1ClusterRole | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_cluster_role(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->replace_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRole | - **body** | [**V1alpha1ClusterRole**](V1alpha1ClusterRole.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRole**](V1alpha1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_cluster_role_binding** -> V1alpha1ClusterRoleBinding replace_cluster_role_binding(name, body, pretty=pretty) - - - -replace the specified ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the ClusterRoleBinding -body = kubernetes.client.V1alpha1ClusterRoleBinding() # V1alpha1ClusterRoleBinding | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->replace_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRoleBinding | - **body** | [**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_namespaced_role** -> V1alpha1Role replace_namespaced_role(name, namespace, body, pretty=pretty) - - - -replace the specified Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the Role -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1alpha1Role() # V1alpha1Role | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->replace_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Role | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1Role**](V1alpha1Role.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1Role**](V1alpha1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_namespaced_role_binding** -> V1alpha1RoleBinding replace_namespaced_role_binding(name, namespace, body, pretty=pretty) - - - -replace the specified RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the RoleBinding -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1alpha1RoleBinding() # V1alpha1RoleBinding | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->replace_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the RoleBinding | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1RoleBinding**](V1alpha1RoleBinding.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1RoleBinding**](V1alpha1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/RbacAuthorizationV1beta1Api.md b/kubernetes/docs/RbacAuthorizationV1beta1Api.md deleted file mode 100644 index 20aebe1f3d..0000000000 --- a/kubernetes/docs/RbacAuthorizationV1beta1Api.md +++ /dev/null @@ -1,1863 +0,0 @@ -# kubernetes.client.RbacAuthorizationV1beta1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_cluster_role**](RbacAuthorizationV1beta1Api.md#create_cluster_role) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | -[**create_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#create_cluster_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | -[**create_namespaced_role**](RbacAuthorizationV1beta1Api.md#create_namespaced_role) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | -[**create_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#create_namespaced_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | -[**delete_cluster_role**](RbacAuthorizationV1beta1Api.md#delete_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -[**delete_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#delete_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -[**delete_collection_cluster_role**](RbacAuthorizationV1beta1Api.md#delete_collection_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | -[**delete_collection_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#delete_collection_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | -[**delete_collection_namespaced_role**](RbacAuthorizationV1beta1Api.md#delete_collection_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | -[**delete_collection_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#delete_collection_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | -[**delete_namespaced_role**](RbacAuthorizationV1beta1Api.md#delete_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -[**delete_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#delete_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -[**get_api_resources**](RbacAuthorizationV1beta1Api.md#get_api_resources) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/ | -[**list_cluster_role**](RbacAuthorizationV1beta1Api.md#list_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | -[**list_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#list_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | -[**list_namespaced_role**](RbacAuthorizationV1beta1Api.md#list_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | -[**list_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#list_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | -[**list_role_binding_for_all_namespaces**](RbacAuthorizationV1beta1Api.md#list_role_binding_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/rolebindings | -[**list_role_for_all_namespaces**](RbacAuthorizationV1beta1Api.md#list_role_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/roles | -[**patch_cluster_role**](RbacAuthorizationV1beta1Api.md#patch_cluster_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -[**patch_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#patch_cluster_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -[**patch_namespaced_role**](RbacAuthorizationV1beta1Api.md#patch_namespaced_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -[**patch_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#patch_namespaced_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -[**read_cluster_role**](RbacAuthorizationV1beta1Api.md#read_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -[**read_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#read_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -[**read_namespaced_role**](RbacAuthorizationV1beta1Api.md#read_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -[**read_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#read_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -[**replace_cluster_role**](RbacAuthorizationV1beta1Api.md#replace_cluster_role) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -[**replace_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#replace_cluster_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -[**replace_namespaced_role**](RbacAuthorizationV1beta1Api.md#replace_namespaced_role) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -[**replace_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#replace_namespaced_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | - - -# **create_cluster_role** -> V1beta1ClusterRole create_cluster_role(body, pretty=pretty) - - - -create a ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -body = kubernetes.client.V1beta1ClusterRole() # V1beta1ClusterRole | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_cluster_role(body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->create_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1ClusterRole**](V1beta1ClusterRole.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRole**](V1beta1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_cluster_role_binding** -> V1beta1ClusterRoleBinding create_cluster_role_binding(body, pretty=pretty) - - - -create a ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -body = kubernetes.client.V1beta1ClusterRoleBinding() # V1beta1ClusterRoleBinding | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_cluster_role_binding(body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->create_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_namespaced_role** -> V1beta1Role create_namespaced_role(namespace, body, pretty=pretty) - - - -create a Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1Role() # V1beta1Role | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->create_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Role**](V1beta1Role.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Role**](V1beta1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_namespaced_role_binding** -> V1beta1RoleBinding create_namespaced_role_binding(namespace, body, pretty=pretty) - - - -create a RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1RoleBinding() # V1beta1RoleBinding | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->create_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1RoleBinding**](V1beta1RoleBinding.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1RoleBinding**](V1beta1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_cluster_role** -> V1Status delete_cluster_role(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the ClusterRole -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_cluster_role(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRole | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_cluster_role_binding** -> V1Status delete_cluster_role_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the ClusterRoleBinding -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_cluster_role_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRoleBinding | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_cluster_role** -> V1Status delete_collection_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -delete collection of ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.delete_collection_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_cluster_role_binding** -> V1Status delete_collection_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -delete collection of ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_namespaced_role** -> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -delete collection of Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_namespaced_role_binding** -> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -delete collection of RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_namespaced_role** -> V1Status delete_namespaced_role(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the Role -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_namespaced_role(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Role | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_namespaced_role_binding** -> V1Status delete_namespaced_role_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the RoleBinding -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_namespaced_role_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the RoleBinding | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_api_resources** -> V1APIResourceList get_api_resources() - - - -get available resources - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->get_api_resources: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_cluster_role** -> V1beta1ClusterRoleList list_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->list_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1ClusterRoleList**](V1beta1ClusterRoleList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_cluster_role_binding** -> V1beta1ClusterRoleBindingList list_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->list_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1ClusterRoleBindingList**](V1beta1ClusterRoleBindingList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_namespaced_role** -> V1beta1RoleList list_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->list_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1RoleList**](V1beta1RoleList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_namespaced_role_binding** -> V1beta1RoleBindingList list_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->list_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1RoleBindingList**](V1beta1RoleBindingList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_role_binding_for_all_namespaces** -> V1beta1RoleBindingList list_role_binding_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_role_binding_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->list_role_binding_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1RoleBindingList**](V1beta1RoleBindingList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_role_for_all_namespaces** -> V1beta1RoleList list_role_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_role_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->list_role_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1RoleList**](V1beta1RoleList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_cluster_role** -> V1beta1ClusterRole patch_cluster_role(name, body, pretty=pretty) - - - -partially update the specified ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the ClusterRole -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_cluster_role(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->patch_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRole | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRole**](V1beta1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_cluster_role_binding** -> V1beta1ClusterRoleBinding patch_cluster_role_binding(name, body, pretty=pretty) - - - -partially update the specified ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the ClusterRoleBinding -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->patch_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRoleBinding | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_namespaced_role** -> V1beta1Role patch_namespaced_role(name, namespace, body, pretty=pretty) - - - -partially update the specified Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the Role -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->patch_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Role | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Role**](V1beta1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_namespaced_role_binding** -> V1beta1RoleBinding patch_namespaced_role_binding(name, namespace, body, pretty=pretty) - - - -partially update the specified RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the RoleBinding -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->patch_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the RoleBinding | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1RoleBinding**](V1beta1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_cluster_role** -> V1beta1ClusterRole read_cluster_role(name, pretty=pretty) - - - -read the specified ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the ClusterRole -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.read_cluster_role(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->read_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRole | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRole**](V1beta1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_cluster_role_binding** -> V1beta1ClusterRoleBinding read_cluster_role_binding(name, pretty=pretty) - - - -read the specified ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the ClusterRoleBinding -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.read_cluster_role_binding(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->read_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRoleBinding | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_namespaced_role** -> V1beta1Role read_namespaced_role(name, namespace, pretty=pretty) - - - -read the specified Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the Role -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.read_namespaced_role(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->read_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Role | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Role**](V1beta1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_namespaced_role_binding** -> V1beta1RoleBinding read_namespaced_role_binding(name, namespace, pretty=pretty) - - - -read the specified RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the RoleBinding -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.read_namespaced_role_binding(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->read_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the RoleBinding | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1RoleBinding**](V1beta1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_cluster_role** -> V1beta1ClusterRole replace_cluster_role(name, body, pretty=pretty) - - - -replace the specified ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the ClusterRole -body = kubernetes.client.V1beta1ClusterRole() # V1beta1ClusterRole | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_cluster_role(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->replace_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRole | - **body** | [**V1beta1ClusterRole**](V1beta1ClusterRole.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRole**](V1beta1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_cluster_role_binding** -> V1beta1ClusterRoleBinding replace_cluster_role_binding(name, body, pretty=pretty) - - - -replace the specified ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the ClusterRoleBinding -body = kubernetes.client.V1beta1ClusterRoleBinding() # V1beta1ClusterRoleBinding | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->replace_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRoleBinding | - **body** | [**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_namespaced_role** -> V1beta1Role replace_namespaced_role(name, namespace, body, pretty=pretty) - - - -replace the specified Role - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the Role -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1Role() # V1beta1Role | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->replace_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Role | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Role**](V1beta1Role.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Role**](V1beta1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_namespaced_role_binding** -> V1beta1RoleBinding replace_namespaced_role_binding(name, namespace, body, pretty=pretty) - - - -replace the specified RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() -name = 'name_example' # str | name of the RoleBinding -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1RoleBinding() # V1beta1RoleBinding | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->replace_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the RoleBinding | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1RoleBinding**](V1beta1RoleBinding.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1RoleBinding**](V1beta1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/SettingsApi.md b/kubernetes/docs/SettingsApi.md deleted file mode 100644 index 1f0768819c..0000000000 --- a/kubernetes/docs/SettingsApi.md +++ /dev/null @@ -1,57 +0,0 @@ -# kubernetes.client.SettingsApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_api_group**](SettingsApi.md#get_api_group) | **GET** /apis/settings.k8s.io/ | - - -# **get_api_group** -> V1APIGroup get_api_group() - - - -get information of a group - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.SettingsApi() - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsApi->get_api_group: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/SettingsV1alpha1Api.md b/kubernetes/docs/SettingsV1alpha1Api.md deleted file mode 100644 index 585c41e38c..0000000000 --- a/kubernetes/docs/SettingsV1alpha1Api.md +++ /dev/null @@ -1,551 +0,0 @@ -# kubernetes.client.SettingsV1alpha1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_namespaced_pod_preset**](SettingsV1alpha1Api.md#create_namespaced_pod_preset) | **POST** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | -[**delete_collection_namespaced_pod_preset**](SettingsV1alpha1Api.md#delete_collection_namespaced_pod_preset) | **DELETE** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | -[**delete_namespaced_pod_preset**](SettingsV1alpha1Api.md#delete_namespaced_pod_preset) | **DELETE** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -[**get_api_resources**](SettingsV1alpha1Api.md#get_api_resources) | **GET** /apis/settings.k8s.io/v1alpha1/ | -[**list_namespaced_pod_preset**](SettingsV1alpha1Api.md#list_namespaced_pod_preset) | **GET** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | -[**list_pod_preset_for_all_namespaces**](SettingsV1alpha1Api.md#list_pod_preset_for_all_namespaces) | **GET** /apis/settings.k8s.io/v1alpha1/podpresets | -[**patch_namespaced_pod_preset**](SettingsV1alpha1Api.md#patch_namespaced_pod_preset) | **PATCH** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -[**read_namespaced_pod_preset**](SettingsV1alpha1Api.md#read_namespaced_pod_preset) | **GET** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -[**replace_namespaced_pod_preset**](SettingsV1alpha1Api.md#replace_namespaced_pod_preset) | **PUT** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | - - -# **create_namespaced_pod_preset** -> V1alpha1PodPreset create_namespaced_pod_preset(namespace, body, pretty=pretty) - - - -create a PodPreset - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1alpha1PodPreset() # V1alpha1PodPreset | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_pod_preset(namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->create_namespaced_pod_preset: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1PodPreset**](V1alpha1PodPreset.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1PodPreset**](V1alpha1PodPreset.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_namespaced_pod_preset** -> V1Status delete_collection_namespaced_pod_preset(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -delete collection of PodPreset - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.delete_collection_namespaced_pod_preset(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->delete_collection_namespaced_pod_preset: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_namespaced_pod_preset** -> V1Status delete_namespaced_pod_preset(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a PodPreset - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api() -name = 'name_example' # str | name of the PodPreset -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_namespaced_pod_preset(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->delete_namespaced_pod_preset: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PodPreset | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_api_resources** -> V1APIResourceList get_api_resources() - - - -get available resources - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api() - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->get_api_resources: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_namespaced_pod_preset** -> V1alpha1PodPresetList list_namespaced_pod_preset(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind PodPreset - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_namespaced_pod_preset(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->list_namespaced_pod_preset: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1PodPresetList**](V1alpha1PodPresetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_pod_preset_for_all_namespaces** -> V1alpha1PodPresetList list_pod_preset_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind PodPreset - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_pod_preset_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->list_pod_preset_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1PodPresetList**](V1alpha1PodPresetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_namespaced_pod_preset** -> V1alpha1PodPreset patch_namespaced_pod_preset(name, namespace, body, pretty=pretty) - - - -partially update the specified PodPreset - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api() -name = 'name_example' # str | name of the PodPreset -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_pod_preset(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->patch_namespaced_pod_preset: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PodPreset | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1PodPreset**](V1alpha1PodPreset.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_namespaced_pod_preset** -> V1alpha1PodPreset read_namespaced_pod_preset(name, namespace, pretty=pretty, exact=exact, export=export) - - - -read the specified PodPreset - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api() -name = 'name_example' # str | name of the PodPreset -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) - -try: - api_response = api_instance.read_namespaced_pod_preset(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->read_namespaced_pod_preset: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PodPreset | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1alpha1PodPreset**](V1alpha1PodPreset.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_namespaced_pod_preset** -> V1alpha1PodPreset replace_namespaced_pod_preset(name, namespace, body, pretty=pretty) - - - -replace the specified PodPreset - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api() -name = 'name_example' # str | name of the PodPreset -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1alpha1PodPreset() # V1alpha1PodPreset | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_namespaced_pod_preset(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->replace_namespaced_pod_preset: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PodPreset | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1PodPreset**](V1alpha1PodPreset.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1PodPreset**](V1alpha1PodPreset.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/StorageApi.md b/kubernetes/docs/StorageApi.md index ac4a2b8d9c..6694d121f1 100644 --- a/kubernetes/docs/StorageApi.md +++ b/kubernetes/docs/StorageApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> V1APIGroup get_api_group() +> UnversionedAPIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**UnversionedAPIGroup**](UnversionedAPIGroup.md) ### Authorization diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md deleted file mode 100644 index c77bd840ea..0000000000 --- a/kubernetes/docs/StorageV1Api.md +++ /dev/null @@ -1,474 +0,0 @@ -# kubernetes.client.StorageV1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_storage_class**](StorageV1Api.md#create_storage_class) | **POST** /apis/storage.k8s.io/v1/storageclasses | -[**delete_collection_storage_class**](StorageV1Api.md#delete_collection_storage_class) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | -[**delete_storage_class**](StorageV1Api.md#delete_storage_class) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | -[**get_api_resources**](StorageV1Api.md#get_api_resources) | **GET** /apis/storage.k8s.io/v1/ | -[**list_storage_class**](StorageV1Api.md#list_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses | -[**patch_storage_class**](StorageV1Api.md#patch_storage_class) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | -[**read_storage_class**](StorageV1Api.md#read_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | -[**replace_storage_class**](StorageV1Api.md#replace_storage_class) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | - - -# **create_storage_class** -> V1StorageClass create_storage_class(body, pretty=pretty) - - - -create a StorageClass - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api() -body = kubernetes.client.V1StorageClass() # V1StorageClass | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_storage_class(body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->create_storage_class: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1StorageClass**](V1StorageClass.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1StorageClass**](V1StorageClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_storage_class** -> V1Status delete_collection_storage_class(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -delete collection of StorageClass - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api() -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.delete_collection_storage_class(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->delete_collection_storage_class: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_storage_class** -> V1Status delete_storage_class(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - - - -delete a StorageClass - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api() -name = 'name_example' # str | name of the StorageClass -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - -try: - api_response = api_instance.delete_storage_class(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->delete_storage_class: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the StorageClass | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_api_resources** -> V1APIResourceList get_api_resources() - - - -get available resources - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api() - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->get_api_resources: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_storage_class** -> V1StorageClassList list_storage_class(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -list or watch objects of kind StorageClass - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api() -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.list_storage_class(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->list_storage_class: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1StorageClassList**](V1StorageClassList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_storage_class** -> V1StorageClass patch_storage_class(name, body, pretty=pretty) - - - -partially update the specified StorageClass - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api() -name = 'name_example' # str | name of the StorageClass -body = NULL # object | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_storage_class(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->patch_storage_class: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the StorageClass | - **body** | **object**| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1StorageClass**](V1StorageClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_storage_class** -> V1StorageClass read_storage_class(name, pretty=pretty, exact=exact, export=export) - - - -read the specified StorageClass - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api() -name = 'name_example' # str | name of the StorageClass -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) - -try: - api_response = api_instance.read_storage_class(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->read_storage_class: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the StorageClass | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1StorageClass**](V1StorageClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_storage_class** -> V1StorageClass replace_storage_class(name, body, pretty=pretty) - - - -replace the specified StorageClass - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api() -name = 'name_example' # str | name of the StorageClass -body = kubernetes.client.V1StorageClass() # V1StorageClass | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_storage_class(name, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->replace_storage_class: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the StorageClass | - **body** | [**V1StorageClass**](V1StorageClass.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1StorageClass**](V1StorageClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/kubernetes/docs/StorageV1beta1Api.md b/kubernetes/docs/StorageV1beta1Api.md index 59faa948fe..6b9416011e 100644 --- a/kubernetes/docs/StorageV1beta1Api.md +++ b/kubernetes/docs/StorageV1beta1Api.md @@ -69,7 +69,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_storage_class** -> V1Status delete_collection_storage_class(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> UnversionedStatus delete_collection_storage_class(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -93,7 +93,7 @@ api_instance = kubernetes.client.StorageV1beta1Api() pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -111,13 +111,13 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -131,7 +131,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_storage_class** -> V1Status delete_storage_class(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> UnversionedStatus delete_storage_class(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) @@ -156,11 +156,10 @@ name = 'name_example' # str | name of the StorageClass body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) -propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) +orphan_dependents = true # bool | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. (optional) try: - api_response = api_instance.delete_storage_class(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_storage_class(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->delete_storage_class: %s\n" % e) @@ -174,12 +173,11 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + **orphan_dependents** | **bool**| Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**UnversionedStatus**](UnversionedStatus.md) ### Authorization @@ -193,7 +191,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** -> V1APIResourceList get_api_resources() +> UnversionedAPIResourceList get_api_resources() @@ -227,7 +225,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) ### Authorization @@ -265,7 +263,7 @@ api_instance = kubernetes.client.StorageV1beta1Api() pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) @@ -283,7 +281,7 @@ Name | Type | Description | Notes **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] @@ -382,7 +380,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1beta1Api() name = 'name_example' # str | name of the StorageClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' (optional) export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: @@ -398,7 +396,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StorageClass | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' | [optional] **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] ### Return type diff --git a/kubernetes/docs/UnversionedAPIGroup.md b/kubernetes/docs/UnversionedAPIGroup.md new file mode 100644 index 0000000000..b62de6d344 --- /dev/null +++ b/kubernetes/docs/UnversionedAPIGroup.md @@ -0,0 +1,15 @@ +# UnversionedAPIGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**name** | **str** | name is the name of the group. | +**preferred_version** | [**UnversionedGroupVersionForDiscovery**](UnversionedGroupVersionForDiscovery.md) | preferredVersion is the version preferred by the API server, which probably is the storage version. | [optional] +**server_address_by_client_cid_rs** | [**list[UnversionedServerAddressByClientCIDR]**](UnversionedServerAddressByClientCIDR.md) | a map of kubernetes.client CIDR to server address that is serving this group. This is to help kubernetes.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, kubernetes.clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the kubernetes.client can match. For example: the master will return an internal IP CIDR only, if the kubernetes.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 kubernetes.client IP. | +**versions** | [**list[UnversionedGroupVersionForDiscovery]**](UnversionedGroupVersionForDiscovery.md) | versions are the versions supported in this group. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/UnversionedAPIGroupList.md b/kubernetes/docs/UnversionedAPIGroupList.md new file mode 100644 index 0000000000..d854a146f2 --- /dev/null +++ b/kubernetes/docs/UnversionedAPIGroupList.md @@ -0,0 +1,12 @@ +# UnversionedAPIGroupList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**groups** | [**list[UnversionedAPIGroup]**](UnversionedAPIGroup.md) | groups is a list of APIGroup. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/UnversionedAPIResource.md b/kubernetes/docs/UnversionedAPIResource.md new file mode 100644 index 0000000000..b1774241a6 --- /dev/null +++ b/kubernetes/docs/UnversionedAPIResource.md @@ -0,0 +1,12 @@ +# UnversionedAPIResource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') | +**name** | **str** | name is the name of the resource. | +**namespaced** | **bool** | namespaced indicates if a resource is namespaced or not. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/UnversionedAPIResourceList.md b/kubernetes/docs/UnversionedAPIResourceList.md new file mode 100644 index 0000000000..1ce2b12848 --- /dev/null +++ b/kubernetes/docs/UnversionedAPIResourceList.md @@ -0,0 +1,13 @@ +# UnversionedAPIResourceList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**group_version** | **str** | groupVersion is the group and version this APIResourceList is for. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**resources** | [**list[UnversionedAPIResource]**](UnversionedAPIResource.md) | resources contains the name of the resources and if they are namespaced. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/UnversionedAPIVersions.md b/kubernetes/docs/UnversionedAPIVersions.md new file mode 100644 index 0000000000..2db4eff049 --- /dev/null +++ b/kubernetes/docs/UnversionedAPIVersions.md @@ -0,0 +1,13 @@ +# UnversionedAPIVersions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**server_address_by_client_cid_rs** | [**list[UnversionedServerAddressByClientCIDR]**](UnversionedServerAddressByClientCIDR.md) | a map of kubernetes.client CIDR to server address that is serving this group. This is to help kubernetes.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, kubernetes.clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the kubernetes.client can match. For example: the master will return an internal IP CIDR only, if the kubernetes.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 kubernetes.client IP. | +**versions** | **list[str]** | versions are the api versions that are available. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/UnversionedGroupVersionForDiscovery.md b/kubernetes/docs/UnversionedGroupVersionForDiscovery.md new file mode 100644 index 0000000000..6c2902edf5 --- /dev/null +++ b/kubernetes/docs/UnversionedGroupVersionForDiscovery.md @@ -0,0 +1,11 @@ +# UnversionedGroupVersionForDiscovery + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group_version** | **str** | groupVersion specifies the API group and version in the form \"group/version\" | +**version** | **str** | version specifies the version in the form of \"version\". This is to save the kubernetes.clients the trouble of splitting the GroupVersion. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/UnversionedLabelSelector.md b/kubernetes/docs/UnversionedLabelSelector.md new file mode 100644 index 0000000000..3d6ec56bac --- /dev/null +++ b/kubernetes/docs/UnversionedLabelSelector.md @@ -0,0 +1,11 @@ +# UnversionedLabelSelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**match_expressions** | [**list[UnversionedLabelSelectorRequirement]**](UnversionedLabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] +**match_labels** | **dict(str, str)** | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/UnversionedLabelSelectorRequirement.md b/kubernetes/docs/UnversionedLabelSelectorRequirement.md new file mode 100644 index 0000000000..6251f8c96e --- /dev/null +++ b/kubernetes/docs/UnversionedLabelSelectorRequirement.md @@ -0,0 +1,12 @@ +# UnversionedLabelSelectorRequirement + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | key is the label key that the selector applies to. | +**operator** | **str** | operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. | +**values** | **list[str]** | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/UnversionedListMeta.md b/kubernetes/docs/UnversionedListMeta.md new file mode 100644 index 0000000000..cd4419b107 --- /dev/null +++ b/kubernetes/docs/UnversionedListMeta.md @@ -0,0 +1,11 @@ +# UnversionedListMeta + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_version** | **str** | String that identifies the server's internal version of this object that can be used by kubernetes.clients to determine when objects have changed. Value must be treated as opaque by kubernetes.clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency | [optional] +**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/UnversionedServerAddressByClientCIDR.md b/kubernetes/docs/UnversionedServerAddressByClientCIDR.md new file mode 100644 index 0000000000..42a2ad23fb --- /dev/null +++ b/kubernetes/docs/UnversionedServerAddressByClientCIDR.md @@ -0,0 +1,11 @@ +# UnversionedServerAddressByClientCIDR + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kubernetes.client_cidr** | **str** | The CIDR with which kubernetes.clients can match their IP to figure out the server address that they should use. | +**server_address** | **str** | Address of this server, suitable for a kubernetes.client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/UnversionedStatus.md b/kubernetes/docs/UnversionedStatus.md new file mode 100644 index 0000000000..695436c9c8 --- /dev/null +++ b/kubernetes/docs/UnversionedStatus.md @@ -0,0 +1,17 @@ +# UnversionedStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**code** | **int** | Suggested HTTP return code for this status, 0 if not set. | [optional] +**details** | [**UnversionedStatusDetails**](UnversionedStatusDetails.md) | Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**message** | **str** | A human-readable description of the status of this operation. | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**reason** | **str** | A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. | [optional] +**status** | **str** | Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/UnversionedStatusCause.md b/kubernetes/docs/UnversionedStatusCause.md new file mode 100644 index 0000000000..a614c121ca --- /dev/null +++ b/kubernetes/docs/UnversionedStatusCause.md @@ -0,0 +1,12 @@ +# UnversionedStatusCause + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field** | **str** | The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" | [optional] +**message** | **str** | A human-readable description of the cause of the error. This field may be presented as-is to a reader. | [optional] +**reason** | **str** | A machine-readable description of the cause of the error. If this value is empty there is no information available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/UnversionedStatusDetails.md b/kubernetes/docs/UnversionedStatusDetails.md new file mode 100644 index 0000000000..c497dace63 --- /dev/null +++ b/kubernetes/docs/UnversionedStatusDetails.md @@ -0,0 +1,14 @@ +# UnversionedStatusDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**causes** | [**list[UnversionedStatusCause]**](UnversionedStatusCause.md) | The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. | [optional] +**group** | **str** | The group attribute of the resource associated with the status StatusReason. | [optional] +**kind** | **str** | The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**name** | **str** | The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). | [optional] +**retry_after_seconds** | **int** | If specified, the time in seconds before the operation should be retried. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1APIGroup.md b/kubernetes/docs/V1APIGroup.md deleted file mode 100644 index 3157f06550..0000000000 --- a/kubernetes/docs/V1APIGroup.md +++ /dev/null @@ -1,15 +0,0 @@ -# V1APIGroup - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**name** | **str** | name is the name of the group. | -**preferred_version** | [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | preferredVersion is the version preferred by the API server, which probably is the storage version. | [optional] -**server_address_by_client_cid_rs** | [**list[V1ServerAddressByClientCIDR]**](V1ServerAddressByClientCIDR.md) | a map of kubernetes.client CIDR to server address that is serving this group. This is to help kubernetes.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, kubernetes.clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the kubernetes.client can match. For example: the master will return an internal IP CIDR only, if the kubernetes.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 kubernetes.client IP. | -**versions** | [**list[V1GroupVersionForDiscovery]**](V1GroupVersionForDiscovery.md) | versions are the versions supported in this group. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1APIGroupList.md b/kubernetes/docs/V1APIGroupList.md deleted file mode 100644 index 19094584ff..0000000000 --- a/kubernetes/docs/V1APIGroupList.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1APIGroupList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**groups** | [**list[V1APIGroup]**](V1APIGroup.md) | groups is a list of APIGroup. | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1APIResource.md b/kubernetes/docs/V1APIResource.md deleted file mode 100644 index ef648d9ffd..0000000000 --- a/kubernetes/docs/V1APIResource.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1APIResource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kind** | **str** | kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') | -**name** | **str** | name is the name of the resource. | -**namespaced** | **bool** | namespaced indicates if a resource is namespaced or not. | -**short_names** | **list[str]** | shortNames is a list of suggested short names of the resource. | [optional] -**verbs** | **list[str]** | verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1APIResourceList.md b/kubernetes/docs/V1APIResourceList.md deleted file mode 100644 index d07fc617c5..0000000000 --- a/kubernetes/docs/V1APIResourceList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1APIResourceList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**group_version** | **str** | groupVersion is the group and version this APIResourceList is for. | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**resources** | [**list[V1APIResource]**](V1APIResource.md) | resources contains the name of the resources and if they are namespaced. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1APIVersions.md b/kubernetes/docs/V1APIVersions.md deleted file mode 100644 index 1e596820f3..0000000000 --- a/kubernetes/docs/V1APIVersions.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1APIVersions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**server_address_by_client_cid_rs** | [**list[V1ServerAddressByClientCIDR]**](V1ServerAddressByClientCIDR.md) | a map of kubernetes.client CIDR to server address that is serving this group. This is to help kubernetes.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, kubernetes.clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the kubernetes.client can match. For example: the master will return an internal IP CIDR only, if the kubernetes.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 kubernetes.client IP. | -**versions** | **list[str]** | versions are the api versions that are available. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1Affinity.md b/kubernetes/docs/V1Affinity.md deleted file mode 100644 index 14dfb61142..0000000000 --- a/kubernetes/docs/V1Affinity.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1Affinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**node_affinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | Describes node affinity scheduling rules for the pod. | [optional] -**pod_affinity** | [**V1PodAffinity**](V1PodAffinity.md) | Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). | [optional] -**pod_anti_affinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1AppliedClusterResourceQuota.md b/kubernetes/docs/V1AppliedClusterResourceQuota.md new file mode 100644 index 0000000000..fe8916f59a --- /dev/null +++ b/kubernetes/docs/V1AppliedClusterResourceQuota.md @@ -0,0 +1,14 @@ +# V1AppliedClusterResourceQuota + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | +**spec** | [**V1ClusterResourceQuotaSpec**](V1ClusterResourceQuotaSpec.md) | Spec defines the desired quota | +**status** | [**V1ClusterResourceQuotaStatus**](V1ClusterResourceQuotaStatus.md) | Status defines the actual enforced quota and its current usage | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1AppliedClusterResourceQuotaList.md b/kubernetes/docs/V1AppliedClusterResourceQuotaList.md new file mode 100644 index 0000000000..ddae5da408 --- /dev/null +++ b/kubernetes/docs/V1AppliedClusterResourceQuotaList.md @@ -0,0 +1,13 @@ +# V1AppliedClusterResourceQuotaList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1AppliedClusterResourceQuota]**](V1AppliedClusterResourceQuota.md) | Items is a list of AppliedClusterResourceQuota | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BinaryBuildSource.md b/kubernetes/docs/V1BinaryBuildSource.md new file mode 100644 index 0000000000..ddfa52184d --- /dev/null +++ b/kubernetes/docs/V1BinaryBuildSource.md @@ -0,0 +1,10 @@ +# V1BinaryBuildSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**as_file** | **str** | asFile indicates that the provided binary input should be considered a single file within the build input. For example, specifying \"webapp.war\" would place the provided binary as `/webapp.war` for the builder. If left empty, the Docker and Source build strategies assume this file is a zip, tar, or tar.gz file and extract it as the source. The custom strategy receives this binary as standard input. This filename may not contain slashes or be '..' or '.'. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1Build.md b/kubernetes/docs/V1Build.md new file mode 100644 index 0000000000..dea483a644 --- /dev/null +++ b/kubernetes/docs/V1Build.md @@ -0,0 +1,14 @@ +# V1Build + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**spec** | [**V1BuildSpec**](V1BuildSpec.md) | spec is all the inputs used to execute the build. | [optional] +**status** | [**V1BuildStatus**](V1BuildStatus.md) | status is the current status of the build. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildConfig.md b/kubernetes/docs/V1BuildConfig.md new file mode 100644 index 0000000000..1e07000db1 --- /dev/null +++ b/kubernetes/docs/V1BuildConfig.md @@ -0,0 +1,14 @@ +# V1BuildConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | metadata for BuildConfig. | [optional] +**spec** | [**V1BuildConfigSpec**](V1BuildConfigSpec.md) | spec holds all the input necessary to produce a new build, and the conditions when to trigger them. | +**status** | [**V1BuildConfigStatus**](V1BuildConfigStatus.md) | status holds any relevant information about a build config | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildConfigList.md b/kubernetes/docs/V1BuildConfigList.md new file mode 100644 index 0000000000..10f87bd2ab --- /dev/null +++ b/kubernetes/docs/V1BuildConfigList.md @@ -0,0 +1,13 @@ +# V1BuildConfigList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1BuildConfig]**](V1BuildConfig.md) | items is a list of build configs | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | metadata for BuildConfigList. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildConfigSpec.md b/kubernetes/docs/V1BuildConfigSpec.md new file mode 100644 index 0000000000..3ec8a768ca --- /dev/null +++ b/kubernetes/docs/V1BuildConfigSpec.md @@ -0,0 +1,20 @@ +# V1BuildConfigSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**completion_deadline_seconds** | **int** | completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets scheduled in the system, that the build may be active on a node before the system actively tries to terminate the build; value must be positive integer | [optional] +**node_selector** | **dict(str, str)** | nodeSelector is a selector which must be true for the build pod to fit on a node If nil, it can be overridden by default build nodeselector values for the cluster. If set to an empty map or a map with any values, default build nodeselector values are ignored. | +**output** | [**V1BuildOutput**](V1BuildOutput.md) | output describes the Docker image the Strategy should produce. | [optional] +**post_commit** | [**V1BuildPostCommitSpec**](V1BuildPostCommitSpec.md) | postCommit is a build hook executed after the build output image is committed, before it is pushed to a registry. | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | resources computes resource requirements to execute the build. | [optional] +**revision** | [**V1SourceRevision**](V1SourceRevision.md) | revision is the information from the source for a specific repo snapshot. This is optional. | [optional] +**run_policy** | **str** | RunPolicy describes how the new build created from this build configuration will be scheduled for execution. This is optional, if not specified we default to \"Serial\". | [optional] +**service_account** | **str** | serviceAccount is the name of the ServiceAccount to use to run the pod created by this build. The pod will be allowed to use secrets referenced by the ServiceAccount | [optional] +**source** | [**V1BuildSource**](V1BuildSource.md) | source describes the SCM in use. | [optional] +**strategy** | [**V1BuildStrategy**](V1BuildStrategy.md) | strategy defines how to perform a build. | +**triggers** | [**list[V1BuildTriggerPolicy]**](V1BuildTriggerPolicy.md) | triggers determine how new Builds can be launched from a BuildConfig. If no triggers are defined, a new build can only occur as a result of an explicit kubernetes.client build creation. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildConfigStatus.md b/kubernetes/docs/V1BuildConfigStatus.md new file mode 100644 index 0000000000..3b6e6a7c53 --- /dev/null +++ b/kubernetes/docs/V1BuildConfigStatus.md @@ -0,0 +1,10 @@ +# V1BuildConfigStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_version** | **int** | lastVersion is used to inform about number of last triggered build. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildList.md b/kubernetes/docs/V1BuildList.md new file mode 100644 index 0000000000..ed9da3af9c --- /dev/null +++ b/kubernetes/docs/V1BuildList.md @@ -0,0 +1,13 @@ +# V1BuildList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1Build]**](V1Build.md) | items is a list of builds | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | metadata for BuildList. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildLog.md b/kubernetes/docs/V1BuildLog.md new file mode 100644 index 0000000000..4177ba912a --- /dev/null +++ b/kubernetes/docs/V1BuildLog.md @@ -0,0 +1,11 @@ +# V1BuildLog + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildOutput.md b/kubernetes/docs/V1BuildOutput.md new file mode 100644 index 0000000000..c46d683c71 --- /dev/null +++ b/kubernetes/docs/V1BuildOutput.md @@ -0,0 +1,12 @@ +# V1BuildOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**image_labels** | [**list[V1ImageLabel]**](V1ImageLabel.md) | imageLabels define a list of labels that are applied to the resulting image. If there are multiple labels with the same name then the last one in the list is used. | [optional] +**push_secret** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | PushSecret is the name of a Secret that would be used for setting up the authentication for executing the Docker push to authentication enabled Docker Registry (or Docker Hub). | [optional] +**to** | [**V1ObjectReference**](V1ObjectReference.md) | to defines an optional location to push the output of this build to. Kind must be one of 'ImageStreamTag' or 'DockerImage'. This value will be used to look up a Docker image repository to push to. In the case of an ImageStreamTag, the ImageStreamTag will be looked for in the namespace of the build unless Namespace is specified. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildPostCommitSpec.md b/kubernetes/docs/V1BuildPostCommitSpec.md new file mode 100644 index 0000000000..f22cfadb1f --- /dev/null +++ b/kubernetes/docs/V1BuildPostCommitSpec.md @@ -0,0 +1,12 @@ +# V1BuildPostCommitSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**args** | **list[str]** | args is a list of arguments that are provided to either Command, Script or the Docker image's default entrypoint. The arguments are placed immediately after the command to be run. | [optional] +**command** | **list[str]** | command is the command to run. It may not be specified with Script. This might be needed if the image doesn't have `/bin/sh`, or if you do not want to use a shell. In all other cases, using Script might be more convenient. | [optional] +**script** | **str** | script is a shell script to be run with `/bin/sh -ic`. It may not be specified with Command. Use Script when a shell script is appropriate to execute the post build hook, for example for running unit tests with `rake test`. If you need control over the image entrypoint, or if the image does not have `/bin/sh`, use Command and/or Args. The `-i` flag is needed to support CentOS and RHEL images that use Software Collections (SCL), in order to have the appropriate collections enabled in the shell. E.g., in the Ruby image, this is necessary to make `ruby`, `bundle` and other binaries available in the PATH. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildRequest.md b/kubernetes/docs/V1BuildRequest.md new file mode 100644 index 0000000000..cdd94eb2e3 --- /dev/null +++ b/kubernetes/docs/V1BuildRequest.md @@ -0,0 +1,19 @@ +# V1BuildRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**binary** | [**V1BinaryBuildSource**](V1BinaryBuildSource.md) | binary indicates a request to build from a binary provided to the builder | [optional] +**env** | [**list[V1EnvVar]**](V1EnvVar.md) | env contains additional environment variables you want to pass into a builder container | [optional] +**_from** | [**V1ObjectReference**](V1ObjectReference.md) | from is the reference to the ImageStreamTag that triggered the build. | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**last_version** | **int** | lastVersion (optional) is the LastVersion of the BuildConfig that was used to generate the build. If the BuildConfig in the generator doesn't match, a build will not be generated. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | metadata for BuildRequest. | [optional] +**revision** | [**V1SourceRevision**](V1SourceRevision.md) | revision is the information from the source for a specific repo snapshot. | [optional] +**triggered_by** | [**list[V1BuildTriggerCause]**](V1BuildTriggerCause.md) | triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers. | +**triggered_by_image** | [**V1ObjectReference**](V1ObjectReference.md) | triggeredByImage is the Image that triggered this build. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildSource.md b/kubernetes/docs/V1BuildSource.md new file mode 100644 index 0000000000..cbb030663e --- /dev/null +++ b/kubernetes/docs/V1BuildSource.md @@ -0,0 +1,17 @@ +# V1BuildSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**binary** | [**V1BinaryBuildSource**](V1BinaryBuildSource.md) | binary builds accept a binary as their input. The binary is generally assumed to be a tar, gzipped tar, or zip file depending on the strategy. For Docker builds, this is the build context and an optional Dockerfile may be specified to override any Dockerfile in the build context. For Source builds, this is assumed to be an archive as described above. For Source and Docker builds, if binary.asFile is set the build will receive a directory with a single file. contextDir may be used when an archive is provided. Custom builds will receive this binary as input on STDIN. | [optional] +**context_dir** | **str** | contextDir specifies the sub-directory where the source code for the application exists. This allows to have buildable sources in directory other than root of repository. | [optional] +**dockerfile** | **str** | dockerfile is the raw contents of a Dockerfile which should be built. When this option is specified, the FROM may be modified based on your strategy base image and additional ENV stanzas from your strategy environment will be added after the FROM, but before the rest of your Dockerfile stanzas. The Dockerfile source type may be used with other options like git - in those cases the Git repo will have any innate Dockerfile replaced in the context dir. | [optional] +**git** | [**V1GitBuildSource**](V1GitBuildSource.md) | git contains optional information about git build source | [optional] +**images** | [**list[V1ImageSource]**](V1ImageSource.md) | images describes a set of images to be used to provide source for the build | [optional] +**secrets** | [**list[V1SecretBuildSource]**](V1SecretBuildSource.md) | secrets represents a list of secrets and their destinations that will be used only for the build. | [optional] +**source_secret** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | sourceSecret is the name of a Secret that would be used for setting up the authentication for cloning private repository. The secret contains valid credentials for remote repository, where the data's key represent the authentication method to be used and value is the base64 encoded credentials. Supported auth methods are: ssh-privatekey. | [optional] +**type** | **str** | type of build input to accept | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildSpec.md b/kubernetes/docs/V1BuildSpec.md new file mode 100644 index 0000000000..842c159b77 --- /dev/null +++ b/kubernetes/docs/V1BuildSpec.md @@ -0,0 +1,19 @@ +# V1BuildSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**completion_deadline_seconds** | **int** | completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets scheduled in the system, that the build may be active on a node before the system actively tries to terminate the build; value must be positive integer | [optional] +**node_selector** | **dict(str, str)** | nodeSelector is a selector which must be true for the build pod to fit on a node If nil, it can be overridden by default build nodeselector values for the cluster. If set to an empty map or a map with any values, default build nodeselector values are ignored. | +**output** | [**V1BuildOutput**](V1BuildOutput.md) | output describes the Docker image the Strategy should produce. | [optional] +**post_commit** | [**V1BuildPostCommitSpec**](V1BuildPostCommitSpec.md) | postCommit is a build hook executed after the build output image is committed, before it is pushed to a registry. | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | resources computes resource requirements to execute the build. | [optional] +**revision** | [**V1SourceRevision**](V1SourceRevision.md) | revision is the information from the source for a specific repo snapshot. This is optional. | [optional] +**service_account** | **str** | serviceAccount is the name of the ServiceAccount to use to run the pod created by this build. The pod will be allowed to use secrets referenced by the ServiceAccount | [optional] +**source** | [**V1BuildSource**](V1BuildSource.md) | source describes the SCM in use. | [optional] +**strategy** | [**V1BuildStrategy**](V1BuildStrategy.md) | strategy defines how to perform a build. | +**triggered_by** | [**list[V1BuildTriggerCause]**](V1BuildTriggerCause.md) | triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildStatus.md b/kubernetes/docs/V1BuildStatus.md new file mode 100644 index 0000000000..305af12fad --- /dev/null +++ b/kubernetes/docs/V1BuildStatus.md @@ -0,0 +1,19 @@ +# V1BuildStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cancelled** | **bool** | cancelled describes if a cancel event was triggered for the build. | [optional] +**completion_timestamp** | **datetime** | completionTimestamp is a timestamp representing the server time when this Build was finished, whether that build failed or succeeded. It reflects the time at which the Pod running the Build terminated. It is represented in RFC3339 form and is in UTC. | [optional] +**config** | [**V1ObjectReference**](V1ObjectReference.md) | config is an ObjectReference to the BuildConfig this Build is based on. | [optional] +**duration** | **int** | duration contains time.Duration object describing build time. | [optional] +**message** | **str** | message is a human-readable message indicating details about why the build has this status. | [optional] +**output** | [**V1BuildStatusOutput**](V1BuildStatusOutput.md) | output describes the Docker image the build has produced. | [optional] +**output_docker_image_reference** | **str** | outputDockerImageReference contains a reference to the Docker image that will be built by this build. Its value is computed from Build.Spec.Output.To, and should include the registry address, so that it can be used to push and pull the image. | [optional] +**phase** | **str** | phase is the point in the build lifecycle. | +**reason** | **str** | reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. | [optional] +**start_timestamp** | **datetime** | startTimestamp is a timestamp representing the server time when this Build started running in a Pod. It is represented in RFC3339 form and is in UTC. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildStatusOutput.md b/kubernetes/docs/V1BuildStatusOutput.md new file mode 100644 index 0000000000..60fde15d6e --- /dev/null +++ b/kubernetes/docs/V1BuildStatusOutput.md @@ -0,0 +1,10 @@ +# V1BuildStatusOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**to** | [**V1BuildStatusOutputTo**](V1BuildStatusOutputTo.md) | to describes the status of the built image being pushed to a registry. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildStatusOutputTo.md b/kubernetes/docs/V1BuildStatusOutputTo.md new file mode 100644 index 0000000000..efb08bbbc7 --- /dev/null +++ b/kubernetes/docs/V1BuildStatusOutputTo.md @@ -0,0 +1,10 @@ +# V1BuildStatusOutputTo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**image_digest** | **str** | imageDigest is the digest of the built Docker image. The digest uniquely identifies the image in the registry to which it was pushed. Please note that this field may not always be set even if the push completes successfully - e.g. when the registry returns no digest or returns it in a format that the builder doesn't understand. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildStrategy.md b/kubernetes/docs/V1BuildStrategy.md new file mode 100644 index 0000000000..3b3d4ce498 --- /dev/null +++ b/kubernetes/docs/V1BuildStrategy.md @@ -0,0 +1,14 @@ +# V1BuildStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_strategy** | [**V1CustomBuildStrategy**](V1CustomBuildStrategy.md) | customStrategy holds the parameters to the Custom build strategy | [optional] +**docker_strategy** | [**V1DockerBuildStrategy**](V1DockerBuildStrategy.md) | dockerStrategy holds the parameters to the Docker build strategy. | [optional] +**jenkins_pipeline_strategy** | [**V1JenkinsPipelineBuildStrategy**](V1JenkinsPipelineBuildStrategy.md) | JenkinsPipelineStrategy holds the parameters to the Jenkins Pipeline build strategy. This strategy is in tech preview. | [optional] +**source_strategy** | [**V1SourceBuildStrategy**](V1SourceBuildStrategy.md) | sourceStrategy holds the parameters to the Source build strategy. | [optional] +**type** | **str** | type is the kind of build strategy. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildTriggerCause.md b/kubernetes/docs/V1BuildTriggerCause.md new file mode 100644 index 0000000000..dbbe2c8962 --- /dev/null +++ b/kubernetes/docs/V1BuildTriggerCause.md @@ -0,0 +1,13 @@ +# V1BuildTriggerCause + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**generic_web_hook** | [**V1GenericWebHookCause**](V1GenericWebHookCause.md) | genericWebHook holds data about a builds generic webhook trigger. | [optional] +**github_web_hook** | [**V1GitHubWebHookCause**](V1GitHubWebHookCause.md) | gitHubWebHook represents data for a GitHub webhook that fired a specific build. | [optional] +**image_change_build** | [**V1ImageChangeCause**](V1ImageChangeCause.md) | imageChangeBuild stores information about an imagechange event that triggered a new build. | [optional] +**message** | **str** | message is used to store a human readable message for why the build was triggered. E.g.: \"Manually triggered by user\", \"Configuration change\",etc. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1BuildTriggerPolicy.md b/kubernetes/docs/V1BuildTriggerPolicy.md new file mode 100644 index 0000000000..58c9939f8d --- /dev/null +++ b/kubernetes/docs/V1BuildTriggerPolicy.md @@ -0,0 +1,13 @@ +# V1BuildTriggerPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**generic** | [**V1WebHookTrigger**](V1WebHookTrigger.md) | generic contains the parameters for a Generic webhook type of trigger | [optional] +**github** | [**V1WebHookTrigger**](V1WebHookTrigger.md) | github contains the parameters for a GitHub webhook type of trigger | [optional] +**image_change** | [**V1ImageChangeTrigger**](V1ImageChangeTrigger.md) | imageChange contains parameters for an ImageChange type of trigger | [optional] +**type** | **str** | type is the type of build trigger | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterNetwork.md b/kubernetes/docs/V1ClusterNetwork.md new file mode 100644 index 0000000000..d8b65b4f4d --- /dev/null +++ b/kubernetes/docs/V1ClusterNetwork.md @@ -0,0 +1,16 @@ +# V1ClusterNetwork + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**hostsubnetlength** | **int** | HostSubnetLength is the number of bits of network to allocate to each node. eg, 8 would mean that each node would have a /24 slice of the overlay network for its pods | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**network** | **str** | Network is a CIDR string specifying the global overlay network's L3 space | +**plugin_name** | **str** | PluginName is the name of the network plugin being used | [optional] +**service_network** | **str** | ServiceNetwork is the CIDR range that Service IP addresses are allocated from | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterNetworkList.md b/kubernetes/docs/V1ClusterNetworkList.md new file mode 100644 index 0000000000..00ec78c348 --- /dev/null +++ b/kubernetes/docs/V1ClusterNetworkList.md @@ -0,0 +1,13 @@ +# V1ClusterNetworkList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1ClusterNetwork]**](V1ClusterNetwork.md) | Items is the list of cluster networks | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterPolicy.md b/kubernetes/docs/V1ClusterPolicy.md new file mode 100644 index 0000000000..4c5d0791f3 --- /dev/null +++ b/kubernetes/docs/V1ClusterPolicy.md @@ -0,0 +1,14 @@ +# V1ClusterPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**last_modified** | **datetime** | LastModified is the last time that any part of the ClusterPolicy was created, updated, or deleted | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**roles** | [**list[V1NamedClusterRole]**](V1NamedClusterRole.md) | Roles holds all the ClusterRoles held by this ClusterPolicy, mapped by ClusterRole.Name | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterPolicyBinding.md b/kubernetes/docs/V1ClusterPolicyBinding.md new file mode 100644 index 0000000000..ab5651fc9c --- /dev/null +++ b/kubernetes/docs/V1ClusterPolicyBinding.md @@ -0,0 +1,15 @@ +# V1ClusterPolicyBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**last_modified** | **datetime** | LastModified is the last time that any part of the ClusterPolicyBinding was created, updated, or deleted | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**policy_ref** | [**V1ObjectReference**](V1ObjectReference.md) | PolicyRef is a reference to the ClusterPolicy that contains all the ClusterRoles that this ClusterPolicyBinding's RoleBindings may reference | +**role_bindings** | [**list[V1NamedClusterRoleBinding]**](V1NamedClusterRoleBinding.md) | RoleBindings holds all the ClusterRoleBindings held by this ClusterPolicyBinding, mapped by ClusterRoleBinding.Name | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterPolicyBindingList.md b/kubernetes/docs/V1ClusterPolicyBindingList.md new file mode 100644 index 0000000000..bd36fda882 --- /dev/null +++ b/kubernetes/docs/V1ClusterPolicyBindingList.md @@ -0,0 +1,13 @@ +# V1ClusterPolicyBindingList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1ClusterPolicyBinding]**](V1ClusterPolicyBinding.md) | Items is a list of ClusterPolicyBindings | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterPolicyList.md b/kubernetes/docs/V1ClusterPolicyList.md new file mode 100644 index 0000000000..eee544cbd0 --- /dev/null +++ b/kubernetes/docs/V1ClusterPolicyList.md @@ -0,0 +1,13 @@ +# V1ClusterPolicyList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1ClusterPolicy]**](V1ClusterPolicy.md) | Items is a list of ClusterPolicies | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterResourceQuota.md b/kubernetes/docs/V1ClusterResourceQuota.md new file mode 100644 index 0000000000..4d67c5b54d --- /dev/null +++ b/kubernetes/docs/V1ClusterResourceQuota.md @@ -0,0 +1,14 @@ +# V1ClusterResourceQuota + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | +**spec** | [**V1ClusterResourceQuotaSpec**](V1ClusterResourceQuotaSpec.md) | Spec defines the desired quota | +**status** | [**V1ClusterResourceQuotaStatus**](V1ClusterResourceQuotaStatus.md) | Status defines the actual enforced quota and its current usage | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterResourceQuotaList.md b/kubernetes/docs/V1ClusterResourceQuotaList.md new file mode 100644 index 0000000000..f814216309 --- /dev/null +++ b/kubernetes/docs/V1ClusterResourceQuotaList.md @@ -0,0 +1,13 @@ +# V1ClusterResourceQuotaList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1ClusterResourceQuota]**](V1ClusterResourceQuota.md) | Items is a list of ClusterResourceQuotas | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterResourceQuotaSelector.md b/kubernetes/docs/V1ClusterResourceQuotaSelector.md new file mode 100644 index 0000000000..3cb64d0681 --- /dev/null +++ b/kubernetes/docs/V1ClusterResourceQuotaSelector.md @@ -0,0 +1,11 @@ +# V1ClusterResourceQuotaSelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **dict(str, str)** | AnnotationSelector is used to select projects by annotation. | +**labels** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | LabelSelector is used to select projects by label. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterResourceQuotaSpec.md b/kubernetes/docs/V1ClusterResourceQuotaSpec.md new file mode 100644 index 0000000000..a549f63d2d --- /dev/null +++ b/kubernetes/docs/V1ClusterResourceQuotaSpec.md @@ -0,0 +1,11 @@ +# V1ClusterResourceQuotaSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**quota** | [**V1ResourceQuotaSpec**](V1ResourceQuotaSpec.md) | Quota defines the desired quota | +**selector** | [**V1ClusterResourceQuotaSelector**](V1ClusterResourceQuotaSelector.md) | Selector is the selector used to match projects. It should only select active projects on the scale of dozens (though it can select many more less active projects). These projects will contend on object creation through this resource. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterResourceQuotaStatus.md b/kubernetes/docs/V1ClusterResourceQuotaStatus.md new file mode 100644 index 0000000000..139f67ac2e --- /dev/null +++ b/kubernetes/docs/V1ClusterResourceQuotaStatus.md @@ -0,0 +1,11 @@ +# V1ClusterResourceQuotaStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespaces** | [**list[V1ResourceQuotaStatusByNamespace]**](V1ResourceQuotaStatusByNamespace.md) | Namespaces slices the usage by project. This division allows for quick resolution of deletion reconciliation inside of a single project without requiring a recalculation across all projects. This can be used to pull the deltas for a given project. | +**total** | [**V1ResourceQuotaStatus**](V1ResourceQuotaStatus.md) | Total defines the actual enforced quota and its current usage across all projects | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterRole.md b/kubernetes/docs/V1ClusterRole.md new file mode 100644 index 0000000000..e7cd56d44d --- /dev/null +++ b/kubernetes/docs/V1ClusterRole.md @@ -0,0 +1,13 @@ +# V1ClusterRole + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**rules** | [**list[V1PolicyRule]**](V1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterRoleBinding.md b/kubernetes/docs/V1ClusterRoleBinding.md new file mode 100644 index 0000000000..a57dfda58f --- /dev/null +++ b/kubernetes/docs/V1ClusterRoleBinding.md @@ -0,0 +1,16 @@ +# V1ClusterRoleBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**group_names** | **list[str]** | GroupNames holds all the groups directly bound to the role. This field should only be specified when supporting legacy kubernetes.clients and servers. See Subjects for further details. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**role_ref** | [**V1ObjectReference**](V1ObjectReference.md) | RoleRef can only reference the current namespace and the global namespace. If the ClusterRoleRef cannot be resolved, the Authorizer must return an error. Since Policy is a singleton, this is sufficient knowledge to locate a role. | +**subjects** | [**list[V1ObjectReference]**](V1ObjectReference.md) | Subjects hold object references to authorize with this rule. This field is ignored if UserNames or GroupNames are specified to support legacy kubernetes.clients and servers. Thus newer kubernetes.clients that do not need to support backwards compatibility should send only fully qualified Subjects and should omit the UserNames and GroupNames fields. Clients that need to support backwards compatibility can use this field to build the UserNames and GroupNames. | +**user_names** | **list[str]** | UserNames holds all the usernames directly bound to the role. This field should only be specified when supporting legacy kubernetes.clients and servers. See Subjects for further details. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterRoleBindingList.md b/kubernetes/docs/V1ClusterRoleBindingList.md new file mode 100644 index 0000000000..d96a1a3fe1 --- /dev/null +++ b/kubernetes/docs/V1ClusterRoleBindingList.md @@ -0,0 +1,13 @@ +# V1ClusterRoleBindingList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1ClusterRoleBinding]**](V1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterRoleList.md b/kubernetes/docs/V1ClusterRoleList.md new file mode 100644 index 0000000000..21927d1587 --- /dev/null +++ b/kubernetes/docs/V1ClusterRoleList.md @@ -0,0 +1,13 @@ +# V1ClusterRoleList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1ClusterRole]**](V1ClusterRole.md) | Items is a list of ClusterRoles | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ClusterRoleScopeRestriction.md b/kubernetes/docs/V1ClusterRoleScopeRestriction.md new file mode 100644 index 0000000000..8e086d9227 --- /dev/null +++ b/kubernetes/docs/V1ClusterRoleScopeRestriction.md @@ -0,0 +1,12 @@ +# V1ClusterRoleScopeRestriction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_escalation** | **bool** | AllowEscalation indicates whether you can request roles and their escalating resources | +**namespaces** | **list[str]** | Namespaces is the list of namespaces that can be referenced. * means any of them (including *) | +**role_names** | **list[str]** | RoleNames is the list of cluster roles that can referenced. * means anything | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ComponentStatusList.md b/kubernetes/docs/V1ComponentStatusList.md index 2f2077f96e..9c7102390c 100644 --- a/kubernetes/docs/V1ComponentStatusList.md +++ b/kubernetes/docs/V1ComponentStatusList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ComponentStatus]**](V1ComponentStatus.md) | List of ComponentStatus objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ConfigMapEnvSource.md b/kubernetes/docs/V1ConfigMapEnvSource.md deleted file mode 100644 index 37fe9b964e..0000000000 --- a/kubernetes/docs/V1ConfigMapEnvSource.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1ConfigMapEnvSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **bool** | Specify whether the ConfigMap must be defined | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1ConfigMapKeySelector.md b/kubernetes/docs/V1ConfigMapKeySelector.md index a424306c4d..1983b68526 100644 --- a/kubernetes/docs/V1ConfigMapKeySelector.md +++ b/kubernetes/docs/V1ConfigMapKeySelector.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **str** | The key to select. | **name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **bool** | Specify whether the ConfigMap or it's key must be defined | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ConfigMapList.md b/kubernetes/docs/V1ConfigMapList.md index 66b65917c3..aa7f3f80da 100644 --- a/kubernetes/docs/V1ConfigMapList.md +++ b/kubernetes/docs/V1ConfigMapList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ConfigMap]**](V1ConfigMap.md) | Items is the list of ConfigMaps. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ConfigMapProjection.md b/kubernetes/docs/V1ConfigMapProjection.md deleted file mode 100644 index 5f088e1441..0000000000 --- a/kubernetes/docs/V1ConfigMapProjection.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1ConfigMapProjection - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **bool** | Specify whether the ConfigMap or it's keys must be defined | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1ConfigMapVolumeSource.md b/kubernetes/docs/V1ConfigMapVolumeSource.md index 5b62b5265c..7cadfedf59 100644 --- a/kubernetes/docs/V1ConfigMapVolumeSource.md +++ b/kubernetes/docs/V1ConfigMapVolumeSource.md @@ -4,9 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] +**items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] **name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **bool** | Specify whether the ConfigMap or it's keys must be defined | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Container.md b/kubernetes/docs/V1Container.md index bd104469a6..341b590ef6 100644 --- a/kubernetes/docs/V1Container.md +++ b/kubernetes/docs/V1Container.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes **args** | **list[str]** | Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands | [optional] **command** | **list[str]** | Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands | [optional] **env** | [**list[V1EnvVar]**](V1EnvVar.md) | List of environment variables to set in the container. Cannot be updated. | [optional] -**env_from** | [**list[V1EnvFromSource]**](V1EnvFromSource.md) | List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. | [optional] **image** | **str** | Docker image name. More info: http://kubernetes.io/docs/user-guide/images | [optional] **image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images | [optional] **lifecycle** | [**V1Lifecycle**](V1Lifecycle.md) | Actions that the management system should take in response to container lifecycle events. Cannot be updated. | [optional] @@ -18,8 +17,7 @@ Name | Type | Description | Notes **security_context** | [**V1SecurityContext**](V1SecurityContext.md) | Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md | [optional] **stdin** | **bool** | Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. | [optional] **stdin_once** | **bool** | Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first kubernetes.client attaches to stdin, and then remains open and accepts data until the kubernetes.client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false | [optional] -**termination_message_path** | **str** | Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. | [optional] -**termination_message_policy** | **str** | Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. | [optional] +**termination_message_path** | **str** | Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated. | [optional] **tty** | **bool** | Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. | [optional] **volume_mounts** | [**list[V1VolumeMount]**](V1VolumeMount.md) | Pod volumes to mount into the container's filesystem. Cannot be updated. | [optional] **working_dir** | **str** | Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. | [optional] diff --git a/kubernetes/docs/V1CustomBuildStrategy.md b/kubernetes/docs/V1CustomBuildStrategy.md new file mode 100644 index 0000000000..d1f8ae9d45 --- /dev/null +++ b/kubernetes/docs/V1CustomBuildStrategy.md @@ -0,0 +1,16 @@ +# V1CustomBuildStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_api_version** | **str** | buildAPIVersion is the requested API version for the Build object serialized and passed to the custom builder | [optional] +**env** | [**list[V1EnvVar]**](V1EnvVar.md) | env contains additional environment variables you want to pass into a builder container | [optional] +**expose_docker_socket** | **bool** | exposeDockerSocket will allow running Docker commands (and build Docker images) from inside the Docker container. | [optional] +**force_pull** | **bool** | forcePull describes if the controller should configure the build pod to always pull the images for the builder or only pull if it is not present locally | [optional] +**_from** | [**V1ObjectReference**](V1ObjectReference.md) | from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the docker image should be pulled | +**pull_secret** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the Docker images from the private Docker registries | [optional] +**secrets** | [**list[V1SecretSpec]**](V1SecretSpec.md) | secrets is a list of additional secrets that will be included in the build pod | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1CustomDeploymentStrategyParams.md b/kubernetes/docs/V1CustomDeploymentStrategyParams.md new file mode 100644 index 0000000000..5f72c1adf4 --- /dev/null +++ b/kubernetes/docs/V1CustomDeploymentStrategyParams.md @@ -0,0 +1,12 @@ +# V1CustomDeploymentStrategyParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**command** | **list[str]** | Command is optional and overrides CMD in the container Image. | [optional] +**environment** | [**list[V1EnvVar]**](V1EnvVar.md) | Environment holds the environment which will be given to the container for Image. | [optional] +**image** | **str** | Image specifies a Docker image which can carry out a deployment. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeleteOptions.md b/kubernetes/docs/V1DeleteOptions.md index e9ab3bfcbd..1f3ee9ce5c 100644 --- a/kubernetes/docs/V1DeleteOptions.md +++ b/kubernetes/docs/V1DeleteOptions.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **grace_period_seconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**orphan_dependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**orphan_dependents** | **bool** | Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. | [optional] **preconditions** | [**V1Preconditions**](V1Preconditions.md) | Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. | [optional] -**propagation_policy** | **str** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DeploymentCause.md b/kubernetes/docs/V1DeploymentCause.md new file mode 100644 index 0000000000..9a4c9a7a1f --- /dev/null +++ b/kubernetes/docs/V1DeploymentCause.md @@ -0,0 +1,11 @@ +# V1DeploymentCause + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**image_trigger** | [**V1DeploymentCauseImageTrigger**](V1DeploymentCauseImageTrigger.md) | ImageTrigger contains the image trigger details, if this trigger was fired based on an image change | [optional] +**type** | **str** | Type of the trigger that resulted in the creation of a new deployment | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentCauseImageTrigger.md b/kubernetes/docs/V1DeploymentCauseImageTrigger.md new file mode 100644 index 0000000000..6f0820f517 --- /dev/null +++ b/kubernetes/docs/V1DeploymentCauseImageTrigger.md @@ -0,0 +1,10 @@ +# V1DeploymentCauseImageTrigger + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_from** | [**V1ObjectReference**](V1ObjectReference.md) | From is a reference to the changed object which triggered a deployment. The field may have the kinds DockerImage, ImageStreamTag, or ImageStreamImage. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentCondition.md b/kubernetes/docs/V1DeploymentCondition.md new file mode 100644 index 0000000000..633724d50d --- /dev/null +++ b/kubernetes/docs/V1DeploymentCondition.md @@ -0,0 +1,15 @@ +# V1DeploymentCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_transition_time** | **datetime** | The last time the condition transitioned from one status to another. | [optional] +**last_update_time** | **datetime** | The last time this condition was updated. | [optional] +**message** | **str** | A human readable message indicating details about the transition. | [optional] +**reason** | **str** | The reason for the condition's last transition. | [optional] +**status** | **str** | Status of the condition, one of True, False, Unknown. | +**type** | **str** | Type of deployment condition. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentConfig.md b/kubernetes/docs/V1DeploymentConfig.md new file mode 100644 index 0000000000..f28246ee77 --- /dev/null +++ b/kubernetes/docs/V1DeploymentConfig.md @@ -0,0 +1,14 @@ +# V1DeploymentConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**spec** | [**V1DeploymentConfigSpec**](V1DeploymentConfigSpec.md) | Spec represents a desired deployment state and how to deploy to it. | +**status** | [**V1DeploymentConfigStatus**](V1DeploymentConfigStatus.md) | Status represents the current deployment state. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentConfigList.md b/kubernetes/docs/V1DeploymentConfigList.md new file mode 100644 index 0000000000..47efee2003 --- /dev/null +++ b/kubernetes/docs/V1DeploymentConfigList.md @@ -0,0 +1,13 @@ +# V1DeploymentConfigList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1DeploymentConfig]**](V1DeploymentConfig.md) | Items is a list of deployment configs | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentConfigRollback.md b/kubernetes/docs/V1DeploymentConfigRollback.md new file mode 100644 index 0000000000..ddb528f981 --- /dev/null +++ b/kubernetes/docs/V1DeploymentConfigRollback.md @@ -0,0 +1,14 @@ +# V1DeploymentConfigRollback + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**name** | **str** | Name of the deployment config that will be rolled back. | +**spec** | [**V1DeploymentConfigRollbackSpec**](V1DeploymentConfigRollbackSpec.md) | Spec defines the options to rollback generation. | +**updated_annotations** | **dict(str, str)** | UpdatedAnnotations is a set of new annotations that will be added in the deployment config. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentConfigRollbackSpec.md b/kubernetes/docs/V1DeploymentConfigRollbackSpec.md new file mode 100644 index 0000000000..7173359501 --- /dev/null +++ b/kubernetes/docs/V1DeploymentConfigRollbackSpec.md @@ -0,0 +1,15 @@ +# V1DeploymentConfigRollbackSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_from** | [**V1ObjectReference**](V1ObjectReference.md) | From points to a ReplicationController which is a deployment. | +**include_replication_meta** | **bool** | IncludeReplicationMeta specifies whether to include the replica count and selector. | +**include_strategy** | **bool** | IncludeStrategy specifies whether to include the deployment Strategy. | +**include_template** | **bool** | IncludeTemplate specifies whether to include the PodTemplateSpec. | +**include_triggers** | **bool** | IncludeTriggers specifies whether to include config Triggers. | +**revision** | **int** | Revision to rollback to. If set to 0, rollback to the last revision. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentConfigSpec.md b/kubernetes/docs/V1DeploymentConfigSpec.md new file mode 100644 index 0000000000..63b2744684 --- /dev/null +++ b/kubernetes/docs/V1DeploymentConfigSpec.md @@ -0,0 +1,18 @@ +# V1DeploymentConfigSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_ready_seconds** | **int** | MinReadySeconds is the minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] +**paused** | **bool** | Paused indicates that the deployment config is paused resulting in no new deployments on template changes or changes in the template caused by other triggers. | [optional] +**replicas** | **int** | Replicas is the number of desired replicas. | +**revision_history_limit** | **int** | RevisionHistoryLimit is the number of old ReplicationControllers to retain to allow for rollbacks. This field is a pointer to allow for differentiation between an explicit zero and not specified. | [optional] +**selector** | **dict(str, str)** | Selector is a label query over pods that should match the Replicas count. | [optional] +**strategy** | [**V1DeploymentStrategy**](V1DeploymentStrategy.md) | Strategy describes how a deployment is executed. | +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. | [optional] +**test** | **bool** | Test ensures that this deployment config will have zero replicas except while a deployment is running. This allows the deployment config to be used as a continuous deployment test - triggering on images, running the deployment, and then succeeding or failing. Post strategy hooks and After actions can be used to integrate successful deployment with an action. | +**triggers** | [**list[V1DeploymentTriggerPolicy]**](V1DeploymentTriggerPolicy.md) | Triggers determine how updates to a DeploymentConfig result in new deployments. If no triggers are defined, a new deployment can only occur as a result of an explicit kubernetes.client update to the DeploymentConfig with a new LatestVersion. If null, defaults to having a config change trigger. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentConfigStatus.md b/kubernetes/docs/V1DeploymentConfigStatus.md new file mode 100644 index 0000000000..e7cda8cbe4 --- /dev/null +++ b/kubernetes/docs/V1DeploymentConfigStatus.md @@ -0,0 +1,18 @@ +# V1DeploymentConfigStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_replicas** | **int** | AvailableReplicas is the total number of available pods targeted by this deployment config. | +**conditions** | [**list[V1DeploymentCondition]**](V1DeploymentCondition.md) | Conditions represents the latest available observations of a deployment config's current state. | [optional] +**details** | [**V1DeploymentDetails**](V1DeploymentDetails.md) | Details are the reasons for the update to this deployment config. This could be based on a change made by the user or caused by an automatic trigger | [optional] +**latest_version** | **int** | LatestVersion is used to determine whether the current deployment associated with a deployment config is out of sync. | +**observed_generation** | **int** | ObservedGeneration is the most recent generation observed by the deployment config controller. | +**ready_replicas** | **int** | Total number of ready pods targeted by this deployment. | [optional] +**replicas** | **int** | Replicas is the total number of pods targeted by this deployment config. | +**unavailable_replicas** | **int** | UnavailableReplicas is the total number of unavailable pods targeted by this deployment config. | +**updated_replicas** | **int** | UpdatedReplicas is the total number of non-terminated pods targeted by this deployment config that have the desired template spec. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentDetails.md b/kubernetes/docs/V1DeploymentDetails.md new file mode 100644 index 0000000000..63a879df72 --- /dev/null +++ b/kubernetes/docs/V1DeploymentDetails.md @@ -0,0 +1,11 @@ +# V1DeploymentDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**causes** | [**list[V1DeploymentCause]**](V1DeploymentCause.md) | Causes are extended data associated with all the causes for creating a new deployment | +**message** | **str** | Message is the user specified change message, if this deployment was triggered manually by the user | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentLog.md b/kubernetes/docs/V1DeploymentLog.md new file mode 100644 index 0000000000..138df458ba --- /dev/null +++ b/kubernetes/docs/V1DeploymentLog.md @@ -0,0 +1,11 @@ +# V1DeploymentLog + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentRequest.md b/kubernetes/docs/V1DeploymentRequest.md new file mode 100644 index 0000000000..0a527fe25c --- /dev/null +++ b/kubernetes/docs/V1DeploymentRequest.md @@ -0,0 +1,14 @@ +# V1DeploymentRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**force** | **bool** | Force will try to force a new deployment to run. If the deployment config is paused, then setting this to true will return an Invalid error. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**latest** | **bool** | Latest will update the deployment config with the latest state from all triggers. | +**name** | **str** | Name of the deployment config for requesting a new deployment. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentStrategy.md b/kubernetes/docs/V1DeploymentStrategy.md new file mode 100644 index 0000000000..5faca30ac2 --- /dev/null +++ b/kubernetes/docs/V1DeploymentStrategy.md @@ -0,0 +1,17 @@ +# V1DeploymentStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_deadline_seconds** | **int** | ActiveDeadlineSeconds is the duration in seconds that the deployer pods for this deployment config may be active on a node before the system actively tries to terminate them. | [optional] +**annotations** | **dict(str, str)** | Annotations is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods. | [optional] +**custom_params** | [**V1CustomDeploymentStrategyParams**](V1CustomDeploymentStrategyParams.md) | CustomParams are the input to the Custom deployment strategy, and may also be specified for the Recreate and Rolling strategies to customize the execution process that runs the deployment. | [optional] +**labels** | **dict(str, str)** | Labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods. | [optional] +**recreate_params** | [**V1RecreateDeploymentStrategyParams**](V1RecreateDeploymentStrategyParams.md) | RecreateParams are the input to the Recreate deployment strategy. | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources contains resource requirements to execute the deployment and any hooks. | [optional] +**rolling_params** | [**V1RollingDeploymentStrategyParams**](V1RollingDeploymentStrategyParams.md) | RollingParams are the input to the Rolling deployment strategy. | [optional] +**type** | **str** | Type is the name of a deployment strategy. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentTriggerImageChangeParams.md b/kubernetes/docs/V1DeploymentTriggerImageChangeParams.md new file mode 100644 index 0000000000..6404836f33 --- /dev/null +++ b/kubernetes/docs/V1DeploymentTriggerImageChangeParams.md @@ -0,0 +1,13 @@ +# V1DeploymentTriggerImageChangeParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**automatic** | **bool** | Automatic means that the detection of a new tag value should result in an image update inside the pod template. | [optional] +**container_names** | **list[str]** | ContainerNames is used to restrict tag updates to the specified set of container names in a pod. | [optional] +**_from** | [**V1ObjectReference**](V1ObjectReference.md) | From is a reference to an image stream tag to watch for changes. From.Name is the only required subfield - if From.Namespace is blank, the namespace of the current deployment trigger will be used. | +**last_triggered_image** | **str** | LastTriggeredImage is the last image to be triggered. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeploymentTriggerPolicy.md b/kubernetes/docs/V1DeploymentTriggerPolicy.md new file mode 100644 index 0000000000..18d5340c25 --- /dev/null +++ b/kubernetes/docs/V1DeploymentTriggerPolicy.md @@ -0,0 +1,11 @@ +# V1DeploymentTriggerPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**image_change_params** | [**V1DeploymentTriggerImageChangeParams**](V1DeploymentTriggerImageChangeParams.md) | ImageChangeParams represents the parameters for the ImageChange trigger. | [optional] +**type** | **str** | Type of the trigger | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeprecatedDownwardAPIVolumeFile.md b/kubernetes/docs/V1DeprecatedDownwardAPIVolumeFile.md new file mode 100644 index 0000000000..24c5b1a95d --- /dev/null +++ b/kubernetes/docs/V1DeprecatedDownwardAPIVolumeFile.md @@ -0,0 +1,13 @@ +# V1DeprecatedDownwardAPIVolumeFile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field_ref** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. | [optional] +**mode** | **int** | Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**name** | **str** | Required: Name is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' | +**resource_field_ref** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DeprecatedDownwardAPIVolumeSource.md b/kubernetes/docs/V1DeprecatedDownwardAPIVolumeSource.md new file mode 100644 index 0000000000..761dfa94c7 --- /dev/null +++ b/kubernetes/docs/V1DeprecatedDownwardAPIVolumeSource.md @@ -0,0 +1,11 @@ +# V1DeprecatedDownwardAPIVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_mode** | **int** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**items** | [**list[V1DeprecatedDownwardAPIVolumeFile]**](V1DeprecatedDownwardAPIVolumeFile.md) | Items is a list of downward API volume file | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DockerBuildStrategy.md b/kubernetes/docs/V1DockerBuildStrategy.md new file mode 100644 index 0000000000..eb603305b4 --- /dev/null +++ b/kubernetes/docs/V1DockerBuildStrategy.md @@ -0,0 +1,15 @@ +# V1DockerBuildStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dockerfile_path** | **str** | dockerfilePath is the path of the Dockerfile that will be used to build the Docker image, relative to the root of the context (contextDir). | [optional] +**env** | [**list[V1EnvVar]**](V1EnvVar.md) | env contains additional environment variables you want to pass into a builder container | [optional] +**force_pull** | **bool** | forcePull describes if the builder should pull the images from registry prior to building. | [optional] +**_from** | [**V1ObjectReference**](V1ObjectReference.md) | from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the docker image should be pulled the resulting image will be used in the FROM line of the Dockerfile for this build. | [optional] +**no_cache** | **bool** | noCache if set to true indicates that the docker build must be executed with the --no-cache=true flag | [optional] +**pull_secret** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the Docker images from the private Docker registries | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1DownwardAPIProjection.md b/kubernetes/docs/V1DownwardAPIProjection.md deleted file mode 100644 index 733b095b65..0000000000 --- a/kubernetes/docs/V1DownwardAPIProjection.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1DownwardAPIProjection - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**list[V1DownwardAPIVolumeFile]**](V1DownwardAPIVolumeFile.md) | Items is a list of DownwardAPIVolume file | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1EgressNetworkPolicy.md b/kubernetes/docs/V1EgressNetworkPolicy.md new file mode 100644 index 0000000000..2f8131a8e0 --- /dev/null +++ b/kubernetes/docs/V1EgressNetworkPolicy.md @@ -0,0 +1,13 @@ +# V1EgressNetworkPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | metadata for EgressNetworkPolicy | [optional] +**spec** | [**V1EgressNetworkPolicySpec**](V1EgressNetworkPolicySpec.md) | spec is the specification of the current egress network policy | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1EgressNetworkPolicyList.md b/kubernetes/docs/V1EgressNetworkPolicyList.md new file mode 100644 index 0000000000..f1b2bc8819 --- /dev/null +++ b/kubernetes/docs/V1EgressNetworkPolicyList.md @@ -0,0 +1,13 @@ +# V1EgressNetworkPolicyList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1EgressNetworkPolicy]**](V1EgressNetworkPolicy.md) | items is the list of policies | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | metadata for EgressNetworkPolicyList | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1EgressNetworkPolicyPeer.md b/kubernetes/docs/V1EgressNetworkPolicyPeer.md new file mode 100644 index 0000000000..b99a77cd88 --- /dev/null +++ b/kubernetes/docs/V1EgressNetworkPolicyPeer.md @@ -0,0 +1,10 @@ +# V1EgressNetworkPolicyPeer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cidr_selector** | **str** | cidrSelector is the CIDR range to allow/deny traffic to | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1EgressNetworkPolicyRule.md b/kubernetes/docs/V1EgressNetworkPolicyRule.md new file mode 100644 index 0000000000..0c7f4db057 --- /dev/null +++ b/kubernetes/docs/V1EgressNetworkPolicyRule.md @@ -0,0 +1,11 @@ +# V1EgressNetworkPolicyRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**to** | [**V1EgressNetworkPolicyPeer**](V1EgressNetworkPolicyPeer.md) | to is the target that traffic is allowed/denied to | +**type** | **str** | type marks this as an \"Allow\" or \"Deny\" rule | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1EgressNetworkPolicySpec.md b/kubernetes/docs/V1EgressNetworkPolicySpec.md new file mode 100644 index 0000000000..46617c1d27 --- /dev/null +++ b/kubernetes/docs/V1EgressNetworkPolicySpec.md @@ -0,0 +1,10 @@ +# V1EgressNetworkPolicySpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**egress** | [**list[V1EgressNetworkPolicyRule]**](V1EgressNetworkPolicyRule.md) | egress contains the list of egress policy rules | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1EndpointsList.md b/kubernetes/docs/V1EndpointsList.md index 3629a9a903..9ca43ef423 100644 --- a/kubernetes/docs/V1EndpointsList.md +++ b/kubernetes/docs/V1EndpointsList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Endpoints]**](V1Endpoints.md) | List of endpoints. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1EnvFromSource.md b/kubernetes/docs/V1EnvFromSource.md deleted file mode 100644 index 4bd03faed8..0000000000 --- a/kubernetes/docs/V1EnvFromSource.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1EnvFromSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**config_map_ref** | [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | The ConfigMap to select from | [optional] -**prefix** | **str** | An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. | [optional] -**secret_ref** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | The Secret to select from | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1EventList.md b/kubernetes/docs/V1EventList.md index 637e0ddb08..16574820ee 100644 --- a/kubernetes/docs/V1EventList.md +++ b/kubernetes/docs/V1EventList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Event]**](V1Event.md) | List of events | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ExecNewPodHook.md b/kubernetes/docs/V1ExecNewPodHook.md new file mode 100644 index 0000000000..74b8c0d52a --- /dev/null +++ b/kubernetes/docs/V1ExecNewPodHook.md @@ -0,0 +1,13 @@ +# V1ExecNewPodHook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**command** | **list[str]** | Command is the action command and its arguments. | +**container_name** | **str** | ContainerName is the name of a container in the deployment pod template whose Docker image will be used for the hook pod's container. | +**env** | [**list[V1EnvVar]**](V1EnvVar.md) | Env is a set of environment variables to supply to the hook pod's container. | [optional] +**volumes** | **list[str]** | Volumes is a list of named volumes from the pod template which should be copied to the hook pod. Volumes names not found in pod spec are ignored. An empty list means no volumes will be copied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1FSGroupStrategyOptions.md b/kubernetes/docs/V1FSGroupStrategyOptions.md new file mode 100644 index 0000000000..cfb240900f --- /dev/null +++ b/kubernetes/docs/V1FSGroupStrategyOptions.md @@ -0,0 +1,11 @@ +# V1FSGroupStrategyOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ranges** | [**list[V1IDRange]**](V1IDRange.md) | Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. | [optional] +**type** | **str** | Type is the strategy that will dictate what FSGroup is used in the SecurityContext. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1GenericWebHookCause.md b/kubernetes/docs/V1GenericWebHookCause.md new file mode 100644 index 0000000000..3d37d46265 --- /dev/null +++ b/kubernetes/docs/V1GenericWebHookCause.md @@ -0,0 +1,11 @@ +# V1GenericWebHookCause + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**revision** | [**V1SourceRevision**](V1SourceRevision.md) | revision is an optional field that stores the git source revision information of the generic webhook trigger when it is available. | [optional] +**secret** | **str** | secret is the obfuscated webhook secret that triggered a build. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1GitBuildSource.md b/kubernetes/docs/V1GitBuildSource.md new file mode 100644 index 0000000000..e9936542b2 --- /dev/null +++ b/kubernetes/docs/V1GitBuildSource.md @@ -0,0 +1,14 @@ +# V1GitBuildSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**http_proxy** | **str** | httpProxy is a proxy used to reach the git repository over http | [optional] +**https_proxy** | **str** | httpsProxy is a proxy used to reach the git repository over https | [optional] +**no_proxy** | **str** | noProxy is the list of domains for which the proxy should not be used | [optional] +**ref** | **str** | ref is the branch/tag/ref to build. | [optional] +**uri** | **str** | uri points to the source that will be built. The structure of the source will depend on the type of build to run | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1GitHubWebHookCause.md b/kubernetes/docs/V1GitHubWebHookCause.md new file mode 100644 index 0000000000..9ce2725af4 --- /dev/null +++ b/kubernetes/docs/V1GitHubWebHookCause.md @@ -0,0 +1,11 @@ +# V1GitHubWebHookCause + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**revision** | [**V1SourceRevision**](V1SourceRevision.md) | revision is the git revision information of the trigger. | [optional] +**secret** | **str** | secret is the obfuscated webhook secret that triggered a build. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1GitSourceRevision.md b/kubernetes/docs/V1GitSourceRevision.md new file mode 100644 index 0000000000..2e6d04ce68 --- /dev/null +++ b/kubernetes/docs/V1GitSourceRevision.md @@ -0,0 +1,13 @@ +# V1GitSourceRevision + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**author** | [**V1SourceControlUser**](V1SourceControlUser.md) | author is the author of a specific commit | [optional] +**commit** | **str** | commit is the commit hash identifying a specific commit | [optional] +**committer** | [**V1SourceControlUser**](V1SourceControlUser.md) | committer is the committer of a specific commit | [optional] +**message** | **str** | message is the description of a specific commit | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1Group.md b/kubernetes/docs/V1Group.md new file mode 100644 index 0000000000..1ffda54889 --- /dev/null +++ b/kubernetes/docs/V1Group.md @@ -0,0 +1,13 @@ +# V1Group + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**users** | **list[str]** | Users is the list of users in this group. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1GroupList.md b/kubernetes/docs/V1GroupList.md new file mode 100644 index 0000000000..181913642d --- /dev/null +++ b/kubernetes/docs/V1GroupList.md @@ -0,0 +1,13 @@ +# V1GroupList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1Group]**](V1Group.md) | Items is the list of groups | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1GroupRestriction.md b/kubernetes/docs/V1GroupRestriction.md new file mode 100644 index 0000000000..55cf6d48bd --- /dev/null +++ b/kubernetes/docs/V1GroupRestriction.md @@ -0,0 +1,11 @@ +# V1GroupRestriction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | **list[str]** | Groups is a list of groups used to match against an individual user's groups. If the user is a member of one of the whitelisted groups, the user is allowed to be bound to a role. | +**labels** | [**list[UnversionedLabelSelector]**](UnversionedLabelSelector.md) | Selectors specifies a list of label selectors over group labels. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1GroupVersionForDiscovery.md b/kubernetes/docs/V1GroupVersionForDiscovery.md deleted file mode 100644 index c163d7a973..0000000000 --- a/kubernetes/docs/V1GroupVersionForDiscovery.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1GroupVersionForDiscovery - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group_version** | **str** | groupVersion specifies the API group and version in the form \"group/version\" | -**version** | **str** | version specifies the version in the form of \"version\". This is to save the kubernetes.clients the trouble of splitting the GroupVersion. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerList.md b/kubernetes/docs/V1HorizontalPodAutoscalerList.md index 147da50293..8aaf8ee10e 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1HorizontalPodAutoscaler]**](V1HorizontalPodAutoscaler.md) | list of horizontal pod autoscaler objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1HostSubnet.md b/kubernetes/docs/V1HostSubnet.md new file mode 100644 index 0000000000..16dedf33be --- /dev/null +++ b/kubernetes/docs/V1HostSubnet.md @@ -0,0 +1,15 @@ +# V1HostSubnet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**host** | **str** | Host is the name of the node. (This is redundant with the object's name, and this field is not actually used any more.) | +**host_ip** | **str** | HostIP is the IP address to be used as a VTEP by other nodes in the overlay network | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**subnet** | **str** | Subnet is the CIDR range of the overlay network assigned to the node for its pods | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1HostSubnetList.md b/kubernetes/docs/V1HostSubnetList.md new file mode 100644 index 0000000000..e9939105c8 --- /dev/null +++ b/kubernetes/docs/V1HostSubnetList.md @@ -0,0 +1,13 @@ +# V1HostSubnetList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1HostSubnet]**](V1HostSubnet.md) | Items is the list of host subnets | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1IDRange.md b/kubernetes/docs/V1IDRange.md new file mode 100644 index 0000000000..810dc257a3 --- /dev/null +++ b/kubernetes/docs/V1IDRange.md @@ -0,0 +1,11 @@ +# V1IDRange + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | **int** | Max is the end of the range, inclusive. | [optional] +**min** | **int** | Min is the start of the range, inclusive. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ISCSIVolumeSource.md b/kubernetes/docs/V1ISCSIVolumeSource.md index 33f1ae4c34..dd3b74b852 100644 --- a/kubernetes/docs/V1ISCSIVolumeSource.md +++ b/kubernetes/docs/V1ISCSIVolumeSource.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **iqn** | **str** | Target iSCSI Qualified Name. | **iscsi_interface** | **str** | Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. | [optional] **lun** | **int** | iSCSI target lun number. | -**portals** | **list[str]** | iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | [optional] **read_only** | **bool** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. | [optional] **target_portal** | **str** | iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | diff --git a/kubernetes/docs/V1Identity.md b/kubernetes/docs/V1Identity.md new file mode 100644 index 0000000000..7eb58151a5 --- /dev/null +++ b/kubernetes/docs/V1Identity.md @@ -0,0 +1,16 @@ +# V1Identity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**extra** | **dict(str, str)** | Extra holds extra information about this identity | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**provider_name** | **str** | ProviderName is the source of identity information | +**provider_user_name** | **str** | ProviderUserName uniquely represents this identity in the scope of the provider | +**user** | [**V1ObjectReference**](V1ObjectReference.md) | User is a reference to the user this identity is associated with Both Name and UID must be set | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1IdentityList.md b/kubernetes/docs/V1IdentityList.md new file mode 100644 index 0000000000..f20ed706d6 --- /dev/null +++ b/kubernetes/docs/V1IdentityList.md @@ -0,0 +1,13 @@ +# V1IdentityList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1Identity]**](V1Identity.md) | Items is the list of identities | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1Image.md b/kubernetes/docs/V1Image.md new file mode 100644 index 0000000000..a0a66bb3b1 --- /dev/null +++ b/kubernetes/docs/V1Image.md @@ -0,0 +1,21 @@ +# V1Image + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**docker_image_config** | **str** | DockerImageConfig is a JSON blob that the runtime uses to set up the container. This is a part of manifest schema v2. | [optional] +**docker_image_layers** | [**list[V1ImageLayer]**](V1ImageLayer.md) | DockerImageLayers represents the layers in the image. May not be set if the image does not define that data. | +**docker_image_manifest** | **str** | DockerImageManifest is the raw JSON of the manifest | [optional] +**docker_image_manifest_media_type** | **str** | DockerImageManifestMediaType specifies the mediaType of manifest. This is a part of manifest schema v2. | [optional] +**docker_image_metadata** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | DockerImageMetadata contains metadata about this image | [optional] +**docker_image_metadata_version** | **str** | DockerImageMetadataVersion conveys the version of the object, which if empty defaults to \"1.0\" | [optional] +**docker_image_reference** | **str** | DockerImageReference is the string that can be used to pull this image. | [optional] +**docker_image_signatures** | **list[str]** | DockerImageSignatures provides the signatures as opaque blobs. This is a part of manifest schema v1. | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**signatures** | [**list[V1ImageSignature]**](V1ImageSignature.md) | Signatures holds all signatures of the image. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageChangeCause.md b/kubernetes/docs/V1ImageChangeCause.md new file mode 100644 index 0000000000..5d3ebfabf2 --- /dev/null +++ b/kubernetes/docs/V1ImageChangeCause.md @@ -0,0 +1,11 @@ +# V1ImageChangeCause + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**from_ref** | [**V1ObjectReference**](V1ObjectReference.md) | fromRef contains detailed information about an image that triggered a build. | [optional] +**image_id** | **str** | imageID is the ID of the image that triggered a a new build. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageChangeTrigger.md b/kubernetes/docs/V1ImageChangeTrigger.md new file mode 100644 index 0000000000..0d27e65769 --- /dev/null +++ b/kubernetes/docs/V1ImageChangeTrigger.md @@ -0,0 +1,11 @@ +# V1ImageChangeTrigger + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_from** | [**V1ObjectReference**](V1ObjectReference.md) | from is a reference to an ImageStreamTag that will trigger a build when updated It is optional. If no From is specified, the From image from the build strategy will be used. Only one ImageChangeTrigger with an empty From reference is allowed in a build configuration. | [optional] +**last_triggered_image_id** | **str** | lastTriggeredImageID is used internally by the ImageChangeController to save last used image ID for build | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageImportSpec.md b/kubernetes/docs/V1ImageImportSpec.md new file mode 100644 index 0000000000..db0dedbf6a --- /dev/null +++ b/kubernetes/docs/V1ImageImportSpec.md @@ -0,0 +1,13 @@ +# V1ImageImportSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_from** | [**V1ObjectReference**](V1ObjectReference.md) | From is the source of an image to import; only kind DockerImage is allowed | +**import_policy** | [**V1TagImportPolicy**](V1TagImportPolicy.md) | ImportPolicy is the policy controlling how the image is imported | [optional] +**include_manifest** | **bool** | IncludeManifest determines if the manifest for each image is returned in the response | [optional] +**to** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | To is a tag in the current image stream to assign the imported image to, if name is not specified the default tag from from.name will be used | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageImportStatus.md b/kubernetes/docs/V1ImageImportStatus.md new file mode 100644 index 0000000000..7eb10e9512 --- /dev/null +++ b/kubernetes/docs/V1ImageImportStatus.md @@ -0,0 +1,12 @@ +# V1ImageImportStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**image** | [**V1Image**](V1Image.md) | Image is the metadata of that image, if the image was located | [optional] +**status** | [**UnversionedStatus**](UnversionedStatus.md) | Status is the status of the image import, including errors encountered while retrieving the image | +**tag** | **str** | Tag is the tag this image was located under, if any | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageLabel.md b/kubernetes/docs/V1ImageLabel.md new file mode 100644 index 0000000000..2897524b09 --- /dev/null +++ b/kubernetes/docs/V1ImageLabel.md @@ -0,0 +1,11 @@ +# V1ImageLabel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name defines the name of the label. It must have non-zero length. | +**value** | **str** | value defines the literal value of the label. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageLayer.md b/kubernetes/docs/V1ImageLayer.md new file mode 100644 index 0000000000..8344e64bc6 --- /dev/null +++ b/kubernetes/docs/V1ImageLayer.md @@ -0,0 +1,12 @@ +# V1ImageLayer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**media_type** | **str** | MediaType of the referenced object. | +**name** | **str** | Name of the layer as defined by the underlying store. | +**size** | **int** | Size of the layer in bytes as defined by the underlying store. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageList.md b/kubernetes/docs/V1ImageList.md new file mode 100644 index 0000000000..b2621550a0 --- /dev/null +++ b/kubernetes/docs/V1ImageList.md @@ -0,0 +1,13 @@ +# V1ImageList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1Image]**](V1Image.md) | Items is a list of images | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageSignature.md b/kubernetes/docs/V1ImageSignature.md new file mode 100644 index 0000000000..01a70ff712 --- /dev/null +++ b/kubernetes/docs/V1ImageSignature.md @@ -0,0 +1,20 @@ +# V1ImageSignature + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**conditions** | [**list[V1SignatureCondition]**](V1SignatureCondition.md) | Conditions represent the latest available observations of a signature's current state. | [optional] +**content** | **str** | Required: An opaque binary string which is an image's signature. | +**created** | **datetime** | If specified, it is the time of signature's creation. | [optional] +**image_identity** | **str** | A human readable string representing image's identity. It could be a product name and version, or an image pull spec (e.g. \"registry.access.redhat.com/rhel7/rhel:7.2\"). | [optional] +**issued_by** | [**V1SignatureIssuer**](V1SignatureIssuer.md) | If specified, it holds information about an issuer of signing certificate or key (a person or entity who signed the signing certificate or key). | [optional] +**issued_to** | [**V1SignatureSubject**](V1SignatureSubject.md) | If specified, it holds information about a subject of signing certificate or key (a person or entity who signed the image). | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**signed_claims** | **dict(str, str)** | Contains claims from the signature. | [optional] +**type** | **str** | Required: Describes a type of stored blob. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageSource.md b/kubernetes/docs/V1ImageSource.md new file mode 100644 index 0000000000..8250d48f5b --- /dev/null +++ b/kubernetes/docs/V1ImageSource.md @@ -0,0 +1,12 @@ +# V1ImageSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_from** | [**V1ObjectReference**](V1ObjectReference.md) | from is a reference to an ImageStreamTag, ImageStreamImage, or DockerImage to copy source from. | +**paths** | [**list[V1ImageSourcePath]**](V1ImageSourcePath.md) | paths is a list of source and destination paths to copy from the image. | +**pull_secret** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | pullSecret is a reference to a secret to be used to pull the image from a registry If the image is pulled from the OpenShift registry, this field does not need to be set. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageSourcePath.md b/kubernetes/docs/V1ImageSourcePath.md new file mode 100644 index 0000000000..1aed5fe888 --- /dev/null +++ b/kubernetes/docs/V1ImageSourcePath.md @@ -0,0 +1,11 @@ +# V1ImageSourcePath + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**destination_dir** | **str** | destinationDir is the relative directory within the build directory where files copied from the image are placed. | +**source_path** | **str** | sourcePath is the absolute path of the file or directory inside the image to copy to the build directory. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageStream.md b/kubernetes/docs/V1ImageStream.md new file mode 100644 index 0000000000..9f2b2898e7 --- /dev/null +++ b/kubernetes/docs/V1ImageStream.md @@ -0,0 +1,14 @@ +# V1ImageStream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**spec** | [**V1ImageStreamSpec**](V1ImageStreamSpec.md) | Spec describes the desired state of this stream | +**status** | [**V1ImageStreamStatus**](V1ImageStreamStatus.md) | Status describes the current state of this stream | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageStreamImage.md b/kubernetes/docs/V1ImageStreamImage.md new file mode 100644 index 0000000000..b5369456a7 --- /dev/null +++ b/kubernetes/docs/V1ImageStreamImage.md @@ -0,0 +1,13 @@ +# V1ImageStreamImage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**image** | [**V1Image**](V1Image.md) | Image associated with the ImageStream and image name. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageStreamImport.md b/kubernetes/docs/V1ImageStreamImport.md new file mode 100644 index 0000000000..1e7fc2020b --- /dev/null +++ b/kubernetes/docs/V1ImageStreamImport.md @@ -0,0 +1,14 @@ +# V1ImageStreamImport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**spec** | [**V1ImageStreamImportSpec**](V1ImageStreamImportSpec.md) | Spec is a description of the images that the user wishes to import | +**status** | [**V1ImageStreamImportStatus**](V1ImageStreamImportStatus.md) | Status is the the result of importing the image | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageStreamImportSpec.md b/kubernetes/docs/V1ImageStreamImportSpec.md new file mode 100644 index 0000000000..11a71d72c4 --- /dev/null +++ b/kubernetes/docs/V1ImageStreamImportSpec.md @@ -0,0 +1,12 @@ +# V1ImageStreamImportSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | [**list[V1ImageImportSpec]**](V1ImageImportSpec.md) | Images are a list of individual images to import. | [optional] +**_import** | **bool** | Import indicates whether to perform an import - if so, the specified tags are set on the spec and status of the image stream defined by the type meta. | +**repository** | [**V1RepositoryImportSpec**](V1RepositoryImportSpec.md) | Repository is an optional import of an entire Docker image repository. A maximum limit on the number of tags imported this way is imposed by the server. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageStreamImportStatus.md b/kubernetes/docs/V1ImageStreamImportStatus.md new file mode 100644 index 0000000000..1d2a2f53ae --- /dev/null +++ b/kubernetes/docs/V1ImageStreamImportStatus.md @@ -0,0 +1,12 @@ +# V1ImageStreamImportStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | [**list[V1ImageImportStatus]**](V1ImageImportStatus.md) | Images is set with the result of importing spec.images | [optional] +**_import** | [**V1ImageStream**](V1ImageStream.md) | Import is the image stream that was successfully updated or created when 'to' was set. | [optional] +**repository** | [**V1RepositoryImportStatus**](V1RepositoryImportStatus.md) | Repository is set if spec.repository was set to the outcome of the import | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageStreamList.md b/kubernetes/docs/V1ImageStreamList.md new file mode 100644 index 0000000000..0a68d3b91f --- /dev/null +++ b/kubernetes/docs/V1ImageStreamList.md @@ -0,0 +1,13 @@ +# V1ImageStreamList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1ImageStream]**](V1ImageStream.md) | Items is a list of imageStreams | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageStreamMapping.md b/kubernetes/docs/V1ImageStreamMapping.md new file mode 100644 index 0000000000..63c48febc7 --- /dev/null +++ b/kubernetes/docs/V1ImageStreamMapping.md @@ -0,0 +1,14 @@ +# V1ImageStreamMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**image** | [**V1Image**](V1Image.md) | Image is a Docker image. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**tag** | **str** | Tag is a string value this image can be located with inside the stream. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageStreamSpec.md b/kubernetes/docs/V1ImageStreamSpec.md new file mode 100644 index 0000000000..7439aa4b1c --- /dev/null +++ b/kubernetes/docs/V1ImageStreamSpec.md @@ -0,0 +1,11 @@ +# V1ImageStreamSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**docker_image_repository** | **str** | DockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server | [optional] +**tags** | [**list[V1TagReference]**](V1TagReference.md) | Tags map arbitrary string values to specific image locators | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageStreamStatus.md b/kubernetes/docs/V1ImageStreamStatus.md new file mode 100644 index 0000000000..c378fab912 --- /dev/null +++ b/kubernetes/docs/V1ImageStreamStatus.md @@ -0,0 +1,11 @@ +# V1ImageStreamStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**docker_image_repository** | **str** | DockerImageRepository represents the effective location this stream may be accessed at. May be empty until the server determines where the repository is located | +**tags** | [**list[V1NamedTagEventList]**](V1NamedTagEventList.md) | Tags are a historical record of images associated with each tag. The first entry in the TagEvent array is the currently tagged image. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageStreamTag.md b/kubernetes/docs/V1ImageStreamTag.md new file mode 100644 index 0000000000..52b2f4cd43 --- /dev/null +++ b/kubernetes/docs/V1ImageStreamTag.md @@ -0,0 +1,16 @@ +# V1ImageStreamTag + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**conditions** | [**list[V1TagEventCondition]**](V1TagEventCondition.md) | Conditions is an array of conditions that apply to the image stream tag. | [optional] +**generation** | **int** | Generation is the current generation of the tagged image - if tag is provided and this value is not equal to the tag generation, a user has requested an import that has not completed, or Conditions will be filled out indicating any error. | +**image** | [**V1Image**](V1Image.md) | Image associated with the ImageStream and tag. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**tag** | [**V1TagReference**](V1TagReference.md) | Tag is the spec tag associated with this image stream tag, and it may be null if only pushes have occurred to this image stream. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ImageStreamTagList.md b/kubernetes/docs/V1ImageStreamTagList.md new file mode 100644 index 0000000000..f2edb96308 --- /dev/null +++ b/kubernetes/docs/V1ImageStreamTagList.md @@ -0,0 +1,13 @@ +# V1ImageStreamTagList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1ImageStreamTag]**](V1ImageStreamTag.md) | Items is the list of image stream tags | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1JenkinsPipelineBuildStrategy.md b/kubernetes/docs/V1JenkinsPipelineBuildStrategy.md new file mode 100644 index 0000000000..417211677b --- /dev/null +++ b/kubernetes/docs/V1JenkinsPipelineBuildStrategy.md @@ -0,0 +1,11 @@ +# V1JenkinsPipelineBuildStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jenkinsfile** | **str** | Jenkinsfile defines the optional raw contents of a Jenkinsfile which defines a Jenkins pipeline build. | [optional] +**jenkinsfile_path** | **str** | JenkinsfilePath is the optional path of the Jenkinsfile that will be used to configure the pipeline relative to the root of the context (contextDir). If both JenkinsfilePath & Jenkinsfile are both not specified, this defaults to Jenkinsfile in the root of the specified contextDir. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1JobList.md b/kubernetes/docs/V1JobList.md index c080e04b80..9268e0909c 100644 --- a/kubernetes/docs/V1JobList.md +++ b/kubernetes/docs/V1JobList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Job]**](V1Job.md) | Items is the list of Job. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md index ecc0e7df37..7776712fb8 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **completions** | **int** | Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] **manual_selector** | **bool** | ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md | [optional] **parallelism** | **int** | Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] **template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1LabelSelector.md b/kubernetes/docs/V1LabelSelector.md deleted file mode 100644 index bb3c52d257..0000000000 --- a/kubernetes/docs/V1LabelSelector.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1LabelSelector - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**match_expressions** | [**list[V1LabelSelectorRequirement]**](V1LabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] -**match_labels** | **dict(str, str)** | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1LabelSelectorRequirement.md b/kubernetes/docs/V1LabelSelectorRequirement.md deleted file mode 100644 index a9f94cbed1..0000000000 --- a/kubernetes/docs/V1LabelSelectorRequirement.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1LabelSelectorRequirement - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **str** | key is the label key that the selector applies to. | -**operator** | **str** | operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. | -**values** | **list[str]** | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1LifecycleHook.md b/kubernetes/docs/V1LifecycleHook.md new file mode 100644 index 0000000000..96830146d6 --- /dev/null +++ b/kubernetes/docs/V1LifecycleHook.md @@ -0,0 +1,12 @@ +# V1LifecycleHook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exec_new_pod** | [**V1ExecNewPodHook**](V1ExecNewPodHook.md) | ExecNewPod specifies the options for a lifecycle hook backed by a pod. | [optional] +**failure_policy** | **str** | FailurePolicy specifies what action to take if the hook fails. | +**tag_images** | [**list[V1TagImageHook]**](V1TagImageHook.md) | TagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1LimitRangeList.md b/kubernetes/docs/V1LimitRangeList.md index b130d6aa1b..6c9dd311ad 100644 --- a/kubernetes/docs/V1LimitRangeList.md +++ b/kubernetes/docs/V1LimitRangeList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1LimitRange]**](V1LimitRange.md) | Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ListMeta.md b/kubernetes/docs/V1ListMeta.md deleted file mode 100644 index 80a77afb84..0000000000 --- a/kubernetes/docs/V1ListMeta.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1ListMeta - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resource_version** | **str** | String that identifies the server's internal version of this object that can be used by kubernetes.clients to determine when objects have changed. Value must be treated as opaque by kubernetes.clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1LocalResourceAccessReview.md b/kubernetes/docs/V1LocalResourceAccessReview.md new file mode 100644 index 0000000000..d1a72a0090 --- /dev/null +++ b/kubernetes/docs/V1LocalResourceAccessReview.md @@ -0,0 +1,20 @@ +# V1LocalResourceAccessReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**content** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Content is the actual content of the request for create and update | [optional] +**is_non_resource_url** | **bool** | IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**namespace** | **str** | Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces | +**path** | **str** | Path is the path of a non resource URL | +**resource** | **str** | Resource is one of the existing resource types | +**resource_api_group** | **str** | Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined | +**resource_api_version** | **str** | Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined | +**resource_name** | **str** | ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\" | +**verb** | **str** | Verb is one of: get, list, watch, create, update, delete | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1LocalSubjectAccessReview.md b/kubernetes/docs/V1LocalSubjectAccessReview.md index f17690ec7d..9a41c430a5 100644 --- a/kubernetes/docs/V1LocalSubjectAccessReview.md +++ b/kubernetes/docs/V1LocalSubjectAccessReview.md @@ -4,10 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**content** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Content is the actual content of the request for create and update | [optional] +**groups** | **list[str]** | Groups is optional. Groups is the list of groups to which the User belongs. | +**is_non_resource_url** | **bool** | IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**namespace** | **str** | Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces | +**path** | **str** | Path is the path of a non resource URL | +**resource** | **str** | Resource is one of the existing resource types | +**resource_api_group** | **str** | Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined | +**resource_api_version** | **str** | Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined | +**resource_name** | **str** | ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\" | +**scopes** | **list[str]** | Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". Nil for a self-SAR, means \"use the scopes on this request\". Nil for a regular SAR, means the same as empty. | +**user** | **str** | User is optional. If both User and Groups are empty, the current authenticated user is used. | +**verb** | **str** | Verb is one of: get, list, watch, create, update, delete | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NamedClusterRole.md b/kubernetes/docs/V1NamedClusterRole.md new file mode 100644 index 0000000000..564f229c3e --- /dev/null +++ b/kubernetes/docs/V1NamedClusterRole.md @@ -0,0 +1,11 @@ +# V1NamedClusterRole + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name is the name of the cluster role | +**role** | [**V1ClusterRole**](V1ClusterRole.md) | Role is the cluster role being named | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1NamedClusterRoleBinding.md b/kubernetes/docs/V1NamedClusterRoleBinding.md new file mode 100644 index 0000000000..a314c8be34 --- /dev/null +++ b/kubernetes/docs/V1NamedClusterRoleBinding.md @@ -0,0 +1,11 @@ +# V1NamedClusterRoleBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name is the name of the cluster role binding | +**role_binding** | [**V1ClusterRoleBinding**](V1ClusterRoleBinding.md) | RoleBinding is the cluster role binding being named | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1NamedRole.md b/kubernetes/docs/V1NamedRole.md new file mode 100644 index 0000000000..56f16907ea --- /dev/null +++ b/kubernetes/docs/V1NamedRole.md @@ -0,0 +1,11 @@ +# V1NamedRole + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name is the name of the role | +**role** | [**V1Role**](V1Role.md) | Role is the role being named | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1NamedRoleBinding.md b/kubernetes/docs/V1NamedRoleBinding.md new file mode 100644 index 0000000000..b38a8a6b56 --- /dev/null +++ b/kubernetes/docs/V1NamedRoleBinding.md @@ -0,0 +1,11 @@ +# V1NamedRoleBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name is the name of the role binding | +**role_binding** | [**V1RoleBinding**](V1RoleBinding.md) | RoleBinding is the role binding being named | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1NamedTagEventList.md b/kubernetes/docs/V1NamedTagEventList.md new file mode 100644 index 0000000000..0d1d643c8b --- /dev/null +++ b/kubernetes/docs/V1NamedTagEventList.md @@ -0,0 +1,12 @@ +# V1NamedTagEventList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1TagEventCondition]**](V1TagEventCondition.md) | Conditions is an array of conditions that apply to the tag event list. | [optional] +**items** | [**list[V1TagEvent]**](V1TagEvent.md) | Standard object's metadata. | +**tag** | **str** | Tag is the tag for which the history is recorded | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1NamespaceList.md b/kubernetes/docs/V1NamespaceList.md index c54f2b385b..f48ebd54b7 100644 --- a/kubernetes/docs/V1NamespaceList.md +++ b/kubernetes/docs/V1NamespaceList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Namespace]**](V1Namespace.md) | Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NetNamespace.md b/kubernetes/docs/V1NetNamespace.md new file mode 100644 index 0000000000..82bd345d0f --- /dev/null +++ b/kubernetes/docs/V1NetNamespace.md @@ -0,0 +1,14 @@ +# V1NetNamespace + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**netid** | **int** | NetID is the network identifier of the network namespace assigned to each overlay network packet. This can be manipulated with the \"oadm pod-network\" commands. | +**netname** | **str** | NetName is the name of the network namespace. (This is the same as the object's name, but both fields must be set.) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1NetNamespaceList.md b/kubernetes/docs/V1NetNamespaceList.md new file mode 100644 index 0000000000..0fa668cbe1 --- /dev/null +++ b/kubernetes/docs/V1NetNamespaceList.md @@ -0,0 +1,13 @@ +# V1NetNamespaceList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1NetNamespace]**](V1NetNamespace.md) | Items is the list of net namespaces | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1NodeAffinity.md b/kubernetes/docs/V1NodeAffinity.md deleted file mode 100644 index 71f35d0b82..0000000000 --- a/kubernetes/docs/V1NodeAffinity.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1NodeAffinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferred_during_scheduling_ignored_during_execution** | [**list[V1PreferredSchedulingTerm]**](V1PreferredSchedulingTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. | [optional] -**required_during_scheduling_ignored_during_execution** | [**V1NodeSelector**](V1NodeSelector.md) | If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1NodeList.md b/kubernetes/docs/V1NodeList.md index ce40105fa6..e959267c48 100644 --- a/kubernetes/docs/V1NodeList.md +++ b/kubernetes/docs/V1NodeList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Node]**](V1Node.md) | List of nodes | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeSelector.md b/kubernetes/docs/V1NodeSelector.md deleted file mode 100644 index e9af80870b..0000000000 --- a/kubernetes/docs/V1NodeSelector.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1NodeSelector - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**node_selector_terms** | [**list[V1NodeSelectorTerm]**](V1NodeSelectorTerm.md) | Required. A list of node selector terms. The terms are ORed. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1NodeSelectorRequirement.md b/kubernetes/docs/V1NodeSelectorRequirement.md deleted file mode 100644 index 0495e44897..0000000000 --- a/kubernetes/docs/V1NodeSelectorRequirement.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1NodeSelectorRequirement - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **str** | The label key that the selector applies to. | -**operator** | **str** | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. | -**values** | **list[str]** | An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1NodeSelectorTerm.md b/kubernetes/docs/V1NodeSelectorTerm.md deleted file mode 100644 index e030c3ac15..0000000000 --- a/kubernetes/docs/V1NodeSelectorTerm.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1NodeSelectorTerm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**match_expressions** | [**list[V1NodeSelectorRequirement]**](V1NodeSelectorRequirement.md) | Required. A list of node selector requirements. The requirements are ANDed. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1NodeSpec.md b/kubernetes/docs/V1NodeSpec.md index cceceef752..20445bd2ee 100644 --- a/kubernetes/docs/V1NodeSpec.md +++ b/kubernetes/docs/V1NodeSpec.md @@ -6,8 +6,7 @@ Name | Type | Description | Notes **external_id** | **str** | External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated. | [optional] **pod_cidr** | **str** | PodCIDR represents the pod IP range assigned to the node. | [optional] **provider_id** | **str** | ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> | [optional] -**taints** | [**list[V1Taint]**](V1Taint.md) | If specified, the node's taints. | [optional] -**unschedulable** | **bool** | Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration | [optional] +**unschedulable** | **bool** | Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration\" | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NonResourceAttributes.md b/kubernetes/docs/V1NonResourceAttributes.md deleted file mode 100644 index 95135d5790..0000000000 --- a/kubernetes/docs/V1NonResourceAttributes.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1NonResourceAttributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**path** | **str** | Path is the URL path of the request | [optional] -**verb** | **str** | Verb is the standard HTTP verb | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1OAuthAccessToken.md b/kubernetes/docs/V1OAuthAccessToken.md new file mode 100644 index 0000000000..73142da6bc --- /dev/null +++ b/kubernetes/docs/V1OAuthAccessToken.md @@ -0,0 +1,20 @@ +# V1OAuthAccessToken + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**authorize_token** | **str** | AuthorizeToken contains the token that authorized this token | [optional] +**kubernetes.client_name** | **str** | ClientName references the kubernetes.client that created this token. | [optional] +**expires_in** | **int** | ExpiresIn is the seconds from CreationTime before this token expires. | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**redirect_uri** | **str** | RedirectURI is the redirection associated with the token. | [optional] +**refresh_token** | **str** | RefreshToken is the value by which this token can be renewed. Can be blank. | [optional] +**scopes** | **list[str]** | Scopes is an array of the requested scopes. | [optional] +**user_name** | **str** | UserName is the user name associated with this token | [optional] +**user_uid** | **str** | UserUID is the unique UID associated with this token | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1OAuthAccessTokenList.md b/kubernetes/docs/V1OAuthAccessTokenList.md new file mode 100644 index 0000000000..141556ada4 --- /dev/null +++ b/kubernetes/docs/V1OAuthAccessTokenList.md @@ -0,0 +1,13 @@ +# V1OAuthAccessTokenList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1OAuthAccessToken]**](V1OAuthAccessToken.md) | Items is the list of OAuth access tokens | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1OAuthAuthorizeToken.md b/kubernetes/docs/V1OAuthAuthorizeToken.md new file mode 100644 index 0000000000..4ffd7df7c6 --- /dev/null +++ b/kubernetes/docs/V1OAuthAuthorizeToken.md @@ -0,0 +1,21 @@ +# V1OAuthAuthorizeToken + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kubernetes.client_name** | **str** | ClientName references the kubernetes.client that created this token. | [optional] +**code_challenge** | **str** | CodeChallenge is the optional code_challenge associated with this authorization code, as described in rfc7636 | [optional] +**code_challenge_method** | **str** | CodeChallengeMethod is the optional code_challenge_method associated with this authorization code, as described in rfc7636 | [optional] +**expires_in** | **int** | ExpiresIn is the seconds from CreationTime before this token expires. | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**redirect_uri** | **str** | RedirectURI is the redirection associated with the token. | [optional] +**scopes** | **list[str]** | Scopes is an array of the requested scopes. | [optional] +**state** | **str** | State data from request | [optional] +**user_name** | **str** | UserName is the user name associated with this token | [optional] +**user_uid** | **str** | UserUID is the unique UID associated with this token. UserUID and UserName must both match for this token to be valid. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1OAuthAuthorizeTokenList.md b/kubernetes/docs/V1OAuthAuthorizeTokenList.md new file mode 100644 index 0000000000..ef53883d0f --- /dev/null +++ b/kubernetes/docs/V1OAuthAuthorizeTokenList.md @@ -0,0 +1,13 @@ +# V1OAuthAuthorizeTokenList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1OAuthAuthorizeToken]**](V1OAuthAuthorizeToken.md) | Items is the list of OAuth authorization tokens | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1OAuthClient.md b/kubernetes/docs/V1OAuthClient.md new file mode 100644 index 0000000000..276483212b --- /dev/null +++ b/kubernetes/docs/V1OAuthClient.md @@ -0,0 +1,18 @@ +# V1OAuthClient + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additional_secrets** | **list[str]** | AdditionalSecrets holds other secrets that may be used to identify the kubernetes.client. This is useful for rotation and for service account token validation | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**grant_method** | **str** | GrantMethod determines how to handle grants for this kubernetes.client. If no method is provided, the cluster default grant handling method will be used. Valid grant handling methods are: - auto: always approves grant requests, useful for trusted kubernetes.clients - prompt: prompts the end user for approval of grant requests, useful for third-party kubernetes.clients - deny: always denies grant requests, useful for black-listed kubernetes.clients | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**redirect_ur_is** | **list[str]** | RedirectURIs is the valid redirection URIs associated with a kubernetes.client | [optional] +**respond_with_challenges** | **bool** | RespondWithChallenges indicates whether the kubernetes.client wants authentication needed responses made in the form of challenges instead of redirects | [optional] +**scope_restrictions** | [**list[V1ScopeRestriction]**](V1ScopeRestriction.md) | ScopeRestrictions describes which scopes this kubernetes.client can request. Each requested scope is checked against each restriction. If any restriction matches, then the scope is allowed. If no restriction matches, then the scope is denied. | [optional] +**secret** | **str** | Secret is the unique secret associated with a kubernetes.client | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1OAuthClientAuthorization.md b/kubernetes/docs/V1OAuthClientAuthorization.md new file mode 100644 index 0000000000..3a9df28efa --- /dev/null +++ b/kubernetes/docs/V1OAuthClientAuthorization.md @@ -0,0 +1,16 @@ +# V1OAuthClientAuthorization + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kubernetes.client_name** | **str** | ClientName references the kubernetes.client that created this authorization | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**scopes** | **list[str]** | Scopes is an array of the granted scopes. | [optional] +**user_name** | **str** | UserName is the user name that authorized this kubernetes.client | [optional] +**user_uid** | **str** | UserUID is the unique UID associated with this authorization. UserUID and UserName must both match for this authorization to be valid. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1OAuthClientAuthorizationList.md b/kubernetes/docs/V1OAuthClientAuthorizationList.md new file mode 100644 index 0000000000..4e86e2cd92 --- /dev/null +++ b/kubernetes/docs/V1OAuthClientAuthorizationList.md @@ -0,0 +1,13 @@ +# V1OAuthClientAuthorizationList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1OAuthClientAuthorization]**](V1OAuthClientAuthorization.md) | Items is the list of OAuth kubernetes.client authorizations | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1OAuthClientList.md b/kubernetes/docs/V1OAuthClientList.md new file mode 100644 index 0000000000..10562eae51 --- /dev/null +++ b/kubernetes/docs/V1OAuthClientList.md @@ -0,0 +1,13 @@ +# V1OAuthClientList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1OAuthClient]**](V1OAuthClient.md) | Items is the list of OAuth kubernetes.clients | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1OwnerReference.md b/kubernetes/docs/V1OwnerReference.md index 18aa401516..db9ba818c4 100644 --- a/kubernetes/docs/V1OwnerReference.md +++ b/kubernetes/docs/V1OwnerReference.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | API version of the referent. | -**block_owner_deletion** | **bool** | If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. | [optional] **controller** | **bool** | If true, this reference points to the managing controller. | [optional] **kind** | **str** | Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | **name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | diff --git a/kubernetes/docs/V1Parameter.md b/kubernetes/docs/V1Parameter.md new file mode 100644 index 0000000000..b111ffbd51 --- /dev/null +++ b/kubernetes/docs/V1Parameter.md @@ -0,0 +1,16 @@ +# V1Parameter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Description of a parameter. Optional. | [optional] +**display_name** | **str** | Optional: The name that will show in UI instead of parameter 'Name' | [optional] +**_from** | **str** | From is an input value for the generator. Optional. | [optional] +**generate** | **str** | generate specifies the generator to be used to generate random string from an input value specified by From field. The result string is stored into Value field. If empty, no generator is being used, leaving the result Value untouched. Optional. The only supported generator is \"expression\", which accepts a \"from\" value in the form of a simple regular expression containing the range expression \"[a-zA-Z0-9]\", and the length expression \"a{length}\". Examples: from | value ----------------------------- \"test[0-9]{1}x\" | \"test7x\" \"[0-1]{8}\" | \"01001100\" \"0x[A-F0-9]{4}\" | \"0xB3AF\" \"[a-zA-Z0-9]{8}\" | \"hW4yQU5i\" | [optional] +**name** | **str** | Name must be set and it can be referenced in Template Items using ${PARAMETER_NAME}. Required. | +**required** | **bool** | Optional: Indicates the parameter must have a value. Defaults to false. | [optional] +**value** | **str** | Value holds the Parameter data. If specified, the generator will be ignored. The value replaces all occurrences of the Parameter ${Name} expression during the Template to Config transformation. Optional. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PersistentVolumeClaimList.md b/kubernetes/docs/V1PersistentVolumeClaimList.md index 3d8bf90c6e..5365a34a33 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimList.md +++ b/kubernetes/docs/V1PersistentVolumeClaimList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1PersistentVolumeClaim]**](V1PersistentVolumeClaim.md) | A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PersistentVolumeClaimSpec.md b/kubernetes/docs/V1PersistentVolumeClaimSpec.md index 4a96ecb6bc..eae09b134f 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimSpec.md +++ b/kubernetes/docs/V1PersistentVolumeClaimSpec.md @@ -5,8 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] -**storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1 | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | A label query over volumes to consider for binding. | [optional] **volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PersistentVolumeList.md b/kubernetes/docs/V1PersistentVolumeList.md index 1e123b03c2..674f3be98a 100644 --- a/kubernetes/docs/V1PersistentVolumeList.md +++ b/kubernetes/docs/V1PersistentVolumeList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1PersistentVolume]**](V1PersistentVolume.md) | List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PersistentVolumeSpec.md b/kubernetes/docs/V1PersistentVolumeSpec.md index 1550bebd27..8801d55812 100644 --- a/kubernetes/docs/V1PersistentVolumeSpec.md +++ b/kubernetes/docs/V1PersistentVolumeSpec.md @@ -21,11 +21,8 @@ Name | Type | Description | Notes **nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#nfs | [optional] **persistent_volume_reclaim_policy** | **str** | What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#recycling-policy | [optional] **photon_persistent_disk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine | [optional] -**portworx_volume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | PortworxVolume represents a portworx volume attached and mounted on kubelets host machine | [optional] **quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | Quobyte represents a Quobyte mount on the host that shares a pod's lifetime | [optional] **rbd** | [**V1RBDVolumeSource**](V1RBDVolumeSource.md) | RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md | [optional] -**scale_io** | [**V1ScaleIOVolumeSource**](V1ScaleIOVolumeSource.md) | ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. | [optional] -**storage_class_name** | **str** | Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. | [optional] **vsphere_volume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PodAffinity.md b/kubernetes/docs/V1PodAffinity.md deleted file mode 100644 index a60e91ec43..0000000000 --- a/kubernetes/docs/V1PodAffinity.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1PodAffinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferred_during_scheduling_ignored_during_execution** | [**list[V1WeightedPodAffinityTerm]**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] -**required_during_scheduling_ignored_during_execution** | [**list[V1PodAffinityTerm]**](V1PodAffinityTerm.md) | NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1PodAffinityTerm.md b/kubernetes/docs/V1PodAffinityTerm.md deleted file mode 100644 index 0ed3bda497..0000000000 --- a/kubernetes/docs/V1PodAffinityTerm.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1PodAffinityTerm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label_selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over a set of resources, in this case pods. | [optional] -**namespaces** | **list[str]** | namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" | [optional] -**topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1PodAntiAffinity.md b/kubernetes/docs/V1PodAntiAffinity.md deleted file mode 100644 index 411476d283..0000000000 --- a/kubernetes/docs/V1PodAntiAffinity.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1PodAntiAffinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferred_during_scheduling_ignored_during_execution** | [**list[V1WeightedPodAffinityTerm]**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] -**required_during_scheduling_ignored_during_execution** | [**list[V1PodAffinityTerm]**](V1PodAffinityTerm.md) | NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1PodList.md b/kubernetes/docs/V1PodList.md index c647a61b4d..3a5b708ef0 100644 --- a/kubernetes/docs/V1PodList.md +++ b/kubernetes/docs/V1PodList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Pod]**](V1Pod.md) | List of pods. More info: http://kubernetes.io/docs/user-guide/pods | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PodSecurityPolicyReview.md b/kubernetes/docs/V1PodSecurityPolicyReview.md new file mode 100644 index 0000000000..134062261c --- /dev/null +++ b/kubernetes/docs/V1PodSecurityPolicyReview.md @@ -0,0 +1,13 @@ +# V1PodSecurityPolicyReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**spec** | [**V1PodSecurityPolicyReviewSpec**](V1PodSecurityPolicyReviewSpec.md) | spec is the PodSecurityPolicy to check. | +**status** | [**V1PodSecurityPolicyReviewStatus**](V1PodSecurityPolicyReviewStatus.md) | status represents the current information/status for the PodSecurityPolicyReview. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PodSecurityPolicyReviewSpec.md b/kubernetes/docs/V1PodSecurityPolicyReviewSpec.md new file mode 100644 index 0000000000..72d3ed5299 --- /dev/null +++ b/kubernetes/docs/V1PodSecurityPolicyReviewSpec.md @@ -0,0 +1,11 @@ +# V1PodSecurityPolicyReviewSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**service_account_names** | **list[str]** | serviceAccountNames is an optional set of ServiceAccounts to run the check with. If serviceAccountNames is empty, the template.spec.serviceAccountName is used, unless it's empty, in which case \"default\" is used instead. If serviceAccountNames is specified, template.spec.serviceAccountName is ignored. | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | template is the PodTemplateSpec to check. The template.spec.serviceAccountName field is used if serviceAccountNames is empty, unless the template.spec.serviceAccountName is empty, in which case \"default\" is used. If serviceAccountNames is specified, template.spec.serviceAccountName is ignored. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PodSecurityPolicyReviewStatus.md b/kubernetes/docs/V1PodSecurityPolicyReviewStatus.md new file mode 100644 index 0000000000..352a71a85e --- /dev/null +++ b/kubernetes/docs/V1PodSecurityPolicyReviewStatus.md @@ -0,0 +1,10 @@ +# V1PodSecurityPolicyReviewStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_service_accounts** | [**list[V1ServiceAccountPodSecurityPolicyReviewStatus]**](V1ServiceAccountPodSecurityPolicyReviewStatus.md) | allowedServiceAccounts returns the list of service accounts in *this* namespace that have the power to create the PodTemplateSpec. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PodSecurityPolicySelfSubjectReview.md b/kubernetes/docs/V1PodSecurityPolicySelfSubjectReview.md new file mode 100644 index 0000000000..736262fb81 --- /dev/null +++ b/kubernetes/docs/V1PodSecurityPolicySelfSubjectReview.md @@ -0,0 +1,13 @@ +# V1PodSecurityPolicySelfSubjectReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**spec** | [**V1PodSecurityPolicySelfSubjectReviewSpec**](V1PodSecurityPolicySelfSubjectReviewSpec.md) | spec defines specification the PodSecurityPolicySelfSubjectReview. | +**status** | [**V1PodSecurityPolicySubjectReviewStatus**](V1PodSecurityPolicySubjectReviewStatus.md) | status represents the current information/status for the PodSecurityPolicySelfSubjectReview. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PodSecurityPolicySelfSubjectReviewSpec.md b/kubernetes/docs/V1PodSecurityPolicySelfSubjectReviewSpec.md new file mode 100644 index 0000000000..e76e7e7849 --- /dev/null +++ b/kubernetes/docs/V1PodSecurityPolicySelfSubjectReviewSpec.md @@ -0,0 +1,10 @@ +# V1PodSecurityPolicySelfSubjectReviewSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | template is the PodTemplateSpec to check. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PodSecurityPolicySubjectReview.md b/kubernetes/docs/V1PodSecurityPolicySubjectReview.md new file mode 100644 index 0000000000..d8715eb5f5 --- /dev/null +++ b/kubernetes/docs/V1PodSecurityPolicySubjectReview.md @@ -0,0 +1,13 @@ +# V1PodSecurityPolicySubjectReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**spec** | [**V1PodSecurityPolicySubjectReviewSpec**](V1PodSecurityPolicySubjectReviewSpec.md) | spec defines specification for the PodSecurityPolicySubjectReview. | +**status** | [**V1PodSecurityPolicySubjectReviewStatus**](V1PodSecurityPolicySubjectReviewStatus.md) | status represents the current information/status for the PodSecurityPolicySubjectReview. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PodSecurityPolicySubjectReviewSpec.md b/kubernetes/docs/V1PodSecurityPolicySubjectReviewSpec.md new file mode 100644 index 0000000000..639389bb93 --- /dev/null +++ b/kubernetes/docs/V1PodSecurityPolicySubjectReviewSpec.md @@ -0,0 +1,12 @@ +# V1PodSecurityPolicySubjectReviewSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | **list[str]** | groups is the groups you're testing for. | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | template is the PodTemplateSpec to check. If template.spec.serviceAccountName is empty it will not be defaulted. If its non-empty, it will be checked. | +**user** | **str** | user is the user you're testing for. If you specify \"user\" but not \"group\", then is it interpreted as \"What if user were not a member of any groups. If user and groups are empty, then the check is performed using *only* the serviceAccountName in the template. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PodSecurityPolicySubjectReviewStatus.md b/kubernetes/docs/V1PodSecurityPolicySubjectReviewStatus.md new file mode 100644 index 0000000000..bb0278888d --- /dev/null +++ b/kubernetes/docs/V1PodSecurityPolicySubjectReviewStatus.md @@ -0,0 +1,12 @@ +# V1PodSecurityPolicySubjectReviewStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_by** | [**V1ObjectReference**](V1ObjectReference.md) | allowedBy is a reference to the rule that allows the PodTemplateSpec. A rule can be a SecurityContextConstraint or a PodSecurityPolicy A `nil`, indicates that it was denied. | [optional] +**reason** | **str** | A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | template is the PodTemplateSpec after the defaulting is applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index 9488b7a5af..1cd52d6299 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -4,26 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active_deadline_seconds** | **int** | Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. | [optional] -**affinity** | [**V1Affinity**](V1Affinity.md) | If specified, the pod's scheduling constraints | [optional] -**automount_service_account_token** | **bool** | AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. | [optional] **containers** | [**list[V1Container]**](V1Container.md) | List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers | -**dns_policy** | **str** | Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] +**dns_policy** | **str** | Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". | [optional] **host_ipc** | **bool** | Use the host's ipc namespace. Optional: Default to false. | [optional] **host_network** | **bool** | Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. | [optional] **host_pid** | **bool** | Use the host's pid namespace. Optional: Default to false. | [optional] **hostname** | **str** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. | [optional] **image_pull_secrets** | [**list[V1LocalObjectReference]**](V1LocalObjectReference.md) | ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod | [optional] -**init_containers** | [**list[V1Container]**](V1Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers | [optional] **node_name** | **str** | NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. | [optional] **node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://kubernetes.io/docs/user-guide/node-selection/README | [optional] **restart_policy** | **str** | Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy | [optional] -**scheduler_name** | **str** | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. | [optional] **security_context** | [**V1PodSecurityContext**](V1PodSecurityContext.md) | SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. | [optional] **service_account** | **str** | DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. | [optional] **service_account_name** | **str** | ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md | [optional] **subdomain** | **str** | If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the pod will not have a domainname at all. | [optional] **termination_grace_period_seconds** | **int** | Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. | [optional] -**tolerations** | [**list[V1Toleration]**](V1Toleration.md) | If specified, the pod's tolerations. | [optional] **volumes** | [**list[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index 9a4b90d2db..8ae375864f 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -6,11 +6,9 @@ Name | Type | Description | Notes **conditions** | [**list[V1PodCondition]**](V1PodCondition.md) | Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions | [optional] **container_statuses** | [**list[V1ContainerStatus]**](V1ContainerStatus.md) | The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses | [optional] **host_ip** | **str** | IP address of the host to which the pod is assigned. Empty if not yet scheduled. | [optional] -**init_container_statuses** | [**list[V1ContainerStatus]**](V1ContainerStatus.md) | The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses | [optional] **message** | **str** | A human readable message indicating details about why the pod is in this condition. | [optional] **phase** | **str** | Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase | [optional] **pod_ip** | **str** | IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. | [optional] -**qos_class** | **str** | The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md | [optional] **reason** | **str** | A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' | [optional] **start_time** | **datetime** | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. | [optional] diff --git a/kubernetes/docs/V1PodTemplateList.md b/kubernetes/docs/V1PodTemplateList.md index c26ec53c5c..1809758680 100644 --- a/kubernetes/docs/V1PodTemplateList.md +++ b/kubernetes/docs/V1PodTemplateList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1PodTemplate]**](V1PodTemplate.md) | List of pod templates | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Policy.md b/kubernetes/docs/V1Policy.md new file mode 100644 index 0000000000..6b8aa52500 --- /dev/null +++ b/kubernetes/docs/V1Policy.md @@ -0,0 +1,14 @@ +# V1Policy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**last_modified** | **datetime** | LastModified is the last time that any part of the Policy was created, updated, or deleted | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**roles** | [**list[V1NamedRole]**](V1NamedRole.md) | Roles holds all the Roles held by this Policy, mapped by Role.Name | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PolicyBinding.md b/kubernetes/docs/V1PolicyBinding.md new file mode 100644 index 0000000000..3f1c9c506e --- /dev/null +++ b/kubernetes/docs/V1PolicyBinding.md @@ -0,0 +1,15 @@ +# V1PolicyBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**last_modified** | **datetime** | LastModified is the last time that any part of the PolicyBinding was created, updated, or deleted | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**policy_ref** | [**V1ObjectReference**](V1ObjectReference.md) | PolicyRef is a reference to the Policy that contains all the Roles that this PolicyBinding's RoleBindings may reference | +**role_bindings** | [**list[V1NamedRoleBinding]**](V1NamedRoleBinding.md) | RoleBindings holds all the RoleBindings held by this PolicyBinding, mapped by RoleBinding.Name | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PolicyBindingList.md b/kubernetes/docs/V1PolicyBindingList.md new file mode 100644 index 0000000000..f51ca572df --- /dev/null +++ b/kubernetes/docs/V1PolicyBindingList.md @@ -0,0 +1,13 @@ +# V1PolicyBindingList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1PolicyBinding]**](V1PolicyBinding.md) | Items is a list of PolicyBindings | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PolicyList.md b/kubernetes/docs/V1PolicyList.md new file mode 100644 index 0000000000..a97aa4bf0a --- /dev/null +++ b/kubernetes/docs/V1PolicyList.md @@ -0,0 +1,13 @@ +# V1PolicyList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1Policy]**](V1Policy.md) | Items is a list of Policies | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PolicyRule.md b/kubernetes/docs/V1PolicyRule.md new file mode 100644 index 0000000000..94837cc837 --- /dev/null +++ b/kubernetes/docs/V1PolicyRule.md @@ -0,0 +1,15 @@ +# V1PolicyRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_groups** | **list[str]** | APIGroups is the name of the APIGroup that contains the resources. If this field is empty, then both kubernetes and origin API groups are assumed. That means that if an action is requested against one of the enumerated resources in either the kubernetes or the origin API group, the request will be allowed | +**attribute_restrictions** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error. | [optional] +**non_resource_ur_ls** | **list[str]** | NonResourceURLsSlice is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. | [optional] +**resource_names** | **list[str]** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] +**resources** | **list[str]** | Resources is a list of resources this rule applies to. ResourceAll represents all resources. | +**verbs** | **list[str]** | Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1PortworxVolumeSource.md b/kubernetes/docs/V1PortworxVolumeSource.md deleted file mode 100644 index fb86663b30..0000000000 --- a/kubernetes/docs/V1PortworxVolumeSource.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1PortworxVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fs_type** | **str** | FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] -**read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**volume_id** | **str** | VolumeID uniquely identifies a Portworx volume | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1PreferredSchedulingTerm.md b/kubernetes/docs/V1PreferredSchedulingTerm.md deleted file mode 100644 index 92f5b35984..0000000000 --- a/kubernetes/docs/V1PreferredSchedulingTerm.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1PreferredSchedulingTerm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preference** | [**V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | A node selector term, associated with the corresponding weight. | -**weight** | **int** | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1Project.md b/kubernetes/docs/V1Project.md new file mode 100644 index 0000000000..7cdd5aca70 --- /dev/null +++ b/kubernetes/docs/V1Project.md @@ -0,0 +1,14 @@ +# V1Project + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**spec** | [**V1ProjectSpec**](V1ProjectSpec.md) | Spec defines the behavior of the Namespace. | [optional] +**status** | [**V1ProjectStatus**](V1ProjectStatus.md) | Status describes the current status of a Namespace | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ProjectList.md b/kubernetes/docs/V1ProjectList.md new file mode 100644 index 0000000000..6ad7458570 --- /dev/null +++ b/kubernetes/docs/V1ProjectList.md @@ -0,0 +1,13 @@ +# V1ProjectList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1Project]**](V1Project.md) | Items is the list of projects | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ProjectRequest.md b/kubernetes/docs/V1ProjectRequest.md new file mode 100644 index 0000000000..ba3f93d4ed --- /dev/null +++ b/kubernetes/docs/V1ProjectRequest.md @@ -0,0 +1,14 @@ +# V1ProjectRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**description** | **str** | Description is the description to apply to a project | [optional] +**display_name** | **str** | DisplayName is the display name to apply to a project | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ProjectSpec.md b/kubernetes/docs/V1ProjectSpec.md new file mode 100644 index 0000000000..ee9632843b --- /dev/null +++ b/kubernetes/docs/V1ProjectSpec.md @@ -0,0 +1,10 @@ +# V1ProjectSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**finalizers** | **list[str]** | Finalizers is an opaque list of values that must be empty to permanently remove object from storage | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ProjectStatus.md b/kubernetes/docs/V1ProjectStatus.md new file mode 100644 index 0000000000..a3b6c8bd10 --- /dev/null +++ b/kubernetes/docs/V1ProjectStatus.md @@ -0,0 +1,10 @@ +# V1ProjectStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phase** | **str** | Phase is the current lifecycle phase of the project | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ProjectedVolumeSource.md b/kubernetes/docs/V1ProjectedVolumeSource.md deleted file mode 100644 index d1c708a93b..0000000000 --- a/kubernetes/docs/V1ProjectedVolumeSource.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1ProjectedVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**default_mode** | **int** | Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**sources** | [**list[V1VolumeProjection]**](V1VolumeProjection.md) | list of volume projections | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1RecreateDeploymentStrategyParams.md b/kubernetes/docs/V1RecreateDeploymentStrategyParams.md new file mode 100644 index 0000000000..050565f77d --- /dev/null +++ b/kubernetes/docs/V1RecreateDeploymentStrategyParams.md @@ -0,0 +1,13 @@ +# V1RecreateDeploymentStrategyParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mid** | [**V1LifecycleHook**](V1LifecycleHook.md) | Mid is a lifecycle hook which is executed while the deployment is scaled down to zero before the first new pod is created. All LifecycleHookFailurePolicy values are supported. | [optional] +**post** | [**V1LifecycleHook**](V1LifecycleHook.md) | Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. All LifecycleHookFailurePolicy values are supported. | [optional] +**pre** | [**V1LifecycleHook**](V1LifecycleHook.md) | Pre is a lifecycle hook which is executed before the strategy manipulates the deployment. All LifecycleHookFailurePolicy values are supported. | [optional] +**timeout_seconds** | **int** | TimeoutSeconds is the time to wait for updates before giving up. If the value is nil, a default will be used. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ReplicationControllerList.md b/kubernetes/docs/V1ReplicationControllerList.md index 5fc56fa62e..49f062e505 100644 --- a/kubernetes/docs/V1ReplicationControllerList.md +++ b/kubernetes/docs/V1ReplicationControllerList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ReplicationController]**](V1ReplicationController.md) | List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1RepositoryImportSpec.md b/kubernetes/docs/V1RepositoryImportSpec.md new file mode 100644 index 0000000000..c7df92433e --- /dev/null +++ b/kubernetes/docs/V1RepositoryImportSpec.md @@ -0,0 +1,12 @@ +# V1RepositoryImportSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_from** | [**V1ObjectReference**](V1ObjectReference.md) | From is the source for the image repository to import; only kind DockerImage and a name of a Docker image repository is allowed | +**import_policy** | [**V1TagImportPolicy**](V1TagImportPolicy.md) | ImportPolicy is the policy controlling how the image is imported | [optional] +**include_manifest** | **bool** | IncludeManifest determines if the manifest for each image is returned in the response | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RepositoryImportStatus.md b/kubernetes/docs/V1RepositoryImportStatus.md new file mode 100644 index 0000000000..0d88d54c2d --- /dev/null +++ b/kubernetes/docs/V1RepositoryImportStatus.md @@ -0,0 +1,12 @@ +# V1RepositoryImportStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additional_tags** | **list[str]** | AdditionalTags are tags that exist in the repository but were not imported because a maximum limit of automatic imports was applied. | [optional] +**images** | [**list[V1ImageImportStatus]**](V1ImageImportStatus.md) | Images is a list of images successfully retrieved by the import of the repository. | [optional] +**status** | [**UnversionedStatus**](UnversionedStatus.md) | Status reflects whether any failure occurred during import | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ResourceAccessReview.md b/kubernetes/docs/V1ResourceAccessReview.md new file mode 100644 index 0000000000..e7c2889150 --- /dev/null +++ b/kubernetes/docs/V1ResourceAccessReview.md @@ -0,0 +1,20 @@ +# V1ResourceAccessReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**content** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Content is the actual content of the request for create and update | [optional] +**is_non_resource_url** | **bool** | IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**namespace** | **str** | Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces | +**path** | **str** | Path is the path of a non resource URL | +**resource** | **str** | Resource is one of the existing resource types | +**resource_api_group** | **str** | Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined | +**resource_api_version** | **str** | Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined | +**resource_name** | **str** | ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\" | +**verb** | **str** | Verb is one of: get, list, watch, create, update, delete | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ResourceAttributes.md b/kubernetes/docs/V1ResourceAttributes.md deleted file mode 100644 index c6573c9a45..0000000000 --- a/kubernetes/docs/V1ResourceAttributes.md +++ /dev/null @@ -1,16 +0,0 @@ -# V1ResourceAttributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | **str** | Group is the API Group of the Resource. \"*\" means all. | [optional] -**name** | **str** | Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. | [optional] -**namespace** | **str** | Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview | [optional] -**resource** | **str** | Resource is one of the existing resource types. \"*\" means all. | [optional] -**subresource** | **str** | Subresource is one of the existing resource types. \"\" means none. | [optional] -**verb** | **str** | Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | [optional] -**version** | **str** | Version is the API Version of the Resource. \"*\" means all. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1ResourceQuotaList.md b/kubernetes/docs/V1ResourceQuotaList.md index e94847de5e..3684a77590 100644 --- a/kubernetes/docs/V1ResourceQuotaList.md +++ b/kubernetes/docs/V1ResourceQuotaList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ResourceQuota]**](V1ResourceQuota.md) | Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ResourceQuotaStatusByNamespace.md b/kubernetes/docs/V1ResourceQuotaStatusByNamespace.md new file mode 100644 index 0000000000..d97a40a13f --- /dev/null +++ b/kubernetes/docs/V1ResourceQuotaStatusByNamespace.md @@ -0,0 +1,11 @@ +# V1ResourceQuotaStatusByNamespace + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespace** | **str** | Namespace the project this status applies to | +**status** | [**V1ResourceQuotaStatus**](V1ResourceQuotaStatus.md) | Status indicates how many resources have been consumed by this project | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1Role.md b/kubernetes/docs/V1Role.md new file mode 100644 index 0000000000..2b0b562c5e --- /dev/null +++ b/kubernetes/docs/V1Role.md @@ -0,0 +1,13 @@ +# V1Role + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**rules** | [**list[V1PolicyRule]**](V1PolicyRule.md) | Rules holds all the PolicyRules for this Role | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RoleBinding.md b/kubernetes/docs/V1RoleBinding.md new file mode 100644 index 0000000000..715fdeca85 --- /dev/null +++ b/kubernetes/docs/V1RoleBinding.md @@ -0,0 +1,16 @@ +# V1RoleBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**group_names** | **list[str]** | GroupNames holds all the groups directly bound to the role. This field should only be specified when supporting legacy kubernetes.clients and servers. See Subjects for further details. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**role_ref** | [**V1ObjectReference**](V1ObjectReference.md) | RoleRef can only reference the current namespace and the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. Since Policy is a singleton, this is sufficient knowledge to locate a role. | +**subjects** | [**list[V1ObjectReference]**](V1ObjectReference.md) | Subjects hold object references to authorize with this rule. This field is ignored if UserNames or GroupNames are specified to support legacy kubernetes.clients and servers. Thus newer kubernetes.clients that do not need to support backwards compatibility should send only fully qualified Subjects and should omit the UserNames and GroupNames fields. Clients that need to support backwards compatibility can use this field to build the UserNames and GroupNames. | +**user_names** | **list[str]** | UserNames holds all the usernames directly bound to the role. This field should only be specified when supporting legacy kubernetes.clients and servers. See Subjects for further details. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RoleBindingList.md b/kubernetes/docs/V1RoleBindingList.md new file mode 100644 index 0000000000..e4ee11d164 --- /dev/null +++ b/kubernetes/docs/V1RoleBindingList.md @@ -0,0 +1,13 @@ +# V1RoleBindingList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1RoleBinding]**](V1RoleBinding.md) | Items is a list of RoleBindings | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RoleBindingRestriction.md b/kubernetes/docs/V1RoleBindingRestriction.md new file mode 100644 index 0000000000..1970dd4e64 --- /dev/null +++ b/kubernetes/docs/V1RoleBindingRestriction.md @@ -0,0 +1,13 @@ +# V1RoleBindingRestriction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | +**spec** | [**V1RoleBindingRestrictionSpec**](V1RoleBindingRestrictionSpec.md) | Spec defines the matcher. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RoleBindingRestrictionList.md b/kubernetes/docs/V1RoleBindingRestrictionList.md new file mode 100644 index 0000000000..bdadb5acb8 --- /dev/null +++ b/kubernetes/docs/V1RoleBindingRestrictionList.md @@ -0,0 +1,13 @@ +# V1RoleBindingRestrictionList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1RoleBindingRestriction]**](V1RoleBindingRestriction.md) | Items is a list of RoleBindingRestriction objects. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RoleBindingRestrictionSpec.md b/kubernetes/docs/V1RoleBindingRestrictionSpec.md new file mode 100644 index 0000000000..f305d8e196 --- /dev/null +++ b/kubernetes/docs/V1RoleBindingRestrictionSpec.md @@ -0,0 +1,12 @@ +# V1RoleBindingRestrictionSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**grouprestriction** | [**V1GroupRestriction**](V1GroupRestriction.md) | GroupRestriction matches against group subjects. | +**serviceaccountrestriction** | [**V1ServiceAccountRestriction**](V1ServiceAccountRestriction.md) | ServiceAccountRestriction matches against service-account subjects. | +**userrestriction** | [**V1UserRestriction**](V1UserRestriction.md) | UserRestriction matches against user subjects. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RoleList.md b/kubernetes/docs/V1RoleList.md new file mode 100644 index 0000000000..e525fd2cbc --- /dev/null +++ b/kubernetes/docs/V1RoleList.md @@ -0,0 +1,13 @@ +# V1RoleList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1Role]**](V1Role.md) | Items is a list of Roles | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RollingDeploymentStrategyParams.md b/kubernetes/docs/V1RollingDeploymentStrategyParams.md new file mode 100644 index 0000000000..ab491c41ca --- /dev/null +++ b/kubernetes/docs/V1RollingDeploymentStrategyParams.md @@ -0,0 +1,16 @@ +# V1RollingDeploymentStrategyParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interval_seconds** | **int** | IntervalSeconds is the time to wait between polling deployment status after update. If the value is nil, a default will be used. | [optional] +**max_surge** | **str** | MaxSurge is the maximum number of pods that can be scheduled above the original number of pods. Value can be an absolute number (ex: 5) or a percentage of total pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxUnavailable is 0. By default, 25% is used. Example: when this is set to 30%, the new RC can be scaled up by 30% immediately when the rolling update starts. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of original pods. | [optional] +**max_unavailable** | **str** | MaxUnavailable is the maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total pods at the start of update (ex: 10%). Absolute number is calculated from percentage by rounding down. This cannot be 0 if MaxSurge is 0. By default, 25% is used. Example: when this is set to 30%, the old RC can be scaled down by 30% immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that at least 70% of original number of pods are available at all times during the update. | [optional] +**post** | [**V1LifecycleHook**](V1LifecycleHook.md) | Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. All LifecycleHookFailurePolicy values are supported. | [optional] +**pre** | [**V1LifecycleHook**](V1LifecycleHook.md) | Pre is a lifecycle hook which is executed before the deployment process begins. All LifecycleHookFailurePolicy values are supported. | [optional] +**timeout_seconds** | **int** | TimeoutSeconds is the time to wait for updates before giving up. If the value is nil, a default will be used. | [optional] +**update_period_seconds** | **int** | UpdatePeriodSeconds is the time to wait between individual pod updates. If the value is nil, a default will be used. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1Route.md b/kubernetes/docs/V1Route.md new file mode 100644 index 0000000000..54a484ac5b --- /dev/null +++ b/kubernetes/docs/V1Route.md @@ -0,0 +1,14 @@ +# V1Route + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] +**spec** | [**V1RouteSpec**](V1RouteSpec.md) | spec is the desired state of the route | +**status** | [**V1RouteStatus**](V1RouteStatus.md) | status is the current state of the route | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RouteIngress.md b/kubernetes/docs/V1RouteIngress.md new file mode 100644 index 0000000000..d4ef2e805b --- /dev/null +++ b/kubernetes/docs/V1RouteIngress.md @@ -0,0 +1,14 @@ +# V1RouteIngress + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1RouteIngressCondition]**](V1RouteIngressCondition.md) | Conditions is the state of the route, may be empty. | [optional] +**host** | **str** | Host is the host string under which the route is exposed; this value is required | [optional] +**router_canonical_hostname** | **str** | CanonicalHostname is the external host name for the router that can be used as a CNAME for the host requested for this route. This value is optional and may not be set in all cases. | [optional] +**router_name** | **str** | Name is a name chosen by the router to identify itself; this value is required | [optional] +**wildcard_policy** | **str** | Wildcard policy is the wildcard policy that was allowed where this route is exposed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RouteIngressCondition.md b/kubernetes/docs/V1RouteIngressCondition.md new file mode 100644 index 0000000000..8f4e81d43b --- /dev/null +++ b/kubernetes/docs/V1RouteIngressCondition.md @@ -0,0 +1,14 @@ +# V1RouteIngressCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_transition_time** | **datetime** | RFC 3339 date and time when this condition last transitioned | [optional] +**message** | **str** | Human readable message indicating details about last transition. | [optional] +**reason** | **str** | (brief) reason for the condition's last transition, and is usually a machine and human readable constant | [optional] +**status** | **str** | Status is the status of the condition. Can be True, False, Unknown. | +**type** | **str** | Type is the type of the condition. Currently only Ready. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RouteList.md b/kubernetes/docs/V1RouteList.md new file mode 100644 index 0000000000..7642ec3731 --- /dev/null +++ b/kubernetes/docs/V1RouteList.md @@ -0,0 +1,13 @@ +# V1RouteList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1Route]**](V1Route.md) | items is a list of routes | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RoutePort.md b/kubernetes/docs/V1RoutePort.md new file mode 100644 index 0000000000..7175f16e0a --- /dev/null +++ b/kubernetes/docs/V1RoutePort.md @@ -0,0 +1,10 @@ +# V1RoutePort + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**target_port** | **str** | The target port on pods selected by the service this route points to. If this is a string, it will be looked up as a named port in the target endpoints port list. Required | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RouteSpec.md b/kubernetes/docs/V1RouteSpec.md new file mode 100644 index 0000000000..8574492464 --- /dev/null +++ b/kubernetes/docs/V1RouteSpec.md @@ -0,0 +1,16 @@ +# V1RouteSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alternate_backends** | [**list[V1RouteTargetReference]**](V1RouteTargetReference.md) | alternateBackends is an extension of the 'to' field. If more than one service needs to be pointed to, then use this field. Use the weight field in RouteTargetReference object to specify relative preference. If the weight field is zero, the backend is ignored. | [optional] +**host** | **str** | host is an alias/DNS that points to the service. Optional. If not specified a route name will typically be automatically chosen. Must follow DNS952 subdomain conventions. | +**path** | **str** | Path that the router watches for, to route traffic for to the service. Optional | [optional] +**port** | [**V1RoutePort**](V1RoutePort.md) | If specified, the port to be used by the router. Most routers will use all endpoints exposed by the service by default - set this value to instruct routers which port to use. | [optional] +**tls** | [**V1TLSConfig**](V1TLSConfig.md) | The tls field provides the ability to configure certificates and termination for the route. | [optional] +**to** | [**V1RouteTargetReference**](V1RouteTargetReference.md) | to is an object the route should use as the primary backend. Only the Service kind is allowed, and it will be defaulted to Service. If the weight field is set to zero, no traffic will be sent to this service. | +**wildcard_policy** | **str** | Wildcard policy if any for the route. Currently only 'Subdomain' or 'None' is allowed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RouteStatus.md b/kubernetes/docs/V1RouteStatus.md new file mode 100644 index 0000000000..0e69e976bc --- /dev/null +++ b/kubernetes/docs/V1RouteStatus.md @@ -0,0 +1,10 @@ +# V1RouteStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ingress** | [**list[V1RouteIngress]**](V1RouteIngress.md) | ingress describes the places where the route may be exposed. The list of ingress points may contain duplicate Host or RouterName values. Routes are considered live once they are `Ready` | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RouteTargetReference.md b/kubernetes/docs/V1RouteTargetReference.md new file mode 100644 index 0000000000..be42c68f66 --- /dev/null +++ b/kubernetes/docs/V1RouteTargetReference.md @@ -0,0 +1,12 @@ +# V1RouteTargetReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | The kind of target that the route is referring to. Currently, only 'Service' is allowed | +**name** | **str** | name of the service/target that is being referred to. e.g. name of the service | +**weight** | **int** | weight as an integer between 1 and 256 that specifies the target's relative weight against other target reference objects | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1RunAsUserStrategyOptions.md b/kubernetes/docs/V1RunAsUserStrategyOptions.md new file mode 100644 index 0000000000..7de55c6d5b --- /dev/null +++ b/kubernetes/docs/V1RunAsUserStrategyOptions.md @@ -0,0 +1,13 @@ +# V1RunAsUserStrategyOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Type is the strategy that will dictate what RunAsUser is used in the SecurityContext. | [optional] +**uid** | **int** | UID is the user id that containers must run as. Required for the MustRunAs strategy if not using namespace/service account allocated uids. | [optional] +**uid_range_max** | **int** | UIDRangeMax defines the max value for a strategy that allocates by range. | [optional] +**uid_range_min** | **int** | UIDRangeMin defines the min value for a strategy that allocates by range. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SELinuxContextStrategyOptions.md b/kubernetes/docs/V1SELinuxContextStrategyOptions.md new file mode 100644 index 0000000000..d8c227945c --- /dev/null +++ b/kubernetes/docs/V1SELinuxContextStrategyOptions.md @@ -0,0 +1,11 @@ +# V1SELinuxContextStrategyOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | seLinuxOptions required to run as; required for MustRunAs | [optional] +**type** | **str** | Type is the strategy that will dictate what SELinux context is used in the SecurityContext. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ScaleIOVolumeSource.md b/kubernetes/docs/V1ScaleIOVolumeSource.md deleted file mode 100644 index ebd3a0d19a..0000000000 --- a/kubernetes/docs/V1ScaleIOVolumeSource.md +++ /dev/null @@ -1,19 +0,0 @@ -# V1ScaleIOVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] -**gateway** | **str** | The host address of the ScaleIO API Gateway. | -**protection_domain** | **str** | The name of the Protection Domain for the configured storage (defaults to \"default\"). | [optional] -**read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. | -**ssl_enabled** | **bool** | Flag to enable/disable SSL communication with Gateway, default false | [optional] -**storage_mode** | **str** | Indicates whether the storage for a volume should be thick or thin (defaults to \"thin\"). | [optional] -**storage_pool** | **str** | The Storage Pool associated with the protection domain (defaults to \"default\"). | [optional] -**system** | **str** | The name of the storage system as configured in ScaleIO. | -**volume_name** | **str** | The name of a volume already created in the ScaleIO system that is associated with this volume source. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1ScopeRestriction.md b/kubernetes/docs/V1ScopeRestriction.md new file mode 100644 index 0000000000..6a0a8c6198 --- /dev/null +++ b/kubernetes/docs/V1ScopeRestriction.md @@ -0,0 +1,11 @@ +# V1ScopeRestriction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster_role** | [**V1ClusterRoleScopeRestriction**](V1ClusterRoleScopeRestriction.md) | ClusterRole describes a set of restrictions for cluster role scoping. | [optional] +**literals** | **list[str]** | ExactValues means the scope has to match a particular set of strings exactly | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SecretBuildSource.md b/kubernetes/docs/V1SecretBuildSource.md new file mode 100644 index 0000000000..6f51d707e7 --- /dev/null +++ b/kubernetes/docs/V1SecretBuildSource.md @@ -0,0 +1,11 @@ +# V1SecretBuildSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**destination_dir** | **str** | destinationDir is the directory where the files from the secret should be available for the build time. For the Source build strategy, these will be injected into a container where the assemble script runs. Later, when the script finishes, all files injected will be truncated to zero length. For the Docker build strategy, these will be copied into the build directory, where the Dockerfile is located, so users can ADD or COPY them during docker build. | [optional] +**secret** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | secret is a reference to an existing secret that you want to use in your build. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SecretEnvSource.md b/kubernetes/docs/V1SecretEnvSource.md deleted file mode 100644 index ccaefe3e71..0000000000 --- a/kubernetes/docs/V1SecretEnvSource.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1SecretEnvSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **bool** | Specify whether the Secret must be defined | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1SecretKeySelector.md b/kubernetes/docs/V1SecretKeySelector.md index 78a999528a..ef697d2149 100644 --- a/kubernetes/docs/V1SecretKeySelector.md +++ b/kubernetes/docs/V1SecretKeySelector.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **str** | The key of the secret to select from. Must be a valid secret key. | **name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **bool** | Specify whether the Secret or it's key must be defined | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1SecretList.md b/kubernetes/docs/V1SecretList.md index 92bc393732..6d5889fb20 100644 --- a/kubernetes/docs/V1SecretList.md +++ b/kubernetes/docs/V1SecretList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Secret]**](V1Secret.md) | Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1SecretProjection.md b/kubernetes/docs/V1SecretProjection.md deleted file mode 100644 index 2749efbd19..0000000000 --- a/kubernetes/docs/V1SecretProjection.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1SecretProjection - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **bool** | Specify whether the Secret or its key must be defined | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1SecretSpec.md b/kubernetes/docs/V1SecretSpec.md new file mode 100644 index 0000000000..fad6e2277b --- /dev/null +++ b/kubernetes/docs/V1SecretSpec.md @@ -0,0 +1,11 @@ +# V1SecretSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mount_path** | **str** | mountPath is the path at which to mount the secret | +**secret_source** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | secretSource is a reference to the secret | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SecretVolumeSource.md b/kubernetes/docs/V1SecretVolumeSource.md index 51f7880b84..e7bb6294be 100644 --- a/kubernetes/docs/V1SecretVolumeSource.md +++ b/kubernetes/docs/V1SecretVolumeSource.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**optional** | **bool** | Specify whether the Secret or it's keys must be defined | [optional] +**items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] **secret_name** | **str** | Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1SecurityContextConstraints.md b/kubernetes/docs/V1SecurityContextConstraints.md new file mode 100644 index 0000000000..b3c792a2cb --- /dev/null +++ b/kubernetes/docs/V1SecurityContextConstraints.md @@ -0,0 +1,31 @@ +# V1SecurityContextConstraints + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_host_dir_volume_plugin** | **bool** | AllowHostDirVolumePlugin determines if the policy allow containers to use the HostDir volume plugin | +**allow_host_ipc** | **bool** | AllowHostIPC determines if the policy allows host ipc in the containers. | +**allow_host_network** | **bool** | AllowHostNetwork determines if the policy allows the use of HostNetwork in the pod spec. | +**allow_host_pid** | **bool** | AllowHostPID determines if the policy allows host pid in the containers. | +**allow_host_ports** | **bool** | AllowHostPorts determines if the policy allows host ports in the containers. | +**allow_privileged_container** | **bool** | AllowPrivilegedContainer determines if a container can request to be run as privileged. | +**allowed_capabilities** | **list[str]** | AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field maybe added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities. | +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**default_add_capabilities** | **list[str]** | DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities. | +**fs_group** | [**V1FSGroupStrategyOptions**](V1FSGroupStrategyOptions.md) | FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. | [optional] +**groups** | **list[str]** | The groups that have permission to use this security context constraints | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**priority** | **int** | Priority influences the sort order of SCCs when evaluating which SCCs to try first for a given pod request based on access in the Users and Groups fields. The higher the int, the higher priority. If scores for multiple SCCs are equal they will be sorted by name. | +**read_only_root_filesystem** | **bool** | ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the SCC should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. | +**required_drop_capabilities** | **list[str]** | RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. | +**run_as_user** | [**V1RunAsUserStrategyOptions**](V1RunAsUserStrategyOptions.md) | RunAsUser is the strategy that will dictate what RunAsUser is used in the SecurityContext. | [optional] +**se_linux_context** | [**V1SELinuxContextStrategyOptions**](V1SELinuxContextStrategyOptions.md) | SELinuxContext is the strategy that will dictate what labels will be set in the SecurityContext. | [optional] +**seccomp_profiles** | **list[str]** | SeccompProfiles lists the allowed profiles that may be set for the pod or container's seccomp annotations. An unset (nil) or empty value means that no profiles may be specifid by the pod or container. The wildcard '*' may be used to allow all profiles. When used to generate a value for a pod the first non-wildcard profile will be used as the default. | [optional] +**supplemental_groups** | [**V1SupplementalGroupsStrategyOptions**](V1SupplementalGroupsStrategyOptions.md) | SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. | [optional] +**users** | **list[str]** | The users who have permissions to use this security context constraints | [optional] +**volumes** | **list[str]** | Volumes is a white list of allowed volume plugins. FSType corresponds directly with the field names of a VolumeSource (azureFile, configMap, emptyDir). To allow all volumes you may use '*'. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SecurityContextConstraintsList.md b/kubernetes/docs/V1SecurityContextConstraintsList.md new file mode 100644 index 0000000000..04424dbf7f --- /dev/null +++ b/kubernetes/docs/V1SecurityContextConstraintsList.md @@ -0,0 +1,13 @@ +# V1SecurityContextConstraintsList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1SecurityContextConstraints]**](V1SecurityContextConstraints.md) | List of security context constraints. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SelfSubjectAccessReview.md b/kubernetes/docs/V1SelfSubjectAccessReview.md deleted file mode 100644 index df22763596..0000000000 --- a/kubernetes/docs/V1SelfSubjectAccessReview.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1SelfSubjectAccessReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SelfSubjectAccessReviewSpec**](V1SelfSubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. user and groups must be empty | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md deleted file mode 100644 index 886bd7c110..0000000000 --- a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1SelfSubjectAccessReviewSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**non_resource_attributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resource_attributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1SelfSubjectRulesReview.md b/kubernetes/docs/V1SelfSubjectRulesReview.md new file mode 100644 index 0000000000..c74b203244 --- /dev/null +++ b/kubernetes/docs/V1SelfSubjectRulesReview.md @@ -0,0 +1,13 @@ +# V1SelfSubjectRulesReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**spec** | [**V1SelfSubjectRulesReviewSpec**](V1SelfSubjectRulesReviewSpec.md) | Spec adds information about how to conduct the check | +**status** | [**V1SubjectRulesReviewStatus**](V1SubjectRulesReviewStatus.md) | Status is completed by the server to tell which permissions you have | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md b/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md new file mode 100644 index 0000000000..adc6f21ffb --- /dev/null +++ b/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md @@ -0,0 +1,10 @@ +# V1SelfSubjectRulesReviewSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scopes** | **list[str]** | Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". Nil means \"use the scopes on this request\". | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ServerAddressByClientCIDR.md b/kubernetes/docs/V1ServerAddressByClientCIDR.md deleted file mode 100644 index 93c0a8c3df..0000000000 --- a/kubernetes/docs/V1ServerAddressByClientCIDR.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1ServerAddressByClientCIDR - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kubernetes.client_cidr** | **str** | The CIDR with which kubernetes.clients can match their IP to figure out the server address that they should use. | -**server_address** | **str** | Address of this server, suitable for a kubernetes.client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1ServiceAccount.md b/kubernetes/docs/V1ServiceAccount.md index 8756f7d9fc..7952a35148 100644 --- a/kubernetes/docs/V1ServiceAccount.md +++ b/kubernetes/docs/V1ServiceAccount.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**automount_service_account_token** | **bool** | AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. | [optional] **image_pull_secrets** | [**list[V1LocalObjectReference]**](V1LocalObjectReference.md) | ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://kubernetes.io/docs/user-guide/secrets#manually-specifying-an-imagepullsecret | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] diff --git a/kubernetes/docs/V1ServiceAccountList.md b/kubernetes/docs/V1ServiceAccountList.md index b1e78283b6..8e3f806cf0 100644 --- a/kubernetes/docs/V1ServiceAccountList.md +++ b/kubernetes/docs/V1ServiceAccountList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ServiceAccount]**](V1ServiceAccount.md) | List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ServiceAccountPodSecurityPolicyReviewStatus.md b/kubernetes/docs/V1ServiceAccountPodSecurityPolicyReviewStatus.md new file mode 100644 index 0000000000..6ec1d3e4a1 --- /dev/null +++ b/kubernetes/docs/V1ServiceAccountPodSecurityPolicyReviewStatus.md @@ -0,0 +1,13 @@ +# V1ServiceAccountPodSecurityPolicyReviewStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_by** | [**V1ObjectReference**](V1ObjectReference.md) | allowedBy is a reference to the rule that allows the PodTemplateSpec. A rule can be a SecurityContextConstraint or a PodSecurityPolicy A `nil`, indicates that it was denied. | [optional] +**name** | **str** | name contains the allowed and the denied ServiceAccount name | +**reason** | **str** | A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | template is the PodTemplateSpec after the defaulting is applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ServiceAccountReference.md b/kubernetes/docs/V1ServiceAccountReference.md new file mode 100644 index 0000000000..32933d1cbf --- /dev/null +++ b/kubernetes/docs/V1ServiceAccountReference.md @@ -0,0 +1,11 @@ +# V1ServiceAccountReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name is the name of the service account. | +**namespace** | **str** | Namespace is the namespace of the service account. Service accounts from inside the whitelisted namespaces are allowed to be bound to roles. If Namespace is empty, then the namespace of the RoleBindingRestriction in which the ServiceAccountReference is embedded is used. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ServiceAccountRestriction.md b/kubernetes/docs/V1ServiceAccountRestriction.md new file mode 100644 index 0000000000..25309208ea --- /dev/null +++ b/kubernetes/docs/V1ServiceAccountRestriction.md @@ -0,0 +1,11 @@ +# V1ServiceAccountRestriction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespaces** | **list[str]** | Namespaces specifies a list of literal namespace names. | +**serviceaccounts** | [**list[V1ServiceAccountReference]**](V1ServiceAccountReference.md) | ServiceAccounts specifies a list of literal service-account names. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1ServiceList.md b/kubernetes/docs/V1ServiceList.md index f937803db8..b34c9c30a2 100644 --- a/kubernetes/docs/V1ServiceList.md +++ b/kubernetes/docs/V1ServiceList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Service]**](V1Service.md) | List of services | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ServiceSpec.md b/kubernetes/docs/V1ServiceSpec.md index fd3584d634..042e757b93 100644 --- a/kubernetes/docs/V1ServiceSpec.md +++ b/kubernetes/docs/V1ServiceSpec.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **external_name** | **str** | externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName. | [optional] **load_balancer_ip** | **str** | Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. | [optional] **load_balancer_source_ranges** | **list[str]** | If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified kubernetes.client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: http://kubernetes.io/docs/user-guide/services-firewalls | [optional] -**ports** | [**list[V1ServicePort]**](V1ServicePort.md) | The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies | [optional] +**ports** | [**list[V1ServicePort]**](V1ServicePort.md) | The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies | **selector** | **dict(str, str)** | Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#overview | [optional] **session_affinity** | **str** | Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable kubernetes.client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies | [optional] **type** | **str** | type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: http://kubernetes.io/docs/user-guide/services#overview | [optional] diff --git a/kubernetes/docs/V1SignatureCondition.md b/kubernetes/docs/V1SignatureCondition.md new file mode 100644 index 0000000000..536dd9f3ef --- /dev/null +++ b/kubernetes/docs/V1SignatureCondition.md @@ -0,0 +1,15 @@ +# V1SignatureCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_probe_time** | **datetime** | Last time the condition was checked. | [optional] +**last_transition_time** | **datetime** | Last time the condition transit from one status to another. | [optional] +**message** | **str** | Human readable message indicating details about last transition. | [optional] +**reason** | **str** | (brief) reason for the condition's last transition. | [optional] +**status** | **str** | Status of the condition, one of True, False, Unknown. | +**type** | **str** | Type of signature condition, Complete or Failed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SignatureIssuer.md b/kubernetes/docs/V1SignatureIssuer.md new file mode 100644 index 0000000000..10e6b8e671 --- /dev/null +++ b/kubernetes/docs/V1SignatureIssuer.md @@ -0,0 +1,11 @@ +# V1SignatureIssuer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**common_name** | **str** | Common name (e.g. openshift-signing-service). | [optional] +**organization** | **str** | Organization name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SignatureSubject.md b/kubernetes/docs/V1SignatureSubject.md new file mode 100644 index 0000000000..26502a1564 --- /dev/null +++ b/kubernetes/docs/V1SignatureSubject.md @@ -0,0 +1,12 @@ +# V1SignatureSubject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**common_name** | **str** | Common name (e.g. openshift-signing-service). | [optional] +**organization** | **str** | Organization name. | [optional] +**public_key_id** | **str** | If present, it is a human readable key id of public key belonging to the subject used to verify image signature. It should contain at least 64 lowest bits of public key's fingerprint (e.g. 0x685ebe62bf278440). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SourceBuildStrategy.md b/kubernetes/docs/V1SourceBuildStrategy.md new file mode 100644 index 0000000000..7d3d23c796 --- /dev/null +++ b/kubernetes/docs/V1SourceBuildStrategy.md @@ -0,0 +1,17 @@ +# V1SourceBuildStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**env** | [**list[V1EnvVar]**](V1EnvVar.md) | env contains additional environment variables you want to pass into a builder container | [optional] +**force_pull** | **bool** | forcePull describes if the builder should pull the images from registry prior to building. | [optional] +**_from** | [**V1ObjectReference**](V1ObjectReference.md) | from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the docker image should be pulled | +**incremental** | **bool** | incremental flag forces the Source build to do incremental builds if true. | [optional] +**pull_secret** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the Docker images from the private Docker registries | [optional] +**runtime_artifacts** | [**list[V1ImageSourcePath]**](V1ImageSourcePath.md) | runtimeArtifacts specifies a list of source/destination pairs that will be copied from the builder to the runtime image. sourcePath can be a file or directory. destinationDir must be a directory. destinationDir can also be empty or equal to \".\", in this case it just refers to the root of WORKDIR. This field and the feature it enables are in tech preview. | [optional] +**runtime_image** | [**V1ObjectReference**](V1ObjectReference.md) | runtimeImage is an optional image that is used to run an application without unneeded dependencies installed. The building of the application is still done in the builder image but, post build, you can copy the needed artifacts in the runtime image for use. This field and the feature it enables are in tech preview. | [optional] +**scripts** | **str** | scripts is the location of Source scripts | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SourceControlUser.md b/kubernetes/docs/V1SourceControlUser.md new file mode 100644 index 0000000000..993d89bebd --- /dev/null +++ b/kubernetes/docs/V1SourceControlUser.md @@ -0,0 +1,11 @@ +# V1SourceControlUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **str** | email of the source control user | [optional] +**name** | **str** | name of the source control user | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SourceRevision.md b/kubernetes/docs/V1SourceRevision.md new file mode 100644 index 0000000000..3ad1d7bc37 --- /dev/null +++ b/kubernetes/docs/V1SourceRevision.md @@ -0,0 +1,11 @@ +# V1SourceRevision + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**git** | [**V1GitSourceRevision**](V1GitSourceRevision.md) | Git contains information about git-based build source | [optional] +**type** | **str** | type of the build source, may be one of 'Source', 'Dockerfile', 'Binary', or 'Images' | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1Status.md b/kubernetes/docs/V1Status.md deleted file mode 100644 index 7fdb35bfd3..0000000000 --- a/kubernetes/docs/V1Status.md +++ /dev/null @@ -1,17 +0,0 @@ -# V1Status - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**code** | **int** | Suggested HTTP return code for this status, 0 if not set. | [optional] -**details** | [**V1StatusDetails**](V1StatusDetails.md) | Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**message** | **str** | A human-readable description of the status of this operation. | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**reason** | **str** | A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. | [optional] -**status** | **str** | Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1StatusCause.md b/kubernetes/docs/V1StatusCause.md deleted file mode 100644 index 56cb6faf4f..0000000000 --- a/kubernetes/docs/V1StatusCause.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1StatusCause - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**field** | **str** | The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" | [optional] -**message** | **str** | A human-readable description of the cause of the error. This field may be presented as-is to a reader. | [optional] -**reason** | **str** | A machine-readable description of the cause of the error. If this value is empty there is no information available. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1StatusDetails.md b/kubernetes/docs/V1StatusDetails.md deleted file mode 100644 index cd931dbbcf..0000000000 --- a/kubernetes/docs/V1StatusDetails.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1StatusDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**causes** | [**list[V1StatusCause]**](V1StatusCause.md) | The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. | [optional] -**group** | **str** | The group attribute of the resource associated with the status StatusReason. | [optional] -**kind** | **str** | The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**name** | **str** | The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). | [optional] -**retry_after_seconds** | **int** | If specified, the time in seconds before the operation should be retried. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1StorageClass.md b/kubernetes/docs/V1StorageClass.md deleted file mode 100644 index dea78a10c1..0000000000 --- a/kubernetes/docs/V1StorageClass.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1StorageClass - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**parameters** | **dict(str, str)** | Parameters holds the parameters for the provisioner that should create volumes of this storage class. | [optional] -**provisioner** | **str** | Provisioner indicates the type of the provisioner. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1StorageClassList.md b/kubernetes/docs/V1StorageClassList.md deleted file mode 100644 index dd0df0e60a..0000000000 --- a/kubernetes/docs/V1StorageClassList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1StorageClassList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1StorageClass]**](V1StorageClass.md) | Items is the list of StorageClasses | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1SubjectAccessReview.md b/kubernetes/docs/V1SubjectAccessReview.md index 0e0c218e58..9e4a652c45 100644 --- a/kubernetes/docs/V1SubjectAccessReview.md +++ b/kubernetes/docs/V1SubjectAccessReview.md @@ -4,10 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**content** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Content is the actual content of the request for create and update | [optional] +**groups** | **list[str]** | GroupsSlice is optional. Groups is the list of groups to which the User belongs. | +**is_non_resource_url** | **bool** | IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy) | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**namespace** | **str** | Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces | +**path** | **str** | Path is the path of a non resource URL | +**resource** | **str** | Resource is one of the existing resource types | +**resource_api_group** | **str** | Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined | +**resource_api_version** | **str** | Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined | +**resource_name** | **str** | ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\" | +**scopes** | **list[str]** | Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". Nil for a self-SAR, means \"use the scopes on this request\". Nil for a regular SAR, means the same as empty. | +**user** | **str** | User is optional. If both User and Groups are empty, the current authenticated user is used. | +**verb** | **str** | Verb is one of: get, list, watch, create, update, delete | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1SubjectAccessReviewSpec.md b/kubernetes/docs/V1SubjectAccessReviewSpec.md deleted file mode 100644 index 6227219201..0000000000 --- a/kubernetes/docs/V1SubjectAccessReviewSpec.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1SubjectAccessReviewSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**extra** | **dict(str, list[str])** | Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] -**groups** | **list[str]** | Groups is the groups you're testing for. | [optional] -**non_resource_attributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resource_attributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] -**user** | **str** | User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1SubjectAccessReviewStatus.md b/kubernetes/docs/V1SubjectAccessReviewStatus.md deleted file mode 100644 index e07f01bca4..0000000000 --- a/kubernetes/docs/V1SubjectAccessReviewStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1SubjectAccessReviewStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed** | **bool** | Allowed is required. True if the action would be allowed, false otherwise. | -**evaluation_error** | **str** | EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. | [optional] -**reason** | **str** | Reason is optional. It indicates why a request was allowed or denied. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1SubjectRulesReview.md b/kubernetes/docs/V1SubjectRulesReview.md new file mode 100644 index 0000000000..de8fc3929c --- /dev/null +++ b/kubernetes/docs/V1SubjectRulesReview.md @@ -0,0 +1,13 @@ +# V1SubjectRulesReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**spec** | [**V1SubjectRulesReviewSpec**](V1SubjectRulesReviewSpec.md) | Spec adds information about how to conduct the check | +**status** | [**V1SubjectRulesReviewStatus**](V1SubjectRulesReviewStatus.md) | Status is completed by the server to tell which permissions you have | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SubjectRulesReviewSpec.md b/kubernetes/docs/V1SubjectRulesReviewSpec.md new file mode 100644 index 0000000000..24c5085f5a --- /dev/null +++ b/kubernetes/docs/V1SubjectRulesReviewSpec.md @@ -0,0 +1,12 @@ +# V1SubjectRulesReviewSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | **list[str]** | Groups is optional. Groups is the list of groups to which the User belongs. At least one of User and Groups must be specified. | +**scopes** | **list[str]** | Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". | +**user** | **str** | User is optional. At least one of User and Groups must be specified. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SubjectRulesReviewStatus.md b/kubernetes/docs/V1SubjectRulesReviewStatus.md new file mode 100644 index 0000000000..52c1836373 --- /dev/null +++ b/kubernetes/docs/V1SubjectRulesReviewStatus.md @@ -0,0 +1,11 @@ +# V1SubjectRulesReviewStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**evaluation_error** | **str** | EvaluationError can appear in combination with Rules. It means some error happened during evaluation that may have prevented additional rules from being populated. | [optional] +**rules** | [**list[V1PolicyRule]**](V1PolicyRule.md) | Rules is the list of rules (no particular sort) that are allowed for the subject | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1SupplementalGroupsStrategyOptions.md b/kubernetes/docs/V1SupplementalGroupsStrategyOptions.md new file mode 100644 index 0000000000..10e7ec4089 --- /dev/null +++ b/kubernetes/docs/V1SupplementalGroupsStrategyOptions.md @@ -0,0 +1,11 @@ +# V1SupplementalGroupsStrategyOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ranges** | [**list[V1IDRange]**](V1IDRange.md) | Ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. | [optional] +**type** | **str** | Type is the strategy that will dictate what supplemental groups is used in the SecurityContext. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1TLSConfig.md b/kubernetes/docs/V1TLSConfig.md new file mode 100644 index 0000000000..61e616aed2 --- /dev/null +++ b/kubernetes/docs/V1TLSConfig.md @@ -0,0 +1,15 @@ +# V1TLSConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ca_certificate** | **str** | caCertificate provides the cert authority certificate contents | [optional] +**certificate** | **str** | certificate provides certificate contents | [optional] +**destination_ca_certificate** | **str** | destinationCACertificate provides the contents of the ca certificate of the final destination. When using reencrypt termination this file should be provided in order to have routers use it for health checks on the secure connection | [optional] +**insecure_edge_termination_policy** | **str** | insecureEdgeTerminationPolicy indicates the desired behavior for insecure connections to a route. While each router may make its own decisions on which ports to expose, this is normally port 80. * Allow - traffic is sent to the server on the insecure port (default) * Disable - no traffic is allowed on the insecure port. * Redirect - kubernetes.clients are redirected to the secure port. | [optional] +**key** | **str** | key provides key file contents | [optional] +**termination** | **str** | termination indicates termination type. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1TagEvent.md b/kubernetes/docs/V1TagEvent.md new file mode 100644 index 0000000000..f95fe52060 --- /dev/null +++ b/kubernetes/docs/V1TagEvent.md @@ -0,0 +1,13 @@ +# V1TagEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **datetime** | Created holds the time the TagEvent was created | +**docker_image_reference** | **str** | DockerImageReference is the string that can be used to pull this image | +**generation** | **int** | Generation is the spec tag generation that resulted in this tag being updated | +**image** | **str** | Image is the image | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1TagEventCondition.md b/kubernetes/docs/V1TagEventCondition.md new file mode 100644 index 0000000000..5c9911a2e8 --- /dev/null +++ b/kubernetes/docs/V1TagEventCondition.md @@ -0,0 +1,15 @@ +# V1TagEventCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**generation** | **int** | Generation is the spec tag generation that this status corresponds to | +**last_transition_time** | **datetime** | LastTransitionTIme is the time the condition transitioned from one status to another. | [optional] +**message** | **str** | Message is a human readable description of the details about last transition, complementing reason. | [optional] +**reason** | **str** | Reason is a brief machine readable explanation for the condition's last transition. | [optional] +**status** | **str** | Status of the condition, one of True, False, Unknown. | +**type** | **str** | Type of tag event condition, currently only ImportSuccess | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1TagImageHook.md b/kubernetes/docs/V1TagImageHook.md new file mode 100644 index 0000000000..87fce2ce44 --- /dev/null +++ b/kubernetes/docs/V1TagImageHook.md @@ -0,0 +1,11 @@ +# V1TagImageHook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_name** | **str** | ContainerName is the name of a container in the deployment config whose image value will be used as the source of the tag. If there is only a single container this value will be defaulted to the name of that container. | +**to** | [**V1ObjectReference**](V1ObjectReference.md) | To is the target ImageStreamTag to set the container's image onto. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1TagImportPolicy.md b/kubernetes/docs/V1TagImportPolicy.md new file mode 100644 index 0000000000..df3126051d --- /dev/null +++ b/kubernetes/docs/V1TagImportPolicy.md @@ -0,0 +1,11 @@ +# V1TagImportPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**insecure** | **bool** | Insecure is true if the server may bypass certificate verification or connect directly over HTTP during image import. | [optional] +**scheduled** | **bool** | Scheduled indicates to the server that this tag should be periodically checked to ensure it is up to date, and imported | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1TagReference.md b/kubernetes/docs/V1TagReference.md new file mode 100644 index 0000000000..b1473062b6 --- /dev/null +++ b/kubernetes/docs/V1TagReference.md @@ -0,0 +1,16 @@ +# V1TagReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **dict(str, str)** | Annotations associated with images using this tag | +**_from** | [**V1ObjectReference**](V1ObjectReference.md) | From is a reference to an image stream tag or image stream this tag should track | [optional] +**generation** | **int** | Generation is the image stream generation that updated this tag - setting it to 0 is an indication that the generation must be updated. Legacy kubernetes.clients will send this as nil, which means the kubernetes.client doesn't know or care. | +**import_policy** | [**V1TagImportPolicy**](V1TagImportPolicy.md) | Import is information that controls how images may be imported by the server. | [optional] +**name** | **str** | Name of the tag | +**reference** | **bool** | Reference states if the tag will be imported. Default value is false, which means the tag will be imported. | [optional] +**reference_policy** | [**V1TagReferencePolicy**](V1TagReferencePolicy.md) | ReferencePolicy defines how other components should consume the image | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1TagReferencePolicy.md b/kubernetes/docs/V1TagReferencePolicy.md new file mode 100644 index 0000000000..d6bfa81a42 --- /dev/null +++ b/kubernetes/docs/V1TagReferencePolicy.md @@ -0,0 +1,10 @@ +# V1TagReferencePolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds. The default value is `Source`, indicating the original location of the image should be used (if imported). The user may also specify `Local`, indicating that the pull spec should point to the integrated Docker registry and leverage the registry's ability to proxy the pull to an upstream registry. `Local` allows the credentials used to pull this image to be managed from the image stream's namespace, so others on the platform can access a remote image but have no access to the remote secret. It also allows the image layers to be mirrored into the local registry which the images can still be pulled even if the upstream registry is unavailable. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1Taint.md b/kubernetes/docs/V1Taint.md deleted file mode 100644 index 3af648e942..0000000000 --- a/kubernetes/docs/V1Taint.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1Taint - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**effect** | **str** | Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. | -**key** | **str** | Required. The taint key to be applied to a node. | -**time_added** | **datetime** | TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. | [optional] -**value** | **str** | Required. The taint value corresponding to the taint key. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1Template.md b/kubernetes/docs/V1Template.md new file mode 100644 index 0000000000..5b76daf42c --- /dev/null +++ b/kubernetes/docs/V1Template.md @@ -0,0 +1,16 @@ +# V1Template + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**labels** | **dict(str, str)** | labels is a optional set of labels that are applied to every object during the Template to Config transformation. | [optional] +**message** | **str** | message is an optional instructional message that will be displayed when this template is instantiated. This field should inform the user how to utilize the newly created resources. Parameter substitution will be performed on the message before being displayed so that generated credentials and other parameters can be included in the output. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**objects** | [**list[RuntimeRawExtension]**](RuntimeRawExtension.md) | objects is an array of resources to include in this template. If a namespace value is hardcoded in the object, it will be removed during template instantiation, however if the namespace value is, or contains, a ${PARAMETER_REFERENCE}, the resolved value after parameter substitution will be respected and the object will be created in that namespace. | +**parameters** | [**list[V1Parameter]**](V1Parameter.md) | parameters is an optional array of Parameters used during the Template to Config transformation. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1TemplateList.md b/kubernetes/docs/V1TemplateList.md new file mode 100644 index 0000000000..c1c9d85dc8 --- /dev/null +++ b/kubernetes/docs/V1TemplateList.md @@ -0,0 +1,13 @@ +# V1TemplateList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1Template]**](V1Template.md) | Items is a list of templates | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1TokenReview.md b/kubernetes/docs/V1TokenReview.md deleted file mode 100644 index ab2280ede5..0000000000 --- a/kubernetes/docs/V1TokenReview.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1TokenReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1TokenReviewSpec**](V1TokenReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1TokenReviewStatus**](V1TokenReviewStatus.md) | Status is filled in by the server and indicates whether the request can be authenticated. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1TokenReviewSpec.md b/kubernetes/docs/V1TokenReviewSpec.md deleted file mode 100644 index 64d47196ee..0000000000 --- a/kubernetes/docs/V1TokenReviewSpec.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1TokenReviewSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **str** | Token is the opaque bearer token. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1TokenReviewStatus.md b/kubernetes/docs/V1TokenReviewStatus.md deleted file mode 100644 index 8626e50c09..0000000000 --- a/kubernetes/docs/V1TokenReviewStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1TokenReviewStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authenticated** | **bool** | Authenticated indicates that the token was associated with a known user. | [optional] -**error** | **str** | Error indicates that the token couldn't be checked | [optional] -**user** | [**V1UserInfo**](V1UserInfo.md) | User is the UserInfo associated with the provided token. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1Toleration.md b/kubernetes/docs/V1Toleration.md deleted file mode 100644 index 1650f88e05..0000000000 --- a/kubernetes/docs/V1Toleration.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1Toleration - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**effect** | **str** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. | [optional] -**key** | **str** | Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. | [optional] -**operator** | **str** | Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. | [optional] -**toleration_seconds** | **int** | TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. | [optional] -**value** | **str** | Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1User.md b/kubernetes/docs/V1User.md new file mode 100644 index 0000000000..98df7f946d --- /dev/null +++ b/kubernetes/docs/V1User.md @@ -0,0 +1,15 @@ +# V1User + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**full_name** | **str** | FullName is the full name of user | [optional] +**groups** | **list[str]** | Groups specifies group names this user is a member of. This field is deprecated and will be removed in a future release. Instead, create a Group object containing the name of this User. | +**identities** | **list[str]** | Identities are the identities associated with this user | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1UserIdentityMapping.md b/kubernetes/docs/V1UserIdentityMapping.md new file mode 100644 index 0000000000..f270b6c526 --- /dev/null +++ b/kubernetes/docs/V1UserIdentityMapping.md @@ -0,0 +1,14 @@ +# V1UserIdentityMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**identity** | [**V1ObjectReference**](V1ObjectReference.md) | Identity is a reference to an identity | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**user** | [**V1ObjectReference**](V1ObjectReference.md) | User is a reference to a user | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1UserInfo.md b/kubernetes/docs/V1UserInfo.md deleted file mode 100644 index cd430d9c33..0000000000 --- a/kubernetes/docs/V1UserInfo.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1UserInfo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**extra** | **dict(str, list[str])** | Any additional information provided by the authenticator. | [optional] -**groups** | **list[str]** | The names of groups this user is a part of. | [optional] -**uid** | **str** | A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. | [optional] -**username** | **str** | The name that uniquely identifies this user among all active users. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1UserList.md b/kubernetes/docs/V1UserList.md new file mode 100644 index 0000000000..2ba863bdf9 --- /dev/null +++ b/kubernetes/docs/V1UserList.md @@ -0,0 +1,13 @@ +# V1UserList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1User]**](V1User.md) | Items is the list of users | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1UserRestriction.md b/kubernetes/docs/V1UserRestriction.md new file mode 100644 index 0000000000..34e83a50f0 --- /dev/null +++ b/kubernetes/docs/V1UserRestriction.md @@ -0,0 +1,12 @@ +# V1UserRestriction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | **list[str]** | Groups specifies a list of literal group names. | +**labels** | [**list[UnversionedLabelSelector]**](UnversionedLabelSelector.md) | Selectors specifies a list of label selectors over user labels. | +**users** | **list[str]** | Users specifies a list of literal user names. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1Volume.md b/kubernetes/docs/V1Volume.md index 2f31b46559..5424a2055c 100644 --- a/kubernetes/docs/V1Volume.md +++ b/kubernetes/docs/V1Volume.md @@ -19,15 +19,13 @@ Name | Type | Description | Notes **glusterfs** | [**V1GlusterfsVolumeSource**](V1GlusterfsVolumeSource.md) | Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md | [optional] **host_path** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath | [optional] **iscsi** | [**V1ISCSIVolumeSource**](V1ISCSIVolumeSource.md) | ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md | [optional] +**metadata** | [**V1DeprecatedDownwardAPIVolumeSource**](V1DeprecatedDownwardAPIVolumeSource.md) | Metadata represents metadata about the pod that should populate this volume Deprecated: Use downwardAPI instead. | [optional] **name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names | **nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://kubernetes.io/docs/user-guide/volumes#nfs | [optional] **persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims | [optional] **photon_persistent_disk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine | [optional] -**portworx_volume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | PortworxVolume represents a portworx volume attached and mounted on kubelets host machine | [optional] -**projected** | [**V1ProjectedVolumeSource**](V1ProjectedVolumeSource.md) | Items for all in one resources secrets, configmaps, and downward API | [optional] **quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | Quobyte represents a Quobyte mount on the host that shares a pod's lifetime | [optional] **rbd** | [**V1RBDVolumeSource**](V1RBDVolumeSource.md) | RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md | [optional] -**scale_io** | [**V1ScaleIOVolumeSource**](V1ScaleIOVolumeSource.md) | ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. | [optional] **secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | Secret represents a secret that should populate this volume. More info: http://kubernetes.io/docs/user-guide/volumes#secrets | [optional] **vsphere_volume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine | [optional] diff --git a/kubernetes/docs/V1VolumeProjection.md b/kubernetes/docs/V1VolumeProjection.md deleted file mode 100644 index 10f724c53b..0000000000 --- a/kubernetes/docs/V1VolumeProjection.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1VolumeProjection - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**config_map** | [**V1ConfigMapProjection**](V1ConfigMapProjection.md) | information about the configMap data to project | [optional] -**downward_api** | [**V1DownwardAPIProjection**](V1DownwardAPIProjection.md) | information about the downwardAPI data to project | [optional] -**secret** | [**V1SecretProjection**](V1SecretProjection.md) | information about the secret data to project | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1WatchEvent.md b/kubernetes/docs/V1WatchEvent.md deleted file mode 100644 index 33f02c744b..0000000000 --- a/kubernetes/docs/V1WatchEvent.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1WatchEvent - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. | -**type** | **str** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1WebHookTrigger.md b/kubernetes/docs/V1WebHookTrigger.md new file mode 100644 index 0000000000..141c4bd32a --- /dev/null +++ b/kubernetes/docs/V1WebHookTrigger.md @@ -0,0 +1,11 @@ +# V1WebHookTrigger + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_env** | **bool** | allowEnv determines whether the webhook can set environment variables; can only be set to true for GenericWebHook. | [optional] +**secret** | **str** | secret used to validate requests. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1WeightedPodAffinityTerm.md b/kubernetes/docs/V1WeightedPodAffinityTerm.md deleted file mode 100644 index 9d92fe5533..0000000000 --- a/kubernetes/docs/V1WeightedPodAffinityTerm.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1WeightedPodAffinityTerm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pod_affinity_term** | [**V1PodAffinityTerm**](V1PodAffinityTerm.md) | Required. A pod affinity term, associated with the corresponding weight. | -**weight** | **int** | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1CertificateSigningRequest.md b/kubernetes/docs/V1alpha1CertificateSigningRequest.md new file mode 100644 index 0000000000..a80df7c9e5 --- /dev/null +++ b/kubernetes/docs/V1alpha1CertificateSigningRequest.md @@ -0,0 +1,14 @@ +# V1alpha1CertificateSigningRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1CertificateSigningRequestSpec**](V1alpha1CertificateSigningRequestSpec.md) | The certificate request itself and any additional information. | [optional] +**status** | [**V1alpha1CertificateSigningRequestStatus**](V1alpha1CertificateSigningRequestStatus.md) | Derived information about the request. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1alpha1CertificateSigningRequestCondition.md b/kubernetes/docs/V1alpha1CertificateSigningRequestCondition.md new file mode 100644 index 0000000000..ba8c1e06c0 --- /dev/null +++ b/kubernetes/docs/V1alpha1CertificateSigningRequestCondition.md @@ -0,0 +1,13 @@ +# V1alpha1CertificateSigningRequestCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_update_time** | **datetime** | timestamp for the last update to this condition | [optional] +**message** | **str** | human readable message with details about the request state | [optional] +**reason** | **str** | brief reason for the request state | [optional] +**type** | **str** | request approval state, currently Approved or Denied. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1alpha1CertificateSigningRequestList.md b/kubernetes/docs/V1alpha1CertificateSigningRequestList.md new file mode 100644 index 0000000000..b2366c235b --- /dev/null +++ b/kubernetes/docs/V1alpha1CertificateSigningRequestList.md @@ -0,0 +1,13 @@ +# V1alpha1CertificateSigningRequestList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1CertificateSigningRequest]**](V1alpha1CertificateSigningRequest.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1alpha1CertificateSigningRequestSpec.md b/kubernetes/docs/V1alpha1CertificateSigningRequestSpec.md new file mode 100644 index 0000000000..17e56a4e5a --- /dev/null +++ b/kubernetes/docs/V1alpha1CertificateSigningRequestSpec.md @@ -0,0 +1,13 @@ +# V1alpha1CertificateSigningRequestSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | **list[str]** | | [optional] +**request** | **str** | Base64-encoded PKCS#10 CSR data | +**uid** | **str** | | [optional] +**username** | **str** | Information about the requesting user (if relevant) See user.Info interface for details | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1alpha1CertificateSigningRequestStatus.md b/kubernetes/docs/V1alpha1CertificateSigningRequestStatus.md new file mode 100644 index 0000000000..4067df5759 --- /dev/null +++ b/kubernetes/docs/V1alpha1CertificateSigningRequestStatus.md @@ -0,0 +1,11 @@ +# V1alpha1CertificateSigningRequestStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**certificate** | **str** | If request was approved, the controller will place the issued certificate here. | [optional] +**conditions** | [**list[V1alpha1CertificateSigningRequestCondition]**](V1alpha1CertificateSigningRequestCondition.md) | Conditions applied to the request, such as approval or denial. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1alpha1ClusterRole.md b/kubernetes/docs/V1alpha1ClusterRole.md deleted file mode 100644 index 23921d5f08..0000000000 --- a/kubernetes/docs/V1alpha1ClusterRole.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1alpha1ClusterRole - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**rules** | [**list[V1alpha1PolicyRule]**](V1alpha1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1ClusterRoleBinding.md b/kubernetes/docs/V1alpha1ClusterRoleBinding.md deleted file mode 100644 index 1611b38a70..0000000000 --- a/kubernetes/docs/V1alpha1ClusterRoleBinding.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1alpha1ClusterRoleBinding - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**role_ref** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | -**subjects** | [**list[V1alpha1Subject]**](V1alpha1Subject.md) | Subjects holds references to the objects the role applies to. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1ClusterRoleBindingList.md b/kubernetes/docs/V1alpha1ClusterRoleBindingList.md deleted file mode 100644 index 67f86087ce..0000000000 --- a/kubernetes/docs/V1alpha1ClusterRoleBindingList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1alpha1ClusterRoleBindingList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1ClusterRoleBinding]**](V1alpha1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1ClusterRoleList.md b/kubernetes/docs/V1alpha1ClusterRoleList.md deleted file mode 100644 index 9f30ba899e..0000000000 --- a/kubernetes/docs/V1alpha1ClusterRoleList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1alpha1ClusterRoleList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1ClusterRole]**](V1alpha1ClusterRole.md) | Items is a list of ClusterRoles | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1PodPreset.md b/kubernetes/docs/V1alpha1PodPreset.md deleted file mode 100644 index c5edc03c52..0000000000 --- a/kubernetes/docs/V1alpha1PodPreset.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1alpha1PodPreset - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1PodPresetSpec**](V1alpha1PodPresetSpec.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1PodPresetList.md b/kubernetes/docs/V1alpha1PodPresetList.md deleted file mode 100644 index c074c272f4..0000000000 --- a/kubernetes/docs/V1alpha1PodPresetList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1alpha1PodPresetList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1PodPreset]**](V1alpha1PodPreset.md) | Items is a list of schema objects. | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1PodPresetSpec.md b/kubernetes/docs/V1alpha1PodPresetSpec.md deleted file mode 100644 index 3cb473b35b..0000000000 --- a/kubernetes/docs/V1alpha1PodPresetSpec.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1alpha1PodPresetSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**env** | [**list[V1EnvVar]**](V1EnvVar.md) | Env defines the collection of EnvVar to inject into containers. | [optional] -**env_from** | [**list[V1EnvFromSource]**](V1EnvFromSource.md) | EnvFrom defines the collection of EnvFromSource to inject into containers. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over a set of resources, in this case pods. Required. | [optional] -**volume_mounts** | [**list[V1VolumeMount]**](V1VolumeMount.md) | VolumeMounts defines the collection of VolumeMount to inject into containers. | [optional] -**volumes** | [**list[V1Volume]**](V1Volume.md) | Volumes defines the collection of Volume to inject into the pod. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1PolicyRule.md b/kubernetes/docs/V1alpha1PolicyRule.md deleted file mode 100644 index abd917604e..0000000000 --- a/kubernetes/docs/V1alpha1PolicyRule.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1alpha1PolicyRule - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_groups** | **list[str]** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. | [optional] -**non_resource_ur_ls** | **list[str]** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [optional] -**resource_names** | **list[str]** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] -**resources** | **list[str]** | Resources is a list of resources this rule applies to. ResourceAll represents all resources. | [optional] -**verbs** | **list[str]** | Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1Role.md b/kubernetes/docs/V1alpha1Role.md deleted file mode 100644 index f08d9f1fd1..0000000000 --- a/kubernetes/docs/V1alpha1Role.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1alpha1Role - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**rules** | [**list[V1alpha1PolicyRule]**](V1alpha1PolicyRule.md) | Rules holds all the PolicyRules for this Role | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1RoleBinding.md b/kubernetes/docs/V1alpha1RoleBinding.md deleted file mode 100644 index c2e438ce77..0000000000 --- a/kubernetes/docs/V1alpha1RoleBinding.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1alpha1RoleBinding - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**role_ref** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | -**subjects** | [**list[V1alpha1Subject]**](V1alpha1Subject.md) | Subjects holds references to the objects the role applies to. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1RoleBindingList.md b/kubernetes/docs/V1alpha1RoleBindingList.md deleted file mode 100644 index 9d80052c51..0000000000 --- a/kubernetes/docs/V1alpha1RoleBindingList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1alpha1RoleBindingList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1RoleBinding]**](V1alpha1RoleBinding.md) | Items is a list of RoleBindings | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1RoleList.md b/kubernetes/docs/V1alpha1RoleList.md deleted file mode 100644 index 2dc5d70c3f..0000000000 --- a/kubernetes/docs/V1alpha1RoleList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1alpha1RoleList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1Role]**](V1alpha1Role.md) | Items is a list of Roles | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1RoleRef.md b/kubernetes/docs/V1alpha1RoleRef.md deleted file mode 100644 index b72606f7b8..0000000000 --- a/kubernetes/docs/V1alpha1RoleRef.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1alpha1RoleRef - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_group** | **str** | APIGroup is the group for the resource being referenced | -**kind** | **str** | Kind is the type of resource being referenced | -**name** | **str** | Name is the name of resource being referenced | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1alpha1Subject.md b/kubernetes/docs/V1alpha1Subject.md deleted file mode 100644 index 7365b08849..0000000000 --- a/kubernetes/docs/V1alpha1Subject.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1alpha1Subject - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. | [optional] -**kind** | **str** | 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. | -**name** | **str** | Name of the object being referenced. | -**namespace** | **str** | 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. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1CPUTargetUtilization.md b/kubernetes/docs/V1beta1CPUTargetUtilization.md new file mode 100644 index 0000000000..d5fb486e8f --- /dev/null +++ b/kubernetes/docs/V1beta1CPUTargetUtilization.md @@ -0,0 +1,10 @@ +# V1beta1CPUTargetUtilization + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**target_percentage** | **int** | fraction of the requested CPU that should be utilized/used, e.g. 70 means that 70% of the requested CPU should be in use. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1CertificateSigningRequest.md b/kubernetes/docs/V1beta1CertificateSigningRequest.md deleted file mode 100644 index a803a7c713..0000000000 --- a/kubernetes/docs/V1beta1CertificateSigningRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1beta1CertificateSigningRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1CertificateSigningRequestSpec**](V1beta1CertificateSigningRequestSpec.md) | The certificate request itself and any additional information. | [optional] -**status** | [**V1beta1CertificateSigningRequestStatus**](V1beta1CertificateSigningRequestStatus.md) | Derived information about the request. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md b/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md deleted file mode 100644 index 6affb598ac..0000000000 --- a/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1beta1CertificateSigningRequestCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_update_time** | **datetime** | timestamp for the last update to this condition | [optional] -**message** | **str** | human readable message with details about the request state | [optional] -**reason** | **str** | brief reason for the request state | [optional] -**type** | **str** | request approval state, currently Approved or Denied. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestList.md b/kubernetes/docs/V1beta1CertificateSigningRequestList.md deleted file mode 100644 index 3a0d36f398..0000000000 --- a/kubernetes/docs/V1beta1CertificateSigningRequestList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1beta1CertificateSigningRequestList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1beta1CertificateSigningRequest]**](V1beta1CertificateSigningRequest.md) | | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md b/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md deleted file mode 100644 index dcb459f23b..0000000000 --- a/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md +++ /dev/null @@ -1,15 +0,0 @@ -# V1beta1CertificateSigningRequestSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**extra** | **dict(str, list[str])** | Extra information about the requesting user. See user.Info interface for details. | [optional] -**groups** | **list[str]** | Group information about the requesting user. See user.Info interface for details. | [optional] -**request** | **str** | Base64-encoded PKCS#10 CSR data | -**uid** | **str** | UID information about the requesting user. See user.Info interface for details. | [optional] -**usages** | **list[str]** | allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 | [optional] -**username** | **str** | Information about the requesting user. See user.Info interface for details. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestStatus.md b/kubernetes/docs/V1beta1CertificateSigningRequestStatus.md deleted file mode 100644 index 608f41afd1..0000000000 --- a/kubernetes/docs/V1beta1CertificateSigningRequestStatus.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1beta1CertificateSigningRequestStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**certificate** | **str** | If request was approved, the controller will place the issued certificate here. | [optional] -**conditions** | [**list[V1beta1CertificateSigningRequestCondition]**](V1beta1CertificateSigningRequestCondition.md) | Conditions applied to the request, such as approval or denial. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1ClusterRole.md b/kubernetes/docs/V1beta1ClusterRole.md deleted file mode 100644 index cb9b6bf063..0000000000 --- a/kubernetes/docs/V1beta1ClusterRole.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1beta1ClusterRole - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**rules** | [**list[V1beta1PolicyRule]**](V1beta1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1ClusterRoleBinding.md b/kubernetes/docs/V1beta1ClusterRoleBinding.md deleted file mode 100644 index b4ff9456c2..0000000000 --- a/kubernetes/docs/V1beta1ClusterRoleBinding.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1beta1ClusterRoleBinding - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**role_ref** | [**V1beta1RoleRef**](V1beta1RoleRef.md) | RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | -**subjects** | [**list[V1beta1Subject]**](V1beta1Subject.md) | Subjects holds references to the objects the role applies to. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1ClusterRoleBindingList.md b/kubernetes/docs/V1beta1ClusterRoleBindingList.md deleted file mode 100644 index 140ad17075..0000000000 --- a/kubernetes/docs/V1beta1ClusterRoleBindingList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1beta1ClusterRoleBindingList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1beta1ClusterRoleBinding]**](V1beta1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1ClusterRoleList.md b/kubernetes/docs/V1beta1ClusterRoleList.md deleted file mode 100644 index 4d87d7a83f..0000000000 --- a/kubernetes/docs/V1beta1ClusterRoleList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1beta1ClusterRoleList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1beta1ClusterRole]**](V1beta1ClusterRole.md) | Items is a list of ClusterRoles | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1DaemonSet.md b/kubernetes/docs/V1beta1DaemonSet.md index d7e9ee6832..b8726309e9 100644 --- a/kubernetes/docs/V1beta1DaemonSet.md +++ b/kubernetes/docs/V1beta1DaemonSet.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1DaemonSetSpec**](V1beta1DaemonSetSpec.md) | The desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta1DaemonSetStatus**](V1beta1DaemonSetStatus.md) | The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**spec** | [**V1beta1DaemonSetSpec**](V1beta1DaemonSetSpec.md) | Spec defines the desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1beta1DaemonSetStatus**](V1beta1DaemonSetStatus.md) | Status is the current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1DaemonSetList.md b/kubernetes/docs/V1beta1DaemonSetList.md index 5e3d359827..4d211ea31b 100644 --- a/kubernetes/docs/V1beta1DaemonSetList.md +++ b/kubernetes/docs/V1beta1DaemonSetList.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1beta1DaemonSet]**](V1beta1DaemonSet.md) | A list of daemon sets. | +**items** | [**list[V1beta1DaemonSet]**](V1beta1DaemonSet.md) | Items is a list of daemon sets. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1DaemonSetSpec.md b/kubernetes/docs/V1beta1DaemonSetSpec.md index 591237d6b4..bef9931535 100644 --- a/kubernetes/docs/V1beta1DaemonSetSpec.md +++ b/kubernetes/docs/V1beta1DaemonSetSpec.md @@ -3,11 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**min_ready_seconds** | **int** | The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template | -**template_generation** | **int** | A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. | [optional] -**update_strategy** | [**V1beta1DaemonSetUpdateStrategy**](V1beta1DaemonSetUpdateStrategy.md) | An update strategy to replace existing DaemonSet pods with new pods. | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selector is a label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1DaemonSetStatus.md b/kubernetes/docs/V1beta1DaemonSetStatus.md index 333c0a380c..2691652a38 100644 --- a/kubernetes/docs/V1beta1DaemonSetStatus.md +++ b/kubernetes/docs/V1beta1DaemonSetStatus.md @@ -3,14 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**current_number_scheduled** | **int** | The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md | -**desired_number_scheduled** | **int** | The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md | -**number_available** | **int** | The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) | [optional] -**number_misscheduled** | **int** | The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md | -**number_ready** | **int** | The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. | -**number_unavailable** | **int** | The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) | [optional] -**observed_generation** | **int** | The most recent generation observed by the daemon set controller. | [optional] -**updated_number_scheduled** | **int** | The total number of nodes that are running updated daemon pod | [optional] +**current_number_scheduled** | **int** | CurrentNumberScheduled is the number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md | +**desired_number_scheduled** | **int** | DesiredNumberScheduled is the total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md | +**number_misscheduled** | **int** | NumberMisscheduled is the number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md | +**number_ready** | **int** | NumberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md b/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md deleted file mode 100644 index de6a768309..0000000000 --- a/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1beta1DaemonSetUpdateStrategy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rolling_update** | [**V1beta1RollingUpdateDaemonSet**](V1beta1RollingUpdateDaemonSet.md) | Rolling update config params. Present only if type = \"RollingUpdate\". | [optional] -**type** | **str** | Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1Deployment.md b/kubernetes/docs/V1beta1Deployment.md new file mode 100644 index 0000000000..ec05e4c50a --- /dev/null +++ b/kubernetes/docs/V1beta1Deployment.md @@ -0,0 +1,14 @@ +# V1beta1Deployment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] +**spec** | [**V1beta1DeploymentSpec**](V1beta1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] +**status** | [**V1beta1DeploymentStatus**](V1beta1DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1DeploymentCondition.md b/kubernetes/docs/V1beta1DeploymentCondition.md new file mode 100644 index 0000000000..d861a239ba --- /dev/null +++ b/kubernetes/docs/V1beta1DeploymentCondition.md @@ -0,0 +1,15 @@ +# V1beta1DeploymentCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_transition_time** | **datetime** | Last time the condition transitioned from one status to another. | [optional] +**last_update_time** | **datetime** | The last time this condition was updated. | [optional] +**message** | **str** | A human readable message indicating details about the transition. | [optional] +**reason** | **str** | The reason for the condition's last transition. | [optional] +**status** | **str** | Status of the condition, one of True, False, Unknown. | +**type** | **str** | Type of deployment condition. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1DeploymentList.md b/kubernetes/docs/V1beta1DeploymentList.md new file mode 100644 index 0000000000..276a9f74e6 --- /dev/null +++ b/kubernetes/docs/V1beta1DeploymentList.md @@ -0,0 +1,13 @@ +# V1beta1DeploymentList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1beta1Deployment]**](V1beta1Deployment.md) | Items is the list of Deployments. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1DeploymentRollback.md b/kubernetes/docs/V1beta1DeploymentRollback.md new file mode 100644 index 0000000000..9b91983328 --- /dev/null +++ b/kubernetes/docs/V1beta1DeploymentRollback.md @@ -0,0 +1,14 @@ +# V1beta1DeploymentRollback + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**name** | **str** | Required: This must match the Name of a deployment. | +**rollback_to** | [**V1beta1RollbackConfig**](V1beta1RollbackConfig.md) | The config of this deployment rollback. | +**updated_annotations** | **dict(str, str)** | The annotations to be updated to a deployment | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1DeploymentSpec.md b/kubernetes/docs/V1beta1DeploymentSpec.md new file mode 100644 index 0000000000..0e4d4ebe86 --- /dev/null +++ b/kubernetes/docs/V1beta1DeploymentSpec.md @@ -0,0 +1,18 @@ +# V1beta1DeploymentSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] +**paused** | **bool** | Indicates that the deployment is paused and will not be processed by the deployment controller. | [optional] +**progress_deadline_seconds** | **int** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. | [optional] +**replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] +**revision_history_limit** | **int** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. | [optional] +**rollback_to** | [**V1beta1RollbackConfig**](V1beta1RollbackConfig.md) | The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | [optional] +**strategy** | [**V1beta1DeploymentStrategy**](V1beta1DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1DeploymentStatus.md b/kubernetes/docs/V1beta1DeploymentStatus.md new file mode 100644 index 0000000000..439b210cbe --- /dev/null +++ b/kubernetes/docs/V1beta1DeploymentStatus.md @@ -0,0 +1,15 @@ +# V1beta1DeploymentStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_replicas** | **int** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] +**conditions** | [**list[V1beta1DeploymentCondition]**](V1beta1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | [optional] +**observed_generation** | **int** | The generation observed by the deployment controller. | [optional] +**replicas** | **int** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). | [optional] +**unavailable_replicas** | **int** | Total number of unavailable pods targeted by this deployment. | [optional] +**updated_replicas** | **int** | Total number of non-terminated pods targeted by this deployment that have the desired template spec. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1DeploymentStrategy.md b/kubernetes/docs/V1beta1DeploymentStrategy.md new file mode 100644 index 0000000000..6f657d558a --- /dev/null +++ b/kubernetes/docs/V1beta1DeploymentStrategy.md @@ -0,0 +1,11 @@ +# V1beta1DeploymentStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rolling_update** | [**V1beta1RollingUpdateDeployment**](V1beta1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] +**type** | **str** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1HorizontalPodAutoscaler.md b/kubernetes/docs/V1beta1HorizontalPodAutoscaler.md new file mode 100644 index 0000000000..82a1c39ce7 --- /dev/null +++ b/kubernetes/docs/V1beta1HorizontalPodAutoscaler.md @@ -0,0 +1,14 @@ +# V1beta1HorizontalPodAutoscaler + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1beta1HorizontalPodAutoscalerSpec**](V1beta1HorizontalPodAutoscalerSpec.md) | behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] +**status** | [**V1beta1HorizontalPodAutoscalerStatus**](V1beta1HorizontalPodAutoscalerStatus.md) | current information about the autoscaler. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1HorizontalPodAutoscalerList.md b/kubernetes/docs/V1beta1HorizontalPodAutoscalerList.md new file mode 100644 index 0000000000..d6a486fc9a --- /dev/null +++ b/kubernetes/docs/V1beta1HorizontalPodAutoscalerList.md @@ -0,0 +1,13 @@ +# V1beta1HorizontalPodAutoscalerList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1beta1HorizontalPodAutoscaler]**](V1beta1HorizontalPodAutoscaler.md) | list of horizontal pod autoscaler objects. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V1beta1HorizontalPodAutoscalerSpec.md new file mode 100644 index 0000000000..80724f32c5 --- /dev/null +++ b/kubernetes/docs/V1beta1HorizontalPodAutoscalerSpec.md @@ -0,0 +1,13 @@ +# V1beta1HorizontalPodAutoscalerSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu_utilization** | [**V1beta1CPUTargetUtilization**](V1beta1CPUTargetUtilization.md) | target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified it defaults to the target CPU utilization at 80% of the requested resources. | [optional] +**max_replicas** | **int** | upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. | +**min_replicas** | **int** | lower limit for the number of pods that can be set by the autoscaler, default 1. | [optional] +**scale_ref** | [**V1beta1SubresourceReference**](V1beta1SubresourceReference.md) | reference to Scale subresource; horizontal pod autoscaler will learn the current resource consumption from its status, and will set the desired number of pods by modifying its spec. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V1beta1HorizontalPodAutoscalerStatus.md new file mode 100644 index 0000000000..082e7fa2e2 --- /dev/null +++ b/kubernetes/docs/V1beta1HorizontalPodAutoscalerStatus.md @@ -0,0 +1,14 @@ +# V1beta1HorizontalPodAutoscalerStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_cpu_utilization_percentage** | **int** | current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. | [optional] +**current_replicas** | **int** | current number of replicas of pods managed by this autoscaler. | +**desired_replicas** | **int** | desired number of replicas of pods managed by this autoscaler. | +**last_scale_time** | **datetime** | last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. | [optional] +**observed_generation** | **int** | most recent generation observed by this autoscaler. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1IngressList.md b/kubernetes/docs/V1beta1IngressList.md index c551280104..0a0a3eaf7b 100644 --- a/kubernetes/docs/V1beta1IngressList.md +++ b/kubernetes/docs/V1beta1IngressList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1Ingress]**](V1beta1Ingress.md) | Items is the list of Ingress. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1Job.md b/kubernetes/docs/V1beta1Job.md new file mode 100644 index 0000000000..79bfb6aeb9 --- /dev/null +++ b/kubernetes/docs/V1beta1Job.md @@ -0,0 +1,14 @@ +# V1beta1Job + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1beta1JobSpec**](V1beta1JobSpec.md) | Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V1beta1JobStatus**](V1beta1JobStatus.md) | Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1JobCondition.md b/kubernetes/docs/V1beta1JobCondition.md new file mode 100644 index 0000000000..b00effd0f3 --- /dev/null +++ b/kubernetes/docs/V1beta1JobCondition.md @@ -0,0 +1,15 @@ +# V1beta1JobCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_probe_time** | **datetime** | Last time the condition was checked. | [optional] +**last_transition_time** | **datetime** | Last time the condition transit from one status to another. | [optional] +**message** | **str** | Human readable message indicating details about last transition. | [optional] +**reason** | **str** | (brief) reason for the condition's last transition. | [optional] +**status** | **str** | Status of the condition, one of True, False, Unknown. | +**type** | **str** | Type of job condition, Complete or Failed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1JobList.md b/kubernetes/docs/V1beta1JobList.md new file mode 100644 index 0000000000..73b7207e49 --- /dev/null +++ b/kubernetes/docs/V1beta1JobList.md @@ -0,0 +1,13 @@ +# V1beta1JobList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1beta1Job]**](V1beta1Job.md) | Items is the list of Job. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1JobSpec.md b/kubernetes/docs/V1beta1JobSpec.md new file mode 100644 index 0000000000..23f2d2b9f2 --- /dev/null +++ b/kubernetes/docs/V1beta1JobSpec.md @@ -0,0 +1,15 @@ +# V1beta1JobSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_deadline_seconds** | **int** | Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer | [optional] +**auto_selector** | **bool** | AutoSelector controls generation of pod labels and pod selectors. It was not present in the original extensions/v1beta1 Job definition, but exists to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite meaning as, ManualSelector. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md | [optional] +**completions** | **int** | Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] +**parallelism** | **int** | Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1JobStatus.md b/kubernetes/docs/V1beta1JobStatus.md new file mode 100644 index 0000000000..853842ac9e --- /dev/null +++ b/kubernetes/docs/V1beta1JobStatus.md @@ -0,0 +1,15 @@ +# V1beta1JobStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **int** | Active is the number of actively running pods. | [optional] +**completion_time** | **datetime** | CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] +**conditions** | [**list[V1beta1JobCondition]**](V1beta1JobCondition.md) | Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] +**failed** | **int** | Failed is the number of pods which reached Phase Failed. | [optional] +**start_time** | **datetime** | StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] +**succeeded** | **int** | Succeeded is the number of pods which reached Phase Succeeded. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1LocalSubjectAccessReview.md b/kubernetes/docs/V1beta1LocalSubjectAccessReview.md deleted file mode 100644 index 4f624c23eb..0000000000 --- a/kubernetes/docs/V1beta1LocalSubjectAccessReview.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1beta1LocalSubjectAccessReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. | -**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1NetworkPolicyList.md b/kubernetes/docs/V1beta1NetworkPolicyList.md index 0fa9dd0fab..b2902d94ae 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyList.md +++ b/kubernetes/docs/V1beta1NetworkPolicyList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1NetworkPolicy]**](V1beta1NetworkPolicy.md) | Items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1NetworkPolicyPeer.md b/kubernetes/docs/V1beta1NetworkPolicyPeer.md index c3229c1b29..7bd9e4718e 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyPeer.md +++ b/kubernetes/docs/V1beta1NetworkPolicyPeer.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**namespace_selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If omitted, this selector selects no namespaces. If present but empty, this selector selects all namespaces. | [optional] -**pod_selector** | [**V1LabelSelector**](V1LabelSelector.md) | This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If not provided, this selector selects no pods. If present but empty, this selector selects all pods in this namespace. | [optional] +**namespace_selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If omitted, this selector selects no namespaces. If present but empty, this selector selects all namespaces. | [optional] +**pod_selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If not provided, this selector selects no pods. If present but empty, this selector selects all pods in this namespace. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1NetworkPolicySpec.md b/kubernetes/docs/V1beta1NetworkPolicySpec.md index e93b40538f..7b92764a07 100644 --- a/kubernetes/docs/V1beta1NetworkPolicySpec.md +++ b/kubernetes/docs/V1beta1NetworkPolicySpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ingress** | [**list[V1beta1NetworkPolicyIngressRule]**](V1beta1NetworkPolicyIngressRule.md) | List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if namespace.networkPolicy.ingress.isolation is undefined and cluster policy allows it, OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not affect ingress isolation. If this field is present and contains at least one rule, this policy allows any traffic which matches at least one of the ingress rules in this list. | [optional] -**pod_selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. | +**pod_selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1NonResourceAttributes.md b/kubernetes/docs/V1beta1NonResourceAttributes.md deleted file mode 100644 index 3131ba5320..0000000000 --- a/kubernetes/docs/V1beta1NonResourceAttributes.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1beta1NonResourceAttributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**path** | **str** | Path is the URL path of the request | [optional] -**verb** | **str** | Verb is the standard HTTP verb | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetList.md b/kubernetes/docs/V1beta1PodDisruptionBudgetList.md index a0b6c3203a..5992128147 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetList.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1PodDisruptionBudget]**](V1beta1PodDisruptionBudget.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md index ed5e2da18e..712040d61d 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_available** | **str** | An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label query over pods whose evictions are managed by the disruption budget. | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Label query over pods whose evictions are managed by the disruption budget. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodSecurityPolicyList.md b/kubernetes/docs/V1beta1PodSecurityPolicyList.md index da762d937d..a12dd07fb0 100644 --- a/kubernetes/docs/V1beta1PodSecurityPolicyList.md +++ b/kubernetes/docs/V1beta1PodSecurityPolicyList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1PodSecurityPolicy]**](V1beta1PodSecurityPolicy.md) | Items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PolicyRule.md b/kubernetes/docs/V1beta1PolicyRule.md deleted file mode 100644 index 6409966468..0000000000 --- a/kubernetes/docs/V1beta1PolicyRule.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1beta1PolicyRule - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_groups** | **list[str]** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. | [optional] -**non_resource_ur_ls** | **list[str]** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [optional] -**resource_names** | **list[str]** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] -**resources** | **list[str]** | Resources is a list of resources this rule applies to. ResourceAll represents all resources. | [optional] -**verbs** | **list[str]** | Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1ReplicaSetList.md b/kubernetes/docs/V1beta1ReplicaSetList.md index dc3b031cc4..c02c862ab8 100644 --- a/kubernetes/docs/V1beta1ReplicaSetList.md +++ b/kubernetes/docs/V1beta1ReplicaSetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1ReplicaSet]**](V1beta1ReplicaSet.md) | List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ReplicaSetSpec.md b/kubernetes/docs/V1beta1ReplicaSetSpec.md index cf7cf9d9e8..111f85b160 100644 --- a/kubernetes/docs/V1beta1ReplicaSetSpec.md +++ b/kubernetes/docs/V1beta1ReplicaSetSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] **replicas** | **int** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] **template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ResourceAttributes.md b/kubernetes/docs/V1beta1ResourceAttributes.md deleted file mode 100644 index 196bd99082..0000000000 --- a/kubernetes/docs/V1beta1ResourceAttributes.md +++ /dev/null @@ -1,16 +0,0 @@ -# V1beta1ResourceAttributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | **str** | Group is the API Group of the Resource. \"*\" means all. | [optional] -**name** | **str** | Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. | [optional] -**namespace** | **str** | Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview | [optional] -**resource** | **str** | Resource is one of the existing resource types. \"*\" means all. | [optional] -**subresource** | **str** | Subresource is one of the existing resource types. \"\" means none. | [optional] -**verb** | **str** | Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | [optional] -**version** | **str** | Version is the API Version of the Resource. \"*\" means all. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1Role.md b/kubernetes/docs/V1beta1Role.md deleted file mode 100644 index 5f9dc46eae..0000000000 --- a/kubernetes/docs/V1beta1Role.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1beta1Role - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**rules** | [**list[V1beta1PolicyRule]**](V1beta1PolicyRule.md) | Rules holds all the PolicyRules for this Role | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1RoleBinding.md b/kubernetes/docs/V1beta1RoleBinding.md deleted file mode 100644 index d48f260008..0000000000 --- a/kubernetes/docs/V1beta1RoleBinding.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1beta1RoleBinding - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**role_ref** | [**V1beta1RoleRef**](V1beta1RoleRef.md) | RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | -**subjects** | [**list[V1beta1Subject]**](V1beta1Subject.md) | Subjects holds references to the objects the role applies to. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1RoleBindingList.md b/kubernetes/docs/V1beta1RoleBindingList.md deleted file mode 100644 index 95b4673fbb..0000000000 --- a/kubernetes/docs/V1beta1RoleBindingList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1beta1RoleBindingList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1beta1RoleBinding]**](V1beta1RoleBinding.md) | Items is a list of RoleBindings | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1RoleList.md b/kubernetes/docs/V1beta1RoleList.md deleted file mode 100644 index cc131e9d32..0000000000 --- a/kubernetes/docs/V1beta1RoleList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1beta1RoleList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1beta1Role]**](V1beta1Role.md) | Items is a list of Roles | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1RoleRef.md b/kubernetes/docs/V1beta1RoleRef.md deleted file mode 100644 index 65220ffb6a..0000000000 --- a/kubernetes/docs/V1beta1RoleRef.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1beta1RoleRef - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_group** | **str** | APIGroup is the group for the resource being referenced | -**kind** | **str** | Kind is the type of resource being referenced | -**name** | **str** | Name is the name of resource being referenced | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1RollbackConfig.md b/kubernetes/docs/V1beta1RollbackConfig.md new file mode 100644 index 0000000000..28e5a8ff4e --- /dev/null +++ b/kubernetes/docs/V1beta1RollbackConfig.md @@ -0,0 +1,10 @@ +# V1beta1RollbackConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**revision** | **int** | The revision to rollback to. If set to 0, rollbck to the last revision. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md b/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md deleted file mode 100644 index 6b37036284..0000000000 --- a/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1beta1RollingUpdateDaemonSet - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_unavailable** | **str** | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1RollingUpdateDeployment.md b/kubernetes/docs/V1beta1RollingUpdateDeployment.md new file mode 100644 index 0000000000..970b790626 --- /dev/null +++ b/kubernetes/docs/V1beta1RollingUpdateDeployment.md @@ -0,0 +1,11 @@ +# V1beta1RollingUpdateDeployment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_surge** | **str** | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. | [optional] +**max_unavailable** | **str** | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1Scale.md b/kubernetes/docs/V1beta1Scale.md new file mode 100644 index 0000000000..29bff5306d --- /dev/null +++ b/kubernetes/docs/V1beta1Scale.md @@ -0,0 +1,14 @@ +# V1beta1Scale + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. | [optional] +**spec** | [**V1beta1ScaleSpec**](V1beta1ScaleSpec.md) | defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] +**status** | [**V1beta1ScaleStatus**](V1beta1ScaleStatus.md) | current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1ScaleSpec.md b/kubernetes/docs/V1beta1ScaleSpec.md new file mode 100644 index 0000000000..7d78e71f32 --- /dev/null +++ b/kubernetes/docs/V1beta1ScaleSpec.md @@ -0,0 +1,10 @@ +# V1beta1ScaleSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**replicas** | **int** | desired number of instances for the scaled object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1ScaleStatus.md b/kubernetes/docs/V1beta1ScaleStatus.md new file mode 100644 index 0000000000..652d390cf9 --- /dev/null +++ b/kubernetes/docs/V1beta1ScaleStatus.md @@ -0,0 +1,12 @@ +# V1beta1ScaleStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**replicas** | **int** | actual number of observed instances of the scaled object. | +**selector** | **dict(str, str)** | label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**target_selector** | **str** | label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the kubernetes.clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1SelfSubjectAccessReview.md b/kubernetes/docs/V1beta1SelfSubjectAccessReview.md deleted file mode 100644 index 56dff1055d..0000000000 --- a/kubernetes/docs/V1beta1SelfSubjectAccessReview.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1beta1SelfSubjectAccessReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SelfSubjectAccessReviewSpec**](V1beta1SelfSubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. user and groups must be empty | -**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md deleted file mode 100644 index 5d440252c7..0000000000 --- a/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1beta1SelfSubjectAccessReviewSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**non_resource_attributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resource_attributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1StatefulSetList.md b/kubernetes/docs/V1beta1StatefulSetList.md index 9fc1eb4563..c6ddafaf24 100644 --- a/kubernetes/docs/V1beta1StatefulSetList.md +++ b/kubernetes/docs/V1beta1StatefulSetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1StatefulSet]**](V1beta1StatefulSet.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1StatefulSetSpec.md b/kubernetes/docs/V1beta1StatefulSetSpec.md index fa496eaf6a..c6cab39441 100644 --- a/kubernetes/docs/V1beta1StatefulSetSpec.md +++ b/kubernetes/docs/V1beta1StatefulSetSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **replicas** | **int** | Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] **service_name** | **str** | ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. | **template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. | **volume_claim_templates** | [**list[V1PersistentVolumeClaim]**](V1PersistentVolumeClaim.md) | VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. | [optional] diff --git a/kubernetes/docs/V1beta1StatefulSetStatus.md b/kubernetes/docs/V1beta1StatefulSetStatus.md index a2e48f3a59..a7d5ebfb9a 100644 --- a/kubernetes/docs/V1beta1StatefulSetStatus.md +++ b/kubernetes/docs/V1beta1StatefulSetStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**observed_generation** | **int** | most recent generation observed by this StatefulSet. | [optional] +**observed_generation** | **int** | most recent generation observed by this autoscaler. | [optional] **replicas** | **int** | Replicas is the number of actual replicas. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1StorageClassList.md b/kubernetes/docs/V1beta1StorageClassList.md index 93dd8e706f..1672e65aeb 100644 --- a/kubernetes/docs/V1beta1StorageClassList.md +++ b/kubernetes/docs/V1beta1StorageClassList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1StorageClass]**](V1beta1StorageClass.md) | Items is the list of StorageClasses | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1Subject.md b/kubernetes/docs/V1beta1Subject.md deleted file mode 100644 index 2423ffdeee..0000000000 --- a/kubernetes/docs/V1beta1Subject.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1beta1Subject - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_group** | **str** | 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. | [optional] -**kind** | **str** | 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. | -**name** | **str** | Name of the object being referenced. | -**namespace** | **str** | 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. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1SubjectAccessReview.md b/kubernetes/docs/V1beta1SubjectAccessReview.md deleted file mode 100644 index 552b423d1b..0000000000 --- a/kubernetes/docs/V1beta1SubjectAccessReview.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1beta1SubjectAccessReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md b/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md deleted file mode 100644 index d695558e51..0000000000 --- a/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1beta1SubjectAccessReviewSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**extra** | **dict(str, list[str])** | Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] -**group** | **list[str]** | Groups is the groups you're testing for. | [optional] -**non_resource_attributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resource_attributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] -**user** | **str** | User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md b/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md deleted file mode 100644 index 8996782325..0000000000 --- a/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1beta1SubjectAccessReviewStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed** | **bool** | Allowed is required. True if the action would be allowed, false otherwise. | -**evaluation_error** | **str** | EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. | [optional] -**reason** | **str** | Reason is optional. It indicates why a request was allowed or denied. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1SubresourceReference.md b/kubernetes/docs/V1beta1SubresourceReference.md new file mode 100644 index 0000000000..58f57ab131 --- /dev/null +++ b/kubernetes/docs/V1beta1SubresourceReference.md @@ -0,0 +1,13 @@ +# V1beta1SubresourceReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | API version of the referent | [optional] +**kind** | **str** | Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**name** | **str** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**subresource** | **str** | Subresource name of the referent | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1ThirdPartyResourceList.md b/kubernetes/docs/V1beta1ThirdPartyResourceList.md index 2fbf26f0de..7afd5536a5 100644 --- a/kubernetes/docs/V1beta1ThirdPartyResourceList.md +++ b/kubernetes/docs/V1beta1ThirdPartyResourceList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1ThirdPartyResource]**](V1beta1ThirdPartyResource.md) | Items is the list of ThirdPartyResources. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2alpha1CronJobList.md b/kubernetes/docs/V2alpha1CronJobList.md index d69c7a2914..dc0f0fbe36 100644 --- a/kubernetes/docs/V2alpha1CronJobList.md +++ b/kubernetes/docs/V2alpha1CronJobList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V2alpha1CronJob]**](V2alpha1CronJob.md) | Items is the list of CronJob. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2alpha1CronJobSpec.md b/kubernetes/docs/V2alpha1CronJobSpec.md index 0f9dacb7db..d9e879fb95 100644 --- a/kubernetes/docs/V2alpha1CronJobSpec.md +++ b/kubernetes/docs/V2alpha1CronJobSpec.md @@ -3,12 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**concurrency_policy** | **str** | ConcurrencyPolicy specifies how to treat concurrent executions of a Job. Defaults to Allow. | [optional] -**failed_jobs_history_limit** | **int** | The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. | [optional] +**concurrency_policy** | **str** | ConcurrencyPolicy specifies how to treat concurrent executions of a Job. | [optional] **job_template** | [**V2alpha1JobTemplateSpec**](V2alpha1JobTemplateSpec.md) | JobTemplate is the object that describes the job that will be created when executing a CronJob. | **schedule** | **str** | Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. | **starting_deadline_seconds** | **int** | Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. | [optional] -**successful_jobs_history_limit** | **int** | The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. | [optional] **suspend** | **bool** | Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2alpha1CrossVersionObjectReference.md b/kubernetes/docs/V2alpha1CrossVersionObjectReference.md deleted file mode 100644 index af21c14c82..0000000000 --- a/kubernetes/docs/V2alpha1CrossVersionObjectReference.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2alpha1CrossVersionObjectReference - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | API version of the referent | [optional] -**kind** | **str** | Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" | -**name** | **str** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V2alpha1HorizontalPodAutoscaler.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscaler.md deleted file mode 100644 index 26d1ea40b7..0000000000 --- a/kubernetes/docs/V2alpha1HorizontalPodAutoscaler.md +++ /dev/null @@ -1,14 +0,0 @@ -# V2alpha1HorizontalPodAutoscaler - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | metadata is the standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V2alpha1HorizontalPodAutoscalerSpec**](V2alpha1HorizontalPodAutoscalerSpec.md) | spec is the specification for the behaviour of the autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**V2alpha1HorizontalPodAutoscalerStatus**](V2alpha1HorizontalPodAutoscalerStatus.md) | status is the current information about the autoscaler. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerList.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerList.md deleted file mode 100644 index 299c6b8863..0000000000 --- a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2alpha1HorizontalPodAutoscalerList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V2alpha1HorizontalPodAutoscaler]**](V2alpha1HorizontalPodAutoscaler.md) | items is the list of horizontal pod autoscaler objects. | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | metadata is the standard list metadata. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerSpec.md deleted file mode 100644 index f565590647..0000000000 --- a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerSpec.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2alpha1HorizontalPodAutoscalerSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_replicas** | **int** | maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. | -**metrics** | [**list[V2alpha1MetricSpec]**](V2alpha1MetricSpec.md) | metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. | [optional] -**min_replicas** | **int** | minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. | [optional] -**scale_target_ref** | [**V2alpha1CrossVersionObjectReference**](V2alpha1CrossVersionObjectReference.md) | scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md deleted file mode 100644 index 00c5ddca6a..0000000000 --- a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# V2alpha1HorizontalPodAutoscalerStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**current_metrics** | [**list[V2alpha1MetricStatus]**](V2alpha1MetricStatus.md) | currentMetrics is the last read state of the metrics used by this autoscaler. | -**current_replicas** | **int** | currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. | -**desired_replicas** | **int** | desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. | -**last_scale_time** | **datetime** | lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. | [optional] -**observed_generation** | **int** | observedGeneration is the most recent generation observed by this autoscaler. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V2alpha1Job.md b/kubernetes/docs/V2alpha1Job.md new file mode 100644 index 0000000000..c06ecb2ad5 --- /dev/null +++ b/kubernetes/docs/V2alpha1Job.md @@ -0,0 +1,14 @@ +# V2alpha1Job + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V2alpha1JobSpec**](V2alpha1JobSpec.md) | Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**status** | [**V2alpha1JobStatus**](V2alpha1JobStatus.md) | Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V2alpha1JobCondition.md b/kubernetes/docs/V2alpha1JobCondition.md new file mode 100644 index 0000000000..70a5425e9d --- /dev/null +++ b/kubernetes/docs/V2alpha1JobCondition.md @@ -0,0 +1,15 @@ +# V2alpha1JobCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_probe_time** | **datetime** | Last time the condition was checked. | [optional] +**last_transition_time** | **datetime** | Last time the condition transit from one status to another. | [optional] +**message** | **str** | Human readable message indicating details about last transition. | [optional] +**reason** | **str** | (brief) reason for the condition's last transition. | [optional] +**status** | **str** | Status of the condition, one of True, False, Unknown. | +**type** | **str** | Type of job condition, Complete or Failed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V2alpha1JobList.md b/kubernetes/docs/V2alpha1JobList.md new file mode 100644 index 0000000000..6d88b70e49 --- /dev/null +++ b/kubernetes/docs/V2alpha1JobList.md @@ -0,0 +1,13 @@ +# V2alpha1JobList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V2alpha1Job]**](V2alpha1Job.md) | Items is the list of Job. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V2alpha1JobSpec.md b/kubernetes/docs/V2alpha1JobSpec.md new file mode 100644 index 0000000000..382e13b04b --- /dev/null +++ b/kubernetes/docs/V2alpha1JobSpec.md @@ -0,0 +1,15 @@ +# V2alpha1JobSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_deadline_seconds** | **int** | Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer | [optional] +**completions** | **int** | Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] +**manual_selector** | **bool** | ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md | [optional] +**parallelism** | **int** | Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V2alpha1JobStatus.md b/kubernetes/docs/V2alpha1JobStatus.md new file mode 100644 index 0000000000..87f8c83632 --- /dev/null +++ b/kubernetes/docs/V2alpha1JobStatus.md @@ -0,0 +1,15 @@ +# V2alpha1JobStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **int** | Active is the number of actively running pods. | [optional] +**completion_time** | **datetime** | CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] +**conditions** | [**list[V2alpha1JobCondition]**](V2alpha1JobCondition.md) | Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] +**failed** | **int** | Failed is the number of pods which reached Phase Failed. | [optional] +**start_time** | **datetime** | StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] +**succeeded** | **int** | Succeeded is the number of pods which reached Phase Succeeded. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V2alpha1JobTemplateSpec.md b/kubernetes/docs/V2alpha1JobTemplateSpec.md index 1479432e40..ba7ad8e4bf 100644 --- a/kubernetes/docs/V2alpha1JobTemplateSpec.md +++ b/kubernetes/docs/V2alpha1JobTemplateSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata of the jobs created from this template. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1JobSpec**](V1JobSpec.md) | Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**spec** | [**V2alpha1JobSpec**](V2alpha1JobSpec.md) | Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2alpha1MetricSpec.md b/kubernetes/docs/V2alpha1MetricSpec.md deleted file mode 100644 index 6f1e1eaebf..0000000000 --- a/kubernetes/docs/V2alpha1MetricSpec.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2alpha1MetricSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object** | [**V2alpha1ObjectMetricSource**](V2alpha1ObjectMetricSource.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] -**pods** | [**V2alpha1PodsMetricSource**](V2alpha1PodsMetricSource.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] -**resource** | [**V2alpha1ResourceMetricSource**](V2alpha1ResourceMetricSource.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] -**type** | **str** | type is the type of metric source. It should match one of the fields below. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V2alpha1MetricStatus.md b/kubernetes/docs/V2alpha1MetricStatus.md deleted file mode 100644 index 285a3ad0ca..0000000000 --- a/kubernetes/docs/V2alpha1MetricStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2alpha1MetricStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object** | [**V2alpha1ObjectMetricStatus**](V2alpha1ObjectMetricStatus.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] -**pods** | [**V2alpha1PodsMetricStatus**](V2alpha1PodsMetricStatus.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] -**resource** | [**V2alpha1ResourceMetricStatus**](V2alpha1ResourceMetricStatus.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] -**type** | **str** | type is the type of metric source. It will match one of the fields below. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V2alpha1ObjectMetricSource.md b/kubernetes/docs/V2alpha1ObjectMetricSource.md deleted file mode 100644 index cb885beedb..0000000000 --- a/kubernetes/docs/V2alpha1ObjectMetricSource.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2alpha1ObjectMetricSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metric_name** | **str** | metricName is the name of the metric in question. | -**target** | [**V2alpha1CrossVersionObjectReference**](V2alpha1CrossVersionObjectReference.md) | target is the described Kubernetes object. | -**target_value** | **str** | targetValue is the target value of the metric (as a quantity). | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V2alpha1ObjectMetricStatus.md b/kubernetes/docs/V2alpha1ObjectMetricStatus.md deleted file mode 100644 index 38c9a3fea3..0000000000 --- a/kubernetes/docs/V2alpha1ObjectMetricStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2alpha1ObjectMetricStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**current_value** | **str** | currentValue is the current value of the metric (as a quantity). | -**metric_name** | **str** | metricName is the name of the metric in question. | -**target** | [**V2alpha1CrossVersionObjectReference**](V2alpha1CrossVersionObjectReference.md) | target is the described Kubernetes object. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V2alpha1PodsMetricSource.md b/kubernetes/docs/V2alpha1PodsMetricSource.md deleted file mode 100644 index c4c78e8d2b..0000000000 --- a/kubernetes/docs/V2alpha1PodsMetricSource.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2alpha1PodsMetricSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metric_name** | **str** | metricName is the name of the metric in question | -**target_average_value** | **str** | targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V2alpha1PodsMetricStatus.md b/kubernetes/docs/V2alpha1PodsMetricStatus.md deleted file mode 100644 index 5e7f73d596..0000000000 --- a/kubernetes/docs/V2alpha1PodsMetricStatus.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2alpha1PodsMetricStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**current_average_value** | **str** | currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) | -**metric_name** | **str** | metricName is the name of the metric in question | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V2alpha1ResourceMetricSource.md b/kubernetes/docs/V2alpha1ResourceMetricSource.md deleted file mode 100644 index 43e84fdfa4..0000000000 --- a/kubernetes/docs/V2alpha1ResourceMetricSource.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2alpha1ResourceMetricSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | name is the name of the resource in question. | -**target_average_utilization** | **int** | targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] -**target_average_value** | **str** | targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V2alpha1ResourceMetricStatus.md b/kubernetes/docs/V2alpha1ResourceMetricStatus.md deleted file mode 100644 index 0e9f0a2655..0000000000 --- a/kubernetes/docs/V2alpha1ResourceMetricStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2alpha1ResourceMetricStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**current_average_utilization** | **int** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. | [optional] -**current_average_value** | **str** | currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. | -**name** | **str** | name is the name of the resource in question. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/VersionedEvent.md b/kubernetes/docs/VersionedEvent.md new file mode 100644 index 0000000000..022cfd400b --- /dev/null +++ b/kubernetes/docs/VersionedEvent.md @@ -0,0 +1,11 @@ +# VersionedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *api.Status is recommended; other types may make sense depending on context. | +**type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/test/test_apis_api.py b/kubernetes/test/test_apis_api.py index 7cac70ae66..9c9a56e175 100644 --- a/kubernetes/test/test_apis_api.py +++ b/kubernetes/test/test_apis_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_apps_api.py b/kubernetes/test/test_apps_api.py index 3bc0576c18..81e865390f 100644 --- a/kubernetes/test/test_apps_api.py +++ b/kubernetes/test/test_apps_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_apps_v1beta1_api.py b/kubernetes/test/test_apps_v1beta1_api.py index fefd2cda31..3001b0ac05 100644 --- a/kubernetes/test/test_apps_v1beta1_api.py +++ b/kubernetes/test/test_apps_v1beta1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,22 +31,6 @@ def setUp(self): def tearDown(self): pass - def test_create_namespaced_deployment(self): - """ - Test case for create_namespaced_deployment - - - """ - pass - - def test_create_namespaced_deployment_rollback_rollback(self): - """ - Test case for create_namespaced_deployment_rollback_rollback - - - """ - pass - def test_create_namespaced_stateful_set(self): """ Test case for create_namespaced_stateful_set @@ -55,9 +39,9 @@ def test_create_namespaced_stateful_set(self): """ pass - def test_delete_collection_namespaced_deployment(self): + def test_create_stateful_set_for_all_namespaces(self): """ - Test case for delete_collection_namespaced_deployment + Test case for create_stateful_set_for_all_namespaces """ @@ -68,14 +52,6 @@ def test_delete_collection_namespaced_stateful_set(self): Test case for delete_collection_namespaced_stateful_set - """ - pass - - def test_delete_namespaced_deployment(self): - """ - Test case for delete_namespaced_deployment - - """ pass @@ -92,22 +68,6 @@ def test_get_api_resources(self): Test case for get_api_resources - """ - pass - - def test_list_deployment_for_all_namespaces(self): - """ - Test case for list_deployment_for_all_namespaces - - - """ - pass - - def test_list_namespaced_deployment(self): - """ - Test case for list_namespaced_deployment - - """ pass @@ -124,30 +84,6 @@ def test_list_stateful_set_for_all_namespaces(self): Test case for list_stateful_set_for_all_namespaces - """ - pass - - def test_patch_namespaced_deployment(self): - """ - Test case for patch_namespaced_deployment - - - """ - pass - - def test_patch_namespaced_deployment_status(self): - """ - Test case for patch_namespaced_deployment_status - - - """ - pass - - def test_patch_namespaced_scale_scale(self): - """ - Test case for patch_namespaced_scale_scale - - """ pass @@ -164,30 +100,6 @@ def test_patch_namespaced_stateful_set_status(self): Test case for patch_namespaced_stateful_set_status - """ - pass - - def test_read_namespaced_deployment(self): - """ - Test case for read_namespaced_deployment - - - """ - pass - - def test_read_namespaced_deployment_status(self): - """ - Test case for read_namespaced_deployment_status - - - """ - pass - - def test_read_namespaced_scale_scale(self): - """ - Test case for read_namespaced_scale_scale - - """ pass @@ -204,30 +116,6 @@ def test_read_namespaced_stateful_set_status(self): Test case for read_namespaced_stateful_set_status - """ - pass - - def test_replace_namespaced_deployment(self): - """ - Test case for replace_namespaced_deployment - - - """ - pass - - def test_replace_namespaced_deployment_status(self): - """ - Test case for replace_namespaced_deployment_status - - - """ - pass - - def test_replace_namespaced_scale_scale(self): - """ - Test case for replace_namespaced_scale_scale - - """ pass diff --git a/kubernetes/test/test_apps_v1beta1_deployment.py b/kubernetes/test/test_apps_v1beta1_deployment.py deleted file mode 100644 index 788ee12f1e..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment import AppsV1beta1Deployment - - -class TestAppsV1beta1Deployment(unittest.TestCase): - """ AppsV1beta1Deployment unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1Deployment(self): - """ - Test AppsV1beta1Deployment - """ - model = kubernetes.client.models.apps_v1beta1_deployment.AppsV1beta1Deployment() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_condition.py b/kubernetes/test/test_apps_v1beta1_deployment_condition.py deleted file mode 100644 index 260be1bbbb..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment_condition.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition - - -class TestAppsV1beta1DeploymentCondition(unittest.TestCase): - """ AppsV1beta1DeploymentCondition unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1DeploymentCondition(self): - """ - Test AppsV1beta1DeploymentCondition - """ - model = kubernetes.client.models.apps_v1beta1_deployment_condition.AppsV1beta1DeploymentCondition() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_list.py b/kubernetes/test/test_apps_v1beta1_deployment_list.py deleted file mode 100644 index 862fbdae6e..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment_list import AppsV1beta1DeploymentList - - -class TestAppsV1beta1DeploymentList(unittest.TestCase): - """ AppsV1beta1DeploymentList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1DeploymentList(self): - """ - Test AppsV1beta1DeploymentList - """ - model = kubernetes.client.models.apps_v1beta1_deployment_list.AppsV1beta1DeploymentList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_rollback.py b/kubernetes/test/test_apps_v1beta1_deployment_rollback.py deleted file mode 100644 index e31b31e2c3..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment_rollback.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback - - -class TestAppsV1beta1DeploymentRollback(unittest.TestCase): - """ AppsV1beta1DeploymentRollback unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1DeploymentRollback(self): - """ - Test AppsV1beta1DeploymentRollback - """ - model = kubernetes.client.models.apps_v1beta1_deployment_rollback.AppsV1beta1DeploymentRollback() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_spec.py b/kubernetes/test/test_apps_v1beta1_deployment_spec.py deleted file mode 100644 index 3945de9e46..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec - - -class TestAppsV1beta1DeploymentSpec(unittest.TestCase): - """ AppsV1beta1DeploymentSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1DeploymentSpec(self): - """ - Test AppsV1beta1DeploymentSpec - """ - model = kubernetes.client.models.apps_v1beta1_deployment_spec.AppsV1beta1DeploymentSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_status.py b/kubernetes/test/test_apps_v1beta1_deployment_status.py deleted file mode 100644 index 77f15cc6ce..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus - - -class TestAppsV1beta1DeploymentStatus(unittest.TestCase): - """ AppsV1beta1DeploymentStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1DeploymentStatus(self): - """ - Test AppsV1beta1DeploymentStatus - """ - model = kubernetes.client.models.apps_v1beta1_deployment_status.AppsV1beta1DeploymentStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_strategy.py b/kubernetes/test/test_apps_v1beta1_deployment_strategy.py deleted file mode 100644 index 9db20f2654..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment_strategy.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy - - -class TestAppsV1beta1DeploymentStrategy(unittest.TestCase): - """ AppsV1beta1DeploymentStrategy unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1DeploymentStrategy(self): - """ - Test AppsV1beta1DeploymentStrategy - """ - model = kubernetes.client.models.apps_v1beta1_deployment_strategy.AppsV1beta1DeploymentStrategy() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_rollback_config.py b/kubernetes/test/test_apps_v1beta1_rollback_config.py deleted file mode 100644 index dcada46a90..0000000000 --- a/kubernetes/test/test_apps_v1beta1_rollback_config.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig - - -class TestAppsV1beta1RollbackConfig(unittest.TestCase): - """ AppsV1beta1RollbackConfig unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1RollbackConfig(self): - """ - Test AppsV1beta1RollbackConfig - """ - model = kubernetes.client.models.apps_v1beta1_rollback_config.AppsV1beta1RollbackConfig() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py b/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py deleted file mode 100644 index 9677bab44e..0000000000 --- a/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment - - -class TestAppsV1beta1RollingUpdateDeployment(unittest.TestCase): - """ AppsV1beta1RollingUpdateDeployment unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1RollingUpdateDeployment(self): - """ - Test AppsV1beta1RollingUpdateDeployment - """ - model = kubernetes.client.models.apps_v1beta1_rolling_update_deployment.AppsV1beta1RollingUpdateDeployment() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_scale.py b/kubernetes/test/test_apps_v1beta1_scale.py deleted file mode 100644 index 30a1f12e60..0000000000 --- a/kubernetes/test/test_apps_v1beta1_scale.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_scale import AppsV1beta1Scale - - -class TestAppsV1beta1Scale(unittest.TestCase): - """ AppsV1beta1Scale unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1Scale(self): - """ - Test AppsV1beta1Scale - """ - model = kubernetes.client.models.apps_v1beta1_scale.AppsV1beta1Scale() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_scale_spec.py b/kubernetes/test/test_apps_v1beta1_scale_spec.py deleted file mode 100644 index 5354bf3ca8..0000000000 --- a/kubernetes/test/test_apps_v1beta1_scale_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec - - -class TestAppsV1beta1ScaleSpec(unittest.TestCase): - """ AppsV1beta1ScaleSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1ScaleSpec(self): - """ - Test AppsV1beta1ScaleSpec - """ - model = kubernetes.client.models.apps_v1beta1_scale_spec.AppsV1beta1ScaleSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_scale_status.py b/kubernetes/test/test_apps_v1beta1_scale_status.py deleted file mode 100644 index 6e34a8062c..0000000000 --- a/kubernetes/test/test_apps_v1beta1_scale_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_scale_status import AppsV1beta1ScaleStatus - - -class TestAppsV1beta1ScaleStatus(unittest.TestCase): - """ AppsV1beta1ScaleStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1ScaleStatus(self): - """ - Test AppsV1beta1ScaleStatus - """ - model = kubernetes.client.models.apps_v1beta1_scale_status.AppsV1beta1ScaleStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_authentication_api.py b/kubernetes/test/test_authentication_api.py index 332468ee71..8ffb441c5b 100644 --- a/kubernetes/test/test_authentication_api.py +++ b/kubernetes/test/test_authentication_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_authentication_v1_api.py b/kubernetes/test/test_authentication_v1_api.py deleted file mode 100644 index 099564e35c..0000000000 --- a/kubernetes/test/test_authentication_v1_api.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.authentication_v1_api import AuthenticationV1Api - - -class TestAuthenticationV1Api(unittest.TestCase): - """ AuthenticationV1Api unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.authentication_v1_api.AuthenticationV1Api() - - def tearDown(self): - pass - - def test_create_token_review(self): - """ - Test case for create_token_review - - - """ - pass - - def test_get_api_resources(self): - """ - Test case for get_api_resources - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_authentication_v1beta1_api.py b/kubernetes/test/test_authentication_v1beta1_api.py index a62c01366b..c95ebdf2d7 100644 --- a/kubernetes/test/test_authentication_v1beta1_api.py +++ b/kubernetes/test/test_authentication_v1beta1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_authorization_api.py b/kubernetes/test/test_authorization_api.py deleted file mode 100644 index 8aeb06668a..0000000000 --- a/kubernetes/test/test_authorization_api.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.authorization_api import AuthorizationApi - - -class TestAuthorizationApi(unittest.TestCase): - """ AuthorizationApi unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.authorization_api.AuthorizationApi() - - def tearDown(self): - pass - - def test_get_api_group(self): - """ - Test case for get_api_group - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_authorization_v1_api.py b/kubernetes/test/test_authorization_v1_api.py deleted file mode 100644 index e41e933ccd..0000000000 --- a/kubernetes/test/test_authorization_v1_api.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.authorization_v1_api import AuthorizationV1Api - - -class TestAuthorizationV1Api(unittest.TestCase): - """ AuthorizationV1Api unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.authorization_v1_api.AuthorizationV1Api() - - def tearDown(self): - pass - - def test_create_namespaced_local_subject_access_review(self): - """ - Test case for create_namespaced_local_subject_access_review - - - """ - pass - - def test_create_self_subject_access_review(self): - """ - Test case for create_self_subject_access_review - - - """ - pass - - def test_create_subject_access_review(self): - """ - Test case for create_subject_access_review - - - """ - pass - - def test_get_api_resources(self): - """ - Test case for get_api_resources - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_authorization_v1beta1_api.py b/kubernetes/test/test_authorization_v1beta1_api.py deleted file mode 100644 index 622083b7ff..0000000000 --- a/kubernetes/test/test_authorization_v1beta1_api.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.authorization_v1beta1_api import AuthorizationV1beta1Api - - -class TestAuthorizationV1beta1Api(unittest.TestCase): - """ AuthorizationV1beta1Api unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.authorization_v1beta1_api.AuthorizationV1beta1Api() - - def tearDown(self): - pass - - def test_create_namespaced_local_subject_access_review(self): - """ - Test case for create_namespaced_local_subject_access_review - - - """ - pass - - def test_create_self_subject_access_review(self): - """ - Test case for create_self_subject_access_review - - - """ - pass - - def test_create_subject_access_review(self): - """ - Test case for create_subject_access_review - - - """ - pass - - def test_get_api_resources(self): - """ - Test case for get_api_resources - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_autoscaling_api.py b/kubernetes/test/test_autoscaling_api.py index 31fc1bdbb3..a2e3349d47 100644 --- a/kubernetes/test/test_autoscaling_api.py +++ b/kubernetes/test/test_autoscaling_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_autoscaling_v1_api.py b/kubernetes/test/test_autoscaling_v1_api.py index c973802330..25743f09b9 100644 --- a/kubernetes/test/test_autoscaling_v1_api.py +++ b/kubernetes/test/test_autoscaling_v1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,6 +31,14 @@ def setUp(self): def tearDown(self): pass + def test_create_horizontal_pod_autoscaler_for_all_namespaces(self): + """ + Test case for create_horizontal_pod_autoscaler_for_all_namespaces + + + """ + pass + def test_create_namespaced_horizontal_pod_autoscaler(self): """ Test case for create_namespaced_horizontal_pod_autoscaler diff --git a/kubernetes/test/test_autoscaling_v2alpha1_api.py b/kubernetes/test/test_autoscaling_v2alpha1_api.py deleted file mode 100644 index 4044c26774..0000000000 --- a/kubernetes/test/test_autoscaling_v2alpha1_api.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.autoscaling_v2alpha1_api import AutoscalingV2alpha1Api - - -class TestAutoscalingV2alpha1Api(unittest.TestCase): - """ AutoscalingV2alpha1Api unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.autoscaling_v2alpha1_api.AutoscalingV2alpha1Api() - - def tearDown(self): - pass - - def test_create_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for create_namespaced_horizontal_pod_autoscaler - - - """ - pass - - def test_delete_collection_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for delete_collection_namespaced_horizontal_pod_autoscaler - - - """ - pass - - def test_delete_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for delete_namespaced_horizontal_pod_autoscaler - - - """ - pass - - def test_get_api_resources(self): - """ - Test case for get_api_resources - - - """ - pass - - def test_list_horizontal_pod_autoscaler_for_all_namespaces(self): - """ - Test case for list_horizontal_pod_autoscaler_for_all_namespaces - - - """ - pass - - def test_list_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for list_namespaced_horizontal_pod_autoscaler - - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for patch_namespaced_horizontal_pod_autoscaler - - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for patch_namespaced_horizontal_pod_autoscaler_status - - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for read_namespaced_horizontal_pod_autoscaler - - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for read_namespaced_horizontal_pod_autoscaler_status - - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for replace_namespaced_horizontal_pod_autoscaler - - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for replace_namespaced_horizontal_pod_autoscaler_status - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_batch_api.py b/kubernetes/test/test_batch_api.py index d3c431b247..ff954be950 100644 --- a/kubernetes/test/test_batch_api.py +++ b/kubernetes/test/test_batch_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_batch_v1_api.py b/kubernetes/test/test_batch_v1_api.py index 96a9104d9a..57ebc2f5f7 100644 --- a/kubernetes/test/test_batch_v1_api.py +++ b/kubernetes/test/test_batch_v1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,6 +31,14 @@ def setUp(self): def tearDown(self): pass + def test_create_job_for_all_namespaces(self): + """ + Test case for create_job_for_all_namespaces + + + """ + pass + def test_create_namespaced_job(self): """ Test case for create_namespaced_job diff --git a/kubernetes/test/test_batch_v2alpha1_api.py b/kubernetes/test/test_batch_v2alpha1_api.py index e0e684c7a9..a5744411f8 100644 --- a/kubernetes/test/test_batch_v2alpha1_api.py +++ b/kubernetes/test/test_batch_v2alpha1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,11 +31,35 @@ def setUp(self): def tearDown(self): pass + def test_create_cron_job_for_all_namespaces(self): + """ + Test case for create_cron_job_for_all_namespaces + + + """ + pass + + def test_create_job_for_all_namespaces(self): + """ + Test case for create_job_for_all_namespaces + + + """ + pass + def test_create_namespaced_cron_job(self): """ Test case for create_namespaced_cron_job + """ + pass + + def test_create_namespaced_job(self): + """ + Test case for create_namespaced_job + + """ pass @@ -44,6 +68,14 @@ def test_create_namespaced_scheduled_job(self): Test case for create_namespaced_scheduled_job + """ + pass + + def test_create_scheduled_job_for_all_namespaces(self): + """ + Test case for create_scheduled_job_for_all_namespaces + + """ pass @@ -52,6 +84,14 @@ def test_delete_collection_namespaced_cron_job(self): Test case for delete_collection_namespaced_cron_job + """ + pass + + def test_delete_collection_namespaced_job(self): + """ + Test case for delete_collection_namespaced_job + + """ pass @@ -68,6 +108,14 @@ def test_delete_namespaced_cron_job(self): Test case for delete_namespaced_cron_job + """ + pass + + def test_delete_namespaced_job(self): + """ + Test case for delete_namespaced_job + + """ pass @@ -92,6 +140,14 @@ def test_list_cron_job_for_all_namespaces(self): Test case for list_cron_job_for_all_namespaces + """ + pass + + def test_list_job_for_all_namespaces(self): + """ + Test case for list_job_for_all_namespaces + + """ pass @@ -100,6 +156,14 @@ def test_list_namespaced_cron_job(self): Test case for list_namespaced_cron_job + """ + pass + + def test_list_namespaced_job(self): + """ + Test case for list_namespaced_job + + """ pass @@ -132,6 +196,22 @@ def test_patch_namespaced_cron_job_status(self): Test case for patch_namespaced_cron_job_status + """ + pass + + def test_patch_namespaced_job(self): + """ + Test case for patch_namespaced_job + + + """ + pass + + def test_patch_namespaced_job_status(self): + """ + Test case for patch_namespaced_job_status + + """ pass @@ -164,6 +244,22 @@ def test_read_namespaced_cron_job_status(self): Test case for read_namespaced_cron_job_status + """ + pass + + def test_read_namespaced_job(self): + """ + Test case for read_namespaced_job + + + """ + pass + + def test_read_namespaced_job_status(self): + """ + Test case for read_namespaced_job_status + + """ pass @@ -196,6 +292,22 @@ def test_replace_namespaced_cron_job_status(self): Test case for replace_namespaced_cron_job_status + """ + pass + + def test_replace_namespaced_job(self): + """ + Test case for replace_namespaced_job + + + """ + pass + + def test_replace_namespaced_job_status(self): + """ + Test case for replace_namespaced_job_status + + """ pass diff --git a/kubernetes/test/test_certificates_api.py b/kubernetes/test/test_certificates_api.py index daddab753d..a9e4027b78 100644 --- a/kubernetes/test/test_certificates_api.py +++ b/kubernetes/test/test_certificates_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_certificates_v1alpha1_api.py b/kubernetes/test/test_certificates_v1alpha1_api.py new file mode 100644 index 0000000000..cbfca788ab --- /dev/null +++ b/kubernetes/test/test_certificates_v1alpha1_api.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.apis.certificates_v1alpha1_api import CertificatesV1alpha1Api + + +class TestCertificatesV1alpha1Api(unittest.TestCase): + """ CertificatesV1alpha1Api unit test stubs """ + + def setUp(self): + self.api = kubernetes.client.apis.certificates_v1alpha1_api.CertificatesV1alpha1Api() + + def tearDown(self): + pass + + def test_create_certificate_signing_request(self): + """ + Test case for create_certificate_signing_request + + + """ + pass + + def test_delete_certificate_signing_request(self): + """ + Test case for delete_certificate_signing_request + + + """ + pass + + def test_delete_collection_certificate_signing_request(self): + """ + Test case for delete_collection_certificate_signing_request + + + """ + pass + + def test_get_api_resources(self): + """ + Test case for get_api_resources + + + """ + pass + + def test_list_certificate_signing_request(self): + """ + Test case for list_certificate_signing_request + + + """ + pass + + def test_patch_certificate_signing_request(self): + """ + Test case for patch_certificate_signing_request + + + """ + pass + + def test_read_certificate_signing_request(self): + """ + Test case for read_certificate_signing_request + + + """ + pass + + def test_replace_certificate_signing_request(self): + """ + Test case for replace_certificate_signing_request + + + """ + pass + + def test_replace_certificate_signing_request_approval(self): + """ + Test case for replace_certificate_signing_request_approval + + + """ + pass + + def test_replace_certificate_signing_request_status(self): + """ + Test case for replace_certificate_signing_request_status + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_certificates_v1beta1_api.py b/kubernetes/test/test_certificates_v1beta1_api.py deleted file mode 100644 index 12784eb3d2..0000000000 --- a/kubernetes/test/test_certificates_v1beta1_api.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.certificates_v1beta1_api import CertificatesV1beta1Api - - -class TestCertificatesV1beta1Api(unittest.TestCase): - """ CertificatesV1beta1Api unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.certificates_v1beta1_api.CertificatesV1beta1Api() - - def tearDown(self): - pass - - def test_create_certificate_signing_request(self): - """ - Test case for create_certificate_signing_request - - - """ - pass - - def test_delete_certificate_signing_request(self): - """ - Test case for delete_certificate_signing_request - - - """ - pass - - def test_delete_collection_certificate_signing_request(self): - """ - Test case for delete_collection_certificate_signing_request - - - """ - pass - - def test_get_api_resources(self): - """ - Test case for get_api_resources - - - """ - pass - - def test_list_certificate_signing_request(self): - """ - Test case for list_certificate_signing_request - - - """ - pass - - def test_patch_certificate_signing_request(self): - """ - Test case for patch_certificate_signing_request - - - """ - pass - - def test_read_certificate_signing_request(self): - """ - Test case for read_certificate_signing_request - - - """ - pass - - def test_replace_certificate_signing_request(self): - """ - Test case for replace_certificate_signing_request - - - """ - pass - - def test_replace_certificate_signing_request_approval(self): - """ - Test case for replace_certificate_signing_request_approval - - - """ - pass - - def test_replace_certificate_signing_request_status(self): - """ - Test case for replace_certificate_signing_request_status - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_core_api.py b/kubernetes/test/test_core_api.py index 5b6260e889..e33bcdccfd 100644 --- a/kubernetes/test/test_core_api.py +++ b/kubernetes/test/test_core_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_core_v1_api.py b/kubernetes/test/test_core_v1_api.py index 0b030ec85c..353fe0e9af 100644 --- a/kubernetes/test/test_core_v1_api.py +++ b/kubernetes/test/test_core_v1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -364,6 +364,46 @@ def test_connect_put_node_proxy_with_path(self): Test case for connect_put_node_proxy_with_path + """ + pass + + def test_create_binding_for_all_namespaces(self): + """ + Test case for create_binding_for_all_namespaces + + + """ + pass + + def test_create_config_map_for_all_namespaces(self): + """ + Test case for create_config_map_for_all_namespaces + + + """ + pass + + def test_create_endpoints_for_all_namespaces(self): + """ + Test case for create_endpoints_for_all_namespaces + + + """ + pass + + def test_create_event_for_all_namespaces(self): + """ + Test case for create_event_for_all_namespaces + + + """ + pass + + def test_create_limit_range_for_all_namespaces(self): + """ + Test case for create_limit_range_for_all_namespaces + + """ pass @@ -508,6 +548,78 @@ def test_create_persistent_volume(self): Test case for create_persistent_volume + """ + pass + + def test_create_persistent_volume_claim_for_all_namespaces(self): + """ + Test case for create_persistent_volume_claim_for_all_namespaces + + + """ + pass + + def test_create_pod_for_all_namespaces(self): + """ + Test case for create_pod_for_all_namespaces + + + """ + pass + + def test_create_pod_template_for_all_namespaces(self): + """ + Test case for create_pod_template_for_all_namespaces + + + """ + pass + + def test_create_replication_controller_for_all_namespaces(self): + """ + Test case for create_replication_controller_for_all_namespaces + + + """ + pass + + def test_create_resource_quota_for_all_namespaces(self): + """ + Test case for create_resource_quota_for_all_namespaces + + + """ + pass + + def test_create_secret_for_all_namespaces(self): + """ + Test case for create_secret_for_all_namespaces + + + """ + pass + + def test_create_security_context_constraints(self): + """ + Test case for create_security_context_constraints + + + """ + pass + + def test_create_service_account_for_all_namespaces(self): + """ + Test case for create_service_account_for_all_namespaces + + + """ + pass + + def test_create_service_for_all_namespaces(self): + """ + Test case for create_service_for_all_namespaces + + """ pass @@ -620,6 +732,14 @@ def test_delete_collection_persistent_volume(self): Test case for delete_collection_persistent_volume + """ + pass + + def test_delete_collection_security_context_constraints(self): + """ + Test case for delete_collection_security_context_constraints + + """ pass @@ -740,6 +860,14 @@ def test_delete_persistent_volume(self): Test case for delete_persistent_volume + """ + pass + + def test_delete_security_context_constraints(self): + """ + Test case for delete_security_context_constraints + + """ pass @@ -956,6 +1084,14 @@ def test_list_secret_for_all_namespaces(self): Test case for list_secret_for_all_namespaces + """ + pass + + def test_list_security_context_constraints(self): + """ + Test case for list_security_context_constraints + + """ pass @@ -1164,6 +1300,14 @@ def test_patch_persistent_volume_status(self): Test case for patch_persistent_volume_status + """ + pass + + def test_patch_security_context_constraints(self): + """ + Test case for patch_security_context_constraints + + """ pass @@ -1356,54 +1500,6 @@ def test_proxy_options_node_with_path(self): Test case for proxy_options_node_with_path - """ - pass - - def test_proxy_patch_namespaced_pod(self): - """ - Test case for proxy_patch_namespaced_pod - - - """ - pass - - def test_proxy_patch_namespaced_pod_with_path(self): - """ - Test case for proxy_patch_namespaced_pod_with_path - - - """ - pass - - def test_proxy_patch_namespaced_service(self): - """ - Test case for proxy_patch_namespaced_service - - - """ - pass - - def test_proxy_patch_namespaced_service_with_path(self): - """ - Test case for proxy_patch_namespaced_service_with_path - - - """ - pass - - def test_proxy_patch_node(self): - """ - Test case for proxy_patch_node - - - """ - pass - - def test_proxy_patch_node_with_path(self): - """ - Test case for proxy_patch_node_with_path - - """ pass @@ -1708,6 +1804,14 @@ def test_read_persistent_volume_status(self): Test case for read_persistent_volume_status + """ + pass + + def test_read_security_context_constraints(self): + """ + Test case for read_security_context_constraints + + """ pass @@ -1908,6 +2012,14 @@ def test_replace_persistent_volume_status(self): Test case for replace_persistent_volume_status + """ + pass + + def test_replace_security_context_constraints(self): + """ + Test case for replace_security_context_constraints + + """ pass diff --git a/kubernetes/test/test_default_api.py b/kubernetes/test/test_default_api.py new file mode 100644 index 0000000000..52b2bb0791 --- /dev/null +++ b/kubernetes/test/test_default_api.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.apis.default_api import DefaultApi + + +class TestDefaultApi(unittest.TestCase): + """ DefaultApi unit test stubs """ + + def setUp(self): + self.api = kubernetes.client.apis.default_api.DefaultApi() + + def tearDown(self): + pass + + def test_create_namespaced_processed_template(self): + """ + Test case for create_namespaced_processed_template + + + """ + pass + + def test_create_processed_template_for_all_namespaces(self): + """ + Test case for create_processed_template_for_all_namespaces + + + """ + pass + + def test_generate_namespaced_deployment_config(self): + """ + Test case for generate_namespaced_deployment_config + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_extensions_api.py b/kubernetes/test/test_extensions_api.py index cef49fd387..a19b789221 100644 --- a/kubernetes/test/test_extensions_api.py +++ b/kubernetes/test/test_extensions_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_extensions_v1beta1_api.py b/kubernetes/test/test_extensions_v1beta1_api.py index a3e6e30e7b..91743b975c 100644 --- a/kubernetes/test/test_extensions_v1beta1_api.py +++ b/kubernetes/test/test_extensions_v1beta1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,6 +31,46 @@ def setUp(self): def tearDown(self): pass + def test_create_daemon_set_for_all_namespaces(self): + """ + Test case for create_daemon_set_for_all_namespaces + + + """ + pass + + def test_create_deployment_for_all_namespaces(self): + """ + Test case for create_deployment_for_all_namespaces + + + """ + pass + + def test_create_horizontal_pod_autoscaler_for_all_namespaces(self): + """ + Test case for create_horizontal_pod_autoscaler_for_all_namespaces + + + """ + pass + + def test_create_ingress_for_all_namespaces(self): + """ + Test case for create_ingress_for_all_namespaces + + + """ + pass + + def test_create_job_for_all_namespaces(self): + """ + Test case for create_job_for_all_namespaces + + + """ + pass + def test_create_namespaced_daemon_set(self): """ Test case for create_namespaced_daemon_set @@ -52,6 +92,14 @@ def test_create_namespaced_deployment_rollback_rollback(self): Test case for create_namespaced_deployment_rollback_rollback + """ + pass + + def test_create_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for create_namespaced_horizontal_pod_autoscaler + + """ pass @@ -60,6 +108,14 @@ def test_create_namespaced_ingress(self): Test case for create_namespaced_ingress + """ + pass + + def test_create_namespaced_job(self): + """ + Test case for create_namespaced_job + + """ pass @@ -76,6 +132,14 @@ def test_create_namespaced_replica_set(self): Test case for create_namespaced_replica_set + """ + pass + + def test_create_network_policy_for_all_namespaces(self): + """ + Test case for create_network_policy_for_all_namespaces + + """ pass @@ -84,6 +148,14 @@ def test_create_pod_security_policy(self): Test case for create_pod_security_policy + """ + pass + + def test_create_replica_set_for_all_namespaces(self): + """ + Test case for create_replica_set_for_all_namespaces + + """ pass @@ -108,6 +180,14 @@ def test_delete_collection_namespaced_deployment(self): Test case for delete_collection_namespaced_deployment + """ + pass + + def test_delete_collection_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for delete_collection_namespaced_horizontal_pod_autoscaler + + """ pass @@ -116,6 +196,14 @@ def test_delete_collection_namespaced_ingress(self): Test case for delete_collection_namespaced_ingress + """ + pass + + def test_delete_collection_namespaced_job(self): + """ + Test case for delete_collection_namespaced_job + + """ pass @@ -164,6 +252,14 @@ def test_delete_namespaced_deployment(self): Test case for delete_namespaced_deployment + """ + pass + + def test_delete_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for delete_namespaced_horizontal_pod_autoscaler + + """ pass @@ -172,6 +268,14 @@ def test_delete_namespaced_ingress(self): Test case for delete_namespaced_ingress + """ + pass + + def test_delete_namespaced_job(self): + """ + Test case for delete_namespaced_job + + """ pass @@ -228,6 +332,14 @@ def test_list_deployment_for_all_namespaces(self): Test case for list_deployment_for_all_namespaces + """ + pass + + def test_list_horizontal_pod_autoscaler_for_all_namespaces(self): + """ + Test case for list_horizontal_pod_autoscaler_for_all_namespaces + + """ pass @@ -236,6 +348,14 @@ def test_list_ingress_for_all_namespaces(self): Test case for list_ingress_for_all_namespaces + """ + pass + + def test_list_job_for_all_namespaces(self): + """ + Test case for list_job_for_all_namespaces + + """ pass @@ -252,6 +372,14 @@ def test_list_namespaced_deployment(self): Test case for list_namespaced_deployment + """ + pass + + def test_list_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for list_namespaced_horizontal_pod_autoscaler + + """ pass @@ -260,6 +388,14 @@ def test_list_namespaced_ingress(self): Test case for list_namespaced_ingress + """ + pass + + def test_list_namespaced_job(self): + """ + Test case for list_namespaced_job + + """ pass @@ -348,6 +484,22 @@ def test_patch_namespaced_deployments_scale(self): Test case for patch_namespaced_deployments_scale + """ + pass + + def test_patch_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for patch_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_patch_namespaced_horizontal_pod_autoscaler_status(self): + """ + Test case for patch_namespaced_horizontal_pod_autoscaler_status + + """ pass @@ -364,6 +516,22 @@ def test_patch_namespaced_ingress_status(self): Test case for patch_namespaced_ingress_status + """ + pass + + def test_patch_namespaced_job(self): + """ + Test case for patch_namespaced_job + + + """ + pass + + def test_patch_namespaced_job_status(self): + """ + Test case for patch_namespaced_job_status + + """ pass @@ -460,6 +628,22 @@ def test_read_namespaced_deployments_scale(self): Test case for read_namespaced_deployments_scale + """ + pass + + def test_read_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for read_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_read_namespaced_horizontal_pod_autoscaler_status(self): + """ + Test case for read_namespaced_horizontal_pod_autoscaler_status + + """ pass @@ -476,6 +660,22 @@ def test_read_namespaced_ingress_status(self): Test case for read_namespaced_ingress_status + """ + pass + + def test_read_namespaced_job(self): + """ + Test case for read_namespaced_job + + + """ + pass + + def test_read_namespaced_job_status(self): + """ + Test case for read_namespaced_job_status + + """ pass @@ -572,6 +772,22 @@ def test_replace_namespaced_deployments_scale(self): Test case for replace_namespaced_deployments_scale + """ + pass + + def test_replace_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for replace_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_replace_namespaced_horizontal_pod_autoscaler_status(self): + """ + Test case for replace_namespaced_horizontal_pod_autoscaler_status + + """ pass @@ -588,6 +804,22 @@ def test_replace_namespaced_ingress_status(self): Test case for replace_namespaced_ingress_status + """ + pass + + def test_replace_namespaced_job(self): + """ + Test case for replace_namespaced_job + + + """ + pass + + def test_replace_namespaced_job_status(self): + """ + Test case for replace_namespaced_job_status + + """ pass diff --git a/kubernetes/test/test_extensions_v1beta1_deployment.py b/kubernetes/test/test_extensions_v1beta1_deployment.py deleted file mode 100644 index 7e5966f9bf..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment import ExtensionsV1beta1Deployment - - -class TestExtensionsV1beta1Deployment(unittest.TestCase): - """ ExtensionsV1beta1Deployment unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1Deployment(self): - """ - Test ExtensionsV1beta1Deployment - """ - model = kubernetes.client.models.extensions_v1beta1_deployment.ExtensionsV1beta1Deployment() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_condition.py b/kubernetes/test/test_extensions_v1beta1_deployment_condition.py deleted file mode 100644 index b617b0d0e6..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment_condition.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition - - -class TestExtensionsV1beta1DeploymentCondition(unittest.TestCase): - """ ExtensionsV1beta1DeploymentCondition unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1DeploymentCondition(self): - """ - Test ExtensionsV1beta1DeploymentCondition - """ - model = kubernetes.client.models.extensions_v1beta1_deployment_condition.ExtensionsV1beta1DeploymentCondition() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_list.py b/kubernetes/test/test_extensions_v1beta1_deployment_list.py deleted file mode 100644 index 759542e3ca..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList - - -class TestExtensionsV1beta1DeploymentList(unittest.TestCase): - """ ExtensionsV1beta1DeploymentList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1DeploymentList(self): - """ - Test ExtensionsV1beta1DeploymentList - """ - model = kubernetes.client.models.extensions_v1beta1_deployment_list.ExtensionsV1beta1DeploymentList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py b/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py deleted file mode 100644 index 36714afb2f..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback - - -class TestExtensionsV1beta1DeploymentRollback(unittest.TestCase): - """ ExtensionsV1beta1DeploymentRollback unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1DeploymentRollback(self): - """ - Test ExtensionsV1beta1DeploymentRollback - """ - model = kubernetes.client.models.extensions_v1beta1_deployment_rollback.ExtensionsV1beta1DeploymentRollback() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_spec.py b/kubernetes/test/test_extensions_v1beta1_deployment_spec.py deleted file mode 100644 index 8ed02fe47a..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec - - -class TestExtensionsV1beta1DeploymentSpec(unittest.TestCase): - """ ExtensionsV1beta1DeploymentSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1DeploymentSpec(self): - """ - Test ExtensionsV1beta1DeploymentSpec - """ - model = kubernetes.client.models.extensions_v1beta1_deployment_spec.ExtensionsV1beta1DeploymentSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_status.py b/kubernetes/test/test_extensions_v1beta1_deployment_status.py deleted file mode 100644 index 08001a0236..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus - - -class TestExtensionsV1beta1DeploymentStatus(unittest.TestCase): - """ ExtensionsV1beta1DeploymentStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1DeploymentStatus(self): - """ - Test ExtensionsV1beta1DeploymentStatus - """ - model = kubernetes.client.models.extensions_v1beta1_deployment_status.ExtensionsV1beta1DeploymentStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py b/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py deleted file mode 100644 index 17282cb375..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy - - -class TestExtensionsV1beta1DeploymentStrategy(unittest.TestCase): - """ ExtensionsV1beta1DeploymentStrategy unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1DeploymentStrategy(self): - """ - Test ExtensionsV1beta1DeploymentStrategy - """ - model = kubernetes.client.models.extensions_v1beta1_deployment_strategy.ExtensionsV1beta1DeploymentStrategy() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_rollback_config.py b/kubernetes/test/test_extensions_v1beta1_rollback_config.py deleted file mode 100644 index 11808ca7a1..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_rollback_config.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig - - -class TestExtensionsV1beta1RollbackConfig(unittest.TestCase): - """ ExtensionsV1beta1RollbackConfig unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1RollbackConfig(self): - """ - Test ExtensionsV1beta1RollbackConfig - """ - model = kubernetes.client.models.extensions_v1beta1_rollback_config.ExtensionsV1beta1RollbackConfig() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py b/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py deleted file mode 100644 index 1197ad033e..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment - - -class TestExtensionsV1beta1RollingUpdateDeployment(unittest.TestCase): - """ ExtensionsV1beta1RollingUpdateDeployment unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1RollingUpdateDeployment(self): - """ - Test ExtensionsV1beta1RollingUpdateDeployment - """ - model = kubernetes.client.models.extensions_v1beta1_rolling_update_deployment.ExtensionsV1beta1RollingUpdateDeployment() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_scale.py b/kubernetes/test/test_extensions_v1beta1_scale.py deleted file mode 100644 index 6f150833ec..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_scale.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_scale import ExtensionsV1beta1Scale - - -class TestExtensionsV1beta1Scale(unittest.TestCase): - """ ExtensionsV1beta1Scale unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1Scale(self): - """ - Test ExtensionsV1beta1Scale - """ - model = kubernetes.client.models.extensions_v1beta1_scale.ExtensionsV1beta1Scale() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_scale_spec.py b/kubernetes/test/test_extensions_v1beta1_scale_spec.py deleted file mode 100644 index 90c70b94a4..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_scale_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec - - -class TestExtensionsV1beta1ScaleSpec(unittest.TestCase): - """ ExtensionsV1beta1ScaleSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1ScaleSpec(self): - """ - Test ExtensionsV1beta1ScaleSpec - """ - model = kubernetes.client.models.extensions_v1beta1_scale_spec.ExtensionsV1beta1ScaleSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_scale_status.py b/kubernetes/test/test_extensions_v1beta1_scale_status.py deleted file mode 100644 index 4f416243f5..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_scale_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus - - -class TestExtensionsV1beta1ScaleStatus(unittest.TestCase): - """ ExtensionsV1beta1ScaleStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1ScaleStatus(self): - """ - Test ExtensionsV1beta1ScaleStatus - """ - model = kubernetes.client.models.extensions_v1beta1_scale_status.ExtensionsV1beta1ScaleStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_logs_api.py b/kubernetes/test/test_logs_api.py deleted file mode 100644 index 28516fa7f3..0000000000 --- a/kubernetes/test/test_logs_api.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.logs_api import LogsApi - - -class TestLogsApi(unittest.TestCase): - """ LogsApi unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.logs_api.LogsApi() - - def tearDown(self): - pass - - def test_log_file_handler(self): - """ - Test case for log_file_handler - - - """ - pass - - def test_log_file_list_handler(self): - """ - Test case for log_file_list_handler - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_oapi_api.py b/kubernetes/test/test_oapi_api.py new file mode 100644 index 0000000000..2ebd7a35e6 --- /dev/null +++ b/kubernetes/test/test_oapi_api.py @@ -0,0 +1,2348 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.apis.oapi_api import OapiApi + + +class TestOapiApi(unittest.TestCase): + """ OapiApi unit test stubs """ + + def setUp(self): + self.api = kubernetes.client.apis.oapi_api.OapiApi() + + def tearDown(self): + pass + + def test_connect_post_namespaced_binary_build_request_options_instantiatebinary(self): + """ + Test case for connect_post_namespaced_binary_build_request_options_instantiatebinary + + + """ + pass + + def test_connect_post_namespaced_status_webhooks(self): + """ + Test case for connect_post_namespaced_status_webhooks + + + """ + pass + + def test_connect_post_namespaced_status_webhooks_with_path(self): + """ + Test case for connect_post_namespaced_status_webhooks_with_path + + + """ + pass + + def test_create_build_config_for_all_namespaces(self): + """ + Test case for create_build_config_for_all_namespaces + + + """ + pass + + def test_create_build_for_all_namespaces(self): + """ + Test case for create_build_for_all_namespaces + + + """ + pass + + def test_create_cluster_network(self): + """ + Test case for create_cluster_network + + + """ + pass + + def test_create_cluster_policy(self): + """ + Test case for create_cluster_policy + + + """ + pass + + def test_create_cluster_policy_binding(self): + """ + Test case for create_cluster_policy_binding + + + """ + pass + + def test_create_cluster_resource_quota(self): + """ + Test case for create_cluster_resource_quota + + + """ + pass + + def test_create_cluster_role(self): + """ + Test case for create_cluster_role + + + """ + pass + + def test_create_cluster_role_binding(self): + """ + Test case for create_cluster_role_binding + + + """ + pass + + def test_create_deployment_config_for_all_namespaces(self): + """ + Test case for create_deployment_config_for_all_namespaces + + + """ + pass + + def test_create_deployment_config_rollback_for_all_namespaces(self): + """ + Test case for create_deployment_config_rollback_for_all_namespaces + + + """ + pass + + def test_create_egress_network_policy_for_all_namespaces(self): + """ + Test case for create_egress_network_policy_for_all_namespaces + + + """ + pass + + def test_create_group(self): + """ + Test case for create_group + + + """ + pass + + def test_create_host_subnet(self): + """ + Test case for create_host_subnet + + + """ + pass + + def test_create_identity(self): + """ + Test case for create_identity + + + """ + pass + + def test_create_image(self): + """ + Test case for create_image + + + """ + pass + + def test_create_image_signature(self): + """ + Test case for create_image_signature + + + """ + pass + + def test_create_image_stream_for_all_namespaces(self): + """ + Test case for create_image_stream_for_all_namespaces + + + """ + pass + + def test_create_image_stream_import_for_all_namespaces(self): + """ + Test case for create_image_stream_import_for_all_namespaces + + + """ + pass + + def test_create_image_stream_mapping_for_all_namespaces(self): + """ + Test case for create_image_stream_mapping_for_all_namespaces + + + """ + pass + + def test_create_image_stream_tag_for_all_namespaces(self): + """ + Test case for create_image_stream_tag_for_all_namespaces + + + """ + pass + + def test_create_local_resource_access_review_for_all_namespaces(self): + """ + Test case for create_local_resource_access_review_for_all_namespaces + + + """ + pass + + def test_create_local_subject_access_review_for_all_namespaces(self): + """ + Test case for create_local_subject_access_review_for_all_namespaces + + + """ + pass + + def test_create_namespaced_build(self): + """ + Test case for create_namespaced_build + + + """ + pass + + def test_create_namespaced_build_config(self): + """ + Test case for create_namespaced_build_config + + + """ + pass + + def test_create_namespaced_build_request_clone(self): + """ + Test case for create_namespaced_build_request_clone + + + """ + pass + + def test_create_namespaced_build_request_instantiate(self): + """ + Test case for create_namespaced_build_request_instantiate + + + """ + pass + + def test_create_namespaced_deployment_config(self): + """ + Test case for create_namespaced_deployment_config + + + """ + pass + + def test_create_namespaced_deployment_config_rollback(self): + """ + Test case for create_namespaced_deployment_config_rollback + + + """ + pass + + def test_create_namespaced_deployment_config_rollback_rollback(self): + """ + Test case for create_namespaced_deployment_config_rollback_rollback + + + """ + pass + + def test_create_namespaced_deployment_request_instantiate(self): + """ + Test case for create_namespaced_deployment_request_instantiate + + + """ + pass + + def test_create_namespaced_egress_network_policy(self): + """ + Test case for create_namespaced_egress_network_policy + + + """ + pass + + def test_create_namespaced_image_stream(self): + """ + Test case for create_namespaced_image_stream + + + """ + pass + + def test_create_namespaced_image_stream_import(self): + """ + Test case for create_namespaced_image_stream_import + + + """ + pass + + def test_create_namespaced_image_stream_mapping(self): + """ + Test case for create_namespaced_image_stream_mapping + + + """ + pass + + def test_create_namespaced_image_stream_tag(self): + """ + Test case for create_namespaced_image_stream_tag + + + """ + pass + + def test_create_namespaced_local_resource_access_review(self): + """ + Test case for create_namespaced_local_resource_access_review + + + """ + pass + + def test_create_namespaced_local_subject_access_review(self): + """ + Test case for create_namespaced_local_subject_access_review + + + """ + pass + + def test_create_namespaced_pod_security_policy_review(self): + """ + Test case for create_namespaced_pod_security_policy_review + + + """ + pass + + def test_create_namespaced_pod_security_policy_self_subject_review(self): + """ + Test case for create_namespaced_pod_security_policy_self_subject_review + + + """ + pass + + def test_create_namespaced_pod_security_policy_subject_review(self): + """ + Test case for create_namespaced_pod_security_policy_subject_review + + + """ + pass + + def test_create_namespaced_policy(self): + """ + Test case for create_namespaced_policy + + + """ + pass + + def test_create_namespaced_policy_binding(self): + """ + Test case for create_namespaced_policy_binding + + + """ + pass + + def test_create_namespaced_resource_access_review(self): + """ + Test case for create_namespaced_resource_access_review + + + """ + pass + + def test_create_namespaced_role(self): + """ + Test case for create_namespaced_role + + + """ + pass + + def test_create_namespaced_role_binding(self): + """ + Test case for create_namespaced_role_binding + + + """ + pass + + def test_create_namespaced_role_binding_restriction(self): + """ + Test case for create_namespaced_role_binding_restriction + + + """ + pass + + def test_create_namespaced_route(self): + """ + Test case for create_namespaced_route + + + """ + pass + + def test_create_namespaced_self_subject_rules_review(self): + """ + Test case for create_namespaced_self_subject_rules_review + + + """ + pass + + def test_create_namespaced_subject_access_review(self): + """ + Test case for create_namespaced_subject_access_review + + + """ + pass + + def test_create_namespaced_subject_rules_review(self): + """ + Test case for create_namespaced_subject_rules_review + + + """ + pass + + def test_create_namespaced_template(self): + """ + Test case for create_namespaced_template + + + """ + pass + + def test_create_net_namespace(self): + """ + Test case for create_net_namespace + + + """ + pass + + def test_create_o_auth_access_token(self): + """ + Test case for create_o_auth_access_token + + + """ + pass + + def test_create_o_auth_authorize_token(self): + """ + Test case for create_o_auth_authorize_token + + + """ + pass + + def test_create_o_auth_client(self): + """ + Test case for create_o_auth_client + + + """ + pass + + def test_create_o_auth_client_authorization(self): + """ + Test case for create_o_auth_client_authorization + + + """ + pass + + def test_create_pod_security_policy_review_for_all_namespaces(self): + """ + Test case for create_pod_security_policy_review_for_all_namespaces + + + """ + pass + + def test_create_pod_security_policy_self_subject_review_for_all_namespaces(self): + """ + Test case for create_pod_security_policy_self_subject_review_for_all_namespaces + + + """ + pass + + def test_create_pod_security_policy_subject_review_for_all_namespaces(self): + """ + Test case for create_pod_security_policy_subject_review_for_all_namespaces + + + """ + pass + + def test_create_policy_binding_for_all_namespaces(self): + """ + Test case for create_policy_binding_for_all_namespaces + + + """ + pass + + def test_create_policy_for_all_namespaces(self): + """ + Test case for create_policy_for_all_namespaces + + + """ + pass + + def test_create_project(self): + """ + Test case for create_project + + + """ + pass + + def test_create_project_request(self): + """ + Test case for create_project_request + + + """ + pass + + def test_create_resource_access_review_for_all_namespaces(self): + """ + Test case for create_resource_access_review_for_all_namespaces + + + """ + pass + + def test_create_role_binding_for_all_namespaces(self): + """ + Test case for create_role_binding_for_all_namespaces + + + """ + pass + + def test_create_role_binding_restriction_for_all_namespaces(self): + """ + Test case for create_role_binding_restriction_for_all_namespaces + + + """ + pass + + def test_create_role_for_all_namespaces(self): + """ + Test case for create_role_for_all_namespaces + + + """ + pass + + def test_create_route_for_all_namespaces(self): + """ + Test case for create_route_for_all_namespaces + + + """ + pass + + def test_create_self_subject_rules_review_for_all_namespaces(self): + """ + Test case for create_self_subject_rules_review_for_all_namespaces + + + """ + pass + + def test_create_subject_access_review_for_all_namespaces(self): + """ + Test case for create_subject_access_review_for_all_namespaces + + + """ + pass + + def test_create_subject_rules_review_for_all_namespaces(self): + """ + Test case for create_subject_rules_review_for_all_namespaces + + + """ + pass + + def test_create_template_for_all_namespaces(self): + """ + Test case for create_template_for_all_namespaces + + + """ + pass + + def test_create_user(self): + """ + Test case for create_user + + + """ + pass + + def test_create_user_identity_mapping(self): + """ + Test case for create_user_identity_mapping + + + """ + pass + + def test_delete_cluster_network(self): + """ + Test case for delete_cluster_network + + + """ + pass + + def test_delete_cluster_policy(self): + """ + Test case for delete_cluster_policy + + + """ + pass + + def test_delete_cluster_policy_binding(self): + """ + Test case for delete_cluster_policy_binding + + + """ + pass + + def test_delete_cluster_resource_quota(self): + """ + Test case for delete_cluster_resource_quota + + + """ + pass + + def test_delete_cluster_role(self): + """ + Test case for delete_cluster_role + + + """ + pass + + def test_delete_cluster_role_binding(self): + """ + Test case for delete_cluster_role_binding + + + """ + pass + + def test_delete_collection_cluster_network(self): + """ + Test case for delete_collection_cluster_network + + + """ + pass + + def test_delete_collection_cluster_policy(self): + """ + Test case for delete_collection_cluster_policy + + + """ + pass + + def test_delete_collection_cluster_policy_binding(self): + """ + Test case for delete_collection_cluster_policy_binding + + + """ + pass + + def test_delete_collection_cluster_resource_quota(self): + """ + Test case for delete_collection_cluster_resource_quota + + + """ + pass + + def test_delete_collection_group(self): + """ + Test case for delete_collection_group + + + """ + pass + + def test_delete_collection_host_subnet(self): + """ + Test case for delete_collection_host_subnet + + + """ + pass + + def test_delete_collection_identity(self): + """ + Test case for delete_collection_identity + + + """ + pass + + def test_delete_collection_image(self): + """ + Test case for delete_collection_image + + + """ + pass + + def test_delete_collection_namespaced_build(self): + """ + Test case for delete_collection_namespaced_build + + + """ + pass + + def test_delete_collection_namespaced_build_config(self): + """ + Test case for delete_collection_namespaced_build_config + + + """ + pass + + def test_delete_collection_namespaced_deployment_config(self): + """ + Test case for delete_collection_namespaced_deployment_config + + + """ + pass + + def test_delete_collection_namespaced_egress_network_policy(self): + """ + Test case for delete_collection_namespaced_egress_network_policy + + + """ + pass + + def test_delete_collection_namespaced_image_stream(self): + """ + Test case for delete_collection_namespaced_image_stream + + + """ + pass + + def test_delete_collection_namespaced_policy(self): + """ + Test case for delete_collection_namespaced_policy + + + """ + pass + + def test_delete_collection_namespaced_policy_binding(self): + """ + Test case for delete_collection_namespaced_policy_binding + + + """ + pass + + def test_delete_collection_namespaced_role_binding_restriction(self): + """ + Test case for delete_collection_namespaced_role_binding_restriction + + + """ + pass + + def test_delete_collection_namespaced_route(self): + """ + Test case for delete_collection_namespaced_route + + + """ + pass + + def test_delete_collection_namespaced_template(self): + """ + Test case for delete_collection_namespaced_template + + + """ + pass + + def test_delete_collection_net_namespace(self): + """ + Test case for delete_collection_net_namespace + + + """ + pass + + def test_delete_collection_o_auth_access_token(self): + """ + Test case for delete_collection_o_auth_access_token + + + """ + pass + + def test_delete_collection_o_auth_authorize_token(self): + """ + Test case for delete_collection_o_auth_authorize_token + + + """ + pass + + def test_delete_collection_o_auth_client(self): + """ + Test case for delete_collection_o_auth_client + + + """ + pass + + def test_delete_collection_o_auth_client_authorization(self): + """ + Test case for delete_collection_o_auth_client_authorization + + + """ + pass + + def test_delete_collection_user(self): + """ + Test case for delete_collection_user + + + """ + pass + + def test_delete_group(self): + """ + Test case for delete_group + + + """ + pass + + def test_delete_host_subnet(self): + """ + Test case for delete_host_subnet + + + """ + pass + + def test_delete_identity(self): + """ + Test case for delete_identity + + + """ + pass + + def test_delete_image(self): + """ + Test case for delete_image + + + """ + pass + + def test_delete_image_signature(self): + """ + Test case for delete_image_signature + + + """ + pass + + def test_delete_namespaced_build(self): + """ + Test case for delete_namespaced_build + + + """ + pass + + def test_delete_namespaced_build_config(self): + """ + Test case for delete_namespaced_build_config + + + """ + pass + + def test_delete_namespaced_deployment_config(self): + """ + Test case for delete_namespaced_deployment_config + + + """ + pass + + def test_delete_namespaced_egress_network_policy(self): + """ + Test case for delete_namespaced_egress_network_policy + + + """ + pass + + def test_delete_namespaced_image_stream(self): + """ + Test case for delete_namespaced_image_stream + + + """ + pass + + def test_delete_namespaced_image_stream_tag(self): + """ + Test case for delete_namespaced_image_stream_tag + + + """ + pass + + def test_delete_namespaced_policy(self): + """ + Test case for delete_namespaced_policy + + + """ + pass + + def test_delete_namespaced_policy_binding(self): + """ + Test case for delete_namespaced_policy_binding + + + """ + pass + + def test_delete_namespaced_role(self): + """ + Test case for delete_namespaced_role + + + """ + pass + + def test_delete_namespaced_role_binding(self): + """ + Test case for delete_namespaced_role_binding + + + """ + pass + + def test_delete_namespaced_role_binding_restriction(self): + """ + Test case for delete_namespaced_role_binding_restriction + + + """ + pass + + def test_delete_namespaced_route(self): + """ + Test case for delete_namespaced_route + + + """ + pass + + def test_delete_namespaced_template(self): + """ + Test case for delete_namespaced_template + + + """ + pass + + def test_delete_net_namespace(self): + """ + Test case for delete_net_namespace + + + """ + pass + + def test_delete_o_auth_access_token(self): + """ + Test case for delete_o_auth_access_token + + + """ + pass + + def test_delete_o_auth_authorize_token(self): + """ + Test case for delete_o_auth_authorize_token + + + """ + pass + + def test_delete_o_auth_client(self): + """ + Test case for delete_o_auth_client + + + """ + pass + + def test_delete_o_auth_client_authorization(self): + """ + Test case for delete_o_auth_client_authorization + + + """ + pass + + def test_delete_project(self): + """ + Test case for delete_project + + + """ + pass + + def test_delete_user(self): + """ + Test case for delete_user + + + """ + pass + + def test_delete_user_identity_mapping(self): + """ + Test case for delete_user_identity_mapping + + + """ + pass + + def test_get_api_resources(self): + """ + Test case for get_api_resources + + + """ + pass + + def test_get_version(self): + """ + Test case for get_version + + + """ + pass + + def test_list_applied_cluster_resource_quota_for_all_namespaces(self): + """ + Test case for list_applied_cluster_resource_quota_for_all_namespaces + + + """ + pass + + def test_list_build_config_for_all_namespaces(self): + """ + Test case for list_build_config_for_all_namespaces + + + """ + pass + + def test_list_build_for_all_namespaces(self): + """ + Test case for list_build_for_all_namespaces + + + """ + pass + + def test_list_cluster_network(self): + """ + Test case for list_cluster_network + + + """ + pass + + def test_list_cluster_policy(self): + """ + Test case for list_cluster_policy + + + """ + pass + + def test_list_cluster_policy_binding(self): + """ + Test case for list_cluster_policy_binding + + + """ + pass + + def test_list_cluster_resource_quota(self): + """ + Test case for list_cluster_resource_quota + + + """ + pass + + def test_list_cluster_role(self): + """ + Test case for list_cluster_role + + + """ + pass + + def test_list_cluster_role_binding(self): + """ + Test case for list_cluster_role_binding + + + """ + pass + + def test_list_deployment_config_for_all_namespaces(self): + """ + Test case for list_deployment_config_for_all_namespaces + + + """ + pass + + def test_list_egress_network_policy_for_all_namespaces(self): + """ + Test case for list_egress_network_policy_for_all_namespaces + + + """ + pass + + def test_list_group(self): + """ + Test case for list_group + + + """ + pass + + def test_list_host_subnet(self): + """ + Test case for list_host_subnet + + + """ + pass + + def test_list_identity(self): + """ + Test case for list_identity + + + """ + pass + + def test_list_image(self): + """ + Test case for list_image + + + """ + pass + + def test_list_image_stream_for_all_namespaces(self): + """ + Test case for list_image_stream_for_all_namespaces + + + """ + pass + + def test_list_image_stream_tag_for_all_namespaces(self): + """ + Test case for list_image_stream_tag_for_all_namespaces + + + """ + pass + + def test_list_namespaced_applied_cluster_resource_quota(self): + """ + Test case for list_namespaced_applied_cluster_resource_quota + + + """ + pass + + def test_list_namespaced_build(self): + """ + Test case for list_namespaced_build + + + """ + pass + + def test_list_namespaced_build_config(self): + """ + Test case for list_namespaced_build_config + + + """ + pass + + def test_list_namespaced_deployment_config(self): + """ + Test case for list_namespaced_deployment_config + + + """ + pass + + def test_list_namespaced_egress_network_policy(self): + """ + Test case for list_namespaced_egress_network_policy + + + """ + pass + + def test_list_namespaced_image_stream(self): + """ + Test case for list_namespaced_image_stream + + + """ + pass + + def test_list_namespaced_image_stream_tag(self): + """ + Test case for list_namespaced_image_stream_tag + + + """ + pass + + def test_list_namespaced_policy(self): + """ + Test case for list_namespaced_policy + + + """ + pass + + def test_list_namespaced_policy_binding(self): + """ + Test case for list_namespaced_policy_binding + + + """ + pass + + def test_list_namespaced_role(self): + """ + Test case for list_namespaced_role + + + """ + pass + + def test_list_namespaced_role_binding(self): + """ + Test case for list_namespaced_role_binding + + + """ + pass + + def test_list_namespaced_role_binding_restriction(self): + """ + Test case for list_namespaced_role_binding_restriction + + + """ + pass + + def test_list_namespaced_route(self): + """ + Test case for list_namespaced_route + + + """ + pass + + def test_list_namespaced_template(self): + """ + Test case for list_namespaced_template + + + """ + pass + + def test_list_net_namespace(self): + """ + Test case for list_net_namespace + + + """ + pass + + def test_list_o_auth_access_token(self): + """ + Test case for list_o_auth_access_token + + + """ + pass + + def test_list_o_auth_authorize_token(self): + """ + Test case for list_o_auth_authorize_token + + + """ + pass + + def test_list_o_auth_client(self): + """ + Test case for list_o_auth_client + + + """ + pass + + def test_list_o_auth_client_authorization(self): + """ + Test case for list_o_auth_client_authorization + + + """ + pass + + def test_list_policy_binding_for_all_namespaces(self): + """ + Test case for list_policy_binding_for_all_namespaces + + + """ + pass + + def test_list_policy_for_all_namespaces(self): + """ + Test case for list_policy_for_all_namespaces + + + """ + pass + + def test_list_project(self): + """ + Test case for list_project + + + """ + pass + + def test_list_project_request(self): + """ + Test case for list_project_request + + + """ + pass + + def test_list_role_binding_for_all_namespaces(self): + """ + Test case for list_role_binding_for_all_namespaces + + + """ + pass + + def test_list_role_binding_restriction_for_all_namespaces(self): + """ + Test case for list_role_binding_restriction_for_all_namespaces + + + """ + pass + + def test_list_role_for_all_namespaces(self): + """ + Test case for list_role_for_all_namespaces + + + """ + pass + + def test_list_route_for_all_namespaces(self): + """ + Test case for list_route_for_all_namespaces + + + """ + pass + + def test_list_template_for_all_namespaces(self): + """ + Test case for list_template_for_all_namespaces + + + """ + pass + + def test_list_user(self): + """ + Test case for list_user + + + """ + pass + + def test_patch_cluster_network(self): + """ + Test case for patch_cluster_network + + + """ + pass + + def test_patch_cluster_policy(self): + """ + Test case for patch_cluster_policy + + + """ + pass + + def test_patch_cluster_policy_binding(self): + """ + Test case for patch_cluster_policy_binding + + + """ + pass + + def test_patch_cluster_resource_quota(self): + """ + Test case for patch_cluster_resource_quota + + + """ + pass + + def test_patch_cluster_resource_quota_status(self): + """ + Test case for patch_cluster_resource_quota_status + + + """ + pass + + def test_patch_cluster_role(self): + """ + Test case for patch_cluster_role + + + """ + pass + + def test_patch_cluster_role_binding(self): + """ + Test case for patch_cluster_role_binding + + + """ + pass + + def test_patch_group(self): + """ + Test case for patch_group + + + """ + pass + + def test_patch_host_subnet(self): + """ + Test case for patch_host_subnet + + + """ + pass + + def test_patch_identity(self): + """ + Test case for patch_identity + + + """ + pass + + def test_patch_image(self): + """ + Test case for patch_image + + + """ + pass + + def test_patch_namespaced_build(self): + """ + Test case for patch_namespaced_build + + + """ + pass + + def test_patch_namespaced_build_config(self): + """ + Test case for patch_namespaced_build_config + + + """ + pass + + def test_patch_namespaced_deployment_config(self): + """ + Test case for patch_namespaced_deployment_config + + + """ + pass + + def test_patch_namespaced_egress_network_policy(self): + """ + Test case for patch_namespaced_egress_network_policy + + + """ + pass + + def test_patch_namespaced_image_stream(self): + """ + Test case for patch_namespaced_image_stream + + + """ + pass + + def test_patch_namespaced_image_stream_tag(self): + """ + Test case for patch_namespaced_image_stream_tag + + + """ + pass + + def test_patch_namespaced_policy(self): + """ + Test case for patch_namespaced_policy + + + """ + pass + + def test_patch_namespaced_policy_binding(self): + """ + Test case for patch_namespaced_policy_binding + + + """ + pass + + def test_patch_namespaced_role(self): + """ + Test case for patch_namespaced_role + + + """ + pass + + def test_patch_namespaced_role_binding(self): + """ + Test case for patch_namespaced_role_binding + + + """ + pass + + def test_patch_namespaced_role_binding_restriction(self): + """ + Test case for patch_namespaced_role_binding_restriction + + + """ + pass + + def test_patch_namespaced_route(self): + """ + Test case for patch_namespaced_route + + + """ + pass + + def test_patch_namespaced_scale_scale(self): + """ + Test case for patch_namespaced_scale_scale + + + """ + pass + + def test_patch_namespaced_template(self): + """ + Test case for patch_namespaced_template + + + """ + pass + + def test_patch_net_namespace(self): + """ + Test case for patch_net_namespace + + + """ + pass + + def test_patch_o_auth_access_token(self): + """ + Test case for patch_o_auth_access_token + + + """ + pass + + def test_patch_o_auth_authorize_token(self): + """ + Test case for patch_o_auth_authorize_token + + + """ + pass + + def test_patch_o_auth_client(self): + """ + Test case for patch_o_auth_client + + + """ + pass + + def test_patch_o_auth_client_authorization(self): + """ + Test case for patch_o_auth_client_authorization + + + """ + pass + + def test_patch_project(self): + """ + Test case for patch_project + + + """ + pass + + def test_patch_user(self): + """ + Test case for patch_user + + + """ + pass + + def test_patch_user_identity_mapping(self): + """ + Test case for patch_user_identity_mapping + + + """ + pass + + def test_read_cluster_network(self): + """ + Test case for read_cluster_network + + + """ + pass + + def test_read_cluster_policy(self): + """ + Test case for read_cluster_policy + + + """ + pass + + def test_read_cluster_policy_binding(self): + """ + Test case for read_cluster_policy_binding + + + """ + pass + + def test_read_cluster_resource_quota(self): + """ + Test case for read_cluster_resource_quota + + + """ + pass + + def test_read_cluster_resource_quota_status(self): + """ + Test case for read_cluster_resource_quota_status + + + """ + pass + + def test_read_cluster_role(self): + """ + Test case for read_cluster_role + + + """ + pass + + def test_read_cluster_role_binding(self): + """ + Test case for read_cluster_role_binding + + + """ + pass + + def test_read_group(self): + """ + Test case for read_group + + + """ + pass + + def test_read_host_subnet(self): + """ + Test case for read_host_subnet + + + """ + pass + + def test_read_identity(self): + """ + Test case for read_identity + + + """ + pass + + def test_read_image(self): + """ + Test case for read_image + + + """ + pass + + def test_read_namespaced_applied_cluster_resource_quota(self): + """ + Test case for read_namespaced_applied_cluster_resource_quota + + + """ + pass + + def test_read_namespaced_build(self): + """ + Test case for read_namespaced_build + + + """ + pass + + def test_read_namespaced_build_config(self): + """ + Test case for read_namespaced_build_config + + + """ + pass + + def test_read_namespaced_build_log_log(self): + """ + Test case for read_namespaced_build_log_log + + + """ + pass + + def test_read_namespaced_deployment_config(self): + """ + Test case for read_namespaced_deployment_config + + + """ + pass + + def test_read_namespaced_deployment_log_log(self): + """ + Test case for read_namespaced_deployment_log_log + + + """ + pass + + def test_read_namespaced_egress_network_policy(self): + """ + Test case for read_namespaced_egress_network_policy + + + """ + pass + + def test_read_namespaced_image_stream(self): + """ + Test case for read_namespaced_image_stream + + + """ + pass + + def test_read_namespaced_image_stream_image(self): + """ + Test case for read_namespaced_image_stream_image + + + """ + pass + + def test_read_namespaced_image_stream_tag(self): + """ + Test case for read_namespaced_image_stream_tag + + + """ + pass + + def test_read_namespaced_policy(self): + """ + Test case for read_namespaced_policy + + + """ + pass + + def test_read_namespaced_policy_binding(self): + """ + Test case for read_namespaced_policy_binding + + + """ + pass + + def test_read_namespaced_role(self): + """ + Test case for read_namespaced_role + + + """ + pass + + def test_read_namespaced_role_binding(self): + """ + Test case for read_namespaced_role_binding + + + """ + pass + + def test_read_namespaced_role_binding_restriction(self): + """ + Test case for read_namespaced_role_binding_restriction + + + """ + pass + + def test_read_namespaced_route(self): + """ + Test case for read_namespaced_route + + + """ + pass + + def test_read_namespaced_scale_scale(self): + """ + Test case for read_namespaced_scale_scale + + + """ + pass + + def test_read_namespaced_secret_list_secrets(self): + """ + Test case for read_namespaced_secret_list_secrets + + + """ + pass + + def test_read_namespaced_template(self): + """ + Test case for read_namespaced_template + + + """ + pass + + def test_read_net_namespace(self): + """ + Test case for read_net_namespace + + + """ + pass + + def test_read_o_auth_access_token(self): + """ + Test case for read_o_auth_access_token + + + """ + pass + + def test_read_o_auth_authorize_token(self): + """ + Test case for read_o_auth_authorize_token + + + """ + pass + + def test_read_o_auth_client(self): + """ + Test case for read_o_auth_client + + + """ + pass + + def test_read_o_auth_client_authorization(self): + """ + Test case for read_o_auth_client_authorization + + + """ + pass + + def test_read_project(self): + """ + Test case for read_project + + + """ + pass + + def test_read_user(self): + """ + Test case for read_user + + + """ + pass + + def test_read_user_identity_mapping(self): + """ + Test case for read_user_identity_mapping + + + """ + pass + + def test_replace_cluster_network(self): + """ + Test case for replace_cluster_network + + + """ + pass + + def test_replace_cluster_policy(self): + """ + Test case for replace_cluster_policy + + + """ + pass + + def test_replace_cluster_policy_binding(self): + """ + Test case for replace_cluster_policy_binding + + + """ + pass + + def test_replace_cluster_resource_quota(self): + """ + Test case for replace_cluster_resource_quota + + + """ + pass + + def test_replace_cluster_resource_quota_status(self): + """ + Test case for replace_cluster_resource_quota_status + + + """ + pass + + def test_replace_cluster_role(self): + """ + Test case for replace_cluster_role + + + """ + pass + + def test_replace_cluster_role_binding(self): + """ + Test case for replace_cluster_role_binding + + + """ + pass + + def test_replace_group(self): + """ + Test case for replace_group + + + """ + pass + + def test_replace_host_subnet(self): + """ + Test case for replace_host_subnet + + + """ + pass + + def test_replace_identity(self): + """ + Test case for replace_identity + + + """ + pass + + def test_replace_image(self): + """ + Test case for replace_image + + + """ + pass + + def test_replace_namespaced_build(self): + """ + Test case for replace_namespaced_build + + + """ + pass + + def test_replace_namespaced_build_config(self): + """ + Test case for replace_namespaced_build_config + + + """ + pass + + def test_replace_namespaced_build_details(self): + """ + Test case for replace_namespaced_build_details + + + """ + pass + + def test_replace_namespaced_deployment_config(self): + """ + Test case for replace_namespaced_deployment_config + + + """ + pass + + def test_replace_namespaced_deployment_config_status(self): + """ + Test case for replace_namespaced_deployment_config_status + + + """ + pass + + def test_replace_namespaced_egress_network_policy(self): + """ + Test case for replace_namespaced_egress_network_policy + + + """ + pass + + def test_replace_namespaced_image_stream(self): + """ + Test case for replace_namespaced_image_stream + + + """ + pass + + def test_replace_namespaced_image_stream_status(self): + """ + Test case for replace_namespaced_image_stream_status + + + """ + pass + + def test_replace_namespaced_image_stream_tag(self): + """ + Test case for replace_namespaced_image_stream_tag + + + """ + pass + + def test_replace_namespaced_policy(self): + """ + Test case for replace_namespaced_policy + + + """ + pass + + def test_replace_namespaced_policy_binding(self): + """ + Test case for replace_namespaced_policy_binding + + + """ + pass + + def test_replace_namespaced_role(self): + """ + Test case for replace_namespaced_role + + + """ + pass + + def test_replace_namespaced_role_binding(self): + """ + Test case for replace_namespaced_role_binding + + + """ + pass + + def test_replace_namespaced_role_binding_restriction(self): + """ + Test case for replace_namespaced_role_binding_restriction + + + """ + pass + + def test_replace_namespaced_route(self): + """ + Test case for replace_namespaced_route + + + """ + pass + + def test_replace_namespaced_route_status(self): + """ + Test case for replace_namespaced_route_status + + + """ + pass + + def test_replace_namespaced_scale_scale(self): + """ + Test case for replace_namespaced_scale_scale + + + """ + pass + + def test_replace_namespaced_template(self): + """ + Test case for replace_namespaced_template + + + """ + pass + + def test_replace_net_namespace(self): + """ + Test case for replace_net_namespace + + + """ + pass + + def test_replace_o_auth_access_token(self): + """ + Test case for replace_o_auth_access_token + + + """ + pass + + def test_replace_o_auth_authorize_token(self): + """ + Test case for replace_o_auth_authorize_token + + + """ + pass + + def test_replace_o_auth_client(self): + """ + Test case for replace_o_auth_client + + + """ + pass + + def test_replace_o_auth_client_authorization(self): + """ + Test case for replace_o_auth_client_authorization + + + """ + pass + + def test_replace_project(self): + """ + Test case for replace_project + + + """ + pass + + def test_replace_user(self): + """ + Test case for replace_user + + + """ + pass + + def test_replace_user_identity_mapping(self): + """ + Test case for replace_user_identity_mapping + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_osapi_api.py b/kubernetes/test/test_osapi_api.py new file mode 100644 index 0000000000..68a699c54b --- /dev/null +++ b/kubernetes/test/test_osapi_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.apis.osapi_api import OsapiApi + + +class TestOsapiApi(unittest.TestCase): + """ OsapiApi unit test stubs """ + + def setUp(self): + self.api = kubernetes.client.apis.osapi_api.OsapiApi() + + def tearDown(self): + pass + + def test_get_version(self): + """ + Test case for get_version + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_policy_api.py b/kubernetes/test/test_policy_api.py index 7033666a2a..2208dc3e50 100644 --- a/kubernetes/test/test_policy_api.py +++ b/kubernetes/test/test_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_policy_v1beta1_api.py b/kubernetes/test/test_policy_v1beta1_api.py index 8840d662cc..6c1a394567 100644 --- a/kubernetes/test/test_policy_v1beta1_api.py +++ b/kubernetes/test/test_policy_v1beta1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -36,6 +36,14 @@ def test_create_namespaced_pod_disruption_budget(self): Test case for create_namespaced_pod_disruption_budget + """ + pass + + def test_create_pod_disruption_budget_for_all_namespaces(self): + """ + Test case for create_pod_disruption_budget_for_all_namespaces + + """ pass diff --git a/kubernetes/test/test_rbac_authorization_api.py b/kubernetes/test/test_rbac_authorization_api.py deleted file mode 100644 index c147bc9393..0000000000 --- a/kubernetes/test/test_rbac_authorization_api.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.rbac_authorization_api import RbacAuthorizationApi - - -class TestRbacAuthorizationApi(unittest.TestCase): - """ RbacAuthorizationApi unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.rbac_authorization_api.RbacAuthorizationApi() - - def tearDown(self): - pass - - def test_get_api_group(self): - """ - Test case for get_api_group - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_rbac_authorization_v1alpha1_api.py b/kubernetes/test/test_rbac_authorization_v1alpha1_api.py deleted file mode 100644 index f00588e069..0000000000 --- a/kubernetes/test/test_rbac_authorization_v1alpha1_api.py +++ /dev/null @@ -1,284 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api - - -class TestRbacAuthorizationV1alpha1Api(unittest.TestCase): - """ RbacAuthorizationV1alpha1Api unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.rbac_authorization_v1alpha1_api.RbacAuthorizationV1alpha1Api() - - def tearDown(self): - pass - - def test_create_cluster_role(self): - """ - Test case for create_cluster_role - - - """ - pass - - def test_create_cluster_role_binding(self): - """ - Test case for create_cluster_role_binding - - - """ - pass - - def test_create_namespaced_role(self): - """ - Test case for create_namespaced_role - - - """ - pass - - def test_create_namespaced_role_binding(self): - """ - Test case for create_namespaced_role_binding - - - """ - pass - - def test_delete_cluster_role(self): - """ - Test case for delete_cluster_role - - - """ - pass - - def test_delete_cluster_role_binding(self): - """ - Test case for delete_cluster_role_binding - - - """ - pass - - def test_delete_collection_cluster_role(self): - """ - Test case for delete_collection_cluster_role - - - """ - pass - - def test_delete_collection_cluster_role_binding(self): - """ - Test case for delete_collection_cluster_role_binding - - - """ - pass - - def test_delete_collection_namespaced_role(self): - """ - Test case for delete_collection_namespaced_role - - - """ - pass - - def test_delete_collection_namespaced_role_binding(self): - """ - Test case for delete_collection_namespaced_role_binding - - - """ - pass - - def test_delete_namespaced_role(self): - """ - Test case for delete_namespaced_role - - - """ - pass - - def test_delete_namespaced_role_binding(self): - """ - Test case for delete_namespaced_role_binding - - - """ - pass - - def test_get_api_resources(self): - """ - Test case for get_api_resources - - - """ - pass - - def test_list_cluster_role(self): - """ - Test case for list_cluster_role - - - """ - pass - - def test_list_cluster_role_binding(self): - """ - Test case for list_cluster_role_binding - - - """ - pass - - def test_list_namespaced_role(self): - """ - Test case for list_namespaced_role - - - """ - pass - - def test_list_namespaced_role_binding(self): - """ - Test case for list_namespaced_role_binding - - - """ - pass - - def test_list_role_binding_for_all_namespaces(self): - """ - Test case for list_role_binding_for_all_namespaces - - - """ - pass - - def test_list_role_for_all_namespaces(self): - """ - Test case for list_role_for_all_namespaces - - - """ - pass - - def test_patch_cluster_role(self): - """ - Test case for patch_cluster_role - - - """ - pass - - def test_patch_cluster_role_binding(self): - """ - Test case for patch_cluster_role_binding - - - """ - pass - - def test_patch_namespaced_role(self): - """ - Test case for patch_namespaced_role - - - """ - pass - - def test_patch_namespaced_role_binding(self): - """ - Test case for patch_namespaced_role_binding - - - """ - pass - - def test_read_cluster_role(self): - """ - Test case for read_cluster_role - - - """ - pass - - def test_read_cluster_role_binding(self): - """ - Test case for read_cluster_role_binding - - - """ - pass - - def test_read_namespaced_role(self): - """ - Test case for read_namespaced_role - - - """ - pass - - def test_read_namespaced_role_binding(self): - """ - Test case for read_namespaced_role_binding - - - """ - pass - - def test_replace_cluster_role(self): - """ - Test case for replace_cluster_role - - - """ - pass - - def test_replace_cluster_role_binding(self): - """ - Test case for replace_cluster_role_binding - - - """ - pass - - def test_replace_namespaced_role(self): - """ - Test case for replace_namespaced_role - - - """ - pass - - def test_replace_namespaced_role_binding(self): - """ - Test case for replace_namespaced_role_binding - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_rbac_authorization_v1beta1_api.py b/kubernetes/test/test_rbac_authorization_v1beta1_api.py deleted file mode 100644 index 8206eeb863..0000000000 --- a/kubernetes/test/test_rbac_authorization_v1beta1_api.py +++ /dev/null @@ -1,284 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api - - -class TestRbacAuthorizationV1beta1Api(unittest.TestCase): - """ RbacAuthorizationV1beta1Api unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.rbac_authorization_v1beta1_api.RbacAuthorizationV1beta1Api() - - def tearDown(self): - pass - - def test_create_cluster_role(self): - """ - Test case for create_cluster_role - - - """ - pass - - def test_create_cluster_role_binding(self): - """ - Test case for create_cluster_role_binding - - - """ - pass - - def test_create_namespaced_role(self): - """ - Test case for create_namespaced_role - - - """ - pass - - def test_create_namespaced_role_binding(self): - """ - Test case for create_namespaced_role_binding - - - """ - pass - - def test_delete_cluster_role(self): - """ - Test case for delete_cluster_role - - - """ - pass - - def test_delete_cluster_role_binding(self): - """ - Test case for delete_cluster_role_binding - - - """ - pass - - def test_delete_collection_cluster_role(self): - """ - Test case for delete_collection_cluster_role - - - """ - pass - - def test_delete_collection_cluster_role_binding(self): - """ - Test case for delete_collection_cluster_role_binding - - - """ - pass - - def test_delete_collection_namespaced_role(self): - """ - Test case for delete_collection_namespaced_role - - - """ - pass - - def test_delete_collection_namespaced_role_binding(self): - """ - Test case for delete_collection_namespaced_role_binding - - - """ - pass - - def test_delete_namespaced_role(self): - """ - Test case for delete_namespaced_role - - - """ - pass - - def test_delete_namespaced_role_binding(self): - """ - Test case for delete_namespaced_role_binding - - - """ - pass - - def test_get_api_resources(self): - """ - Test case for get_api_resources - - - """ - pass - - def test_list_cluster_role(self): - """ - Test case for list_cluster_role - - - """ - pass - - def test_list_cluster_role_binding(self): - """ - Test case for list_cluster_role_binding - - - """ - pass - - def test_list_namespaced_role(self): - """ - Test case for list_namespaced_role - - - """ - pass - - def test_list_namespaced_role_binding(self): - """ - Test case for list_namespaced_role_binding - - - """ - pass - - def test_list_role_binding_for_all_namespaces(self): - """ - Test case for list_role_binding_for_all_namespaces - - - """ - pass - - def test_list_role_for_all_namespaces(self): - """ - Test case for list_role_for_all_namespaces - - - """ - pass - - def test_patch_cluster_role(self): - """ - Test case for patch_cluster_role - - - """ - pass - - def test_patch_cluster_role_binding(self): - """ - Test case for patch_cluster_role_binding - - - """ - pass - - def test_patch_namespaced_role(self): - """ - Test case for patch_namespaced_role - - - """ - pass - - def test_patch_namespaced_role_binding(self): - """ - Test case for patch_namespaced_role_binding - - - """ - pass - - def test_read_cluster_role(self): - """ - Test case for read_cluster_role - - - """ - pass - - def test_read_cluster_role_binding(self): - """ - Test case for read_cluster_role_binding - - - """ - pass - - def test_read_namespaced_role(self): - """ - Test case for read_namespaced_role - - - """ - pass - - def test_read_namespaced_role_binding(self): - """ - Test case for read_namespaced_role_binding - - - """ - pass - - def test_replace_cluster_role(self): - """ - Test case for replace_cluster_role - - - """ - pass - - def test_replace_cluster_role_binding(self): - """ - Test case for replace_cluster_role_binding - - - """ - pass - - def test_replace_namespaced_role(self): - """ - Test case for replace_namespaced_role - - - """ - pass - - def test_replace_namespaced_role_binding(self): - """ - Test case for replace_namespaced_role_binding - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_runtime_raw_extension.py b/kubernetes/test/test_runtime_raw_extension.py index 6569d718ca..05b6047b51 100644 --- a/kubernetes/test/test_runtime_raw_extension.py +++ b/kubernetes/test/test_runtime_raw_extension.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_settings_api.py b/kubernetes/test/test_settings_api.py deleted file mode 100644 index e266034720..0000000000 --- a/kubernetes/test/test_settings_api.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.settings_api import SettingsApi - - -class TestSettingsApi(unittest.TestCase): - """ SettingsApi unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.settings_api.SettingsApi() - - def tearDown(self): - pass - - def test_get_api_group(self): - """ - Test case for get_api_group - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_settings_v1alpha1_api.py b/kubernetes/test/test_settings_v1alpha1_api.py deleted file mode 100644 index 028ae53c27..0000000000 --- a/kubernetes/test/test_settings_v1alpha1_api.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.settings_v1alpha1_api import SettingsV1alpha1Api - - -class TestSettingsV1alpha1Api(unittest.TestCase): - """ SettingsV1alpha1Api unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.settings_v1alpha1_api.SettingsV1alpha1Api() - - def tearDown(self): - pass - - def test_create_namespaced_pod_preset(self): - """ - Test case for create_namespaced_pod_preset - - - """ - pass - - def test_delete_collection_namespaced_pod_preset(self): - """ - Test case for delete_collection_namespaced_pod_preset - - - """ - pass - - def test_delete_namespaced_pod_preset(self): - """ - Test case for delete_namespaced_pod_preset - - - """ - pass - - def test_get_api_resources(self): - """ - Test case for get_api_resources - - - """ - pass - - def test_list_namespaced_pod_preset(self): - """ - Test case for list_namespaced_pod_preset - - - """ - pass - - def test_list_pod_preset_for_all_namespaces(self): - """ - Test case for list_pod_preset_for_all_namespaces - - - """ - pass - - def test_patch_namespaced_pod_preset(self): - """ - Test case for patch_namespaced_pod_preset - - - """ - pass - - def test_read_namespaced_pod_preset(self): - """ - Test case for read_namespaced_pod_preset - - - """ - pass - - def test_replace_namespaced_pod_preset(self): - """ - Test case for replace_namespaced_pod_preset - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_storage_api.py b/kubernetes/test/test_storage_api.py index c8c88e5e1f..782285c590 100644 --- a/kubernetes/test/test_storage_api.py +++ b/kubernetes/test/test_storage_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_storage_v1_api.py b/kubernetes/test/test_storage_v1_api.py deleted file mode 100644 index d88c965552..0000000000 --- a/kubernetes/test/test_storage_v1_api.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.apis.storage_v1_api import StorageV1Api - - -class TestStorageV1Api(unittest.TestCase): - """ StorageV1Api unit test stubs """ - - def setUp(self): - self.api = kubernetes.client.apis.storage_v1_api.StorageV1Api() - - def tearDown(self): - pass - - def test_create_storage_class(self): - """ - Test case for create_storage_class - - - """ - pass - - def test_delete_collection_storage_class(self): - """ - Test case for delete_collection_storage_class - - - """ - pass - - def test_delete_storage_class(self): - """ - Test case for delete_storage_class - - - """ - pass - - def test_get_api_resources(self): - """ - Test case for get_api_resources - - - """ - pass - - def test_list_storage_class(self): - """ - Test case for list_storage_class - - - """ - pass - - def test_patch_storage_class(self): - """ - Test case for patch_storage_class - - - """ - pass - - def test_read_storage_class(self): - """ - Test case for read_storage_class - - - """ - pass - - def test_replace_storage_class(self): - """ - Test case for replace_storage_class - - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_storage_v1beta1_api.py b/kubernetes/test/test_storage_v1beta1_api.py index e1d3fcd561..b4b77c13e2 100644 --- a/kubernetes/test/test_storage_v1beta1_api.py +++ b/kubernetes/test/test_storage_v1beta1_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_third_party_resources_api.py b/kubernetes/test/test_third_party_resources_api.py index 7610fdf474..5418d4452d 100644 --- a/kubernetes/test/test_third_party_resources_api.py +++ b/kubernetes/test/test_third_party_resources_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_unversioned_api_group.py b/kubernetes/test/test_unversioned_api_group.py new file mode 100644 index 0000000000..96d8682c9c --- /dev/null +++ b/kubernetes/test/test_unversioned_api_group.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_api_group import UnversionedAPIGroup + + +class TestUnversionedAPIGroup(unittest.TestCase): + """ UnversionedAPIGroup unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedAPIGroup(self): + """ + Test UnversionedAPIGroup + """ + model = kubernetes.client.models.unversioned_api_group.UnversionedAPIGroup() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_api_group_list.py b/kubernetes/test/test_unversioned_api_group_list.py new file mode 100644 index 0000000000..43d886baf1 --- /dev/null +++ b/kubernetes/test/test_unversioned_api_group_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_api_group_list import UnversionedAPIGroupList + + +class TestUnversionedAPIGroupList(unittest.TestCase): + """ UnversionedAPIGroupList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedAPIGroupList(self): + """ + Test UnversionedAPIGroupList + """ + model = kubernetes.client.models.unversioned_api_group_list.UnversionedAPIGroupList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_api_resource.py b/kubernetes/test/test_unversioned_api_resource.py new file mode 100644 index 0000000000..36861e0744 --- /dev/null +++ b/kubernetes/test/test_unversioned_api_resource.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_api_resource import UnversionedAPIResource + + +class TestUnversionedAPIResource(unittest.TestCase): + """ UnversionedAPIResource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedAPIResource(self): + """ + Test UnversionedAPIResource + """ + model = kubernetes.client.models.unversioned_api_resource.UnversionedAPIResource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_api_resource_list.py b/kubernetes/test/test_unversioned_api_resource_list.py new file mode 100644 index 0000000000..db2febdf01 --- /dev/null +++ b/kubernetes/test/test_unversioned_api_resource_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_api_resource_list import UnversionedAPIResourceList + + +class TestUnversionedAPIResourceList(unittest.TestCase): + """ UnversionedAPIResourceList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedAPIResourceList(self): + """ + Test UnversionedAPIResourceList + """ + model = kubernetes.client.models.unversioned_api_resource_list.UnversionedAPIResourceList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_api_versions.py b/kubernetes/test/test_unversioned_api_versions.py new file mode 100644 index 0000000000..3121ebd80a --- /dev/null +++ b/kubernetes/test/test_unversioned_api_versions.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_api_versions import UnversionedAPIVersions + + +class TestUnversionedAPIVersions(unittest.TestCase): + """ UnversionedAPIVersions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedAPIVersions(self): + """ + Test UnversionedAPIVersions + """ + model = kubernetes.client.models.unversioned_api_versions.UnversionedAPIVersions() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_group_version_for_discovery.py b/kubernetes/test/test_unversioned_group_version_for_discovery.py new file mode 100644 index 0000000000..0f2f7e1801 --- /dev/null +++ b/kubernetes/test/test_unversioned_group_version_for_discovery.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_group_version_for_discovery import UnversionedGroupVersionForDiscovery + + +class TestUnversionedGroupVersionForDiscovery(unittest.TestCase): + """ UnversionedGroupVersionForDiscovery unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedGroupVersionForDiscovery(self): + """ + Test UnversionedGroupVersionForDiscovery + """ + model = kubernetes.client.models.unversioned_group_version_for_discovery.UnversionedGroupVersionForDiscovery() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_label_selector.py b/kubernetes/test/test_unversioned_label_selector.py new file mode 100644 index 0000000000..e6ed38ad7b --- /dev/null +++ b/kubernetes/test/test_unversioned_label_selector.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_label_selector import UnversionedLabelSelector + + +class TestUnversionedLabelSelector(unittest.TestCase): + """ UnversionedLabelSelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedLabelSelector(self): + """ + Test UnversionedLabelSelector + """ + model = kubernetes.client.models.unversioned_label_selector.UnversionedLabelSelector() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_label_selector_requirement.py b/kubernetes/test/test_unversioned_label_selector_requirement.py new file mode 100644 index 0000000000..cf68a02722 --- /dev/null +++ b/kubernetes/test/test_unversioned_label_selector_requirement.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_label_selector_requirement import UnversionedLabelSelectorRequirement + + +class TestUnversionedLabelSelectorRequirement(unittest.TestCase): + """ UnversionedLabelSelectorRequirement unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedLabelSelectorRequirement(self): + """ + Test UnversionedLabelSelectorRequirement + """ + model = kubernetes.client.models.unversioned_label_selector_requirement.UnversionedLabelSelectorRequirement() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_list_meta.py b/kubernetes/test/test_unversioned_list_meta.py new file mode 100644 index 0000000000..c0e639ba44 --- /dev/null +++ b/kubernetes/test/test_unversioned_list_meta.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_list_meta import UnversionedListMeta + + +class TestUnversionedListMeta(unittest.TestCase): + """ UnversionedListMeta unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedListMeta(self): + """ + Test UnversionedListMeta + """ + model = kubernetes.client.models.unversioned_list_meta.UnversionedListMeta() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_server_address_by_client_cidr.py b/kubernetes/test/test_unversioned_server_address_by_client_cidr.py new file mode 100644 index 0000000000..0bf66a82b3 --- /dev/null +++ b/kubernetes/test/test_unversioned_server_address_by_client_cidr.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_server_address_by_client_cidr import UnversionedServerAddressByClientCIDR + + +class TestUnversionedServerAddressByClientCIDR(unittest.TestCase): + """ UnversionedServerAddressByClientCIDR unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedServerAddressByClientCIDR(self): + """ + Test UnversionedServerAddressByClientCIDR + """ + model = kubernetes.client.models.unversioned_server_address_by_client_cidr.UnversionedServerAddressByClientCIDR() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_status.py b/kubernetes/test/test_unversioned_status.py new file mode 100644 index 0000000000..79c52f0940 --- /dev/null +++ b/kubernetes/test/test_unversioned_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_status import UnversionedStatus + + +class TestUnversionedStatus(unittest.TestCase): + """ UnversionedStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedStatus(self): + """ + Test UnversionedStatus + """ + model = kubernetes.client.models.unversioned_status.UnversionedStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_status_cause.py b/kubernetes/test/test_unversioned_status_cause.py new file mode 100644 index 0000000000..798f607df3 --- /dev/null +++ b/kubernetes/test/test_unversioned_status_cause.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_status_cause import UnversionedStatusCause + + +class TestUnversionedStatusCause(unittest.TestCase): + """ UnversionedStatusCause unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedStatusCause(self): + """ + Test UnversionedStatusCause + """ + model = kubernetes.client.models.unversioned_status_cause.UnversionedStatusCause() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_status_details.py b/kubernetes/test/test_unversioned_status_details.py new file mode 100644 index 0000000000..443381e5c0 --- /dev/null +++ b/kubernetes/test/test_unversioned_status_details.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.unversioned_status_details import UnversionedStatusDetails + + +class TestUnversionedStatusDetails(unittest.TestCase): + """ UnversionedStatusDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUnversionedStatusDetails(self): + """ + Test UnversionedStatusDetails + """ + model = kubernetes.client.models.unversioned_status_details.UnversionedStatusDetails() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_affinity.py b/kubernetes/test/test_v1_affinity.py deleted file mode 100644 index 6f5111c470..0000000000 --- a/kubernetes/test/test_v1_affinity.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_affinity import V1Affinity - - -class TestV1Affinity(unittest.TestCase): - """ V1Affinity unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Affinity(self): - """ - Test V1Affinity - """ - model = kubernetes.client.models.v1_affinity.V1Affinity() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_group.py b/kubernetes/test/test_v1_api_group.py deleted file mode 100644 index f9d02f0b53..0000000000 --- a/kubernetes/test/test_v1_api_group.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_group import V1APIGroup - - -class TestV1APIGroup(unittest.TestCase): - """ V1APIGroup unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIGroup(self): - """ - Test V1APIGroup - """ - model = kubernetes.client.models.v1_api_group.V1APIGroup() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_group_list.py b/kubernetes/test/test_v1_api_group_list.py deleted file mode 100644 index 54a93f35ca..0000000000 --- a/kubernetes/test/test_v1_api_group_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_group_list import V1APIGroupList - - -class TestV1APIGroupList(unittest.TestCase): - """ V1APIGroupList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIGroupList(self): - """ - Test V1APIGroupList - """ - model = kubernetes.client.models.v1_api_group_list.V1APIGroupList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_resource.py b/kubernetes/test/test_v1_api_resource.py deleted file mode 100644 index a75c97e078..0000000000 --- a/kubernetes/test/test_v1_api_resource.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_resource import V1APIResource - - -class TestV1APIResource(unittest.TestCase): - """ V1APIResource unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIResource(self): - """ - Test V1APIResource - """ - model = kubernetes.client.models.v1_api_resource.V1APIResource() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_resource_list.py b/kubernetes/test/test_v1_api_resource_list.py deleted file mode 100644 index f1dafde493..0000000000 --- a/kubernetes/test/test_v1_api_resource_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_resource_list import V1APIResourceList - - -class TestV1APIResourceList(unittest.TestCase): - """ V1APIResourceList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIResourceList(self): - """ - Test V1APIResourceList - """ - model = kubernetes.client.models.v1_api_resource_list.V1APIResourceList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_versions.py b/kubernetes/test/test_v1_api_versions.py deleted file mode 100644 index 8d8aed0762..0000000000 --- a/kubernetes/test/test_v1_api_versions.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_versions import V1APIVersions - - -class TestV1APIVersions(unittest.TestCase): - """ V1APIVersions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIVersions(self): - """ - Test V1APIVersions - """ - model = kubernetes.client.models.v1_api_versions.V1APIVersions() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_applied_cluster_resource_quota.py b/kubernetes/test/test_v1_applied_cluster_resource_quota.py new file mode 100644 index 0000000000..8ad9592614 --- /dev/null +++ b/kubernetes/test/test_v1_applied_cluster_resource_quota.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_applied_cluster_resource_quota import V1AppliedClusterResourceQuota + + +class TestV1AppliedClusterResourceQuota(unittest.TestCase): + """ V1AppliedClusterResourceQuota unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1AppliedClusterResourceQuota(self): + """ + Test V1AppliedClusterResourceQuota + """ + model = kubernetes.client.models.v1_applied_cluster_resource_quota.V1AppliedClusterResourceQuota() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_applied_cluster_resource_quota_list.py b/kubernetes/test/test_v1_applied_cluster_resource_quota_list.py new file mode 100644 index 0000000000..9db1f53d3d --- /dev/null +++ b/kubernetes/test/test_v1_applied_cluster_resource_quota_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_applied_cluster_resource_quota_list import V1AppliedClusterResourceQuotaList + + +class TestV1AppliedClusterResourceQuotaList(unittest.TestCase): + """ V1AppliedClusterResourceQuotaList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1AppliedClusterResourceQuotaList(self): + """ + Test V1AppliedClusterResourceQuotaList + """ + model = kubernetes.client.models.v1_applied_cluster_resource_quota_list.V1AppliedClusterResourceQuotaList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_attached_volume.py b/kubernetes/test/test_v1_attached_volume.py index a2c4b582c4..0b2f84dda1 100644 --- a/kubernetes/test/test_v1_attached_volume.py +++ b/kubernetes/test/test_v1_attached_volume.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py b/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py index 05e9947188..018cf9b131 100644 --- a/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py +++ b/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_azure_disk_volume_source.py b/kubernetes/test/test_v1_azure_disk_volume_source.py index a7bc6d58f1..b024106719 100644 --- a/kubernetes/test/test_v1_azure_disk_volume_source.py +++ b/kubernetes/test/test_v1_azure_disk_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_azure_file_volume_source.py b/kubernetes/test/test_v1_azure_file_volume_source.py index 9812bb465d..29484f04c3 100644 --- a/kubernetes/test/test_v1_azure_file_volume_source.py +++ b/kubernetes/test/test_v1_azure_file_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_binary_build_source.py b/kubernetes/test/test_v1_binary_build_source.py new file mode 100644 index 0000000000..1392353633 --- /dev/null +++ b/kubernetes/test/test_v1_binary_build_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_binary_build_source import V1BinaryBuildSource + + +class TestV1BinaryBuildSource(unittest.TestCase): + """ V1BinaryBuildSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BinaryBuildSource(self): + """ + Test V1BinaryBuildSource + """ + model = kubernetes.client.models.v1_binary_build_source.V1BinaryBuildSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_binding.py b/kubernetes/test/test_v1_binding.py index 954d8a750f..9f03c20110 100644 --- a/kubernetes/test/test_v1_binding.py +++ b/kubernetes/test/test_v1_binding.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_build.py b/kubernetes/test/test_v1_build.py new file mode 100644 index 0000000000..5fba57b577 --- /dev/null +++ b/kubernetes/test/test_v1_build.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build import V1Build + + +class TestV1Build(unittest.TestCase): + """ V1Build unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Build(self): + """ + Test V1Build + """ + model = kubernetes.client.models.v1_build.V1Build() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_config.py b/kubernetes/test/test_v1_build_config.py new file mode 100644 index 0000000000..79892a6668 --- /dev/null +++ b/kubernetes/test/test_v1_build_config.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_config import V1BuildConfig + + +class TestV1BuildConfig(unittest.TestCase): + """ V1BuildConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildConfig(self): + """ + Test V1BuildConfig + """ + model = kubernetes.client.models.v1_build_config.V1BuildConfig() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_config_list.py b/kubernetes/test/test_v1_build_config_list.py new file mode 100644 index 0000000000..c51b76c464 --- /dev/null +++ b/kubernetes/test/test_v1_build_config_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_config_list import V1BuildConfigList + + +class TestV1BuildConfigList(unittest.TestCase): + """ V1BuildConfigList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildConfigList(self): + """ + Test V1BuildConfigList + """ + model = kubernetes.client.models.v1_build_config_list.V1BuildConfigList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_config_spec.py b/kubernetes/test/test_v1_build_config_spec.py new file mode 100644 index 0000000000..7db1ad10d3 --- /dev/null +++ b/kubernetes/test/test_v1_build_config_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_config_spec import V1BuildConfigSpec + + +class TestV1BuildConfigSpec(unittest.TestCase): + """ V1BuildConfigSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildConfigSpec(self): + """ + Test V1BuildConfigSpec + """ + model = kubernetes.client.models.v1_build_config_spec.V1BuildConfigSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_config_status.py b/kubernetes/test/test_v1_build_config_status.py new file mode 100644 index 0000000000..fca500e3b4 --- /dev/null +++ b/kubernetes/test/test_v1_build_config_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_config_status import V1BuildConfigStatus + + +class TestV1BuildConfigStatus(unittest.TestCase): + """ V1BuildConfigStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildConfigStatus(self): + """ + Test V1BuildConfigStatus + """ + model = kubernetes.client.models.v1_build_config_status.V1BuildConfigStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_list.py b/kubernetes/test/test_v1_build_list.py new file mode 100644 index 0000000000..1d00e62f84 --- /dev/null +++ b/kubernetes/test/test_v1_build_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_list import V1BuildList + + +class TestV1BuildList(unittest.TestCase): + """ V1BuildList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildList(self): + """ + Test V1BuildList + """ + model = kubernetes.client.models.v1_build_list.V1BuildList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_log.py b/kubernetes/test/test_v1_build_log.py new file mode 100644 index 0000000000..70820f3259 --- /dev/null +++ b/kubernetes/test/test_v1_build_log.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_log import V1BuildLog + + +class TestV1BuildLog(unittest.TestCase): + """ V1BuildLog unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildLog(self): + """ + Test V1BuildLog + """ + model = kubernetes.client.models.v1_build_log.V1BuildLog() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_output.py b/kubernetes/test/test_v1_build_output.py new file mode 100644 index 0000000000..38b0dc390d --- /dev/null +++ b/kubernetes/test/test_v1_build_output.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_output import V1BuildOutput + + +class TestV1BuildOutput(unittest.TestCase): + """ V1BuildOutput unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildOutput(self): + """ + Test V1BuildOutput + """ + model = kubernetes.client.models.v1_build_output.V1BuildOutput() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_post_commit_spec.py b/kubernetes/test/test_v1_build_post_commit_spec.py new file mode 100644 index 0000000000..78bfc0bbba --- /dev/null +++ b/kubernetes/test/test_v1_build_post_commit_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_post_commit_spec import V1BuildPostCommitSpec + + +class TestV1BuildPostCommitSpec(unittest.TestCase): + """ V1BuildPostCommitSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildPostCommitSpec(self): + """ + Test V1BuildPostCommitSpec + """ + model = kubernetes.client.models.v1_build_post_commit_spec.V1BuildPostCommitSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_request.py b/kubernetes/test/test_v1_build_request.py new file mode 100644 index 0000000000..a788398f1a --- /dev/null +++ b/kubernetes/test/test_v1_build_request.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_request import V1BuildRequest + + +class TestV1BuildRequest(unittest.TestCase): + """ V1BuildRequest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildRequest(self): + """ + Test V1BuildRequest + """ + model = kubernetes.client.models.v1_build_request.V1BuildRequest() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_source.py b/kubernetes/test/test_v1_build_source.py new file mode 100644 index 0000000000..5b6e221edf --- /dev/null +++ b/kubernetes/test/test_v1_build_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_source import V1BuildSource + + +class TestV1BuildSource(unittest.TestCase): + """ V1BuildSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildSource(self): + """ + Test V1BuildSource + """ + model = kubernetes.client.models.v1_build_source.V1BuildSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_spec.py b/kubernetes/test/test_v1_build_spec.py new file mode 100644 index 0000000000..5669e17e64 --- /dev/null +++ b/kubernetes/test/test_v1_build_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_spec import V1BuildSpec + + +class TestV1BuildSpec(unittest.TestCase): + """ V1BuildSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildSpec(self): + """ + Test V1BuildSpec + """ + model = kubernetes.client.models.v1_build_spec.V1BuildSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_status.py b/kubernetes/test/test_v1_build_status.py new file mode 100644 index 0000000000..665800d986 --- /dev/null +++ b/kubernetes/test/test_v1_build_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_status import V1BuildStatus + + +class TestV1BuildStatus(unittest.TestCase): + """ V1BuildStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildStatus(self): + """ + Test V1BuildStatus + """ + model = kubernetes.client.models.v1_build_status.V1BuildStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_status_output.py b/kubernetes/test/test_v1_build_status_output.py new file mode 100644 index 0000000000..1a0fb7b56d --- /dev/null +++ b/kubernetes/test/test_v1_build_status_output.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_status_output import V1BuildStatusOutput + + +class TestV1BuildStatusOutput(unittest.TestCase): + """ V1BuildStatusOutput unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildStatusOutput(self): + """ + Test V1BuildStatusOutput + """ + model = kubernetes.client.models.v1_build_status_output.V1BuildStatusOutput() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_status_output_to.py b/kubernetes/test/test_v1_build_status_output_to.py new file mode 100644 index 0000000000..c5793aaa9f --- /dev/null +++ b/kubernetes/test/test_v1_build_status_output_to.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_status_output_to import V1BuildStatusOutputTo + + +class TestV1BuildStatusOutputTo(unittest.TestCase): + """ V1BuildStatusOutputTo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildStatusOutputTo(self): + """ + Test V1BuildStatusOutputTo + """ + model = kubernetes.client.models.v1_build_status_output_to.V1BuildStatusOutputTo() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_strategy.py b/kubernetes/test/test_v1_build_strategy.py new file mode 100644 index 0000000000..33b8e54b89 --- /dev/null +++ b/kubernetes/test/test_v1_build_strategy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_strategy import V1BuildStrategy + + +class TestV1BuildStrategy(unittest.TestCase): + """ V1BuildStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildStrategy(self): + """ + Test V1BuildStrategy + """ + model = kubernetes.client.models.v1_build_strategy.V1BuildStrategy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_trigger_cause.py b/kubernetes/test/test_v1_build_trigger_cause.py new file mode 100644 index 0000000000..8e6d925136 --- /dev/null +++ b/kubernetes/test/test_v1_build_trigger_cause.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_trigger_cause import V1BuildTriggerCause + + +class TestV1BuildTriggerCause(unittest.TestCase): + """ V1BuildTriggerCause unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildTriggerCause(self): + """ + Test V1BuildTriggerCause + """ + model = kubernetes.client.models.v1_build_trigger_cause.V1BuildTriggerCause() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_build_trigger_policy.py b/kubernetes/test/test_v1_build_trigger_policy.py new file mode 100644 index 0000000000..37a8e9f61a --- /dev/null +++ b/kubernetes/test/test_v1_build_trigger_policy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_build_trigger_policy import V1BuildTriggerPolicy + + +class TestV1BuildTriggerPolicy(unittest.TestCase): + """ V1BuildTriggerPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BuildTriggerPolicy(self): + """ + Test V1BuildTriggerPolicy + """ + model = kubernetes.client.models.v1_build_trigger_policy.V1BuildTriggerPolicy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_capabilities.py b/kubernetes/test/test_v1_capabilities.py index a983af362c..23b96615ce 100644 --- a/kubernetes/test/test_v1_capabilities.py +++ b/kubernetes/test/test_v1_capabilities.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_ceph_fs_volume_source.py b/kubernetes/test/test_v1_ceph_fs_volume_source.py index d1e6e2a30d..a9bd894512 100644 --- a/kubernetes/test/test_v1_ceph_fs_volume_source.py +++ b/kubernetes/test/test_v1_ceph_fs_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_cinder_volume_source.py b/kubernetes/test/test_v1_cinder_volume_source.py index ebb4861689..9cbc414c6e 100644 --- a/kubernetes/test/test_v1_cinder_volume_source.py +++ b/kubernetes/test/test_v1_cinder_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_cluster_network.py b/kubernetes/test/test_v1_cluster_network.py new file mode 100644 index 0000000000..604f03db3c --- /dev/null +++ b/kubernetes/test/test_v1_cluster_network.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_network import V1ClusterNetwork + + +class TestV1ClusterNetwork(unittest.TestCase): + """ V1ClusterNetwork unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterNetwork(self): + """ + Test V1ClusterNetwork + """ + model = kubernetes.client.models.v1_cluster_network.V1ClusterNetwork() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_network_list.py b/kubernetes/test/test_v1_cluster_network_list.py new file mode 100644 index 0000000000..b235a5e161 --- /dev/null +++ b/kubernetes/test/test_v1_cluster_network_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_network_list import V1ClusterNetworkList + + +class TestV1ClusterNetworkList(unittest.TestCase): + """ V1ClusterNetworkList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterNetworkList(self): + """ + Test V1ClusterNetworkList + """ + model = kubernetes.client.models.v1_cluster_network_list.V1ClusterNetworkList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_policy.py b/kubernetes/test/test_v1_cluster_policy.py new file mode 100644 index 0000000000..0f54fe385b --- /dev/null +++ b/kubernetes/test/test_v1_cluster_policy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_policy import V1ClusterPolicy + + +class TestV1ClusterPolicy(unittest.TestCase): + """ V1ClusterPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterPolicy(self): + """ + Test V1ClusterPolicy + """ + model = kubernetes.client.models.v1_cluster_policy.V1ClusterPolicy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_policy_binding.py b/kubernetes/test/test_v1_cluster_policy_binding.py new file mode 100644 index 0000000000..2b2539f1ed --- /dev/null +++ b/kubernetes/test/test_v1_cluster_policy_binding.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_policy_binding import V1ClusterPolicyBinding + + +class TestV1ClusterPolicyBinding(unittest.TestCase): + """ V1ClusterPolicyBinding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterPolicyBinding(self): + """ + Test V1ClusterPolicyBinding + """ + model = kubernetes.client.models.v1_cluster_policy_binding.V1ClusterPolicyBinding() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_policy_binding_list.py b/kubernetes/test/test_v1_cluster_policy_binding_list.py new file mode 100644 index 0000000000..e6fb7f85a4 --- /dev/null +++ b/kubernetes/test/test_v1_cluster_policy_binding_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_policy_binding_list import V1ClusterPolicyBindingList + + +class TestV1ClusterPolicyBindingList(unittest.TestCase): + """ V1ClusterPolicyBindingList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterPolicyBindingList(self): + """ + Test V1ClusterPolicyBindingList + """ + model = kubernetes.client.models.v1_cluster_policy_binding_list.V1ClusterPolicyBindingList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_policy_list.py b/kubernetes/test/test_v1_cluster_policy_list.py new file mode 100644 index 0000000000..78c2489495 --- /dev/null +++ b/kubernetes/test/test_v1_cluster_policy_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_policy_list import V1ClusterPolicyList + + +class TestV1ClusterPolicyList(unittest.TestCase): + """ V1ClusterPolicyList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterPolicyList(self): + """ + Test V1ClusterPolicyList + """ + model = kubernetes.client.models.v1_cluster_policy_list.V1ClusterPolicyList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_resource_quota.py b/kubernetes/test/test_v1_cluster_resource_quota.py new file mode 100644 index 0000000000..7315f7f76f --- /dev/null +++ b/kubernetes/test/test_v1_cluster_resource_quota.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_resource_quota import V1ClusterResourceQuota + + +class TestV1ClusterResourceQuota(unittest.TestCase): + """ V1ClusterResourceQuota unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterResourceQuota(self): + """ + Test V1ClusterResourceQuota + """ + model = kubernetes.client.models.v1_cluster_resource_quota.V1ClusterResourceQuota() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_resource_quota_list.py b/kubernetes/test/test_v1_cluster_resource_quota_list.py new file mode 100644 index 0000000000..bca4a7b128 --- /dev/null +++ b/kubernetes/test/test_v1_cluster_resource_quota_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_resource_quota_list import V1ClusterResourceQuotaList + + +class TestV1ClusterResourceQuotaList(unittest.TestCase): + """ V1ClusterResourceQuotaList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterResourceQuotaList(self): + """ + Test V1ClusterResourceQuotaList + """ + model = kubernetes.client.models.v1_cluster_resource_quota_list.V1ClusterResourceQuotaList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_resource_quota_selector.py b/kubernetes/test/test_v1_cluster_resource_quota_selector.py new file mode 100644 index 0000000000..32ce7f012e --- /dev/null +++ b/kubernetes/test/test_v1_cluster_resource_quota_selector.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_resource_quota_selector import V1ClusterResourceQuotaSelector + + +class TestV1ClusterResourceQuotaSelector(unittest.TestCase): + """ V1ClusterResourceQuotaSelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterResourceQuotaSelector(self): + """ + Test V1ClusterResourceQuotaSelector + """ + model = kubernetes.client.models.v1_cluster_resource_quota_selector.V1ClusterResourceQuotaSelector() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_resource_quota_spec.py b/kubernetes/test/test_v1_cluster_resource_quota_spec.py new file mode 100644 index 0000000000..71189dbd3a --- /dev/null +++ b/kubernetes/test/test_v1_cluster_resource_quota_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_resource_quota_spec import V1ClusterResourceQuotaSpec + + +class TestV1ClusterResourceQuotaSpec(unittest.TestCase): + """ V1ClusterResourceQuotaSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterResourceQuotaSpec(self): + """ + Test V1ClusterResourceQuotaSpec + """ + model = kubernetes.client.models.v1_cluster_resource_quota_spec.V1ClusterResourceQuotaSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_resource_quota_status.py b/kubernetes/test/test_v1_cluster_resource_quota_status.py new file mode 100644 index 0000000000..2307509e75 --- /dev/null +++ b/kubernetes/test/test_v1_cluster_resource_quota_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_resource_quota_status import V1ClusterResourceQuotaStatus + + +class TestV1ClusterResourceQuotaStatus(unittest.TestCase): + """ V1ClusterResourceQuotaStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterResourceQuotaStatus(self): + """ + Test V1ClusterResourceQuotaStatus + """ + model = kubernetes.client.models.v1_cluster_resource_quota_status.V1ClusterResourceQuotaStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_role.py b/kubernetes/test/test_v1_cluster_role.py new file mode 100644 index 0000000000..ce6ea8143c --- /dev/null +++ b/kubernetes/test/test_v1_cluster_role.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_role import V1ClusterRole + + +class TestV1ClusterRole(unittest.TestCase): + """ V1ClusterRole unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterRole(self): + """ + Test V1ClusterRole + """ + model = kubernetes.client.models.v1_cluster_role.V1ClusterRole() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_role_binding.py b/kubernetes/test/test_v1_cluster_role_binding.py new file mode 100644 index 0000000000..20ac8f3f83 --- /dev/null +++ b/kubernetes/test/test_v1_cluster_role_binding.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_role_binding import V1ClusterRoleBinding + + +class TestV1ClusterRoleBinding(unittest.TestCase): + """ V1ClusterRoleBinding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterRoleBinding(self): + """ + Test V1ClusterRoleBinding + """ + model = kubernetes.client.models.v1_cluster_role_binding.V1ClusterRoleBinding() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_role_binding_list.py b/kubernetes/test/test_v1_cluster_role_binding_list.py new file mode 100644 index 0000000000..f45b4d8409 --- /dev/null +++ b/kubernetes/test/test_v1_cluster_role_binding_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_role_binding_list import V1ClusterRoleBindingList + + +class TestV1ClusterRoleBindingList(unittest.TestCase): + """ V1ClusterRoleBindingList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterRoleBindingList(self): + """ + Test V1ClusterRoleBindingList + """ + model = kubernetes.client.models.v1_cluster_role_binding_list.V1ClusterRoleBindingList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_role_list.py b/kubernetes/test/test_v1_cluster_role_list.py new file mode 100644 index 0000000000..44e275d6c0 --- /dev/null +++ b/kubernetes/test/test_v1_cluster_role_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_role_list import V1ClusterRoleList + + +class TestV1ClusterRoleList(unittest.TestCase): + """ V1ClusterRoleList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterRoleList(self): + """ + Test V1ClusterRoleList + """ + model = kubernetes.client.models.v1_cluster_role_list.V1ClusterRoleList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_cluster_role_scope_restriction.py b/kubernetes/test/test_v1_cluster_role_scope_restriction.py new file mode 100644 index 0000000000..7f1f7f2e0d --- /dev/null +++ b/kubernetes/test/test_v1_cluster_role_scope_restriction.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_cluster_role_scope_restriction import V1ClusterRoleScopeRestriction + + +class TestV1ClusterRoleScopeRestriction(unittest.TestCase): + """ V1ClusterRoleScopeRestriction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClusterRoleScopeRestriction(self): + """ + Test V1ClusterRoleScopeRestriction + """ + model = kubernetes.client.models.v1_cluster_role_scope_restriction.V1ClusterRoleScopeRestriction() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_component_condition.py b/kubernetes/test/test_v1_component_condition.py index a68e8edeb8..a106c276a9 100644 --- a/kubernetes/test/test_v1_component_condition.py +++ b/kubernetes/test/test_v1_component_condition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_component_status.py b/kubernetes/test/test_v1_component_status.py index 7a0c676024..cd592ec37e 100644 --- a/kubernetes/test/test_v1_component_status.py +++ b/kubernetes/test/test_v1_component_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_component_status_list.py b/kubernetes/test/test_v1_component_status_list.py index 26e17c0aa1..bd298439ab 100644 --- a/kubernetes/test/test_v1_component_status_list.py +++ b/kubernetes/test/test_v1_component_status_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_config_map.py b/kubernetes/test/test_v1_config_map.py index c6caf16211..b57090765d 100644 --- a/kubernetes/test/test_v1_config_map.py +++ b/kubernetes/test/test_v1_config_map.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_config_map_env_source.py b/kubernetes/test/test_v1_config_map_env_source.py deleted file mode 100644 index 4f798072ad..0000000000 --- a/kubernetes/test/test_v1_config_map_env_source.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_config_map_env_source import V1ConfigMapEnvSource - - -class TestV1ConfigMapEnvSource(unittest.TestCase): - """ V1ConfigMapEnvSource unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ConfigMapEnvSource(self): - """ - Test V1ConfigMapEnvSource - """ - model = kubernetes.client.models.v1_config_map_env_source.V1ConfigMapEnvSource() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_config_map_key_selector.py b/kubernetes/test/test_v1_config_map_key_selector.py index 0a0ead4451..089598e294 100644 --- a/kubernetes/test/test_v1_config_map_key_selector.py +++ b/kubernetes/test/test_v1_config_map_key_selector.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_config_map_list.py b/kubernetes/test/test_v1_config_map_list.py index b2abd357ef..422736b908 100644 --- a/kubernetes/test/test_v1_config_map_list.py +++ b/kubernetes/test/test_v1_config_map_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_config_map_projection.py b/kubernetes/test/test_v1_config_map_projection.py deleted file mode 100644 index 5ea453a364..0000000000 --- a/kubernetes/test/test_v1_config_map_projection.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection - - -class TestV1ConfigMapProjection(unittest.TestCase): - """ V1ConfigMapProjection unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ConfigMapProjection(self): - """ - Test V1ConfigMapProjection - """ - model = kubernetes.client.models.v1_config_map_projection.V1ConfigMapProjection() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_config_map_volume_source.py b/kubernetes/test/test_v1_config_map_volume_source.py index 46946c16ee..5708c18e8b 100644 --- a/kubernetes/test/test_v1_config_map_volume_source.py +++ b/kubernetes/test/test_v1_config_map_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container.py b/kubernetes/test/test_v1_container.py index 4008f6fb7e..5069bbb659 100644 --- a/kubernetes/test/test_v1_container.py +++ b/kubernetes/test/test_v1_container.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_image.py b/kubernetes/test/test_v1_container_image.py index 08221a5e0a..a84649eef0 100644 --- a/kubernetes/test/test_v1_container_image.py +++ b/kubernetes/test/test_v1_container_image.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_port.py b/kubernetes/test/test_v1_container_port.py index ebde328378..bbab48bb50 100644 --- a/kubernetes/test/test_v1_container_port.py +++ b/kubernetes/test/test_v1_container_port.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_state.py b/kubernetes/test/test_v1_container_state.py index 268928ccad..e2939c5644 100644 --- a/kubernetes/test/test_v1_container_state.py +++ b/kubernetes/test/test_v1_container_state.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_state_running.py b/kubernetes/test/test_v1_container_state_running.py index 2eb68d7330..d7ff77b838 100644 --- a/kubernetes/test/test_v1_container_state_running.py +++ b/kubernetes/test/test_v1_container_state_running.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_state_terminated.py b/kubernetes/test/test_v1_container_state_terminated.py index 9091d4c72c..4639174da4 100644 --- a/kubernetes/test/test_v1_container_state_terminated.py +++ b/kubernetes/test/test_v1_container_state_terminated.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_state_waiting.py b/kubernetes/test/test_v1_container_state_waiting.py index b65046752c..9c03e9b71f 100644 --- a/kubernetes/test/test_v1_container_state_waiting.py +++ b/kubernetes/test/test_v1_container_state_waiting.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_status.py b/kubernetes/test/test_v1_container_status.py index 940387d0fb..61318b00d7 100644 --- a/kubernetes/test/test_v1_container_status.py +++ b/kubernetes/test/test_v1_container_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_cross_version_object_reference.py b/kubernetes/test/test_v1_cross_version_object_reference.py index 543605e105..3334eb78b8 100644 --- a/kubernetes/test/test_v1_cross_version_object_reference.py +++ b/kubernetes/test/test_v1_cross_version_object_reference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_custom_build_strategy.py b/kubernetes/test/test_v1_custom_build_strategy.py new file mode 100644 index 0000000000..243950ec6a --- /dev/null +++ b/kubernetes/test/test_v1_custom_build_strategy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_custom_build_strategy import V1CustomBuildStrategy + + +class TestV1CustomBuildStrategy(unittest.TestCase): + """ V1CustomBuildStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CustomBuildStrategy(self): + """ + Test V1CustomBuildStrategy + """ + model = kubernetes.client.models.v1_custom_build_strategy.V1CustomBuildStrategy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_custom_deployment_strategy_params.py b/kubernetes/test/test_v1_custom_deployment_strategy_params.py new file mode 100644 index 0000000000..fc48192da1 --- /dev/null +++ b/kubernetes/test/test_v1_custom_deployment_strategy_params.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_custom_deployment_strategy_params import V1CustomDeploymentStrategyParams + + +class TestV1CustomDeploymentStrategyParams(unittest.TestCase): + """ V1CustomDeploymentStrategyParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CustomDeploymentStrategyParams(self): + """ + Test V1CustomDeploymentStrategyParams + """ + model = kubernetes.client.models.v1_custom_deployment_strategy_params.V1CustomDeploymentStrategyParams() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_daemon_endpoint.py b/kubernetes/test/test_v1_daemon_endpoint.py index a2ae2679c4..30960670ac 100644 --- a/kubernetes/test/test_v1_daemon_endpoint.py +++ b/kubernetes/test/test_v1_daemon_endpoint.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_delete_options.py b/kubernetes/test/test_v1_delete_options.py index d185a27399..cc72840fca 100644 --- a/kubernetes/test/test_v1_delete_options.py +++ b/kubernetes/test/test_v1_delete_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_deployment_cause.py b/kubernetes/test/test_v1_deployment_cause.py new file mode 100644 index 0000000000..35193c21b9 --- /dev/null +++ b/kubernetes/test/test_v1_deployment_cause.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_cause import V1DeploymentCause + + +class TestV1DeploymentCause(unittest.TestCase): + """ V1DeploymentCause unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentCause(self): + """ + Test V1DeploymentCause + """ + model = kubernetes.client.models.v1_deployment_cause.V1DeploymentCause() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_cause_image_trigger.py b/kubernetes/test/test_v1_deployment_cause_image_trigger.py new file mode 100644 index 0000000000..670df93009 --- /dev/null +++ b/kubernetes/test/test_v1_deployment_cause_image_trigger.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_cause_image_trigger import V1DeploymentCauseImageTrigger + + +class TestV1DeploymentCauseImageTrigger(unittest.TestCase): + """ V1DeploymentCauseImageTrigger unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentCauseImageTrigger(self): + """ + Test V1DeploymentCauseImageTrigger + """ + model = kubernetes.client.models.v1_deployment_cause_image_trigger.V1DeploymentCauseImageTrigger() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_condition.py b/kubernetes/test/test_v1_deployment_condition.py new file mode 100644 index 0000000000..0cc735ed89 --- /dev/null +++ b/kubernetes/test/test_v1_deployment_condition.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_condition import V1DeploymentCondition + + +class TestV1DeploymentCondition(unittest.TestCase): + """ V1DeploymentCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentCondition(self): + """ + Test V1DeploymentCondition + """ + model = kubernetes.client.models.v1_deployment_condition.V1DeploymentCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_config.py b/kubernetes/test/test_v1_deployment_config.py new file mode 100644 index 0000000000..ea58982c7c --- /dev/null +++ b/kubernetes/test/test_v1_deployment_config.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_config import V1DeploymentConfig + + +class TestV1DeploymentConfig(unittest.TestCase): + """ V1DeploymentConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentConfig(self): + """ + Test V1DeploymentConfig + """ + model = kubernetes.client.models.v1_deployment_config.V1DeploymentConfig() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_config_list.py b/kubernetes/test/test_v1_deployment_config_list.py new file mode 100644 index 0000000000..0866d9ae9a --- /dev/null +++ b/kubernetes/test/test_v1_deployment_config_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_config_list import V1DeploymentConfigList + + +class TestV1DeploymentConfigList(unittest.TestCase): + """ V1DeploymentConfigList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentConfigList(self): + """ + Test V1DeploymentConfigList + """ + model = kubernetes.client.models.v1_deployment_config_list.V1DeploymentConfigList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_config_rollback.py b/kubernetes/test/test_v1_deployment_config_rollback.py new file mode 100644 index 0000000000..7ecb5a4b9c --- /dev/null +++ b/kubernetes/test/test_v1_deployment_config_rollback.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_config_rollback import V1DeploymentConfigRollback + + +class TestV1DeploymentConfigRollback(unittest.TestCase): + """ V1DeploymentConfigRollback unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentConfigRollback(self): + """ + Test V1DeploymentConfigRollback + """ + model = kubernetes.client.models.v1_deployment_config_rollback.V1DeploymentConfigRollback() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_config_rollback_spec.py b/kubernetes/test/test_v1_deployment_config_rollback_spec.py new file mode 100644 index 0000000000..98e8aa39c6 --- /dev/null +++ b/kubernetes/test/test_v1_deployment_config_rollback_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_config_rollback_spec import V1DeploymentConfigRollbackSpec + + +class TestV1DeploymentConfigRollbackSpec(unittest.TestCase): + """ V1DeploymentConfigRollbackSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentConfigRollbackSpec(self): + """ + Test V1DeploymentConfigRollbackSpec + """ + model = kubernetes.client.models.v1_deployment_config_rollback_spec.V1DeploymentConfigRollbackSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_config_spec.py b/kubernetes/test/test_v1_deployment_config_spec.py new file mode 100644 index 0000000000..bd8a660183 --- /dev/null +++ b/kubernetes/test/test_v1_deployment_config_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_config_spec import V1DeploymentConfigSpec + + +class TestV1DeploymentConfigSpec(unittest.TestCase): + """ V1DeploymentConfigSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentConfigSpec(self): + """ + Test V1DeploymentConfigSpec + """ + model = kubernetes.client.models.v1_deployment_config_spec.V1DeploymentConfigSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_config_status.py b/kubernetes/test/test_v1_deployment_config_status.py new file mode 100644 index 0000000000..c285e04b70 --- /dev/null +++ b/kubernetes/test/test_v1_deployment_config_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_config_status import V1DeploymentConfigStatus + + +class TestV1DeploymentConfigStatus(unittest.TestCase): + """ V1DeploymentConfigStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentConfigStatus(self): + """ + Test V1DeploymentConfigStatus + """ + model = kubernetes.client.models.v1_deployment_config_status.V1DeploymentConfigStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_details.py b/kubernetes/test/test_v1_deployment_details.py new file mode 100644 index 0000000000..2abe92fc2b --- /dev/null +++ b/kubernetes/test/test_v1_deployment_details.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_details import V1DeploymentDetails + + +class TestV1DeploymentDetails(unittest.TestCase): + """ V1DeploymentDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentDetails(self): + """ + Test V1DeploymentDetails + """ + model = kubernetes.client.models.v1_deployment_details.V1DeploymentDetails() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_log.py b/kubernetes/test/test_v1_deployment_log.py new file mode 100644 index 0000000000..09d264c535 --- /dev/null +++ b/kubernetes/test/test_v1_deployment_log.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_log import V1DeploymentLog + + +class TestV1DeploymentLog(unittest.TestCase): + """ V1DeploymentLog unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentLog(self): + """ + Test V1DeploymentLog + """ + model = kubernetes.client.models.v1_deployment_log.V1DeploymentLog() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_request.py b/kubernetes/test/test_v1_deployment_request.py new file mode 100644 index 0000000000..bc16786b8f --- /dev/null +++ b/kubernetes/test/test_v1_deployment_request.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_request import V1DeploymentRequest + + +class TestV1DeploymentRequest(unittest.TestCase): + """ V1DeploymentRequest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentRequest(self): + """ + Test V1DeploymentRequest + """ + model = kubernetes.client.models.v1_deployment_request.V1DeploymentRequest() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_strategy.py b/kubernetes/test/test_v1_deployment_strategy.py new file mode 100644 index 0000000000..e2953a75d8 --- /dev/null +++ b/kubernetes/test/test_v1_deployment_strategy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_strategy import V1DeploymentStrategy + + +class TestV1DeploymentStrategy(unittest.TestCase): + """ V1DeploymentStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentStrategy(self): + """ + Test V1DeploymentStrategy + """ + model = kubernetes.client.models.v1_deployment_strategy.V1DeploymentStrategy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_trigger_image_change_params.py b/kubernetes/test/test_v1_deployment_trigger_image_change_params.py new file mode 100644 index 0000000000..cd59b9d8dd --- /dev/null +++ b/kubernetes/test/test_v1_deployment_trigger_image_change_params.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_trigger_image_change_params import V1DeploymentTriggerImageChangeParams + + +class TestV1DeploymentTriggerImageChangeParams(unittest.TestCase): + """ V1DeploymentTriggerImageChangeParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentTriggerImageChangeParams(self): + """ + Test V1DeploymentTriggerImageChangeParams + """ + model = kubernetes.client.models.v1_deployment_trigger_image_change_params.V1DeploymentTriggerImageChangeParams() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deployment_trigger_policy.py b/kubernetes/test/test_v1_deployment_trigger_policy.py new file mode 100644 index 0000000000..90fb9b0d7d --- /dev/null +++ b/kubernetes/test/test_v1_deployment_trigger_policy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deployment_trigger_policy import V1DeploymentTriggerPolicy + + +class TestV1DeploymentTriggerPolicy(unittest.TestCase): + """ V1DeploymentTriggerPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeploymentTriggerPolicy(self): + """ + Test V1DeploymentTriggerPolicy + """ + model = kubernetes.client.models.v1_deployment_trigger_policy.V1DeploymentTriggerPolicy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deprecated_downward_api_volume_file.py b/kubernetes/test/test_v1_deprecated_downward_api_volume_file.py new file mode 100644 index 0000000000..c01be208d7 --- /dev/null +++ b/kubernetes/test/test_v1_deprecated_downward_api_volume_file.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deprecated_downward_api_volume_file import V1DeprecatedDownwardAPIVolumeFile + + +class TestV1DeprecatedDownwardAPIVolumeFile(unittest.TestCase): + """ V1DeprecatedDownwardAPIVolumeFile unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeprecatedDownwardAPIVolumeFile(self): + """ + Test V1DeprecatedDownwardAPIVolumeFile + """ + model = kubernetes.client.models.v1_deprecated_downward_api_volume_file.V1DeprecatedDownwardAPIVolumeFile() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_deprecated_downward_api_volume_source.py b/kubernetes/test/test_v1_deprecated_downward_api_volume_source.py new file mode 100644 index 0000000000..4b24c56ff9 --- /dev/null +++ b/kubernetes/test/test_v1_deprecated_downward_api_volume_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_deprecated_downward_api_volume_source import V1DeprecatedDownwardAPIVolumeSource + + +class TestV1DeprecatedDownwardAPIVolumeSource(unittest.TestCase): + """ V1DeprecatedDownwardAPIVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeprecatedDownwardAPIVolumeSource(self): + """ + Test V1DeprecatedDownwardAPIVolumeSource + """ + model = kubernetes.client.models.v1_deprecated_downward_api_volume_source.V1DeprecatedDownwardAPIVolumeSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_docker_build_strategy.py b/kubernetes/test/test_v1_docker_build_strategy.py new file mode 100644 index 0000000000..993bba95b6 --- /dev/null +++ b/kubernetes/test/test_v1_docker_build_strategy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_docker_build_strategy import V1DockerBuildStrategy + + +class TestV1DockerBuildStrategy(unittest.TestCase): + """ V1DockerBuildStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DockerBuildStrategy(self): + """ + Test V1DockerBuildStrategy + """ + model = kubernetes.client.models.v1_docker_build_strategy.V1DockerBuildStrategy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_downward_api_projection.py b/kubernetes/test/test_v1_downward_api_projection.py deleted file mode 100644 index 7aabc5d463..0000000000 --- a/kubernetes/test/test_v1_downward_api_projection.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection - - -class TestV1DownwardAPIProjection(unittest.TestCase): - """ V1DownwardAPIProjection unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DownwardAPIProjection(self): - """ - Test V1DownwardAPIProjection - """ - model = kubernetes.client.models.v1_downward_api_projection.V1DownwardAPIProjection() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_downward_api_volume_file.py b/kubernetes/test/test_v1_downward_api_volume_file.py index 01f9a24d7d..f9c5e900d4 100644 --- a/kubernetes/test/test_v1_downward_api_volume_file.py +++ b/kubernetes/test/test_v1_downward_api_volume_file.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_downward_api_volume_source.py b/kubernetes/test/test_v1_downward_api_volume_source.py index 7000afea1f..f43e20f751 100644 --- a/kubernetes/test/test_v1_downward_api_volume_source.py +++ b/kubernetes/test/test_v1_downward_api_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_egress_network_policy.py b/kubernetes/test/test_v1_egress_network_policy.py new file mode 100644 index 0000000000..5152d01412 --- /dev/null +++ b/kubernetes/test/test_v1_egress_network_policy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_egress_network_policy import V1EgressNetworkPolicy + + +class TestV1EgressNetworkPolicy(unittest.TestCase): + """ V1EgressNetworkPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EgressNetworkPolicy(self): + """ + Test V1EgressNetworkPolicy + """ + model = kubernetes.client.models.v1_egress_network_policy.V1EgressNetworkPolicy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_egress_network_policy_list.py b/kubernetes/test/test_v1_egress_network_policy_list.py new file mode 100644 index 0000000000..b820460c11 --- /dev/null +++ b/kubernetes/test/test_v1_egress_network_policy_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_egress_network_policy_list import V1EgressNetworkPolicyList + + +class TestV1EgressNetworkPolicyList(unittest.TestCase): + """ V1EgressNetworkPolicyList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EgressNetworkPolicyList(self): + """ + Test V1EgressNetworkPolicyList + """ + model = kubernetes.client.models.v1_egress_network_policy_list.V1EgressNetworkPolicyList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_egress_network_policy_peer.py b/kubernetes/test/test_v1_egress_network_policy_peer.py new file mode 100644 index 0000000000..03728d161d --- /dev/null +++ b/kubernetes/test/test_v1_egress_network_policy_peer.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_egress_network_policy_peer import V1EgressNetworkPolicyPeer + + +class TestV1EgressNetworkPolicyPeer(unittest.TestCase): + """ V1EgressNetworkPolicyPeer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EgressNetworkPolicyPeer(self): + """ + Test V1EgressNetworkPolicyPeer + """ + model = kubernetes.client.models.v1_egress_network_policy_peer.V1EgressNetworkPolicyPeer() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_egress_network_policy_rule.py b/kubernetes/test/test_v1_egress_network_policy_rule.py new file mode 100644 index 0000000000..c44655dd88 --- /dev/null +++ b/kubernetes/test/test_v1_egress_network_policy_rule.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_egress_network_policy_rule import V1EgressNetworkPolicyRule + + +class TestV1EgressNetworkPolicyRule(unittest.TestCase): + """ V1EgressNetworkPolicyRule unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EgressNetworkPolicyRule(self): + """ + Test V1EgressNetworkPolicyRule + """ + model = kubernetes.client.models.v1_egress_network_policy_rule.V1EgressNetworkPolicyRule() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_egress_network_policy_spec.py b/kubernetes/test/test_v1_egress_network_policy_spec.py new file mode 100644 index 0000000000..2068d80558 --- /dev/null +++ b/kubernetes/test/test_v1_egress_network_policy_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_egress_network_policy_spec import V1EgressNetworkPolicySpec + + +class TestV1EgressNetworkPolicySpec(unittest.TestCase): + """ V1EgressNetworkPolicySpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EgressNetworkPolicySpec(self): + """ + Test V1EgressNetworkPolicySpec + """ + model = kubernetes.client.models.v1_egress_network_policy_spec.V1EgressNetworkPolicySpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_empty_dir_volume_source.py b/kubernetes/test/test_v1_empty_dir_volume_source.py index 482bbd8e1d..4026e4abfd 100644 --- a/kubernetes/test/test_v1_empty_dir_volume_source.py +++ b/kubernetes/test/test_v1_empty_dir_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_endpoint_address.py b/kubernetes/test/test_v1_endpoint_address.py index 54b2674fbf..4fa4ff428c 100644 --- a/kubernetes/test/test_v1_endpoint_address.py +++ b/kubernetes/test/test_v1_endpoint_address.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_endpoint_port.py b/kubernetes/test/test_v1_endpoint_port.py index 59dc9dbbd7..d8470d36eb 100644 --- a/kubernetes/test/test_v1_endpoint_port.py +++ b/kubernetes/test/test_v1_endpoint_port.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_endpoint_subset.py b/kubernetes/test/test_v1_endpoint_subset.py index 5f335e627e..5d19f81c32 100644 --- a/kubernetes/test/test_v1_endpoint_subset.py +++ b/kubernetes/test/test_v1_endpoint_subset.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_endpoints.py b/kubernetes/test/test_v1_endpoints.py index 7d52eddc92..8b7342a7e0 100644 --- a/kubernetes/test/test_v1_endpoints.py +++ b/kubernetes/test/test_v1_endpoints.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_endpoints_list.py b/kubernetes/test/test_v1_endpoints_list.py index 064e23a07b..ae131c3216 100644 --- a/kubernetes/test/test_v1_endpoints_list.py +++ b/kubernetes/test/test_v1_endpoints_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_env_from_source.py b/kubernetes/test/test_v1_env_from_source.py deleted file mode 100644 index 952b9b3d4b..0000000000 --- a/kubernetes/test/test_v1_env_from_source.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_env_from_source import V1EnvFromSource - - -class TestV1EnvFromSource(unittest.TestCase): - """ V1EnvFromSource unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EnvFromSource(self): - """ - Test V1EnvFromSource - """ - model = kubernetes.client.models.v1_env_from_source.V1EnvFromSource() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_env_var.py b/kubernetes/test/test_v1_env_var.py index d7d5b56182..d48afe1499 100644 --- a/kubernetes/test/test_v1_env_var.py +++ b/kubernetes/test/test_v1_env_var.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_env_var_source.py b/kubernetes/test/test_v1_env_var_source.py index 0fa8bc256a..1ff8e48f5b 100644 --- a/kubernetes/test/test_v1_env_var_source.py +++ b/kubernetes/test/test_v1_env_var_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_event.py b/kubernetes/test/test_v1_event.py index 837fab0dcd..8b264dead2 100644 --- a/kubernetes/test/test_v1_event.py +++ b/kubernetes/test/test_v1_event.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_event_list.py b/kubernetes/test/test_v1_event_list.py index 8a9567b894..11b3781f5d 100644 --- a/kubernetes/test/test_v1_event_list.py +++ b/kubernetes/test/test_v1_event_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_event_source.py b/kubernetes/test/test_v1_event_source.py index e3b7c49847..4978a7aded 100644 --- a/kubernetes/test/test_v1_event_source.py +++ b/kubernetes/test/test_v1_event_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_exec_action.py b/kubernetes/test/test_v1_exec_action.py index 26309e53f1..fce46bfa8d 100644 --- a/kubernetes/test/test_v1_exec_action.py +++ b/kubernetes/test/test_v1_exec_action.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_exec_new_pod_hook.py b/kubernetes/test/test_v1_exec_new_pod_hook.py new file mode 100644 index 0000000000..85a650054e --- /dev/null +++ b/kubernetes/test/test_v1_exec_new_pod_hook.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_exec_new_pod_hook import V1ExecNewPodHook + + +class TestV1ExecNewPodHook(unittest.TestCase): + """ V1ExecNewPodHook unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ExecNewPodHook(self): + """ + Test V1ExecNewPodHook + """ + model = kubernetes.client.models.v1_exec_new_pod_hook.V1ExecNewPodHook() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_fc_volume_source.py b/kubernetes/test/test_v1_fc_volume_source.py index 05d0435cab..3cf84f3f4a 100644 --- a/kubernetes/test/test_v1_fc_volume_source.py +++ b/kubernetes/test/test_v1_fc_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_flex_volume_source.py b/kubernetes/test/test_v1_flex_volume_source.py index f33ba68ebe..3e6980058d 100644 --- a/kubernetes/test/test_v1_flex_volume_source.py +++ b/kubernetes/test/test_v1_flex_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_flocker_volume_source.py b/kubernetes/test/test_v1_flocker_volume_source.py index f7e48bb413..987780c1ae 100644 --- a/kubernetes/test/test_v1_flocker_volume_source.py +++ b/kubernetes/test/test_v1_flocker_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_fs_group_strategy_options.py b/kubernetes/test/test_v1_fs_group_strategy_options.py new file mode 100644 index 0000000000..5b057aa638 --- /dev/null +++ b/kubernetes/test/test_v1_fs_group_strategy_options.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_fs_group_strategy_options import V1FSGroupStrategyOptions + + +class TestV1FSGroupStrategyOptions(unittest.TestCase): + """ V1FSGroupStrategyOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1FSGroupStrategyOptions(self): + """ + Test V1FSGroupStrategyOptions + """ + model = kubernetes.client.models.v1_fs_group_strategy_options.V1FSGroupStrategyOptions() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py b/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py index 520f5730f5..75fb3f1eef 100644 --- a/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py +++ b/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_generic_web_hook_cause.py b/kubernetes/test/test_v1_generic_web_hook_cause.py new file mode 100644 index 0000000000..68915c2964 --- /dev/null +++ b/kubernetes/test/test_v1_generic_web_hook_cause.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_generic_web_hook_cause import V1GenericWebHookCause + + +class TestV1GenericWebHookCause(unittest.TestCase): + """ V1GenericWebHookCause unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GenericWebHookCause(self): + """ + Test V1GenericWebHookCause + """ + model = kubernetes.client.models.v1_generic_web_hook_cause.V1GenericWebHookCause() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_git_build_source.py b/kubernetes/test/test_v1_git_build_source.py new file mode 100644 index 0000000000..439b74be08 --- /dev/null +++ b/kubernetes/test/test_v1_git_build_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_git_build_source import V1GitBuildSource + + +class TestV1GitBuildSource(unittest.TestCase): + """ V1GitBuildSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GitBuildSource(self): + """ + Test V1GitBuildSource + """ + model = kubernetes.client.models.v1_git_build_source.V1GitBuildSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_git_hub_web_hook_cause.py b/kubernetes/test/test_v1_git_hub_web_hook_cause.py new file mode 100644 index 0000000000..3353390d14 --- /dev/null +++ b/kubernetes/test/test_v1_git_hub_web_hook_cause.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_git_hub_web_hook_cause import V1GitHubWebHookCause + + +class TestV1GitHubWebHookCause(unittest.TestCase): + """ V1GitHubWebHookCause unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GitHubWebHookCause(self): + """ + Test V1GitHubWebHookCause + """ + model = kubernetes.client.models.v1_git_hub_web_hook_cause.V1GitHubWebHookCause() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_git_repo_volume_source.py b/kubernetes/test/test_v1_git_repo_volume_source.py index d127aba21a..a5473790a5 100644 --- a/kubernetes/test/test_v1_git_repo_volume_source.py +++ b/kubernetes/test/test_v1_git_repo_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_git_source_revision.py b/kubernetes/test/test_v1_git_source_revision.py new file mode 100644 index 0000000000..3e00471b64 --- /dev/null +++ b/kubernetes/test/test_v1_git_source_revision.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_git_source_revision import V1GitSourceRevision + + +class TestV1GitSourceRevision(unittest.TestCase): + """ V1GitSourceRevision unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GitSourceRevision(self): + """ + Test V1GitSourceRevision + """ + model = kubernetes.client.models.v1_git_source_revision.V1GitSourceRevision() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_glusterfs_volume_source.py b/kubernetes/test/test_v1_glusterfs_volume_source.py index 2336e26f1f..31535a65ab 100644 --- a/kubernetes/test/test_v1_glusterfs_volume_source.py +++ b/kubernetes/test/test_v1_glusterfs_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_group.py b/kubernetes/test/test_v1_group.py new file mode 100644 index 0000000000..5d490a9933 --- /dev/null +++ b/kubernetes/test/test_v1_group.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_group import V1Group + + +class TestV1Group(unittest.TestCase): + """ V1Group unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Group(self): + """ + Test V1Group + """ + model = kubernetes.client.models.v1_group.V1Group() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_group_list.py b/kubernetes/test/test_v1_group_list.py new file mode 100644 index 0000000000..c4d21969b3 --- /dev/null +++ b/kubernetes/test/test_v1_group_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_group_list import V1GroupList + + +class TestV1GroupList(unittest.TestCase): + """ V1GroupList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GroupList(self): + """ + Test V1GroupList + """ + model = kubernetes.client.models.v1_group_list.V1GroupList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_group_restriction.py b/kubernetes/test/test_v1_group_restriction.py new file mode 100644 index 0000000000..a2691624c5 --- /dev/null +++ b/kubernetes/test/test_v1_group_restriction.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_group_restriction import V1GroupRestriction + + +class TestV1GroupRestriction(unittest.TestCase): + """ V1GroupRestriction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GroupRestriction(self): + """ + Test V1GroupRestriction + """ + model = kubernetes.client.models.v1_group_restriction.V1GroupRestriction() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_group_version_for_discovery.py b/kubernetes/test/test_v1_group_version_for_discovery.py deleted file mode 100644 index 50183d5972..0000000000 --- a/kubernetes/test/test_v1_group_version_for_discovery.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_group_version_for_discovery import V1GroupVersionForDiscovery - - -class TestV1GroupVersionForDiscovery(unittest.TestCase): - """ V1GroupVersionForDiscovery unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1GroupVersionForDiscovery(self): - """ - Test V1GroupVersionForDiscovery - """ - model = kubernetes.client.models.v1_group_version_for_discovery.V1GroupVersionForDiscovery() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_handler.py b/kubernetes/test/test_v1_handler.py index 4d9c0fa585..3e691c1219 100644 --- a/kubernetes/test/test_v1_handler.py +++ b/kubernetes/test/test_v1_handler.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler.py index 2696a04efc..c359835872 100644 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler.py +++ b/kubernetes/test/test_v1_horizontal_pod_autoscaler.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py index 74c2b682b1..9d54b749ba 100644 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py index efa4dd51b6..5a974c4bf8 100644 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py index 3e5423b8fa..2b56a74dc0 100644 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_host_path_volume_source.py b/kubernetes/test/test_v1_host_path_volume_source.py index a58f522bf4..c97efa2753 100644 --- a/kubernetes/test/test_v1_host_path_volume_source.py +++ b/kubernetes/test/test_v1_host_path_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_host_subnet.py b/kubernetes/test/test_v1_host_subnet.py new file mode 100644 index 0000000000..238b6294a2 --- /dev/null +++ b/kubernetes/test/test_v1_host_subnet.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_host_subnet import V1HostSubnet + + +class TestV1HostSubnet(unittest.TestCase): + """ V1HostSubnet unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HostSubnet(self): + """ + Test V1HostSubnet + """ + model = kubernetes.client.models.v1_host_subnet.V1HostSubnet() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_host_subnet_list.py b/kubernetes/test/test_v1_host_subnet_list.py new file mode 100644 index 0000000000..aa21efd41a --- /dev/null +++ b/kubernetes/test/test_v1_host_subnet_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_host_subnet_list import V1HostSubnetList + + +class TestV1HostSubnetList(unittest.TestCase): + """ V1HostSubnetList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HostSubnetList(self): + """ + Test V1HostSubnetList + """ + model = kubernetes.client.models.v1_host_subnet_list.V1HostSubnetList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_http_get_action.py b/kubernetes/test/test_v1_http_get_action.py index 838f57f1cf..e47141e464 100644 --- a/kubernetes/test/test_v1_http_get_action.py +++ b/kubernetes/test/test_v1_http_get_action.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_http_header.py b/kubernetes/test/test_v1_http_header.py index 7997df2a0d..8df3102555 100644 --- a/kubernetes/test/test_v1_http_header.py +++ b/kubernetes/test/test_v1_http_header.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_id_range.py b/kubernetes/test/test_v1_id_range.py new file mode 100644 index 0000000000..f4a1ed5bc4 --- /dev/null +++ b/kubernetes/test/test_v1_id_range.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_id_range import V1IDRange + + +class TestV1IDRange(unittest.TestCase): + """ V1IDRange unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1IDRange(self): + """ + Test V1IDRange + """ + model = kubernetes.client.models.v1_id_range.V1IDRange() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_identity.py b/kubernetes/test/test_v1_identity.py new file mode 100644 index 0000000000..27c4f02af2 --- /dev/null +++ b/kubernetes/test/test_v1_identity.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_identity import V1Identity + + +class TestV1Identity(unittest.TestCase): + """ V1Identity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Identity(self): + """ + Test V1Identity + """ + model = kubernetes.client.models.v1_identity.V1Identity() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_identity_list.py b/kubernetes/test/test_v1_identity_list.py new file mode 100644 index 0000000000..190c6585f3 --- /dev/null +++ b/kubernetes/test/test_v1_identity_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_identity_list import V1IdentityList + + +class TestV1IdentityList(unittest.TestCase): + """ V1IdentityList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1IdentityList(self): + """ + Test V1IdentityList + """ + model = kubernetes.client.models.v1_identity_list.V1IdentityList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image.py b/kubernetes/test/test_v1_image.py new file mode 100644 index 0000000000..f30d3b55fa --- /dev/null +++ b/kubernetes/test/test_v1_image.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image import V1Image + + +class TestV1Image(unittest.TestCase): + """ V1Image unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Image(self): + """ + Test V1Image + """ + model = kubernetes.client.models.v1_image.V1Image() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_change_cause.py b/kubernetes/test/test_v1_image_change_cause.py new file mode 100644 index 0000000000..9e08d8be8c --- /dev/null +++ b/kubernetes/test/test_v1_image_change_cause.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_change_cause import V1ImageChangeCause + + +class TestV1ImageChangeCause(unittest.TestCase): + """ V1ImageChangeCause unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageChangeCause(self): + """ + Test V1ImageChangeCause + """ + model = kubernetes.client.models.v1_image_change_cause.V1ImageChangeCause() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_change_trigger.py b/kubernetes/test/test_v1_image_change_trigger.py new file mode 100644 index 0000000000..f63e38d18b --- /dev/null +++ b/kubernetes/test/test_v1_image_change_trigger.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_change_trigger import V1ImageChangeTrigger + + +class TestV1ImageChangeTrigger(unittest.TestCase): + """ V1ImageChangeTrigger unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageChangeTrigger(self): + """ + Test V1ImageChangeTrigger + """ + model = kubernetes.client.models.v1_image_change_trigger.V1ImageChangeTrigger() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_import_spec.py b/kubernetes/test/test_v1_image_import_spec.py new file mode 100644 index 0000000000..0340bb6013 --- /dev/null +++ b/kubernetes/test/test_v1_image_import_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_import_spec import V1ImageImportSpec + + +class TestV1ImageImportSpec(unittest.TestCase): + """ V1ImageImportSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageImportSpec(self): + """ + Test V1ImageImportSpec + """ + model = kubernetes.client.models.v1_image_import_spec.V1ImageImportSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_import_status.py b/kubernetes/test/test_v1_image_import_status.py new file mode 100644 index 0000000000..862a525e89 --- /dev/null +++ b/kubernetes/test/test_v1_image_import_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_import_status import V1ImageImportStatus + + +class TestV1ImageImportStatus(unittest.TestCase): + """ V1ImageImportStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageImportStatus(self): + """ + Test V1ImageImportStatus + """ + model = kubernetes.client.models.v1_image_import_status.V1ImageImportStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_label.py b/kubernetes/test/test_v1_image_label.py new file mode 100644 index 0000000000..99c95aaf26 --- /dev/null +++ b/kubernetes/test/test_v1_image_label.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_label import V1ImageLabel + + +class TestV1ImageLabel(unittest.TestCase): + """ V1ImageLabel unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageLabel(self): + """ + Test V1ImageLabel + """ + model = kubernetes.client.models.v1_image_label.V1ImageLabel() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_layer.py b/kubernetes/test/test_v1_image_layer.py new file mode 100644 index 0000000000..fed8b4b30a --- /dev/null +++ b/kubernetes/test/test_v1_image_layer.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_layer import V1ImageLayer + + +class TestV1ImageLayer(unittest.TestCase): + """ V1ImageLayer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageLayer(self): + """ + Test V1ImageLayer + """ + model = kubernetes.client.models.v1_image_layer.V1ImageLayer() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_list.py b/kubernetes/test/test_v1_image_list.py new file mode 100644 index 0000000000..d69c9fe548 --- /dev/null +++ b/kubernetes/test/test_v1_image_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_list import V1ImageList + + +class TestV1ImageList(unittest.TestCase): + """ V1ImageList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageList(self): + """ + Test V1ImageList + """ + model = kubernetes.client.models.v1_image_list.V1ImageList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_signature.py b/kubernetes/test/test_v1_image_signature.py new file mode 100644 index 0000000000..769ac447eb --- /dev/null +++ b/kubernetes/test/test_v1_image_signature.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_signature import V1ImageSignature + + +class TestV1ImageSignature(unittest.TestCase): + """ V1ImageSignature unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageSignature(self): + """ + Test V1ImageSignature + """ + model = kubernetes.client.models.v1_image_signature.V1ImageSignature() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_source.py b/kubernetes/test/test_v1_image_source.py new file mode 100644 index 0000000000..50d1e136a3 --- /dev/null +++ b/kubernetes/test/test_v1_image_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_source import V1ImageSource + + +class TestV1ImageSource(unittest.TestCase): + """ V1ImageSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageSource(self): + """ + Test V1ImageSource + """ + model = kubernetes.client.models.v1_image_source.V1ImageSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_source_path.py b/kubernetes/test/test_v1_image_source_path.py new file mode 100644 index 0000000000..cf8909faea --- /dev/null +++ b/kubernetes/test/test_v1_image_source_path.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_source_path import V1ImageSourcePath + + +class TestV1ImageSourcePath(unittest.TestCase): + """ V1ImageSourcePath unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageSourcePath(self): + """ + Test V1ImageSourcePath + """ + model = kubernetes.client.models.v1_image_source_path.V1ImageSourcePath() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_stream.py b/kubernetes/test/test_v1_image_stream.py new file mode 100644 index 0000000000..3129b06ad6 --- /dev/null +++ b/kubernetes/test/test_v1_image_stream.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_stream import V1ImageStream + + +class TestV1ImageStream(unittest.TestCase): + """ V1ImageStream unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageStream(self): + """ + Test V1ImageStream + """ + model = kubernetes.client.models.v1_image_stream.V1ImageStream() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_stream_image.py b/kubernetes/test/test_v1_image_stream_image.py new file mode 100644 index 0000000000..7801bc719b --- /dev/null +++ b/kubernetes/test/test_v1_image_stream_image.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_stream_image import V1ImageStreamImage + + +class TestV1ImageStreamImage(unittest.TestCase): + """ V1ImageStreamImage unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageStreamImage(self): + """ + Test V1ImageStreamImage + """ + model = kubernetes.client.models.v1_image_stream_image.V1ImageStreamImage() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_stream_import.py b/kubernetes/test/test_v1_image_stream_import.py new file mode 100644 index 0000000000..bdd5a3dff4 --- /dev/null +++ b/kubernetes/test/test_v1_image_stream_import.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_stream_import import V1ImageStreamImport + + +class TestV1ImageStreamImport(unittest.TestCase): + """ V1ImageStreamImport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageStreamImport(self): + """ + Test V1ImageStreamImport + """ + model = kubernetes.client.models.v1_image_stream_import.V1ImageStreamImport() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_stream_import_spec.py b/kubernetes/test/test_v1_image_stream_import_spec.py new file mode 100644 index 0000000000..eb98a7b419 --- /dev/null +++ b/kubernetes/test/test_v1_image_stream_import_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_stream_import_spec import V1ImageStreamImportSpec + + +class TestV1ImageStreamImportSpec(unittest.TestCase): + """ V1ImageStreamImportSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageStreamImportSpec(self): + """ + Test V1ImageStreamImportSpec + """ + model = kubernetes.client.models.v1_image_stream_import_spec.V1ImageStreamImportSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_stream_import_status.py b/kubernetes/test/test_v1_image_stream_import_status.py new file mode 100644 index 0000000000..38b56acc27 --- /dev/null +++ b/kubernetes/test/test_v1_image_stream_import_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_stream_import_status import V1ImageStreamImportStatus + + +class TestV1ImageStreamImportStatus(unittest.TestCase): + """ V1ImageStreamImportStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageStreamImportStatus(self): + """ + Test V1ImageStreamImportStatus + """ + model = kubernetes.client.models.v1_image_stream_import_status.V1ImageStreamImportStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_stream_list.py b/kubernetes/test/test_v1_image_stream_list.py new file mode 100644 index 0000000000..313f08e202 --- /dev/null +++ b/kubernetes/test/test_v1_image_stream_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_stream_list import V1ImageStreamList + + +class TestV1ImageStreamList(unittest.TestCase): + """ V1ImageStreamList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageStreamList(self): + """ + Test V1ImageStreamList + """ + model = kubernetes.client.models.v1_image_stream_list.V1ImageStreamList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_stream_mapping.py b/kubernetes/test/test_v1_image_stream_mapping.py new file mode 100644 index 0000000000..9c1f885096 --- /dev/null +++ b/kubernetes/test/test_v1_image_stream_mapping.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_stream_mapping import V1ImageStreamMapping + + +class TestV1ImageStreamMapping(unittest.TestCase): + """ V1ImageStreamMapping unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageStreamMapping(self): + """ + Test V1ImageStreamMapping + """ + model = kubernetes.client.models.v1_image_stream_mapping.V1ImageStreamMapping() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_stream_spec.py b/kubernetes/test/test_v1_image_stream_spec.py new file mode 100644 index 0000000000..f47ea1dacf --- /dev/null +++ b/kubernetes/test/test_v1_image_stream_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_stream_spec import V1ImageStreamSpec + + +class TestV1ImageStreamSpec(unittest.TestCase): + """ V1ImageStreamSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageStreamSpec(self): + """ + Test V1ImageStreamSpec + """ + model = kubernetes.client.models.v1_image_stream_spec.V1ImageStreamSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_stream_status.py b/kubernetes/test/test_v1_image_stream_status.py new file mode 100644 index 0000000000..b9fa8711d5 --- /dev/null +++ b/kubernetes/test/test_v1_image_stream_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_stream_status import V1ImageStreamStatus + + +class TestV1ImageStreamStatus(unittest.TestCase): + """ V1ImageStreamStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageStreamStatus(self): + """ + Test V1ImageStreamStatus + """ + model = kubernetes.client.models.v1_image_stream_status.V1ImageStreamStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_stream_tag.py b/kubernetes/test/test_v1_image_stream_tag.py new file mode 100644 index 0000000000..f382e69200 --- /dev/null +++ b/kubernetes/test/test_v1_image_stream_tag.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_stream_tag import V1ImageStreamTag + + +class TestV1ImageStreamTag(unittest.TestCase): + """ V1ImageStreamTag unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageStreamTag(self): + """ + Test V1ImageStreamTag + """ + model = kubernetes.client.models.v1_image_stream_tag.V1ImageStreamTag() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_image_stream_tag_list.py b/kubernetes/test/test_v1_image_stream_tag_list.py new file mode 100644 index 0000000000..ba7bba0eb3 --- /dev/null +++ b/kubernetes/test/test_v1_image_stream_tag_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_image_stream_tag_list import V1ImageStreamTagList + + +class TestV1ImageStreamTagList(unittest.TestCase): + """ V1ImageStreamTagList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageStreamTagList(self): + """ + Test V1ImageStreamTagList + """ + model = kubernetes.client.models.v1_image_stream_tag_list.V1ImageStreamTagList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_iscsi_volume_source.py b/kubernetes/test/test_v1_iscsi_volume_source.py index e8a6d40c43..7e0f0ac0e7 100644 --- a/kubernetes/test/test_v1_iscsi_volume_source.py +++ b/kubernetes/test/test_v1_iscsi_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_jenkins_pipeline_build_strategy.py b/kubernetes/test/test_v1_jenkins_pipeline_build_strategy.py new file mode 100644 index 0000000000..3658b0b586 --- /dev/null +++ b/kubernetes/test/test_v1_jenkins_pipeline_build_strategy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_jenkins_pipeline_build_strategy import V1JenkinsPipelineBuildStrategy + + +class TestV1JenkinsPipelineBuildStrategy(unittest.TestCase): + """ V1JenkinsPipelineBuildStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1JenkinsPipelineBuildStrategy(self): + """ + Test V1JenkinsPipelineBuildStrategy + """ + model = kubernetes.client.models.v1_jenkins_pipeline_build_strategy.V1JenkinsPipelineBuildStrategy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_job.py b/kubernetes/test/test_v1_job.py index acf0cd3049..ae153f3129 100644 --- a/kubernetes/test/test_v1_job.py +++ b/kubernetes/test/test_v1_job.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_job_condition.py b/kubernetes/test/test_v1_job_condition.py index 6772b84751..b792883f09 100644 --- a/kubernetes/test/test_v1_job_condition.py +++ b/kubernetes/test/test_v1_job_condition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_job_list.py b/kubernetes/test/test_v1_job_list.py index b4bfcaeb4b..98867cc132 100644 --- a/kubernetes/test/test_v1_job_list.py +++ b/kubernetes/test/test_v1_job_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_job_spec.py b/kubernetes/test/test_v1_job_spec.py index ce8f325c7f..a95f02c9fb 100644 --- a/kubernetes/test/test_v1_job_spec.py +++ b/kubernetes/test/test_v1_job_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_job_status.py b/kubernetes/test/test_v1_job_status.py index 54b7334863..cfe2759129 100644 --- a/kubernetes/test/test_v1_job_status.py +++ b/kubernetes/test/test_v1_job_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_key_to_path.py b/kubernetes/test/test_v1_key_to_path.py index 083299dd21..97377e11cc 100644 --- a/kubernetes/test/test_v1_key_to_path.py +++ b/kubernetes/test/test_v1_key_to_path.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_label_selector.py b/kubernetes/test/test_v1_label_selector.py deleted file mode 100644 index 5828156daa..0000000000 --- a/kubernetes/test/test_v1_label_selector.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_label_selector import V1LabelSelector - - -class TestV1LabelSelector(unittest.TestCase): - """ V1LabelSelector unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LabelSelector(self): - """ - Test V1LabelSelector - """ - model = kubernetes.client.models.v1_label_selector.V1LabelSelector() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_label_selector_requirement.py b/kubernetes/test/test_v1_label_selector_requirement.py deleted file mode 100644 index 2384a1321b..0000000000 --- a/kubernetes/test/test_v1_label_selector_requirement.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_label_selector_requirement import V1LabelSelectorRequirement - - -class TestV1LabelSelectorRequirement(unittest.TestCase): - """ V1LabelSelectorRequirement unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LabelSelectorRequirement(self): - """ - Test V1LabelSelectorRequirement - """ - model = kubernetes.client.models.v1_label_selector_requirement.V1LabelSelectorRequirement() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_lifecycle.py b/kubernetes/test/test_v1_lifecycle.py index 41ef1dba0a..ae18ab84e4 100644 --- a/kubernetes/test/test_v1_lifecycle.py +++ b/kubernetes/test/test_v1_lifecycle.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_lifecycle_hook.py b/kubernetes/test/test_v1_lifecycle_hook.py new file mode 100644 index 0000000000..69a3c79558 --- /dev/null +++ b/kubernetes/test/test_v1_lifecycle_hook.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_lifecycle_hook import V1LifecycleHook + + +class TestV1LifecycleHook(unittest.TestCase): + """ V1LifecycleHook unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LifecycleHook(self): + """ + Test V1LifecycleHook + """ + model = kubernetes.client.models.v1_lifecycle_hook.V1LifecycleHook() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_limit_range.py b/kubernetes/test/test_v1_limit_range.py index 94e1c710cf..05c7d3708b 100644 --- a/kubernetes/test/test_v1_limit_range.py +++ b/kubernetes/test/test_v1_limit_range.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_limit_range_item.py b/kubernetes/test/test_v1_limit_range_item.py index 727568001a..4beacc6a0a 100644 --- a/kubernetes/test/test_v1_limit_range_item.py +++ b/kubernetes/test/test_v1_limit_range_item.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_limit_range_list.py b/kubernetes/test/test_v1_limit_range_list.py index 5e63716dbc..7c60b42622 100644 --- a/kubernetes/test/test_v1_limit_range_list.py +++ b/kubernetes/test/test_v1_limit_range_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_limit_range_spec.py b/kubernetes/test/test_v1_limit_range_spec.py index 74001bc931..9965122fc4 100644 --- a/kubernetes/test/test_v1_limit_range_spec.py +++ b/kubernetes/test/test_v1_limit_range_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_list_meta.py b/kubernetes/test/test_v1_list_meta.py deleted file mode 100644 index 6bd8eceb74..0000000000 --- a/kubernetes/test/test_v1_list_meta.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_list_meta import V1ListMeta - - -class TestV1ListMeta(unittest.TestCase): - """ V1ListMeta unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ListMeta(self): - """ - Test V1ListMeta - """ - model = kubernetes.client.models.v1_list_meta.V1ListMeta() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_load_balancer_ingress.py b/kubernetes/test/test_v1_load_balancer_ingress.py index 1734b78087..d5398e84b3 100644 --- a/kubernetes/test/test_v1_load_balancer_ingress.py +++ b/kubernetes/test/test_v1_load_balancer_ingress.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_load_balancer_status.py b/kubernetes/test/test_v1_load_balancer_status.py index 8fd484fd08..2b9738d5b1 100644 --- a/kubernetes/test/test_v1_load_balancer_status.py +++ b/kubernetes/test/test_v1_load_balancer_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_local_object_reference.py b/kubernetes/test/test_v1_local_object_reference.py index 875c25bcbe..c383447e8e 100644 --- a/kubernetes/test/test_v1_local_object_reference.py +++ b/kubernetes/test/test_v1_local_object_reference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_local_resource_access_review.py b/kubernetes/test/test_v1_local_resource_access_review.py new file mode 100644 index 0000000000..f800b2ea73 --- /dev/null +++ b/kubernetes/test/test_v1_local_resource_access_review.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_local_resource_access_review import V1LocalResourceAccessReview + + +class TestV1LocalResourceAccessReview(unittest.TestCase): + """ V1LocalResourceAccessReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LocalResourceAccessReview(self): + """ + Test V1LocalResourceAccessReview + """ + model = kubernetes.client.models.v1_local_resource_access_review.V1LocalResourceAccessReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_local_subject_access_review.py b/kubernetes/test/test_v1_local_subject_access_review.py index d9f44a431c..4f60d8423a 100644 --- a/kubernetes/test/test_v1_local_subject_access_review.py +++ b/kubernetes/test/test_v1_local_subject_access_review.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_named_cluster_role.py b/kubernetes/test/test_v1_named_cluster_role.py new file mode 100644 index 0000000000..80f09c68d3 --- /dev/null +++ b/kubernetes/test/test_v1_named_cluster_role.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_named_cluster_role import V1NamedClusterRole + + +class TestV1NamedClusterRole(unittest.TestCase): + """ V1NamedClusterRole unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NamedClusterRole(self): + """ + Test V1NamedClusterRole + """ + model = kubernetes.client.models.v1_named_cluster_role.V1NamedClusterRole() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_named_cluster_role_binding.py b/kubernetes/test/test_v1_named_cluster_role_binding.py new file mode 100644 index 0000000000..5e106209cd --- /dev/null +++ b/kubernetes/test/test_v1_named_cluster_role_binding.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_named_cluster_role_binding import V1NamedClusterRoleBinding + + +class TestV1NamedClusterRoleBinding(unittest.TestCase): + """ V1NamedClusterRoleBinding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NamedClusterRoleBinding(self): + """ + Test V1NamedClusterRoleBinding + """ + model = kubernetes.client.models.v1_named_cluster_role_binding.V1NamedClusterRoleBinding() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_named_role.py b/kubernetes/test/test_v1_named_role.py new file mode 100644 index 0000000000..e6072ca096 --- /dev/null +++ b/kubernetes/test/test_v1_named_role.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_named_role import V1NamedRole + + +class TestV1NamedRole(unittest.TestCase): + """ V1NamedRole unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NamedRole(self): + """ + Test V1NamedRole + """ + model = kubernetes.client.models.v1_named_role.V1NamedRole() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_named_role_binding.py b/kubernetes/test/test_v1_named_role_binding.py new file mode 100644 index 0000000000..2dd2edabc9 --- /dev/null +++ b/kubernetes/test/test_v1_named_role_binding.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_named_role_binding import V1NamedRoleBinding + + +class TestV1NamedRoleBinding(unittest.TestCase): + """ V1NamedRoleBinding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NamedRoleBinding(self): + """ + Test V1NamedRoleBinding + """ + model = kubernetes.client.models.v1_named_role_binding.V1NamedRoleBinding() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_named_tag_event_list.py b/kubernetes/test/test_v1_named_tag_event_list.py new file mode 100644 index 0000000000..992ac35495 --- /dev/null +++ b/kubernetes/test/test_v1_named_tag_event_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_named_tag_event_list import V1NamedTagEventList + + +class TestV1NamedTagEventList(unittest.TestCase): + """ V1NamedTagEventList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NamedTagEventList(self): + """ + Test V1NamedTagEventList + """ + model = kubernetes.client.models.v1_named_tag_event_list.V1NamedTagEventList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_namespace.py b/kubernetes/test/test_v1_namespace.py index ae2e274b4b..8867c594db 100644 --- a/kubernetes/test/test_v1_namespace.py +++ b/kubernetes/test/test_v1_namespace.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_namespace_list.py b/kubernetes/test/test_v1_namespace_list.py index 1ac25903d8..e442535a44 100644 --- a/kubernetes/test/test_v1_namespace_list.py +++ b/kubernetes/test/test_v1_namespace_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_namespace_spec.py b/kubernetes/test/test_v1_namespace_spec.py index d9dec19337..91f2be9643 100644 --- a/kubernetes/test/test_v1_namespace_spec.py +++ b/kubernetes/test/test_v1_namespace_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_namespace_status.py b/kubernetes/test/test_v1_namespace_status.py index d7e3946681..8b937aa61d 100644 --- a/kubernetes/test/test_v1_namespace_status.py +++ b/kubernetes/test/test_v1_namespace_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_net_namespace.py b/kubernetes/test/test_v1_net_namespace.py new file mode 100644 index 0000000000..c7e1a464f1 --- /dev/null +++ b/kubernetes/test/test_v1_net_namespace.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_net_namespace import V1NetNamespace + + +class TestV1NetNamespace(unittest.TestCase): + """ V1NetNamespace unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NetNamespace(self): + """ + Test V1NetNamespace + """ + model = kubernetes.client.models.v1_net_namespace.V1NetNamespace() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_net_namespace_list.py b/kubernetes/test/test_v1_net_namespace_list.py new file mode 100644 index 0000000000..c938cba96e --- /dev/null +++ b/kubernetes/test/test_v1_net_namespace_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_net_namespace_list import V1NetNamespaceList + + +class TestV1NetNamespaceList(unittest.TestCase): + """ V1NetNamespaceList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NetNamespaceList(self): + """ + Test V1NetNamespaceList + """ + model = kubernetes.client.models.v1_net_namespace_list.V1NetNamespaceList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_nfs_volume_source.py b/kubernetes/test/test_v1_nfs_volume_source.py index 7dedc545d4..cba1b7a6d1 100644 --- a/kubernetes/test/test_v1_nfs_volume_source.py +++ b/kubernetes/test/test_v1_nfs_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node.py b/kubernetes/test/test_v1_node.py index 11876b9474..a80a9ef7e5 100644 --- a/kubernetes/test/test_v1_node.py +++ b/kubernetes/test/test_v1_node.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_address.py b/kubernetes/test/test_v1_node_address.py index 948529fd0b..a7213c00e4 100644 --- a/kubernetes/test/test_v1_node_address.py +++ b/kubernetes/test/test_v1_node_address.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_affinity.py b/kubernetes/test/test_v1_node_affinity.py deleted file mode 100644 index 52e468c7a2..0000000000 --- a/kubernetes/test/test_v1_node_affinity.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_affinity import V1NodeAffinity - - -class TestV1NodeAffinity(unittest.TestCase): - """ V1NodeAffinity unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeAffinity(self): - """ - Test V1NodeAffinity - """ - model = kubernetes.client.models.v1_node_affinity.V1NodeAffinity() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_condition.py b/kubernetes/test/test_v1_node_condition.py index 74af764f42..22c0b31aa4 100644 --- a/kubernetes/test/test_v1_node_condition.py +++ b/kubernetes/test/test_v1_node_condition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_daemon_endpoints.py b/kubernetes/test/test_v1_node_daemon_endpoints.py index 30271dd901..3d47169d33 100644 --- a/kubernetes/test/test_v1_node_daemon_endpoints.py +++ b/kubernetes/test/test_v1_node_daemon_endpoints.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_list.py b/kubernetes/test/test_v1_node_list.py index e4e02f6d63..5d392a6d03 100644 --- a/kubernetes/test/test_v1_node_list.py +++ b/kubernetes/test/test_v1_node_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_selector.py b/kubernetes/test/test_v1_node_selector.py deleted file mode 100644 index 895306d79f..0000000000 --- a/kubernetes/test/test_v1_node_selector.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_selector import V1NodeSelector - - -class TestV1NodeSelector(unittest.TestCase): - """ V1NodeSelector unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeSelector(self): - """ - Test V1NodeSelector - """ - model = kubernetes.client.models.v1_node_selector.V1NodeSelector() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_selector_requirement.py b/kubernetes/test/test_v1_node_selector_requirement.py deleted file mode 100644 index 30612296ae..0000000000 --- a/kubernetes/test/test_v1_node_selector_requirement.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_selector_requirement import V1NodeSelectorRequirement - - -class TestV1NodeSelectorRequirement(unittest.TestCase): - """ V1NodeSelectorRequirement unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeSelectorRequirement(self): - """ - Test V1NodeSelectorRequirement - """ - model = kubernetes.client.models.v1_node_selector_requirement.V1NodeSelectorRequirement() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_selector_term.py b/kubernetes/test/test_v1_node_selector_term.py deleted file mode 100644 index 6f7c90c068..0000000000 --- a/kubernetes/test/test_v1_node_selector_term.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_selector_term import V1NodeSelectorTerm - - -class TestV1NodeSelectorTerm(unittest.TestCase): - """ V1NodeSelectorTerm unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeSelectorTerm(self): - """ - Test V1NodeSelectorTerm - """ - model = kubernetes.client.models.v1_node_selector_term.V1NodeSelectorTerm() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_spec.py b/kubernetes/test/test_v1_node_spec.py index d21df00745..34dceb9a53 100644 --- a/kubernetes/test/test_v1_node_spec.py +++ b/kubernetes/test/test_v1_node_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_status.py b/kubernetes/test/test_v1_node_status.py index f21e628348..2251778ec3 100644 --- a/kubernetes/test/test_v1_node_status.py +++ b/kubernetes/test/test_v1_node_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_system_info.py b/kubernetes/test/test_v1_node_system_info.py index 3c48935a91..120fffb4cf 100644 --- a/kubernetes/test/test_v1_node_system_info.py +++ b/kubernetes/test/test_v1_node_system_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_non_resource_attributes.py b/kubernetes/test/test_v1_non_resource_attributes.py deleted file mode 100644 index bc4138f5fb..0000000000 --- a/kubernetes/test/test_v1_non_resource_attributes.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_non_resource_attributes import V1NonResourceAttributes - - -class TestV1NonResourceAttributes(unittest.TestCase): - """ V1NonResourceAttributes unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NonResourceAttributes(self): - """ - Test V1NonResourceAttributes - """ - model = kubernetes.client.models.v1_non_resource_attributes.V1NonResourceAttributes() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_o_auth_access_token.py b/kubernetes/test/test_v1_o_auth_access_token.py new file mode 100644 index 0000000000..852ab59068 --- /dev/null +++ b/kubernetes/test/test_v1_o_auth_access_token.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_o_auth_access_token import V1OAuthAccessToken + + +class TestV1OAuthAccessToken(unittest.TestCase): + """ V1OAuthAccessToken unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1OAuthAccessToken(self): + """ + Test V1OAuthAccessToken + """ + model = kubernetes.client.models.v1_o_auth_access_token.V1OAuthAccessToken() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_o_auth_access_token_list.py b/kubernetes/test/test_v1_o_auth_access_token_list.py new file mode 100644 index 0000000000..bbc2b4929e --- /dev/null +++ b/kubernetes/test/test_v1_o_auth_access_token_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_o_auth_access_token_list import V1OAuthAccessTokenList + + +class TestV1OAuthAccessTokenList(unittest.TestCase): + """ V1OAuthAccessTokenList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1OAuthAccessTokenList(self): + """ + Test V1OAuthAccessTokenList + """ + model = kubernetes.client.models.v1_o_auth_access_token_list.V1OAuthAccessTokenList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_o_auth_authorize_token.py b/kubernetes/test/test_v1_o_auth_authorize_token.py new file mode 100644 index 0000000000..b5f2df8f83 --- /dev/null +++ b/kubernetes/test/test_v1_o_auth_authorize_token.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_o_auth_authorize_token import V1OAuthAuthorizeToken + + +class TestV1OAuthAuthorizeToken(unittest.TestCase): + """ V1OAuthAuthorizeToken unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1OAuthAuthorizeToken(self): + """ + Test V1OAuthAuthorizeToken + """ + model = kubernetes.client.models.v1_o_auth_authorize_token.V1OAuthAuthorizeToken() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_o_auth_authorize_token_list.py b/kubernetes/test/test_v1_o_auth_authorize_token_list.py new file mode 100644 index 0000000000..58150659f2 --- /dev/null +++ b/kubernetes/test/test_v1_o_auth_authorize_token_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_o_auth_authorize_token_list import V1OAuthAuthorizeTokenList + + +class TestV1OAuthAuthorizeTokenList(unittest.TestCase): + """ V1OAuthAuthorizeTokenList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1OAuthAuthorizeTokenList(self): + """ + Test V1OAuthAuthorizeTokenList + """ + model = kubernetes.client.models.v1_o_auth_authorize_token_list.V1OAuthAuthorizeTokenList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_o_auth_client.py b/kubernetes/test/test_v1_o_auth_client.py new file mode 100644 index 0000000000..f2c8824e9c --- /dev/null +++ b/kubernetes/test/test_v1_o_auth_client.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_o_auth_client import V1OAuthClient + + +class TestV1OAuthClient(unittest.TestCase): + """ V1OAuthClient unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1OAuthClient(self): + """ + Test V1OAuthClient + """ + model = kubernetes.client.models.v1_o_auth_client.V1OAuthClient() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_o_auth_client_authorization.py b/kubernetes/test/test_v1_o_auth_client_authorization.py new file mode 100644 index 0000000000..188bf3af19 --- /dev/null +++ b/kubernetes/test/test_v1_o_auth_client_authorization.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_o_auth_client_authorization import V1OAuthClientAuthorization + + +class TestV1OAuthClientAuthorization(unittest.TestCase): + """ V1OAuthClientAuthorization unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1OAuthClientAuthorization(self): + """ + Test V1OAuthClientAuthorization + """ + model = kubernetes.client.models.v1_o_auth_client_authorization.V1OAuthClientAuthorization() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_o_auth_client_authorization_list.py b/kubernetes/test/test_v1_o_auth_client_authorization_list.py new file mode 100644 index 0000000000..4de20f5148 --- /dev/null +++ b/kubernetes/test/test_v1_o_auth_client_authorization_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_o_auth_client_authorization_list import V1OAuthClientAuthorizationList + + +class TestV1OAuthClientAuthorizationList(unittest.TestCase): + """ V1OAuthClientAuthorizationList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1OAuthClientAuthorizationList(self): + """ + Test V1OAuthClientAuthorizationList + """ + model = kubernetes.client.models.v1_o_auth_client_authorization_list.V1OAuthClientAuthorizationList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_o_auth_client_list.py b/kubernetes/test/test_v1_o_auth_client_list.py new file mode 100644 index 0000000000..2342d13ccc --- /dev/null +++ b/kubernetes/test/test_v1_o_auth_client_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_o_auth_client_list import V1OAuthClientList + + +class TestV1OAuthClientList(unittest.TestCase): + """ V1OAuthClientList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1OAuthClientList(self): + """ + Test V1OAuthClientList + """ + model = kubernetes.client.models.v1_o_auth_client_list.V1OAuthClientList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_object_field_selector.py b/kubernetes/test/test_v1_object_field_selector.py index 1bc40df9c4..3315454348 100644 --- a/kubernetes/test/test_v1_object_field_selector.py +++ b/kubernetes/test/test_v1_object_field_selector.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_object_meta.py b/kubernetes/test/test_v1_object_meta.py index f15cac0cb4..4ef0e8d6b4 100644 --- a/kubernetes/test/test_v1_object_meta.py +++ b/kubernetes/test/test_v1_object_meta.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_object_reference.py b/kubernetes/test/test_v1_object_reference.py index fc3214da30..b4970ec9ca 100644 --- a/kubernetes/test/test_v1_object_reference.py +++ b/kubernetes/test/test_v1_object_reference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_owner_reference.py b/kubernetes/test/test_v1_owner_reference.py index 8bdfad5ce2..ce649c7fe9 100644 --- a/kubernetes/test/test_v1_owner_reference.py +++ b/kubernetes/test/test_v1_owner_reference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_parameter.py b/kubernetes/test/test_v1_parameter.py new file mode 100644 index 0000000000..698dcfe0ad --- /dev/null +++ b/kubernetes/test/test_v1_parameter.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_parameter import V1Parameter + + +class TestV1Parameter(unittest.TestCase): + """ V1Parameter unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Parameter(self): + """ + Test V1Parameter + """ + model = kubernetes.client.models.v1_parameter.V1Parameter() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_persistent_volume.py b/kubernetes/test/test_v1_persistent_volume.py index dfacb8ca7c..46ec07706c 100644 --- a/kubernetes/test/test_v1_persistent_volume.py +++ b/kubernetes/test/test_v1_persistent_volume.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_claim.py b/kubernetes/test/test_v1_persistent_volume_claim.py index 4aecaf3b45..c510a70f3f 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim.py +++ b/kubernetes/test/test_v1_persistent_volume_claim.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_claim_list.py b/kubernetes/test/test_v1_persistent_volume_claim_list.py index 6a0b5237b5..d390e5ffa1 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_list.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_claim_spec.py b/kubernetes/test/test_v1_persistent_volume_claim_spec.py index 41442596ed..10095688c4 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_spec.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_claim_status.py b/kubernetes/test/test_v1_persistent_volume_claim_status.py index 62c0af8102..07a36c8112 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_status.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py b/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py index e47acdb9f5..f6f84f1add 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_list.py b/kubernetes/test/test_v1_persistent_volume_list.py index 19cb7a8331..af3f766d60 100644 --- a/kubernetes/test/test_v1_persistent_volume_list.py +++ b/kubernetes/test/test_v1_persistent_volume_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_spec.py b/kubernetes/test/test_v1_persistent_volume_spec.py index 503ebf4dda..d725f30666 100644 --- a/kubernetes/test/test_v1_persistent_volume_spec.py +++ b/kubernetes/test/test_v1_persistent_volume_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_status.py b/kubernetes/test/test_v1_persistent_volume_status.py index 7b63fd620a..270112d7ce 100644 --- a/kubernetes/test/test_v1_persistent_volume_status.py +++ b/kubernetes/test/test_v1_persistent_volume_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py b/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py index c196476427..c710cfda78 100644 --- a/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py +++ b/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod.py b/kubernetes/test/test_v1_pod.py index 10d0cc6f45..8912ee240e 100644 --- a/kubernetes/test/test_v1_pod.py +++ b/kubernetes/test/test_v1_pod.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_affinity.py b/kubernetes/test/test_v1_pod_affinity.py deleted file mode 100644 index ebb72fa4f9..0000000000 --- a/kubernetes/test/test_v1_pod_affinity.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_affinity import V1PodAffinity - - -class TestV1PodAffinity(unittest.TestCase): - """ V1PodAffinity unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodAffinity(self): - """ - Test V1PodAffinity - """ - model = kubernetes.client.models.v1_pod_affinity.V1PodAffinity() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_affinity_term.py b/kubernetes/test/test_v1_pod_affinity_term.py deleted file mode 100644 index 1e874c9f27..0000000000 --- a/kubernetes/test/test_v1_pod_affinity_term.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm - - -class TestV1PodAffinityTerm(unittest.TestCase): - """ V1PodAffinityTerm unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodAffinityTerm(self): - """ - Test V1PodAffinityTerm - """ - model = kubernetes.client.models.v1_pod_affinity_term.V1PodAffinityTerm() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_anti_affinity.py b/kubernetes/test/test_v1_pod_anti_affinity.py deleted file mode 100644 index b5be12202a..0000000000 --- a/kubernetes/test/test_v1_pod_anti_affinity.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity - - -class TestV1PodAntiAffinity(unittest.TestCase): - """ V1PodAntiAffinity unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodAntiAffinity(self): - """ - Test V1PodAntiAffinity - """ - model = kubernetes.client.models.v1_pod_anti_affinity.V1PodAntiAffinity() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_condition.py b/kubernetes/test/test_v1_pod_condition.py index 1f212d2819..0e1726ff5b 100644 --- a/kubernetes/test/test_v1_pod_condition.py +++ b/kubernetes/test/test_v1_pod_condition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_list.py b/kubernetes/test/test_v1_pod_list.py index e9908778d0..4273295e93 100644 --- a/kubernetes/test/test_v1_pod_list.py +++ b/kubernetes/test/test_v1_pod_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_security_context.py b/kubernetes/test/test_v1_pod_security_context.py index 2876cca0a7..d12e9b54c5 100644 --- a/kubernetes/test/test_v1_pod_security_context.py +++ b/kubernetes/test/test_v1_pod_security_context.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_security_policy_review.py b/kubernetes/test/test_v1_pod_security_policy_review.py new file mode 100644 index 0000000000..77c2f93625 --- /dev/null +++ b/kubernetes/test/test_v1_pod_security_policy_review.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_pod_security_policy_review import V1PodSecurityPolicyReview + + +class TestV1PodSecurityPolicyReview(unittest.TestCase): + """ V1PodSecurityPolicyReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodSecurityPolicyReview(self): + """ + Test V1PodSecurityPolicyReview + """ + model = kubernetes.client.models.v1_pod_security_policy_review.V1PodSecurityPolicyReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_pod_security_policy_review_spec.py b/kubernetes/test/test_v1_pod_security_policy_review_spec.py new file mode 100644 index 0000000000..20003f9c3d --- /dev/null +++ b/kubernetes/test/test_v1_pod_security_policy_review_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_pod_security_policy_review_spec import V1PodSecurityPolicyReviewSpec + + +class TestV1PodSecurityPolicyReviewSpec(unittest.TestCase): + """ V1PodSecurityPolicyReviewSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodSecurityPolicyReviewSpec(self): + """ + Test V1PodSecurityPolicyReviewSpec + """ + model = kubernetes.client.models.v1_pod_security_policy_review_spec.V1PodSecurityPolicyReviewSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_pod_security_policy_review_status.py b/kubernetes/test/test_v1_pod_security_policy_review_status.py new file mode 100644 index 0000000000..316f718b5f --- /dev/null +++ b/kubernetes/test/test_v1_pod_security_policy_review_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_pod_security_policy_review_status import V1PodSecurityPolicyReviewStatus + + +class TestV1PodSecurityPolicyReviewStatus(unittest.TestCase): + """ V1PodSecurityPolicyReviewStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodSecurityPolicyReviewStatus(self): + """ + Test V1PodSecurityPolicyReviewStatus + """ + model = kubernetes.client.models.v1_pod_security_policy_review_status.V1PodSecurityPolicyReviewStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_pod_security_policy_self_subject_review.py b/kubernetes/test/test_v1_pod_security_policy_self_subject_review.py new file mode 100644 index 0000000000..8e5bd96fc2 --- /dev/null +++ b/kubernetes/test/test_v1_pod_security_policy_self_subject_review.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_pod_security_policy_self_subject_review import V1PodSecurityPolicySelfSubjectReview + + +class TestV1PodSecurityPolicySelfSubjectReview(unittest.TestCase): + """ V1PodSecurityPolicySelfSubjectReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodSecurityPolicySelfSubjectReview(self): + """ + Test V1PodSecurityPolicySelfSubjectReview + """ + model = kubernetes.client.models.v1_pod_security_policy_self_subject_review.V1PodSecurityPolicySelfSubjectReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_pod_security_policy_self_subject_review_spec.py b/kubernetes/test/test_v1_pod_security_policy_self_subject_review_spec.py new file mode 100644 index 0000000000..f903ca07c8 --- /dev/null +++ b/kubernetes/test/test_v1_pod_security_policy_self_subject_review_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_pod_security_policy_self_subject_review_spec import V1PodSecurityPolicySelfSubjectReviewSpec + + +class TestV1PodSecurityPolicySelfSubjectReviewSpec(unittest.TestCase): + """ V1PodSecurityPolicySelfSubjectReviewSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodSecurityPolicySelfSubjectReviewSpec(self): + """ + Test V1PodSecurityPolicySelfSubjectReviewSpec + """ + model = kubernetes.client.models.v1_pod_security_policy_self_subject_review_spec.V1PodSecurityPolicySelfSubjectReviewSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_pod_security_policy_subject_review.py b/kubernetes/test/test_v1_pod_security_policy_subject_review.py new file mode 100644 index 0000000000..a37ddbcc54 --- /dev/null +++ b/kubernetes/test/test_v1_pod_security_policy_subject_review.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_pod_security_policy_subject_review import V1PodSecurityPolicySubjectReview + + +class TestV1PodSecurityPolicySubjectReview(unittest.TestCase): + """ V1PodSecurityPolicySubjectReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodSecurityPolicySubjectReview(self): + """ + Test V1PodSecurityPolicySubjectReview + """ + model = kubernetes.client.models.v1_pod_security_policy_subject_review.V1PodSecurityPolicySubjectReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_pod_security_policy_subject_review_spec.py b/kubernetes/test/test_v1_pod_security_policy_subject_review_spec.py new file mode 100644 index 0000000000..0f9851057d --- /dev/null +++ b/kubernetes/test/test_v1_pod_security_policy_subject_review_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_pod_security_policy_subject_review_spec import V1PodSecurityPolicySubjectReviewSpec + + +class TestV1PodSecurityPolicySubjectReviewSpec(unittest.TestCase): + """ V1PodSecurityPolicySubjectReviewSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodSecurityPolicySubjectReviewSpec(self): + """ + Test V1PodSecurityPolicySubjectReviewSpec + """ + model = kubernetes.client.models.v1_pod_security_policy_subject_review_spec.V1PodSecurityPolicySubjectReviewSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_pod_security_policy_subject_review_status.py b/kubernetes/test/test_v1_pod_security_policy_subject_review_status.py new file mode 100644 index 0000000000..9e31d4781a --- /dev/null +++ b/kubernetes/test/test_v1_pod_security_policy_subject_review_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_pod_security_policy_subject_review_status import V1PodSecurityPolicySubjectReviewStatus + + +class TestV1PodSecurityPolicySubjectReviewStatus(unittest.TestCase): + """ V1PodSecurityPolicySubjectReviewStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodSecurityPolicySubjectReviewStatus(self): + """ + Test V1PodSecurityPolicySubjectReviewStatus + """ + model = kubernetes.client.models.v1_pod_security_policy_subject_review_status.V1PodSecurityPolicySubjectReviewStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_pod_spec.py b/kubernetes/test/test_v1_pod_spec.py index d853b1dc3f..dc50511e8e 100644 --- a/kubernetes/test/test_v1_pod_spec.py +++ b/kubernetes/test/test_v1_pod_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_status.py b/kubernetes/test/test_v1_pod_status.py index d9703aeebf..9d17311611 100644 --- a/kubernetes/test/test_v1_pod_status.py +++ b/kubernetes/test/test_v1_pod_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_template.py b/kubernetes/test/test_v1_pod_template.py index 127e2aefd8..507b708801 100644 --- a/kubernetes/test/test_v1_pod_template.py +++ b/kubernetes/test/test_v1_pod_template.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_template_list.py b/kubernetes/test/test_v1_pod_template_list.py index 281232b9a7..d248d09143 100644 --- a/kubernetes/test/test_v1_pod_template_list.py +++ b/kubernetes/test/test_v1_pod_template_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_template_spec.py b/kubernetes/test/test_v1_pod_template_spec.py index cbf69c35ac..3de403c3a7 100644 --- a/kubernetes/test/test_v1_pod_template_spec.py +++ b/kubernetes/test/test_v1_pod_template_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_policy.py b/kubernetes/test/test_v1_policy.py new file mode 100644 index 0000000000..8d2cb296b3 --- /dev/null +++ b/kubernetes/test/test_v1_policy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_policy import V1Policy + + +class TestV1Policy(unittest.TestCase): + """ V1Policy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Policy(self): + """ + Test V1Policy + """ + model = kubernetes.client.models.v1_policy.V1Policy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_policy_binding.py b/kubernetes/test/test_v1_policy_binding.py new file mode 100644 index 0000000000..f845907a03 --- /dev/null +++ b/kubernetes/test/test_v1_policy_binding.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_policy_binding import V1PolicyBinding + + +class TestV1PolicyBinding(unittest.TestCase): + """ V1PolicyBinding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PolicyBinding(self): + """ + Test V1PolicyBinding + """ + model = kubernetes.client.models.v1_policy_binding.V1PolicyBinding() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_policy_binding_list.py b/kubernetes/test/test_v1_policy_binding_list.py new file mode 100644 index 0000000000..6ef51123b8 --- /dev/null +++ b/kubernetes/test/test_v1_policy_binding_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_policy_binding_list import V1PolicyBindingList + + +class TestV1PolicyBindingList(unittest.TestCase): + """ V1PolicyBindingList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PolicyBindingList(self): + """ + Test V1PolicyBindingList + """ + model = kubernetes.client.models.v1_policy_binding_list.V1PolicyBindingList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_policy_list.py b/kubernetes/test/test_v1_policy_list.py new file mode 100644 index 0000000000..608554890a --- /dev/null +++ b/kubernetes/test/test_v1_policy_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_policy_list import V1PolicyList + + +class TestV1PolicyList(unittest.TestCase): + """ V1PolicyList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PolicyList(self): + """ + Test V1PolicyList + """ + model = kubernetes.client.models.v1_policy_list.V1PolicyList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_policy_rule.py b/kubernetes/test/test_v1_policy_rule.py new file mode 100644 index 0000000000..532d191da0 --- /dev/null +++ b/kubernetes/test/test_v1_policy_rule.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_policy_rule import V1PolicyRule + + +class TestV1PolicyRule(unittest.TestCase): + """ V1PolicyRule unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PolicyRule(self): + """ + Test V1PolicyRule + """ + model = kubernetes.client.models.v1_policy_rule.V1PolicyRule() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_portworx_volume_source.py b/kubernetes/test/test_v1_portworx_volume_source.py deleted file mode 100644 index 30e7f102f2..0000000000 --- a/kubernetes/test/test_v1_portworx_volume_source.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_portworx_volume_source import V1PortworxVolumeSource - - -class TestV1PortworxVolumeSource(unittest.TestCase): - """ V1PortworxVolumeSource unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PortworxVolumeSource(self): - """ - Test V1PortworxVolumeSource - """ - model = kubernetes.client.models.v1_portworx_volume_source.V1PortworxVolumeSource() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_preconditions.py b/kubernetes/test/test_v1_preconditions.py index 5dd73e24c8..c88ddc5fbc 100644 --- a/kubernetes/test/test_v1_preconditions.py +++ b/kubernetes/test/test_v1_preconditions.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_preferred_scheduling_term.py b/kubernetes/test/test_v1_preferred_scheduling_term.py deleted file mode 100644 index a6b3af37d6..0000000000 --- a/kubernetes/test/test_v1_preferred_scheduling_term.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm - - -class TestV1PreferredSchedulingTerm(unittest.TestCase): - """ V1PreferredSchedulingTerm unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PreferredSchedulingTerm(self): - """ - Test V1PreferredSchedulingTerm - """ - model = kubernetes.client.models.v1_preferred_scheduling_term.V1PreferredSchedulingTerm() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_probe.py b/kubernetes/test/test_v1_probe.py index f5278d3e8e..27ea0042c2 100644 --- a/kubernetes/test/test_v1_probe.py +++ b/kubernetes/test/test_v1_probe.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_project.py b/kubernetes/test/test_v1_project.py new file mode 100644 index 0000000000..08874118e2 --- /dev/null +++ b/kubernetes/test/test_v1_project.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_project import V1Project + + +class TestV1Project(unittest.TestCase): + """ V1Project unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Project(self): + """ + Test V1Project + """ + model = kubernetes.client.models.v1_project.V1Project() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_project_list.py b/kubernetes/test/test_v1_project_list.py new file mode 100644 index 0000000000..465b6110d1 --- /dev/null +++ b/kubernetes/test/test_v1_project_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_project_list import V1ProjectList + + +class TestV1ProjectList(unittest.TestCase): + """ V1ProjectList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ProjectList(self): + """ + Test V1ProjectList + """ + model = kubernetes.client.models.v1_project_list.V1ProjectList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_project_request.py b/kubernetes/test/test_v1_project_request.py new file mode 100644 index 0000000000..57ba21a819 --- /dev/null +++ b/kubernetes/test/test_v1_project_request.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_project_request import V1ProjectRequest + + +class TestV1ProjectRequest(unittest.TestCase): + """ V1ProjectRequest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ProjectRequest(self): + """ + Test V1ProjectRequest + """ + model = kubernetes.client.models.v1_project_request.V1ProjectRequest() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_project_spec.py b/kubernetes/test/test_v1_project_spec.py new file mode 100644 index 0000000000..35a9958705 --- /dev/null +++ b/kubernetes/test/test_v1_project_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_project_spec import V1ProjectSpec + + +class TestV1ProjectSpec(unittest.TestCase): + """ V1ProjectSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ProjectSpec(self): + """ + Test V1ProjectSpec + """ + model = kubernetes.client.models.v1_project_spec.V1ProjectSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_project_status.py b/kubernetes/test/test_v1_project_status.py new file mode 100644 index 0000000000..04e40ee9ae --- /dev/null +++ b/kubernetes/test/test_v1_project_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_project_status import V1ProjectStatus + + +class TestV1ProjectStatus(unittest.TestCase): + """ V1ProjectStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ProjectStatus(self): + """ + Test V1ProjectStatus + """ + model = kubernetes.client.models.v1_project_status.V1ProjectStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_projected_volume_source.py b/kubernetes/test/test_v1_projected_volume_source.py deleted file mode 100644 index 062b1af0e9..0000000000 --- a/kubernetes/test/test_v1_projected_volume_source.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_projected_volume_source import V1ProjectedVolumeSource - - -class TestV1ProjectedVolumeSource(unittest.TestCase): - """ V1ProjectedVolumeSource unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ProjectedVolumeSource(self): - """ - Test V1ProjectedVolumeSource - """ - model = kubernetes.client.models.v1_projected_volume_source.V1ProjectedVolumeSource() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_quobyte_volume_source.py b/kubernetes/test/test_v1_quobyte_volume_source.py index 060a9c0fcd..56e88d9808 100644 --- a/kubernetes/test/test_v1_quobyte_volume_source.py +++ b/kubernetes/test/test_v1_quobyte_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_rbd_volume_source.py b/kubernetes/test/test_v1_rbd_volume_source.py index 8f7a44e02b..c37085925a 100644 --- a/kubernetes/test/test_v1_rbd_volume_source.py +++ b/kubernetes/test/test_v1_rbd_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_recreate_deployment_strategy_params.py b/kubernetes/test/test_v1_recreate_deployment_strategy_params.py new file mode 100644 index 0000000000..1bad0bb78e --- /dev/null +++ b/kubernetes/test/test_v1_recreate_deployment_strategy_params.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_recreate_deployment_strategy_params import V1RecreateDeploymentStrategyParams + + +class TestV1RecreateDeploymentStrategyParams(unittest.TestCase): + """ V1RecreateDeploymentStrategyParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RecreateDeploymentStrategyParams(self): + """ + Test V1RecreateDeploymentStrategyParams + """ + model = kubernetes.client.models.v1_recreate_deployment_strategy_params.V1RecreateDeploymentStrategyParams() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_replication_controller.py b/kubernetes/test/test_v1_replication_controller.py index f9126279bf..a5b9740f15 100644 --- a/kubernetes/test/test_v1_replication_controller.py +++ b/kubernetes/test/test_v1_replication_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_replication_controller_condition.py b/kubernetes/test/test_v1_replication_controller_condition.py index c03222bd87..8b044fa062 100644 --- a/kubernetes/test/test_v1_replication_controller_condition.py +++ b/kubernetes/test/test_v1_replication_controller_condition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_replication_controller_list.py b/kubernetes/test/test_v1_replication_controller_list.py index c465fb5f5d..bcdda6157d 100644 --- a/kubernetes/test/test_v1_replication_controller_list.py +++ b/kubernetes/test/test_v1_replication_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_replication_controller_spec.py b/kubernetes/test/test_v1_replication_controller_spec.py index 6851dc0a4c..029b5f1380 100644 --- a/kubernetes/test/test_v1_replication_controller_spec.py +++ b/kubernetes/test/test_v1_replication_controller_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_replication_controller_status.py b/kubernetes/test/test_v1_replication_controller_status.py index 7bf1ac3b78..e5655e9a2d 100644 --- a/kubernetes/test/test_v1_replication_controller_status.py +++ b/kubernetes/test/test_v1_replication_controller_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_repository_import_spec.py b/kubernetes/test/test_v1_repository_import_spec.py new file mode 100644 index 0000000000..dc8ead5374 --- /dev/null +++ b/kubernetes/test/test_v1_repository_import_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_repository_import_spec import V1RepositoryImportSpec + + +class TestV1RepositoryImportSpec(unittest.TestCase): + """ V1RepositoryImportSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RepositoryImportSpec(self): + """ + Test V1RepositoryImportSpec + """ + model = kubernetes.client.models.v1_repository_import_spec.V1RepositoryImportSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_repository_import_status.py b/kubernetes/test/test_v1_repository_import_status.py new file mode 100644 index 0000000000..dba1c49ebf --- /dev/null +++ b/kubernetes/test/test_v1_repository_import_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_repository_import_status import V1RepositoryImportStatus + + +class TestV1RepositoryImportStatus(unittest.TestCase): + """ V1RepositoryImportStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RepositoryImportStatus(self): + """ + Test V1RepositoryImportStatus + """ + model = kubernetes.client.models.v1_repository_import_status.V1RepositoryImportStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_resource_access_review.py b/kubernetes/test/test_v1_resource_access_review.py new file mode 100644 index 0000000000..308fd5bd8c --- /dev/null +++ b/kubernetes/test/test_v1_resource_access_review.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_resource_access_review import V1ResourceAccessReview + + +class TestV1ResourceAccessReview(unittest.TestCase): + """ V1ResourceAccessReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ResourceAccessReview(self): + """ + Test V1ResourceAccessReview + """ + model = kubernetes.client.models.v1_resource_access_review.V1ResourceAccessReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_resource_attributes.py b/kubernetes/test/test_v1_resource_attributes.py deleted file mode 100644 index 97544fc52f..0000000000 --- a/kubernetes/test/test_v1_resource_attributes.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes - - -class TestV1ResourceAttributes(unittest.TestCase): - """ V1ResourceAttributes unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ResourceAttributes(self): - """ - Test V1ResourceAttributes - """ - model = kubernetes.client.models.v1_resource_attributes.V1ResourceAttributes() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_resource_field_selector.py b/kubernetes/test/test_v1_resource_field_selector.py index 1c828d7f97..5a5c73457c 100644 --- a/kubernetes/test/test_v1_resource_field_selector.py +++ b/kubernetes/test/test_v1_resource_field_selector.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_resource_quota.py b/kubernetes/test/test_v1_resource_quota.py index 301e6d3292..f3466a21f9 100644 --- a/kubernetes/test/test_v1_resource_quota.py +++ b/kubernetes/test/test_v1_resource_quota.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_resource_quota_list.py b/kubernetes/test/test_v1_resource_quota_list.py index 31afdcb42a..79daafe30b 100644 --- a/kubernetes/test/test_v1_resource_quota_list.py +++ b/kubernetes/test/test_v1_resource_quota_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_resource_quota_spec.py b/kubernetes/test/test_v1_resource_quota_spec.py index 4c1cd18afc..da919e25ac 100644 --- a/kubernetes/test/test_v1_resource_quota_spec.py +++ b/kubernetes/test/test_v1_resource_quota_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_resource_quota_status.py b/kubernetes/test/test_v1_resource_quota_status.py index 24888efb65..9240ce363a 100644 --- a/kubernetes/test/test_v1_resource_quota_status.py +++ b/kubernetes/test/test_v1_resource_quota_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_resource_quota_status_by_namespace.py b/kubernetes/test/test_v1_resource_quota_status_by_namespace.py new file mode 100644 index 0000000000..337e91ba13 --- /dev/null +++ b/kubernetes/test/test_v1_resource_quota_status_by_namespace.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_resource_quota_status_by_namespace import V1ResourceQuotaStatusByNamespace + + +class TestV1ResourceQuotaStatusByNamespace(unittest.TestCase): + """ V1ResourceQuotaStatusByNamespace unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ResourceQuotaStatusByNamespace(self): + """ + Test V1ResourceQuotaStatusByNamespace + """ + model = kubernetes.client.models.v1_resource_quota_status_by_namespace.V1ResourceQuotaStatusByNamespace() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_resource_requirements.py b/kubernetes/test/test_v1_resource_requirements.py index 6a3864b9ee..8951a5aca3 100644 --- a/kubernetes/test/test_v1_resource_requirements.py +++ b/kubernetes/test/test_v1_resource_requirements.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_role.py b/kubernetes/test/test_v1_role.py new file mode 100644 index 0000000000..8221a09596 --- /dev/null +++ b/kubernetes/test/test_v1_role.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_role import V1Role + + +class TestV1Role(unittest.TestCase): + """ V1Role unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Role(self): + """ + Test V1Role + """ + model = kubernetes.client.models.v1_role.V1Role() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_role_binding.py b/kubernetes/test/test_v1_role_binding.py new file mode 100644 index 0000000000..e363a077f2 --- /dev/null +++ b/kubernetes/test/test_v1_role_binding.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_role_binding import V1RoleBinding + + +class TestV1RoleBinding(unittest.TestCase): + """ V1RoleBinding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RoleBinding(self): + """ + Test V1RoleBinding + """ + model = kubernetes.client.models.v1_role_binding.V1RoleBinding() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_role_binding_list.py b/kubernetes/test/test_v1_role_binding_list.py new file mode 100644 index 0000000000..7461b4647a --- /dev/null +++ b/kubernetes/test/test_v1_role_binding_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_role_binding_list import V1RoleBindingList + + +class TestV1RoleBindingList(unittest.TestCase): + """ V1RoleBindingList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RoleBindingList(self): + """ + Test V1RoleBindingList + """ + model = kubernetes.client.models.v1_role_binding_list.V1RoleBindingList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_role_binding_restriction.py b/kubernetes/test/test_v1_role_binding_restriction.py new file mode 100644 index 0000000000..c0d01f0409 --- /dev/null +++ b/kubernetes/test/test_v1_role_binding_restriction.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_role_binding_restriction import V1RoleBindingRestriction + + +class TestV1RoleBindingRestriction(unittest.TestCase): + """ V1RoleBindingRestriction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RoleBindingRestriction(self): + """ + Test V1RoleBindingRestriction + """ + model = kubernetes.client.models.v1_role_binding_restriction.V1RoleBindingRestriction() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_role_binding_restriction_list.py b/kubernetes/test/test_v1_role_binding_restriction_list.py new file mode 100644 index 0000000000..d04f84fa22 --- /dev/null +++ b/kubernetes/test/test_v1_role_binding_restriction_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_role_binding_restriction_list import V1RoleBindingRestrictionList + + +class TestV1RoleBindingRestrictionList(unittest.TestCase): + """ V1RoleBindingRestrictionList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RoleBindingRestrictionList(self): + """ + Test V1RoleBindingRestrictionList + """ + model = kubernetes.client.models.v1_role_binding_restriction_list.V1RoleBindingRestrictionList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_role_binding_restriction_spec.py b/kubernetes/test/test_v1_role_binding_restriction_spec.py new file mode 100644 index 0000000000..9034e7a09b --- /dev/null +++ b/kubernetes/test/test_v1_role_binding_restriction_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_role_binding_restriction_spec import V1RoleBindingRestrictionSpec + + +class TestV1RoleBindingRestrictionSpec(unittest.TestCase): + """ V1RoleBindingRestrictionSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RoleBindingRestrictionSpec(self): + """ + Test V1RoleBindingRestrictionSpec + """ + model = kubernetes.client.models.v1_role_binding_restriction_spec.V1RoleBindingRestrictionSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_role_list.py b/kubernetes/test/test_v1_role_list.py new file mode 100644 index 0000000000..f3adf1cb3e --- /dev/null +++ b/kubernetes/test/test_v1_role_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_role_list import V1RoleList + + +class TestV1RoleList(unittest.TestCase): + """ V1RoleList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RoleList(self): + """ + Test V1RoleList + """ + model = kubernetes.client.models.v1_role_list.V1RoleList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_rolling_deployment_strategy_params.py b/kubernetes/test/test_v1_rolling_deployment_strategy_params.py new file mode 100644 index 0000000000..d2c4a704e5 --- /dev/null +++ b/kubernetes/test/test_v1_rolling_deployment_strategy_params.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_rolling_deployment_strategy_params import V1RollingDeploymentStrategyParams + + +class TestV1RollingDeploymentStrategyParams(unittest.TestCase): + """ V1RollingDeploymentStrategyParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RollingDeploymentStrategyParams(self): + """ + Test V1RollingDeploymentStrategyParams + """ + model = kubernetes.client.models.v1_rolling_deployment_strategy_params.V1RollingDeploymentStrategyParams() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_route.py b/kubernetes/test/test_v1_route.py new file mode 100644 index 0000000000..91446bb7b2 --- /dev/null +++ b/kubernetes/test/test_v1_route.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_route import V1Route + + +class TestV1Route(unittest.TestCase): + """ V1Route unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Route(self): + """ + Test V1Route + """ + model = kubernetes.client.models.v1_route.V1Route() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_route_ingress.py b/kubernetes/test/test_v1_route_ingress.py new file mode 100644 index 0000000000..04954f3005 --- /dev/null +++ b/kubernetes/test/test_v1_route_ingress.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_route_ingress import V1RouteIngress + + +class TestV1RouteIngress(unittest.TestCase): + """ V1RouteIngress unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RouteIngress(self): + """ + Test V1RouteIngress + """ + model = kubernetes.client.models.v1_route_ingress.V1RouteIngress() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_route_ingress_condition.py b/kubernetes/test/test_v1_route_ingress_condition.py new file mode 100644 index 0000000000..3cfb1fef3e --- /dev/null +++ b/kubernetes/test/test_v1_route_ingress_condition.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_route_ingress_condition import V1RouteIngressCondition + + +class TestV1RouteIngressCondition(unittest.TestCase): + """ V1RouteIngressCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RouteIngressCondition(self): + """ + Test V1RouteIngressCondition + """ + model = kubernetes.client.models.v1_route_ingress_condition.V1RouteIngressCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_route_list.py b/kubernetes/test/test_v1_route_list.py new file mode 100644 index 0000000000..3f4485d870 --- /dev/null +++ b/kubernetes/test/test_v1_route_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_route_list import V1RouteList + + +class TestV1RouteList(unittest.TestCase): + """ V1RouteList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RouteList(self): + """ + Test V1RouteList + """ + model = kubernetes.client.models.v1_route_list.V1RouteList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_route_port.py b/kubernetes/test/test_v1_route_port.py new file mode 100644 index 0000000000..f8b55331f9 --- /dev/null +++ b/kubernetes/test/test_v1_route_port.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_route_port import V1RoutePort + + +class TestV1RoutePort(unittest.TestCase): + """ V1RoutePort unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RoutePort(self): + """ + Test V1RoutePort + """ + model = kubernetes.client.models.v1_route_port.V1RoutePort() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_route_spec.py b/kubernetes/test/test_v1_route_spec.py new file mode 100644 index 0000000000..486bdb994a --- /dev/null +++ b/kubernetes/test/test_v1_route_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_route_spec import V1RouteSpec + + +class TestV1RouteSpec(unittest.TestCase): + """ V1RouteSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RouteSpec(self): + """ + Test V1RouteSpec + """ + model = kubernetes.client.models.v1_route_spec.V1RouteSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_route_status.py b/kubernetes/test/test_v1_route_status.py new file mode 100644 index 0000000000..2cea8118af --- /dev/null +++ b/kubernetes/test/test_v1_route_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_route_status import V1RouteStatus + + +class TestV1RouteStatus(unittest.TestCase): + """ V1RouteStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RouteStatus(self): + """ + Test V1RouteStatus + """ + model = kubernetes.client.models.v1_route_status.V1RouteStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_route_target_reference.py b/kubernetes/test/test_v1_route_target_reference.py new file mode 100644 index 0000000000..54a699daa6 --- /dev/null +++ b/kubernetes/test/test_v1_route_target_reference.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_route_target_reference import V1RouteTargetReference + + +class TestV1RouteTargetReference(unittest.TestCase): + """ V1RouteTargetReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RouteTargetReference(self): + """ + Test V1RouteTargetReference + """ + model = kubernetes.client.models.v1_route_target_reference.V1RouteTargetReference() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_run_as_user_strategy_options.py b/kubernetes/test/test_v1_run_as_user_strategy_options.py new file mode 100644 index 0000000000..d8cc1823e5 --- /dev/null +++ b/kubernetes/test/test_v1_run_as_user_strategy_options.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_run_as_user_strategy_options import V1RunAsUserStrategyOptions + + +class TestV1RunAsUserStrategyOptions(unittest.TestCase): + """ V1RunAsUserStrategyOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RunAsUserStrategyOptions(self): + """ + Test V1RunAsUserStrategyOptions + """ + model = kubernetes.client.models.v1_run_as_user_strategy_options.V1RunAsUserStrategyOptions() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_scale.py b/kubernetes/test/test_v1_scale.py index 40d28b3263..54877822d3 100644 --- a/kubernetes/test/test_v1_scale.py +++ b/kubernetes/test/test_v1_scale.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_scale_io_volume_source.py b/kubernetes/test/test_v1_scale_io_volume_source.py deleted file mode 100644 index a3a1fa55eb..0000000000 --- a/kubernetes/test/test_v1_scale_io_volume_source.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_scale_io_volume_source import V1ScaleIOVolumeSource - - -class TestV1ScaleIOVolumeSource(unittest.TestCase): - """ V1ScaleIOVolumeSource unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ScaleIOVolumeSource(self): - """ - Test V1ScaleIOVolumeSource - """ - model = kubernetes.client.models.v1_scale_io_volume_source.V1ScaleIOVolumeSource() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_scale_spec.py b/kubernetes/test/test_v1_scale_spec.py index 7d63afb668..2e1d25aa05 100644 --- a/kubernetes/test/test_v1_scale_spec.py +++ b/kubernetes/test/test_v1_scale_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_scale_status.py b/kubernetes/test/test_v1_scale_status.py index 82ef84818f..e3e6c28120 100644 --- a/kubernetes/test/test_v1_scale_status.py +++ b/kubernetes/test/test_v1_scale_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_scope_restriction.py b/kubernetes/test/test_v1_scope_restriction.py new file mode 100644 index 0000000000..d536cb4c5f --- /dev/null +++ b/kubernetes/test/test_v1_scope_restriction.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_scope_restriction import V1ScopeRestriction + + +class TestV1ScopeRestriction(unittest.TestCase): + """ V1ScopeRestriction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ScopeRestriction(self): + """ + Test V1ScopeRestriction + """ + model = kubernetes.client.models.v1_scope_restriction.V1ScopeRestriction() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_se_linux_context_strategy_options.py b/kubernetes/test/test_v1_se_linux_context_strategy_options.py new file mode 100644 index 0000000000..fe18b7a0a3 --- /dev/null +++ b/kubernetes/test/test_v1_se_linux_context_strategy_options.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_se_linux_context_strategy_options import V1SELinuxContextStrategyOptions + + +class TestV1SELinuxContextStrategyOptions(unittest.TestCase): + """ V1SELinuxContextStrategyOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SELinuxContextStrategyOptions(self): + """ + Test V1SELinuxContextStrategyOptions + """ + model = kubernetes.client.models.v1_se_linux_context_strategy_options.V1SELinuxContextStrategyOptions() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_se_linux_options.py b/kubernetes/test/test_v1_se_linux_options.py index cd4b623a9a..421eab713e 100644 --- a/kubernetes/test/test_v1_se_linux_options.py +++ b/kubernetes/test/test_v1_se_linux_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_secret.py b/kubernetes/test/test_v1_secret.py index 41ee1ea59b..b884a306e4 100644 --- a/kubernetes/test/test_v1_secret.py +++ b/kubernetes/test/test_v1_secret.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_secret_build_source.py b/kubernetes/test/test_v1_secret_build_source.py new file mode 100644 index 0000000000..843f1ff297 --- /dev/null +++ b/kubernetes/test/test_v1_secret_build_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_secret_build_source import V1SecretBuildSource + + +class TestV1SecretBuildSource(unittest.TestCase): + """ V1SecretBuildSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SecretBuildSource(self): + """ + Test V1SecretBuildSource + """ + model = kubernetes.client.models.v1_secret_build_source.V1SecretBuildSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_secret_env_source.py b/kubernetes/test/test_v1_secret_env_source.py deleted file mode 100644 index e711f4bae9..0000000000 --- a/kubernetes/test/test_v1_secret_env_source.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_secret_env_source import V1SecretEnvSource - - -class TestV1SecretEnvSource(unittest.TestCase): - """ V1SecretEnvSource unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SecretEnvSource(self): - """ - Test V1SecretEnvSource - """ - model = kubernetes.client.models.v1_secret_env_source.V1SecretEnvSource() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_secret_key_selector.py b/kubernetes/test/test_v1_secret_key_selector.py index 29ceae112a..ab5ee5abe5 100644 --- a/kubernetes/test/test_v1_secret_key_selector.py +++ b/kubernetes/test/test_v1_secret_key_selector.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_secret_list.py b/kubernetes/test/test_v1_secret_list.py index c4e080b118..588064cf49 100644 --- a/kubernetes/test/test_v1_secret_list.py +++ b/kubernetes/test/test_v1_secret_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_secret_projection.py b/kubernetes/test/test_v1_secret_projection.py deleted file mode 100644 index b52410d844..0000000000 --- a/kubernetes/test/test_v1_secret_projection.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_secret_projection import V1SecretProjection - - -class TestV1SecretProjection(unittest.TestCase): - """ V1SecretProjection unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SecretProjection(self): - """ - Test V1SecretProjection - """ - model = kubernetes.client.models.v1_secret_projection.V1SecretProjection() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_secret_spec.py b/kubernetes/test/test_v1_secret_spec.py new file mode 100644 index 0000000000..8f1cbe1017 --- /dev/null +++ b/kubernetes/test/test_v1_secret_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_secret_spec import V1SecretSpec + + +class TestV1SecretSpec(unittest.TestCase): + """ V1SecretSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SecretSpec(self): + """ + Test V1SecretSpec + """ + model = kubernetes.client.models.v1_secret_spec.V1SecretSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_secret_volume_source.py b/kubernetes/test/test_v1_secret_volume_source.py index aaf30a64f6..a14123f266 100644 --- a/kubernetes/test/test_v1_secret_volume_source.py +++ b/kubernetes/test/test_v1_secret_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_security_context.py b/kubernetes/test/test_v1_security_context.py index 5ef20e081f..fbd0e543f2 100644 --- a/kubernetes/test/test_v1_security_context.py +++ b/kubernetes/test/test_v1_security_context.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_security_context_constraints.py b/kubernetes/test/test_v1_security_context_constraints.py new file mode 100644 index 0000000000..2bbf6aa9ec --- /dev/null +++ b/kubernetes/test/test_v1_security_context_constraints.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_security_context_constraints import V1SecurityContextConstraints + + +class TestV1SecurityContextConstraints(unittest.TestCase): + """ V1SecurityContextConstraints unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SecurityContextConstraints(self): + """ + Test V1SecurityContextConstraints + """ + model = kubernetes.client.models.v1_security_context_constraints.V1SecurityContextConstraints() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_security_context_constraints_list.py b/kubernetes/test/test_v1_security_context_constraints_list.py new file mode 100644 index 0000000000..99b347ebc0 --- /dev/null +++ b/kubernetes/test/test_v1_security_context_constraints_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_security_context_constraints_list import V1SecurityContextConstraintsList + + +class TestV1SecurityContextConstraintsList(unittest.TestCase): + """ V1SecurityContextConstraintsList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SecurityContextConstraintsList(self): + """ + Test V1SecurityContextConstraintsList + """ + model = kubernetes.client.models.v1_security_context_constraints_list.V1SecurityContextConstraintsList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_self_subject_access_review.py b/kubernetes/test/test_v1_self_subject_access_review.py deleted file mode 100644 index f1df831098..0000000000 --- a/kubernetes/test/test_v1_self_subject_access_review.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_self_subject_access_review import V1SelfSubjectAccessReview - - -class TestV1SelfSubjectAccessReview(unittest.TestCase): - """ V1SelfSubjectAccessReview unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SelfSubjectAccessReview(self): - """ - Test V1SelfSubjectAccessReview - """ - model = kubernetes.client.models.v1_self_subject_access_review.V1SelfSubjectAccessReview() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_self_subject_access_review_spec.py b/kubernetes/test/test_v1_self_subject_access_review_spec.py deleted file mode 100644 index 855721238b..0000000000 --- a/kubernetes/test/test_v1_self_subject_access_review_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec - - -class TestV1SelfSubjectAccessReviewSpec(unittest.TestCase): - """ V1SelfSubjectAccessReviewSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SelfSubjectAccessReviewSpec(self): - """ - Test V1SelfSubjectAccessReviewSpec - """ - model = kubernetes.client.models.v1_self_subject_access_review_spec.V1SelfSubjectAccessReviewSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_self_subject_rules_review.py b/kubernetes/test/test_v1_self_subject_rules_review.py new file mode 100644 index 0000000000..9e535aa0fe --- /dev/null +++ b/kubernetes/test/test_v1_self_subject_rules_review.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_self_subject_rules_review import V1SelfSubjectRulesReview + + +class TestV1SelfSubjectRulesReview(unittest.TestCase): + """ V1SelfSubjectRulesReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SelfSubjectRulesReview(self): + """ + Test V1SelfSubjectRulesReview + """ + model = kubernetes.client.models.v1_self_subject_rules_review.V1SelfSubjectRulesReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_self_subject_rules_review_spec.py b/kubernetes/test/test_v1_self_subject_rules_review_spec.py new file mode 100644 index 0000000000..3393661155 --- /dev/null +++ b/kubernetes/test/test_v1_self_subject_rules_review_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_self_subject_rules_review_spec import V1SelfSubjectRulesReviewSpec + + +class TestV1SelfSubjectRulesReviewSpec(unittest.TestCase): + """ V1SelfSubjectRulesReviewSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SelfSubjectRulesReviewSpec(self): + """ + Test V1SelfSubjectRulesReviewSpec + """ + model = kubernetes.client.models.v1_self_subject_rules_review_spec.V1SelfSubjectRulesReviewSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_server_address_by_client_cidr.py b/kubernetes/test/test_v1_server_address_by_client_cidr.py deleted file mode 100644 index 37ba6e8285..0000000000 --- a/kubernetes/test/test_v1_server_address_by_client_cidr.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR - - -class TestV1ServerAddressByClientCIDR(unittest.TestCase): - """ V1ServerAddressByClientCIDR unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ServerAddressByClientCIDR(self): - """ - Test V1ServerAddressByClientCIDR - """ - model = kubernetes.client.models.v1_server_address_by_client_cidr.V1ServerAddressByClientCIDR() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_service.py b/kubernetes/test/test_v1_service.py index 20e1c30ad8..9311068182 100644 --- a/kubernetes/test/test_v1_service.py +++ b/kubernetes/test/test_v1_service.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_service_account.py b/kubernetes/test/test_v1_service_account.py index bb84e7979c..cbdab707e7 100644 --- a/kubernetes/test/test_v1_service_account.py +++ b/kubernetes/test/test_v1_service_account.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_service_account_list.py b/kubernetes/test/test_v1_service_account_list.py index 8b48ea22b5..d42283f9c2 100644 --- a/kubernetes/test/test_v1_service_account_list.py +++ b/kubernetes/test/test_v1_service_account_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_service_account_pod_security_policy_review_status.py b/kubernetes/test/test_v1_service_account_pod_security_policy_review_status.py new file mode 100644 index 0000000000..57abca665c --- /dev/null +++ b/kubernetes/test/test_v1_service_account_pod_security_policy_review_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_service_account_pod_security_policy_review_status import V1ServiceAccountPodSecurityPolicyReviewStatus + + +class TestV1ServiceAccountPodSecurityPolicyReviewStatus(unittest.TestCase): + """ V1ServiceAccountPodSecurityPolicyReviewStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ServiceAccountPodSecurityPolicyReviewStatus(self): + """ + Test V1ServiceAccountPodSecurityPolicyReviewStatus + """ + model = kubernetes.client.models.v1_service_account_pod_security_policy_review_status.V1ServiceAccountPodSecurityPolicyReviewStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_service_account_reference.py b/kubernetes/test/test_v1_service_account_reference.py new file mode 100644 index 0000000000..5739daaeee --- /dev/null +++ b/kubernetes/test/test_v1_service_account_reference.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_service_account_reference import V1ServiceAccountReference + + +class TestV1ServiceAccountReference(unittest.TestCase): + """ V1ServiceAccountReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ServiceAccountReference(self): + """ + Test V1ServiceAccountReference + """ + model = kubernetes.client.models.v1_service_account_reference.V1ServiceAccountReference() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_service_account_restriction.py b/kubernetes/test/test_v1_service_account_restriction.py new file mode 100644 index 0000000000..f2ecee4e5d --- /dev/null +++ b/kubernetes/test/test_v1_service_account_restriction.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_service_account_restriction import V1ServiceAccountRestriction + + +class TestV1ServiceAccountRestriction(unittest.TestCase): + """ V1ServiceAccountRestriction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ServiceAccountRestriction(self): + """ + Test V1ServiceAccountRestriction + """ + model = kubernetes.client.models.v1_service_account_restriction.V1ServiceAccountRestriction() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_service_list.py b/kubernetes/test/test_v1_service_list.py index 9b8f23754b..425dbee2ba 100644 --- a/kubernetes/test/test_v1_service_list.py +++ b/kubernetes/test/test_v1_service_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_service_port.py b/kubernetes/test/test_v1_service_port.py index ae5bc8e2bd..7763d074b8 100644 --- a/kubernetes/test/test_v1_service_port.py +++ b/kubernetes/test/test_v1_service_port.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_service_spec.py b/kubernetes/test/test_v1_service_spec.py index cf4e61be02..bb96cc5cb0 100644 --- a/kubernetes/test/test_v1_service_spec.py +++ b/kubernetes/test/test_v1_service_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_service_status.py b/kubernetes/test/test_v1_service_status.py index 1ce1ef5f3c..3f945aa42d 100644 --- a/kubernetes/test/test_v1_service_status.py +++ b/kubernetes/test/test_v1_service_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_signature_condition.py b/kubernetes/test/test_v1_signature_condition.py new file mode 100644 index 0000000000..373c640e5d --- /dev/null +++ b/kubernetes/test/test_v1_signature_condition.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_signature_condition import V1SignatureCondition + + +class TestV1SignatureCondition(unittest.TestCase): + """ V1SignatureCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SignatureCondition(self): + """ + Test V1SignatureCondition + """ + model = kubernetes.client.models.v1_signature_condition.V1SignatureCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_signature_issuer.py b/kubernetes/test/test_v1_signature_issuer.py new file mode 100644 index 0000000000..56a3ae6f76 --- /dev/null +++ b/kubernetes/test/test_v1_signature_issuer.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_signature_issuer import V1SignatureIssuer + + +class TestV1SignatureIssuer(unittest.TestCase): + """ V1SignatureIssuer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SignatureIssuer(self): + """ + Test V1SignatureIssuer + """ + model = kubernetes.client.models.v1_signature_issuer.V1SignatureIssuer() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_signature_subject.py b/kubernetes/test/test_v1_signature_subject.py new file mode 100644 index 0000000000..9c4dd3e42c --- /dev/null +++ b/kubernetes/test/test_v1_signature_subject.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_signature_subject import V1SignatureSubject + + +class TestV1SignatureSubject(unittest.TestCase): + """ V1SignatureSubject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SignatureSubject(self): + """ + Test V1SignatureSubject + """ + model = kubernetes.client.models.v1_signature_subject.V1SignatureSubject() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_source_build_strategy.py b/kubernetes/test/test_v1_source_build_strategy.py new file mode 100644 index 0000000000..298df0db11 --- /dev/null +++ b/kubernetes/test/test_v1_source_build_strategy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_source_build_strategy import V1SourceBuildStrategy + + +class TestV1SourceBuildStrategy(unittest.TestCase): + """ V1SourceBuildStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SourceBuildStrategy(self): + """ + Test V1SourceBuildStrategy + """ + model = kubernetes.client.models.v1_source_build_strategy.V1SourceBuildStrategy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_source_control_user.py b/kubernetes/test/test_v1_source_control_user.py new file mode 100644 index 0000000000..e0e27c976f --- /dev/null +++ b/kubernetes/test/test_v1_source_control_user.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_source_control_user import V1SourceControlUser + + +class TestV1SourceControlUser(unittest.TestCase): + """ V1SourceControlUser unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SourceControlUser(self): + """ + Test V1SourceControlUser + """ + model = kubernetes.client.models.v1_source_control_user.V1SourceControlUser() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_source_revision.py b/kubernetes/test/test_v1_source_revision.py new file mode 100644 index 0000000000..62cc7c4efc --- /dev/null +++ b/kubernetes/test/test_v1_source_revision.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_source_revision import V1SourceRevision + + +class TestV1SourceRevision(unittest.TestCase): + """ V1SourceRevision unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SourceRevision(self): + """ + Test V1SourceRevision + """ + model = kubernetes.client.models.v1_source_revision.V1SourceRevision() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_status.py b/kubernetes/test/test_v1_status.py deleted file mode 100644 index 8d519bb257..0000000000 --- a/kubernetes/test/test_v1_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_status import V1Status - - -class TestV1Status(unittest.TestCase): - """ V1Status unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Status(self): - """ - Test V1Status - """ - model = kubernetes.client.models.v1_status.V1Status() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_status_cause.py b/kubernetes/test/test_v1_status_cause.py deleted file mode 100644 index bc9cf6e642..0000000000 --- a/kubernetes/test/test_v1_status_cause.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_status_cause import V1StatusCause - - -class TestV1StatusCause(unittest.TestCase): - """ V1StatusCause unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StatusCause(self): - """ - Test V1StatusCause - """ - model = kubernetes.client.models.v1_status_cause.V1StatusCause() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_status_details.py b/kubernetes/test/test_v1_status_details.py deleted file mode 100644 index bb022e4470..0000000000 --- a/kubernetes/test/test_v1_status_details.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_status_details import V1StatusDetails - - -class TestV1StatusDetails(unittest.TestCase): - """ V1StatusDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StatusDetails(self): - """ - Test V1StatusDetails - """ - model = kubernetes.client.models.v1_status_details.V1StatusDetails() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_storage_class.py b/kubernetes/test/test_v1_storage_class.py deleted file mode 100644 index 0773c1824e..0000000000 --- a/kubernetes/test/test_v1_storage_class.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_storage_class import V1StorageClass - - -class TestV1StorageClass(unittest.TestCase): - """ V1StorageClass unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StorageClass(self): - """ - Test V1StorageClass - """ - model = kubernetes.client.models.v1_storage_class.V1StorageClass() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_storage_class_list.py b/kubernetes/test/test_v1_storage_class_list.py deleted file mode 100644 index acfda21e54..0000000000 --- a/kubernetes/test/test_v1_storage_class_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_storage_class_list import V1StorageClassList - - -class TestV1StorageClassList(unittest.TestCase): - """ V1StorageClassList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StorageClassList(self): - """ - Test V1StorageClassList - """ - model = kubernetes.client.models.v1_storage_class_list.V1StorageClassList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_subject_access_review.py b/kubernetes/test/test_v1_subject_access_review.py index 4366e14fa3..799e768d40 100644 --- a/kubernetes/test/test_v1_subject_access_review.py +++ b/kubernetes/test/test_v1_subject_access_review.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_subject_access_review_spec.py b/kubernetes/test/test_v1_subject_access_review_spec.py deleted file mode 100644 index 9d06090b2f..0000000000 --- a/kubernetes/test/test_v1_subject_access_review_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec - - -class TestV1SubjectAccessReviewSpec(unittest.TestCase): - """ V1SubjectAccessReviewSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SubjectAccessReviewSpec(self): - """ - Test V1SubjectAccessReviewSpec - """ - model = kubernetes.client.models.v1_subject_access_review_spec.V1SubjectAccessReviewSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_subject_access_review_status.py b/kubernetes/test/test_v1_subject_access_review_status.py deleted file mode 100644 index 366f9073ba..0000000000 --- a/kubernetes/test/test_v1_subject_access_review_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus - - -class TestV1SubjectAccessReviewStatus(unittest.TestCase): - """ V1SubjectAccessReviewStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SubjectAccessReviewStatus(self): - """ - Test V1SubjectAccessReviewStatus - """ - model = kubernetes.client.models.v1_subject_access_review_status.V1SubjectAccessReviewStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_subject_rules_review.py b/kubernetes/test/test_v1_subject_rules_review.py new file mode 100644 index 0000000000..c60bce701a --- /dev/null +++ b/kubernetes/test/test_v1_subject_rules_review.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_subject_rules_review import V1SubjectRulesReview + + +class TestV1SubjectRulesReview(unittest.TestCase): + """ V1SubjectRulesReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SubjectRulesReview(self): + """ + Test V1SubjectRulesReview + """ + model = kubernetes.client.models.v1_subject_rules_review.V1SubjectRulesReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_subject_rules_review_spec.py b/kubernetes/test/test_v1_subject_rules_review_spec.py new file mode 100644 index 0000000000..e302de4235 --- /dev/null +++ b/kubernetes/test/test_v1_subject_rules_review_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_subject_rules_review_spec import V1SubjectRulesReviewSpec + + +class TestV1SubjectRulesReviewSpec(unittest.TestCase): + """ V1SubjectRulesReviewSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SubjectRulesReviewSpec(self): + """ + Test V1SubjectRulesReviewSpec + """ + model = kubernetes.client.models.v1_subject_rules_review_spec.V1SubjectRulesReviewSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_subject_rules_review_status.py b/kubernetes/test/test_v1_subject_rules_review_status.py new file mode 100644 index 0000000000..6954cf2a29 --- /dev/null +++ b/kubernetes/test/test_v1_subject_rules_review_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_subject_rules_review_status import V1SubjectRulesReviewStatus + + +class TestV1SubjectRulesReviewStatus(unittest.TestCase): + """ V1SubjectRulesReviewStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SubjectRulesReviewStatus(self): + """ + Test V1SubjectRulesReviewStatus + """ + model = kubernetes.client.models.v1_subject_rules_review_status.V1SubjectRulesReviewStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_supplemental_groups_strategy_options.py b/kubernetes/test/test_v1_supplemental_groups_strategy_options.py new file mode 100644 index 0000000000..84d499256a --- /dev/null +++ b/kubernetes/test/test_v1_supplemental_groups_strategy_options.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_supplemental_groups_strategy_options import V1SupplementalGroupsStrategyOptions + + +class TestV1SupplementalGroupsStrategyOptions(unittest.TestCase): + """ V1SupplementalGroupsStrategyOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SupplementalGroupsStrategyOptions(self): + """ + Test V1SupplementalGroupsStrategyOptions + """ + model = kubernetes.client.models.v1_supplemental_groups_strategy_options.V1SupplementalGroupsStrategyOptions() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_tag_event.py b/kubernetes/test/test_v1_tag_event.py new file mode 100644 index 0000000000..933a23a32f --- /dev/null +++ b/kubernetes/test/test_v1_tag_event.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_tag_event import V1TagEvent + + +class TestV1TagEvent(unittest.TestCase): + """ V1TagEvent unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TagEvent(self): + """ + Test V1TagEvent + """ + model = kubernetes.client.models.v1_tag_event.V1TagEvent() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_tag_event_condition.py b/kubernetes/test/test_v1_tag_event_condition.py new file mode 100644 index 0000000000..515701c755 --- /dev/null +++ b/kubernetes/test/test_v1_tag_event_condition.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_tag_event_condition import V1TagEventCondition + + +class TestV1TagEventCondition(unittest.TestCase): + """ V1TagEventCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TagEventCondition(self): + """ + Test V1TagEventCondition + """ + model = kubernetes.client.models.v1_tag_event_condition.V1TagEventCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_tag_image_hook.py b/kubernetes/test/test_v1_tag_image_hook.py new file mode 100644 index 0000000000..197f134108 --- /dev/null +++ b/kubernetes/test/test_v1_tag_image_hook.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_tag_image_hook import V1TagImageHook + + +class TestV1TagImageHook(unittest.TestCase): + """ V1TagImageHook unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TagImageHook(self): + """ + Test V1TagImageHook + """ + model = kubernetes.client.models.v1_tag_image_hook.V1TagImageHook() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_tag_import_policy.py b/kubernetes/test/test_v1_tag_import_policy.py new file mode 100644 index 0000000000..0f35544961 --- /dev/null +++ b/kubernetes/test/test_v1_tag_import_policy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_tag_import_policy import V1TagImportPolicy + + +class TestV1TagImportPolicy(unittest.TestCase): + """ V1TagImportPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TagImportPolicy(self): + """ + Test V1TagImportPolicy + """ + model = kubernetes.client.models.v1_tag_import_policy.V1TagImportPolicy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_tag_reference.py b/kubernetes/test/test_v1_tag_reference.py new file mode 100644 index 0000000000..90c5b9674b --- /dev/null +++ b/kubernetes/test/test_v1_tag_reference.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_tag_reference import V1TagReference + + +class TestV1TagReference(unittest.TestCase): + """ V1TagReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TagReference(self): + """ + Test V1TagReference + """ + model = kubernetes.client.models.v1_tag_reference.V1TagReference() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_tag_reference_policy.py b/kubernetes/test/test_v1_tag_reference_policy.py new file mode 100644 index 0000000000..52a0c12f0a --- /dev/null +++ b/kubernetes/test/test_v1_tag_reference_policy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_tag_reference_policy import V1TagReferencePolicy + + +class TestV1TagReferencePolicy(unittest.TestCase): + """ V1TagReferencePolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TagReferencePolicy(self): + """ + Test V1TagReferencePolicy + """ + model = kubernetes.client.models.v1_tag_reference_policy.V1TagReferencePolicy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_taint.py b/kubernetes/test/test_v1_taint.py deleted file mode 100644 index b7773d46af..0000000000 --- a/kubernetes/test/test_v1_taint.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_taint import V1Taint - - -class TestV1Taint(unittest.TestCase): - """ V1Taint unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Taint(self): - """ - Test V1Taint - """ - model = kubernetes.client.models.v1_taint.V1Taint() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_tcp_socket_action.py b/kubernetes/test/test_v1_tcp_socket_action.py index 65c15c6a38..8156710c76 100644 --- a/kubernetes/test/test_v1_tcp_socket_action.py +++ b/kubernetes/test/test_v1_tcp_socket_action.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_template.py b/kubernetes/test/test_v1_template.py new file mode 100644 index 0000000000..ae4fbb96b2 --- /dev/null +++ b/kubernetes/test/test_v1_template.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_template import V1Template + + +class TestV1Template(unittest.TestCase): + """ V1Template unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Template(self): + """ + Test V1Template + """ + model = kubernetes.client.models.v1_template.V1Template() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_template_list.py b/kubernetes/test/test_v1_template_list.py new file mode 100644 index 0000000000..059ee110c5 --- /dev/null +++ b/kubernetes/test/test_v1_template_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_template_list import V1TemplateList + + +class TestV1TemplateList(unittest.TestCase): + """ V1TemplateList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TemplateList(self): + """ + Test V1TemplateList + """ + model = kubernetes.client.models.v1_template_list.V1TemplateList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_tls_config.py b/kubernetes/test/test_v1_tls_config.py new file mode 100644 index 0000000000..ec1503577d --- /dev/null +++ b/kubernetes/test/test_v1_tls_config.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_tls_config import V1TLSConfig + + +class TestV1TLSConfig(unittest.TestCase): + """ V1TLSConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TLSConfig(self): + """ + Test V1TLSConfig + """ + model = kubernetes.client.models.v1_tls_config.V1TLSConfig() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_token_review.py b/kubernetes/test/test_v1_token_review.py deleted file mode 100644 index 7e79ea2f55..0000000000 --- a/kubernetes/test/test_v1_token_review.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_token_review import V1TokenReview - - -class TestV1TokenReview(unittest.TestCase): - """ V1TokenReview unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TokenReview(self): - """ - Test V1TokenReview - """ - model = kubernetes.client.models.v1_token_review.V1TokenReview() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_token_review_spec.py b/kubernetes/test/test_v1_token_review_spec.py deleted file mode 100644 index 2352a8e593..0000000000 --- a/kubernetes/test/test_v1_token_review_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_token_review_spec import V1TokenReviewSpec - - -class TestV1TokenReviewSpec(unittest.TestCase): - """ V1TokenReviewSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TokenReviewSpec(self): - """ - Test V1TokenReviewSpec - """ - model = kubernetes.client.models.v1_token_review_spec.V1TokenReviewSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_token_review_status.py b/kubernetes/test/test_v1_token_review_status.py deleted file mode 100644 index 52cfb24d27..0000000000 --- a/kubernetes/test/test_v1_token_review_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_token_review_status import V1TokenReviewStatus - - -class TestV1TokenReviewStatus(unittest.TestCase): - """ V1TokenReviewStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TokenReviewStatus(self): - """ - Test V1TokenReviewStatus - """ - model = kubernetes.client.models.v1_token_review_status.V1TokenReviewStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_toleration.py b/kubernetes/test/test_v1_toleration.py deleted file mode 100644 index 8e8b24cbfe..0000000000 --- a/kubernetes/test/test_v1_toleration.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_toleration import V1Toleration - - -class TestV1Toleration(unittest.TestCase): - """ V1Toleration unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Toleration(self): - """ - Test V1Toleration - """ - model = kubernetes.client.models.v1_toleration.V1Toleration() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_user.py b/kubernetes/test/test_v1_user.py new file mode 100644 index 0000000000..bececf684a --- /dev/null +++ b/kubernetes/test/test_v1_user.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_user import V1User + + +class TestV1User(unittest.TestCase): + """ V1User unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1User(self): + """ + Test V1User + """ + model = kubernetes.client.models.v1_user.V1User() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_user_identity_mapping.py b/kubernetes/test/test_v1_user_identity_mapping.py new file mode 100644 index 0000000000..050e2087f6 --- /dev/null +++ b/kubernetes/test/test_v1_user_identity_mapping.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_user_identity_mapping import V1UserIdentityMapping + + +class TestV1UserIdentityMapping(unittest.TestCase): + """ V1UserIdentityMapping unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UserIdentityMapping(self): + """ + Test V1UserIdentityMapping + """ + model = kubernetes.client.models.v1_user_identity_mapping.V1UserIdentityMapping() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_user_info.py b/kubernetes/test/test_v1_user_info.py deleted file mode 100644 index 7a0cadeaa3..0000000000 --- a/kubernetes/test/test_v1_user_info.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_user_info import V1UserInfo - - -class TestV1UserInfo(unittest.TestCase): - """ V1UserInfo unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1UserInfo(self): - """ - Test V1UserInfo - """ - model = kubernetes.client.models.v1_user_info.V1UserInfo() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_user_list.py b/kubernetes/test/test_v1_user_list.py new file mode 100644 index 0000000000..b73e2f3962 --- /dev/null +++ b/kubernetes/test/test_v1_user_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_user_list import V1UserList + + +class TestV1UserList(unittest.TestCase): + """ V1UserList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UserList(self): + """ + Test V1UserList + """ + model = kubernetes.client.models.v1_user_list.V1UserList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_user_restriction.py b/kubernetes/test/test_v1_user_restriction.py new file mode 100644 index 0000000000..2be6cd5f99 --- /dev/null +++ b/kubernetes/test/test_v1_user_restriction.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_user_restriction import V1UserRestriction + + +class TestV1UserRestriction(unittest.TestCase): + """ V1UserRestriction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UserRestriction(self): + """ + Test V1UserRestriction + """ + model = kubernetes.client.models.v1_user_restriction.V1UserRestriction() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_volume.py b/kubernetes/test/test_v1_volume.py index 7f83dc3361..bdc17755c2 100644 --- a/kubernetes/test/test_v1_volume.py +++ b/kubernetes/test/test_v1_volume.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_volume_mount.py b/kubernetes/test/test_v1_volume_mount.py index 741deb5253..0843e568fe 100644 --- a/kubernetes/test/test_v1_volume_mount.py +++ b/kubernetes/test/test_v1_volume_mount.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_volume_projection.py b/kubernetes/test/test_v1_volume_projection.py deleted file mode 100644 index 7e36487e2e..0000000000 --- a/kubernetes/test/test_v1_volume_projection.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_volume_projection import V1VolumeProjection - - -class TestV1VolumeProjection(unittest.TestCase): - """ V1VolumeProjection unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VolumeProjection(self): - """ - Test V1VolumeProjection - """ - model = kubernetes.client.models.v1_volume_projection.V1VolumeProjection() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py b/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py index 290b32710f..3505c16fe4 100644 --- a/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py +++ b/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_watch_event.py b/kubernetes/test/test_v1_watch_event.py deleted file mode 100644 index 6ad549b83f..0000000000 --- a/kubernetes/test/test_v1_watch_event.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_watch_event import V1WatchEvent - - -class TestV1WatchEvent(unittest.TestCase): - """ V1WatchEvent unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1WatchEvent(self): - """ - Test V1WatchEvent - """ - model = kubernetes.client.models.v1_watch_event.V1WatchEvent() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_web_hook_trigger.py b/kubernetes/test/test_v1_web_hook_trigger.py new file mode 100644 index 0000000000..3bbfdef444 --- /dev/null +++ b/kubernetes/test/test_v1_web_hook_trigger.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_web_hook_trigger import V1WebHookTrigger + + +class TestV1WebHookTrigger(unittest.TestCase): + """ V1WebHookTrigger unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1WebHookTrigger(self): + """ + Test V1WebHookTrigger + """ + model = kubernetes.client.models.v1_web_hook_trigger.V1WebHookTrigger() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_weighted_pod_affinity_term.py b/kubernetes/test/test_v1_weighted_pod_affinity_term.py deleted file mode 100644 index 5aa4246f00..0000000000 --- a/kubernetes/test/test_v1_weighted_pod_affinity_term.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm - - -class TestV1WeightedPodAffinityTerm(unittest.TestCase): - """ V1WeightedPodAffinityTerm unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1WeightedPodAffinityTerm(self): - """ - Test V1WeightedPodAffinityTerm - """ - model = kubernetes.client.models.v1_weighted_pod_affinity_term.V1WeightedPodAffinityTerm() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_certificate_signing_request.py b/kubernetes/test/test_v1alpha1_certificate_signing_request.py new file mode 100644 index 0000000000..26d5d0e0e8 --- /dev/null +++ b/kubernetes/test/test_v1alpha1_certificate_signing_request.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1alpha1_certificate_signing_request import V1alpha1CertificateSigningRequest + + +class TestV1alpha1CertificateSigningRequest(unittest.TestCase): + """ V1alpha1CertificateSigningRequest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1CertificateSigningRequest(self): + """ + Test V1alpha1CertificateSigningRequest + """ + model = kubernetes.client.models.v1alpha1_certificate_signing_request.V1alpha1CertificateSigningRequest() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1alpha1_certificate_signing_request_condition.py b/kubernetes/test/test_v1alpha1_certificate_signing_request_condition.py new file mode 100644 index 0000000000..a992aae688 --- /dev/null +++ b/kubernetes/test/test_v1alpha1_certificate_signing_request_condition.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1alpha1_certificate_signing_request_condition import V1alpha1CertificateSigningRequestCondition + + +class TestV1alpha1CertificateSigningRequestCondition(unittest.TestCase): + """ V1alpha1CertificateSigningRequestCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1CertificateSigningRequestCondition(self): + """ + Test V1alpha1CertificateSigningRequestCondition + """ + model = kubernetes.client.models.v1alpha1_certificate_signing_request_condition.V1alpha1CertificateSigningRequestCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1alpha1_certificate_signing_request_list.py b/kubernetes/test/test_v1alpha1_certificate_signing_request_list.py new file mode 100644 index 0000000000..ad9e05d347 --- /dev/null +++ b/kubernetes/test/test_v1alpha1_certificate_signing_request_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1alpha1_certificate_signing_request_list import V1alpha1CertificateSigningRequestList + + +class TestV1alpha1CertificateSigningRequestList(unittest.TestCase): + """ V1alpha1CertificateSigningRequestList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1CertificateSigningRequestList(self): + """ + Test V1alpha1CertificateSigningRequestList + """ + model = kubernetes.client.models.v1alpha1_certificate_signing_request_list.V1alpha1CertificateSigningRequestList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1alpha1_certificate_signing_request_spec.py b/kubernetes/test/test_v1alpha1_certificate_signing_request_spec.py new file mode 100644 index 0000000000..2bc0716579 --- /dev/null +++ b/kubernetes/test/test_v1alpha1_certificate_signing_request_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1alpha1_certificate_signing_request_spec import V1alpha1CertificateSigningRequestSpec + + +class TestV1alpha1CertificateSigningRequestSpec(unittest.TestCase): + """ V1alpha1CertificateSigningRequestSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1CertificateSigningRequestSpec(self): + """ + Test V1alpha1CertificateSigningRequestSpec + """ + model = kubernetes.client.models.v1alpha1_certificate_signing_request_spec.V1alpha1CertificateSigningRequestSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1alpha1_certificate_signing_request_status.py b/kubernetes/test/test_v1alpha1_certificate_signing_request_status.py new file mode 100644 index 0000000000..4750e07514 --- /dev/null +++ b/kubernetes/test/test_v1alpha1_certificate_signing_request_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1alpha1_certificate_signing_request_status import V1alpha1CertificateSigningRequestStatus + + +class TestV1alpha1CertificateSigningRequestStatus(unittest.TestCase): + """ V1alpha1CertificateSigningRequestStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1CertificateSigningRequestStatus(self): + """ + Test V1alpha1CertificateSigningRequestStatus + """ + model = kubernetes.client.models.v1alpha1_certificate_signing_request_status.V1alpha1CertificateSigningRequestStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1alpha1_cluster_role.py b/kubernetes/test/test_v1alpha1_cluster_role.py deleted file mode 100644 index c7e670275a..0000000000 --- a/kubernetes/test/test_v1alpha1_cluster_role.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_cluster_role import V1alpha1ClusterRole - - -class TestV1alpha1ClusterRole(unittest.TestCase): - """ V1alpha1ClusterRole unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1ClusterRole(self): - """ - Test V1alpha1ClusterRole - """ - model = kubernetes.client.models.v1alpha1_cluster_role.V1alpha1ClusterRole() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_cluster_role_binding.py b/kubernetes/test/test_v1alpha1_cluster_role_binding.py deleted file mode 100644 index 83459653f6..0000000000 --- a/kubernetes/test/test_v1alpha1_cluster_role_binding.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding - - -class TestV1alpha1ClusterRoleBinding(unittest.TestCase): - """ V1alpha1ClusterRoleBinding unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1ClusterRoleBinding(self): - """ - Test V1alpha1ClusterRoleBinding - """ - model = kubernetes.client.models.v1alpha1_cluster_role_binding.V1alpha1ClusterRoleBinding() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py b/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py deleted file mode 100644 index f77be28d76..0000000000 --- a/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList - - -class TestV1alpha1ClusterRoleBindingList(unittest.TestCase): - """ V1alpha1ClusterRoleBindingList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1ClusterRoleBindingList(self): - """ - Test V1alpha1ClusterRoleBindingList - """ - model = kubernetes.client.models.v1alpha1_cluster_role_binding_list.V1alpha1ClusterRoleBindingList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_cluster_role_list.py b/kubernetes/test/test_v1alpha1_cluster_role_list.py deleted file mode 100644 index 4596064a69..0000000000 --- a/kubernetes/test/test_v1alpha1_cluster_role_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_cluster_role_list import V1alpha1ClusterRoleList - - -class TestV1alpha1ClusterRoleList(unittest.TestCase): - """ V1alpha1ClusterRoleList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1ClusterRoleList(self): - """ - Test V1alpha1ClusterRoleList - """ - model = kubernetes.client.models.v1alpha1_cluster_role_list.V1alpha1ClusterRoleList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_pod_preset.py b/kubernetes/test/test_v1alpha1_pod_preset.py deleted file mode 100644 index 5e6773a7c6..0000000000 --- a/kubernetes/test/test_v1alpha1_pod_preset.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_pod_preset import V1alpha1PodPreset - - -class TestV1alpha1PodPreset(unittest.TestCase): - """ V1alpha1PodPreset unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1PodPreset(self): - """ - Test V1alpha1PodPreset - """ - model = kubernetes.client.models.v1alpha1_pod_preset.V1alpha1PodPreset() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_pod_preset_list.py b/kubernetes/test/test_v1alpha1_pod_preset_list.py deleted file mode 100644 index 46bb7a5a91..0000000000 --- a/kubernetes/test/test_v1alpha1_pod_preset_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_pod_preset_list import V1alpha1PodPresetList - - -class TestV1alpha1PodPresetList(unittest.TestCase): - """ V1alpha1PodPresetList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1PodPresetList(self): - """ - Test V1alpha1PodPresetList - """ - model = kubernetes.client.models.v1alpha1_pod_preset_list.V1alpha1PodPresetList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_pod_preset_spec.py b/kubernetes/test/test_v1alpha1_pod_preset_spec.py deleted file mode 100644 index 4570d0a314..0000000000 --- a/kubernetes/test/test_v1alpha1_pod_preset_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec - - -class TestV1alpha1PodPresetSpec(unittest.TestCase): - """ V1alpha1PodPresetSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1PodPresetSpec(self): - """ - Test V1alpha1PodPresetSpec - """ - model = kubernetes.client.models.v1alpha1_pod_preset_spec.V1alpha1PodPresetSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_policy_rule.py b/kubernetes/test/test_v1alpha1_policy_rule.py deleted file mode 100644 index 9cc069e05b..0000000000 --- a/kubernetes/test/test_v1alpha1_policy_rule.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_policy_rule import V1alpha1PolicyRule - - -class TestV1alpha1PolicyRule(unittest.TestCase): - """ V1alpha1PolicyRule unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1PolicyRule(self): - """ - Test V1alpha1PolicyRule - """ - model = kubernetes.client.models.v1alpha1_policy_rule.V1alpha1PolicyRule() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_role.py b/kubernetes/test/test_v1alpha1_role.py deleted file mode 100644 index 6252cfd6bb..0000000000 --- a/kubernetes/test/test_v1alpha1_role.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_role import V1alpha1Role - - -class TestV1alpha1Role(unittest.TestCase): - """ V1alpha1Role unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1Role(self): - """ - Test V1alpha1Role - """ - model = kubernetes.client.models.v1alpha1_role.V1alpha1Role() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_role_binding.py b/kubernetes/test/test_v1alpha1_role_binding.py deleted file mode 100644 index 6bfd476f06..0000000000 --- a/kubernetes/test/test_v1alpha1_role_binding.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_role_binding import V1alpha1RoleBinding - - -class TestV1alpha1RoleBinding(unittest.TestCase): - """ V1alpha1RoleBinding unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1RoleBinding(self): - """ - Test V1alpha1RoleBinding - """ - model = kubernetes.client.models.v1alpha1_role_binding.V1alpha1RoleBinding() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_role_binding_list.py b/kubernetes/test/test_v1alpha1_role_binding_list.py deleted file mode 100644 index 8738c59d63..0000000000 --- a/kubernetes/test/test_v1alpha1_role_binding_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_role_binding_list import V1alpha1RoleBindingList - - -class TestV1alpha1RoleBindingList(unittest.TestCase): - """ V1alpha1RoleBindingList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1RoleBindingList(self): - """ - Test V1alpha1RoleBindingList - """ - model = kubernetes.client.models.v1alpha1_role_binding_list.V1alpha1RoleBindingList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_role_list.py b/kubernetes/test/test_v1alpha1_role_list.py deleted file mode 100644 index d93369e232..0000000000 --- a/kubernetes/test/test_v1alpha1_role_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_role_list import V1alpha1RoleList - - -class TestV1alpha1RoleList(unittest.TestCase): - """ V1alpha1RoleList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1RoleList(self): - """ - Test V1alpha1RoleList - """ - model = kubernetes.client.models.v1alpha1_role_list.V1alpha1RoleList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_role_ref.py b/kubernetes/test/test_v1alpha1_role_ref.py deleted file mode 100644 index 1edbca53f3..0000000000 --- a/kubernetes/test/test_v1alpha1_role_ref.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_role_ref import V1alpha1RoleRef - - -class TestV1alpha1RoleRef(unittest.TestCase): - """ V1alpha1RoleRef unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1RoleRef(self): - """ - Test V1alpha1RoleRef - """ - model = kubernetes.client.models.v1alpha1_role_ref.V1alpha1RoleRef() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_subject.py b/kubernetes/test/test_v1alpha1_subject.py deleted file mode 100644 index 72b9e9f6ed..0000000000 --- a/kubernetes/test/test_v1alpha1_subject.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_subject import V1alpha1Subject - - -class TestV1alpha1Subject(unittest.TestCase): - """ V1alpha1Subject unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1Subject(self): - """ - Test V1alpha1Subject - """ - model = kubernetes.client.models.v1alpha1_subject.V1alpha1Subject() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_api_version.py b/kubernetes/test/test_v1beta1_api_version.py index 325a278611..38fc9853a8 100644 --- a/kubernetes/test/test_v1beta1_api_version.py +++ b/kubernetes/test/test_v1beta1_api_version.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request.py b/kubernetes/test/test_v1beta1_certificate_signing_request.py deleted file mode 100644 index 96facf3619..0000000000 --- a/kubernetes/test/test_v1beta1_certificate_signing_request.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest - - -class TestV1beta1CertificateSigningRequest(unittest.TestCase): - """ V1beta1CertificateSigningRequest unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CertificateSigningRequest(self): - """ - Test V1beta1CertificateSigningRequest - """ - model = kubernetes.client.models.v1beta1_certificate_signing_request.V1beta1CertificateSigningRequest() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py b/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py deleted file mode 100644 index d0a47c8632..0000000000 --- a/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition - - -class TestV1beta1CertificateSigningRequestCondition(unittest.TestCase): - """ V1beta1CertificateSigningRequestCondition unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CertificateSigningRequestCondition(self): - """ - Test V1beta1CertificateSigningRequestCondition - """ - model = kubernetes.client.models.v1beta1_certificate_signing_request_condition.V1beta1CertificateSigningRequestCondition() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_list.py b/kubernetes/test/test_v1beta1_certificate_signing_request_list.py deleted file mode 100644 index 6982c7a7d4..0000000000 --- a/kubernetes/test/test_v1beta1_certificate_signing_request_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList - - -class TestV1beta1CertificateSigningRequestList(unittest.TestCase): - """ V1beta1CertificateSigningRequestList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CertificateSigningRequestList(self): - """ - Test V1beta1CertificateSigningRequestList - """ - model = kubernetes.client.models.v1beta1_certificate_signing_request_list.V1beta1CertificateSigningRequestList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py b/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py deleted file mode 100644 index 5980b06179..0000000000 --- a/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec - - -class TestV1beta1CertificateSigningRequestSpec(unittest.TestCase): - """ V1beta1CertificateSigningRequestSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CertificateSigningRequestSpec(self): - """ - Test V1beta1CertificateSigningRequestSpec - """ - model = kubernetes.client.models.v1beta1_certificate_signing_request_spec.V1beta1CertificateSigningRequestSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_status.py b/kubernetes/test/test_v1beta1_certificate_signing_request_status.py deleted file mode 100644 index c35e4425ee..0000000000 --- a/kubernetes/test/test_v1beta1_certificate_signing_request_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus - - -class TestV1beta1CertificateSigningRequestStatus(unittest.TestCase): - """ V1beta1CertificateSigningRequestStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CertificateSigningRequestStatus(self): - """ - Test V1beta1CertificateSigningRequestStatus - """ - model = kubernetes.client.models.v1beta1_certificate_signing_request_status.V1beta1CertificateSigningRequestStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cluster_role.py b/kubernetes/test/test_v1beta1_cluster_role.py deleted file mode 100644 index cbb1bee877..0000000000 --- a/kubernetes/test/test_v1beta1_cluster_role.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_cluster_role import V1beta1ClusterRole - - -class TestV1beta1ClusterRole(unittest.TestCase): - """ V1beta1ClusterRole unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ClusterRole(self): - """ - Test V1beta1ClusterRole - """ - model = kubernetes.client.models.v1beta1_cluster_role.V1beta1ClusterRole() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cluster_role_binding.py b/kubernetes/test/test_v1beta1_cluster_role_binding.py deleted file mode 100644 index fa9790f664..0000000000 --- a/kubernetes/test/test_v1beta1_cluster_role_binding.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding - - -class TestV1beta1ClusterRoleBinding(unittest.TestCase): - """ V1beta1ClusterRoleBinding unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ClusterRoleBinding(self): - """ - Test V1beta1ClusterRoleBinding - """ - model = kubernetes.client.models.v1beta1_cluster_role_binding.V1beta1ClusterRoleBinding() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cluster_role_binding_list.py b/kubernetes/test/test_v1beta1_cluster_role_binding_list.py deleted file mode 100644 index 64a4206563..0000000000 --- a/kubernetes/test/test_v1beta1_cluster_role_binding_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList - - -class TestV1beta1ClusterRoleBindingList(unittest.TestCase): - """ V1beta1ClusterRoleBindingList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ClusterRoleBindingList(self): - """ - Test V1beta1ClusterRoleBindingList - """ - model = kubernetes.client.models.v1beta1_cluster_role_binding_list.V1beta1ClusterRoleBindingList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cluster_role_list.py b/kubernetes/test/test_v1beta1_cluster_role_list.py deleted file mode 100644 index 1e3b4f4ec4..0000000000 --- a/kubernetes/test/test_v1beta1_cluster_role_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_cluster_role_list import V1beta1ClusterRoleList - - -class TestV1beta1ClusterRoleList(unittest.TestCase): - """ V1beta1ClusterRoleList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ClusterRoleList(self): - """ - Test V1beta1ClusterRoleList - """ - model = kubernetes.client.models.v1beta1_cluster_role_list.V1beta1ClusterRoleList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cpu_target_utilization.py b/kubernetes/test/test_v1beta1_cpu_target_utilization.py new file mode 100644 index 0000000000..935af58a58 --- /dev/null +++ b/kubernetes/test/test_v1beta1_cpu_target_utilization.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_cpu_target_utilization import V1beta1CPUTargetUtilization + + +class TestV1beta1CPUTargetUtilization(unittest.TestCase): + """ V1beta1CPUTargetUtilization unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1CPUTargetUtilization(self): + """ + Test V1beta1CPUTargetUtilization + """ + model = kubernetes.client.models.v1beta1_cpu_target_utilization.V1beta1CPUTargetUtilization() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_daemon_set.py b/kubernetes/test/test_v1beta1_daemon_set.py index 10415af716..ebbbdbe220 100644 --- a/kubernetes/test/test_v1beta1_daemon_set.py +++ b/kubernetes/test/test_v1beta1_daemon_set.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_daemon_set_list.py b/kubernetes/test/test_v1beta1_daemon_set_list.py index fb0318a60e..263f604da5 100644 --- a/kubernetes/test/test_v1beta1_daemon_set_list.py +++ b/kubernetes/test/test_v1beta1_daemon_set_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_daemon_set_spec.py b/kubernetes/test/test_v1beta1_daemon_set_spec.py index b5fa97ba0f..7b2c6eae5c 100644 --- a/kubernetes/test/test_v1beta1_daemon_set_spec.py +++ b/kubernetes/test/test_v1beta1_daemon_set_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_daemon_set_status.py b/kubernetes/test/test_v1beta1_daemon_set_status.py index 6b40348ed1..c97b63e729 100644 --- a/kubernetes/test/test_v1beta1_daemon_set_status.py +++ b/kubernetes/test/test_v1beta1_daemon_set_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py b/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py deleted file mode 100644 index 8ea3ce3878..0000000000 --- a/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy - - -class TestV1beta1DaemonSetUpdateStrategy(unittest.TestCase): - """ V1beta1DaemonSetUpdateStrategy unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1DaemonSetUpdateStrategy(self): - """ - Test V1beta1DaemonSetUpdateStrategy - """ - model = kubernetes.client.models.v1beta1_daemon_set_update_strategy.V1beta1DaemonSetUpdateStrategy() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment.py b/kubernetes/test/test_v1beta1_deployment.py new file mode 100644 index 0000000000..3f88f5abb8 --- /dev/null +++ b/kubernetes/test/test_v1beta1_deployment.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_deployment import V1beta1Deployment + + +class TestV1beta1Deployment(unittest.TestCase): + """ V1beta1Deployment unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1Deployment(self): + """ + Test V1beta1Deployment + """ + model = kubernetes.client.models.v1beta1_deployment.V1beta1Deployment() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment_condition.py b/kubernetes/test/test_v1beta1_deployment_condition.py new file mode 100644 index 0000000000..9af1de63e4 --- /dev/null +++ b/kubernetes/test/test_v1beta1_deployment_condition.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_deployment_condition import V1beta1DeploymentCondition + + +class TestV1beta1DeploymentCondition(unittest.TestCase): + """ V1beta1DeploymentCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DeploymentCondition(self): + """ + Test V1beta1DeploymentCondition + """ + model = kubernetes.client.models.v1beta1_deployment_condition.V1beta1DeploymentCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment_list.py b/kubernetes/test/test_v1beta1_deployment_list.py new file mode 100644 index 0000000000..ea16452275 --- /dev/null +++ b/kubernetes/test/test_v1beta1_deployment_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_deployment_list import V1beta1DeploymentList + + +class TestV1beta1DeploymentList(unittest.TestCase): + """ V1beta1DeploymentList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DeploymentList(self): + """ + Test V1beta1DeploymentList + """ + model = kubernetes.client.models.v1beta1_deployment_list.V1beta1DeploymentList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment_rollback.py b/kubernetes/test/test_v1beta1_deployment_rollback.py new file mode 100644 index 0000000000..46ace814a3 --- /dev/null +++ b/kubernetes/test/test_v1beta1_deployment_rollback.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_deployment_rollback import V1beta1DeploymentRollback + + +class TestV1beta1DeploymentRollback(unittest.TestCase): + """ V1beta1DeploymentRollback unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DeploymentRollback(self): + """ + Test V1beta1DeploymentRollback + """ + model = kubernetes.client.models.v1beta1_deployment_rollback.V1beta1DeploymentRollback() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment_spec.py b/kubernetes/test/test_v1beta1_deployment_spec.py new file mode 100644 index 0000000000..87a2a24615 --- /dev/null +++ b/kubernetes/test/test_v1beta1_deployment_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_deployment_spec import V1beta1DeploymentSpec + + +class TestV1beta1DeploymentSpec(unittest.TestCase): + """ V1beta1DeploymentSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DeploymentSpec(self): + """ + Test V1beta1DeploymentSpec + """ + model = kubernetes.client.models.v1beta1_deployment_spec.V1beta1DeploymentSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment_status.py b/kubernetes/test/test_v1beta1_deployment_status.py new file mode 100644 index 0000000000..efa0d34543 --- /dev/null +++ b/kubernetes/test/test_v1beta1_deployment_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_deployment_status import V1beta1DeploymentStatus + + +class TestV1beta1DeploymentStatus(unittest.TestCase): + """ V1beta1DeploymentStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DeploymentStatus(self): + """ + Test V1beta1DeploymentStatus + """ + model = kubernetes.client.models.v1beta1_deployment_status.V1beta1DeploymentStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment_strategy.py b/kubernetes/test/test_v1beta1_deployment_strategy.py new file mode 100644 index 0000000000..8b57e5f58e --- /dev/null +++ b/kubernetes/test/test_v1beta1_deployment_strategy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_deployment_strategy import V1beta1DeploymentStrategy + + +class TestV1beta1DeploymentStrategy(unittest.TestCase): + """ V1beta1DeploymentStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DeploymentStrategy(self): + """ + Test V1beta1DeploymentStrategy + """ + model = kubernetes.client.models.v1beta1_deployment_strategy.V1beta1DeploymentStrategy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_eviction.py b/kubernetes/test/test_v1beta1_eviction.py index cf2711eb27..a49f3d8042 100644 --- a/kubernetes/test/test_v1beta1_eviction.py +++ b/kubernetes/test/test_v1beta1_eviction.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_fs_group_strategy_options.py b/kubernetes/test/test_v1beta1_fs_group_strategy_options.py index d7f8ddadbb..2faf8eb4f9 100644 --- a/kubernetes/test/test_v1beta1_fs_group_strategy_options.py +++ b/kubernetes/test/test_v1beta1_fs_group_strategy_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler.py b/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler.py new file mode 100644 index 0000000000..346f58cd6f --- /dev/null +++ b/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_horizontal_pod_autoscaler import V1beta1HorizontalPodAutoscaler + + +class TestV1beta1HorizontalPodAutoscaler(unittest.TestCase): + """ V1beta1HorizontalPodAutoscaler unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1HorizontalPodAutoscaler(self): + """ + Test V1beta1HorizontalPodAutoscaler + """ + model = kubernetes.client.models.v1beta1_horizontal_pod_autoscaler.V1beta1HorizontalPodAutoscaler() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_list.py b/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_list.py new file mode 100644 index 0000000000..18815a7127 --- /dev/null +++ b/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_list import V1beta1HorizontalPodAutoscalerList + + +class TestV1beta1HorizontalPodAutoscalerList(unittest.TestCase): + """ V1beta1HorizontalPodAutoscalerList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1HorizontalPodAutoscalerList(self): + """ + Test V1beta1HorizontalPodAutoscalerList + """ + model = kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_list.V1beta1HorizontalPodAutoscalerList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_spec.py b/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_spec.py new file mode 100644 index 0000000000..49935ccf71 --- /dev/null +++ b/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_spec import V1beta1HorizontalPodAutoscalerSpec + + +class TestV1beta1HorizontalPodAutoscalerSpec(unittest.TestCase): + """ V1beta1HorizontalPodAutoscalerSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1HorizontalPodAutoscalerSpec(self): + """ + Test V1beta1HorizontalPodAutoscalerSpec + """ + model = kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_spec.V1beta1HorizontalPodAutoscalerSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_status.py b/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_status.py new file mode 100644 index 0000000000..13b1f45334 --- /dev/null +++ b/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_status import V1beta1HorizontalPodAutoscalerStatus + + +class TestV1beta1HorizontalPodAutoscalerStatus(unittest.TestCase): + """ V1beta1HorizontalPodAutoscalerStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1HorizontalPodAutoscalerStatus(self): + """ + Test V1beta1HorizontalPodAutoscalerStatus + """ + model = kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_status.V1beta1HorizontalPodAutoscalerStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_host_port_range.py b/kubernetes/test/test_v1beta1_host_port_range.py index 02ea52cb82..f8051cec53 100644 --- a/kubernetes/test/test_v1beta1_host_port_range.py +++ b/kubernetes/test/test_v1beta1_host_port_range.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_http_ingress_path.py b/kubernetes/test/test_v1beta1_http_ingress_path.py index 808679f538..4b0f9baefe 100644 --- a/kubernetes/test/test_v1beta1_http_ingress_path.py +++ b/kubernetes/test/test_v1beta1_http_ingress_path.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_http_ingress_rule_value.py b/kubernetes/test/test_v1beta1_http_ingress_rule_value.py index 160b230a20..19d77b26b2 100644 --- a/kubernetes/test/test_v1beta1_http_ingress_rule_value.py +++ b/kubernetes/test/test_v1beta1_http_ingress_rule_value.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_id_range.py b/kubernetes/test/test_v1beta1_id_range.py index 764034ab28..d579f7dad9 100644 --- a/kubernetes/test/test_v1beta1_id_range.py +++ b/kubernetes/test/test_v1beta1_id_range.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress.py b/kubernetes/test/test_v1beta1_ingress.py index b9d0673dc6..c8faeec00c 100644 --- a/kubernetes/test/test_v1beta1_ingress.py +++ b/kubernetes/test/test_v1beta1_ingress.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress_backend.py b/kubernetes/test/test_v1beta1_ingress_backend.py index a0581b2039..a459968071 100644 --- a/kubernetes/test/test_v1beta1_ingress_backend.py +++ b/kubernetes/test/test_v1beta1_ingress_backend.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress_list.py b/kubernetes/test/test_v1beta1_ingress_list.py index 742d8b94fe..5736513438 100644 --- a/kubernetes/test/test_v1beta1_ingress_list.py +++ b/kubernetes/test/test_v1beta1_ingress_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress_rule.py b/kubernetes/test/test_v1beta1_ingress_rule.py index df91eafe44..36d94fa0eb 100644 --- a/kubernetes/test/test_v1beta1_ingress_rule.py +++ b/kubernetes/test/test_v1beta1_ingress_rule.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress_spec.py b/kubernetes/test/test_v1beta1_ingress_spec.py index fc8fde6256..7dd29fe4e2 100644 --- a/kubernetes/test/test_v1beta1_ingress_spec.py +++ b/kubernetes/test/test_v1beta1_ingress_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress_status.py b/kubernetes/test/test_v1beta1_ingress_status.py index ef16d423b5..c25281836b 100644 --- a/kubernetes/test/test_v1beta1_ingress_status.py +++ b/kubernetes/test/test_v1beta1_ingress_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress_tls.py b/kubernetes/test/test_v1beta1_ingress_tls.py index 131f4e64ca..50bbc4ac99 100644 --- a/kubernetes/test/test_v1beta1_ingress_tls.py +++ b/kubernetes/test/test_v1beta1_ingress_tls.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_job.py b/kubernetes/test/test_v1beta1_job.py new file mode 100644 index 0000000000..a726690613 --- /dev/null +++ b/kubernetes/test/test_v1beta1_job.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_job import V1beta1Job + + +class TestV1beta1Job(unittest.TestCase): + """ V1beta1Job unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1Job(self): + """ + Test V1beta1Job + """ + model = kubernetes.client.models.v1beta1_job.V1beta1Job() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_job_condition.py b/kubernetes/test/test_v1beta1_job_condition.py new file mode 100644 index 0000000000..3047d28bb4 --- /dev/null +++ b/kubernetes/test/test_v1beta1_job_condition.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_job_condition import V1beta1JobCondition + + +class TestV1beta1JobCondition(unittest.TestCase): + """ V1beta1JobCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1JobCondition(self): + """ + Test V1beta1JobCondition + """ + model = kubernetes.client.models.v1beta1_job_condition.V1beta1JobCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_job_list.py b/kubernetes/test/test_v1beta1_job_list.py new file mode 100644 index 0000000000..6e09aae194 --- /dev/null +++ b/kubernetes/test/test_v1beta1_job_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_job_list import V1beta1JobList + + +class TestV1beta1JobList(unittest.TestCase): + """ V1beta1JobList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1JobList(self): + """ + Test V1beta1JobList + """ + model = kubernetes.client.models.v1beta1_job_list.V1beta1JobList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_job_spec.py b/kubernetes/test/test_v1beta1_job_spec.py new file mode 100644 index 0000000000..a1fa5430cf --- /dev/null +++ b/kubernetes/test/test_v1beta1_job_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_job_spec import V1beta1JobSpec + + +class TestV1beta1JobSpec(unittest.TestCase): + """ V1beta1JobSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1JobSpec(self): + """ + Test V1beta1JobSpec + """ + model = kubernetes.client.models.v1beta1_job_spec.V1beta1JobSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_job_status.py b/kubernetes/test/test_v1beta1_job_status.py new file mode 100644 index 0000000000..bfa96eae44 --- /dev/null +++ b/kubernetes/test/test_v1beta1_job_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_job_status import V1beta1JobStatus + + +class TestV1beta1JobStatus(unittest.TestCase): + """ V1beta1JobStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1JobStatus(self): + """ + Test V1beta1JobStatus + """ + model = kubernetes.client.models.v1beta1_job_status.V1beta1JobStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_local_subject_access_review.py b/kubernetes/test/test_v1beta1_local_subject_access_review.py deleted file mode 100644 index 24a011ed31..0000000000 --- a/kubernetes/test/test_v1beta1_local_subject_access_review.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview - - -class TestV1beta1LocalSubjectAccessReview(unittest.TestCase): - """ V1beta1LocalSubjectAccessReview unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1LocalSubjectAccessReview(self): - """ - Test V1beta1LocalSubjectAccessReview - """ - model = kubernetes.client.models.v1beta1_local_subject_access_review.V1beta1LocalSubjectAccessReview() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_network_policy.py b/kubernetes/test/test_v1beta1_network_policy.py index a76ce1e26f..5a5496aa34 100644 --- a/kubernetes/test/test_v1beta1_network_policy.py +++ b/kubernetes/test/test_v1beta1_network_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py b/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py index f9abfe031d..cf4d738596 100644 --- a/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py +++ b/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_network_policy_list.py b/kubernetes/test/test_v1beta1_network_policy_list.py index 83f1a056bc..955c5835be 100644 --- a/kubernetes/test/test_v1beta1_network_policy_list.py +++ b/kubernetes/test/test_v1beta1_network_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_network_policy_peer.py b/kubernetes/test/test_v1beta1_network_policy_peer.py index a70d01047e..b049ffe74c 100644 --- a/kubernetes/test/test_v1beta1_network_policy_peer.py +++ b/kubernetes/test/test_v1beta1_network_policy_peer.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_network_policy_port.py b/kubernetes/test/test_v1beta1_network_policy_port.py index 2a33bd6b09..43458459b4 100644 --- a/kubernetes/test/test_v1beta1_network_policy_port.py +++ b/kubernetes/test/test_v1beta1_network_policy_port.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_network_policy_spec.py b/kubernetes/test/test_v1beta1_network_policy_spec.py index 705ca529a7..7251249e4f 100644 --- a/kubernetes/test/test_v1beta1_network_policy_spec.py +++ b/kubernetes/test/test_v1beta1_network_policy_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_non_resource_attributes.py b/kubernetes/test/test_v1beta1_non_resource_attributes.py deleted file mode 100644 index 3f83fdfa0f..0000000000 --- a/kubernetes/test/test_v1beta1_non_resource_attributes.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_non_resource_attributes import V1beta1NonResourceAttributes - - -class TestV1beta1NonResourceAttributes(unittest.TestCase): - """ V1beta1NonResourceAttributes unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1NonResourceAttributes(self): - """ - Test V1beta1NonResourceAttributes - """ - model = kubernetes.client.models.v1beta1_non_resource_attributes.V1beta1NonResourceAttributes() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget.py b/kubernetes/test/test_v1beta1_pod_disruption_budget.py index d8d3f5102f..b6f70a5301 100644 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget.py +++ b/kubernetes/test/test_v1beta1_pod_disruption_budget.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py b/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py index ef5ec137af..16a9c7a417 100644 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py +++ b/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py b/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py index d68161c6d5..234531df54 100644 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py +++ b/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py b/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py index 1fb4fe0440..adf2e4fd89 100644 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py +++ b/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_pod_security_policy.py b/kubernetes/test/test_v1beta1_pod_security_policy.py index 12ef3e7744..dd390aba00 100644 --- a/kubernetes/test/test_v1beta1_pod_security_policy.py +++ b/kubernetes/test/test_v1beta1_pod_security_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_pod_security_policy_list.py b/kubernetes/test/test_v1beta1_pod_security_policy_list.py index e55fb8ab99..5f9b5f224f 100644 --- a/kubernetes/test/test_v1beta1_pod_security_policy_list.py +++ b/kubernetes/test/test_v1beta1_pod_security_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_pod_security_policy_spec.py b/kubernetes/test/test_v1beta1_pod_security_policy_spec.py index 0d0fddeedb..b79d17f0e2 100644 --- a/kubernetes/test/test_v1beta1_pod_security_policy_spec.py +++ b/kubernetes/test/test_v1beta1_pod_security_policy_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_policy_rule.py b/kubernetes/test/test_v1beta1_policy_rule.py deleted file mode 100644 index c42836051d..0000000000 --- a/kubernetes/test/test_v1beta1_policy_rule.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_policy_rule import V1beta1PolicyRule - - -class TestV1beta1PolicyRule(unittest.TestCase): - """ V1beta1PolicyRule unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1PolicyRule(self): - """ - Test V1beta1PolicyRule - """ - model = kubernetes.client.models.v1beta1_policy_rule.V1beta1PolicyRule() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_replica_set.py b/kubernetes/test/test_v1beta1_replica_set.py index 05fe421139..45520a2ae2 100644 --- a/kubernetes/test/test_v1beta1_replica_set.py +++ b/kubernetes/test/test_v1beta1_replica_set.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_replica_set_condition.py b/kubernetes/test/test_v1beta1_replica_set_condition.py index 15a25ea281..2eec96ea1b 100644 --- a/kubernetes/test/test_v1beta1_replica_set_condition.py +++ b/kubernetes/test/test_v1beta1_replica_set_condition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_replica_set_list.py b/kubernetes/test/test_v1beta1_replica_set_list.py index b75d15d6de..11e7d0c985 100644 --- a/kubernetes/test/test_v1beta1_replica_set_list.py +++ b/kubernetes/test/test_v1beta1_replica_set_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_replica_set_spec.py b/kubernetes/test/test_v1beta1_replica_set_spec.py index 2e6d09881b..cd06e9c350 100644 --- a/kubernetes/test/test_v1beta1_replica_set_spec.py +++ b/kubernetes/test/test_v1beta1_replica_set_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_replica_set_status.py b/kubernetes/test/test_v1beta1_replica_set_status.py index 45bb04bfb5..a10ae9e7d5 100644 --- a/kubernetes/test/test_v1beta1_replica_set_status.py +++ b/kubernetes/test/test_v1beta1_replica_set_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_resource_attributes.py b/kubernetes/test/test_v1beta1_resource_attributes.py deleted file mode 100644 index 03ea8913d4..0000000000 --- a/kubernetes/test/test_v1beta1_resource_attributes.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_resource_attributes import V1beta1ResourceAttributes - - -class TestV1beta1ResourceAttributes(unittest.TestCase): - """ V1beta1ResourceAttributes unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ResourceAttributes(self): - """ - Test V1beta1ResourceAttributes - """ - model = kubernetes.client.models.v1beta1_resource_attributes.V1beta1ResourceAttributes() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_role.py b/kubernetes/test/test_v1beta1_role.py deleted file mode 100644 index ed3229f4e2..0000000000 --- a/kubernetes/test/test_v1beta1_role.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_role import V1beta1Role - - -class TestV1beta1Role(unittest.TestCase): - """ V1beta1Role unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1Role(self): - """ - Test V1beta1Role - """ - model = kubernetes.client.models.v1beta1_role.V1beta1Role() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_role_binding.py b/kubernetes/test/test_v1beta1_role_binding.py deleted file mode 100644 index 3ac9cfce6f..0000000000 --- a/kubernetes/test/test_v1beta1_role_binding.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_role_binding import V1beta1RoleBinding - - -class TestV1beta1RoleBinding(unittest.TestCase): - """ V1beta1RoleBinding unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RoleBinding(self): - """ - Test V1beta1RoleBinding - """ - model = kubernetes.client.models.v1beta1_role_binding.V1beta1RoleBinding() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_role_binding_list.py b/kubernetes/test/test_v1beta1_role_binding_list.py deleted file mode 100644 index 3ea246acdf..0000000000 --- a/kubernetes/test/test_v1beta1_role_binding_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_role_binding_list import V1beta1RoleBindingList - - -class TestV1beta1RoleBindingList(unittest.TestCase): - """ V1beta1RoleBindingList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RoleBindingList(self): - """ - Test V1beta1RoleBindingList - """ - model = kubernetes.client.models.v1beta1_role_binding_list.V1beta1RoleBindingList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_role_list.py b/kubernetes/test/test_v1beta1_role_list.py deleted file mode 100644 index 8b1b8fe568..0000000000 --- a/kubernetes/test/test_v1beta1_role_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_role_list import V1beta1RoleList - - -class TestV1beta1RoleList(unittest.TestCase): - """ V1beta1RoleList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RoleList(self): - """ - Test V1beta1RoleList - """ - model = kubernetes.client.models.v1beta1_role_list.V1beta1RoleList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_role_ref.py b/kubernetes/test/test_v1beta1_role_ref.py deleted file mode 100644 index a3e601b8f2..0000000000 --- a/kubernetes/test/test_v1beta1_role_ref.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_role_ref import V1beta1RoleRef - - -class TestV1beta1RoleRef(unittest.TestCase): - """ V1beta1RoleRef unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RoleRef(self): - """ - Test V1beta1RoleRef - """ - model = kubernetes.client.models.v1beta1_role_ref.V1beta1RoleRef() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_rollback_config.py b/kubernetes/test/test_v1beta1_rollback_config.py new file mode 100644 index 0000000000..87b17879d8 --- /dev/null +++ b/kubernetes/test/test_v1beta1_rollback_config.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_rollback_config import V1beta1RollbackConfig + + +class TestV1beta1RollbackConfig(unittest.TestCase): + """ V1beta1RollbackConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1RollbackConfig(self): + """ + Test V1beta1RollbackConfig + """ + model = kubernetes.client.models.v1beta1_rollback_config.V1beta1RollbackConfig() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_rolling_update_daemon_set.py b/kubernetes/test/test_v1beta1_rolling_update_daemon_set.py deleted file mode 100644 index ef168d8448..0000000000 --- a/kubernetes/test/test_v1beta1_rolling_update_daemon_set.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet - - -class TestV1beta1RollingUpdateDaemonSet(unittest.TestCase): - """ V1beta1RollingUpdateDaemonSet unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RollingUpdateDaemonSet(self): - """ - Test V1beta1RollingUpdateDaemonSet - """ - model = kubernetes.client.models.v1beta1_rolling_update_daemon_set.V1beta1RollingUpdateDaemonSet() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_rolling_update_deployment.py b/kubernetes/test/test_v1beta1_rolling_update_deployment.py new file mode 100644 index 0000000000..a0e3386805 --- /dev/null +++ b/kubernetes/test/test_v1beta1_rolling_update_deployment.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_rolling_update_deployment import V1beta1RollingUpdateDeployment + + +class TestV1beta1RollingUpdateDeployment(unittest.TestCase): + """ V1beta1RollingUpdateDeployment unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1RollingUpdateDeployment(self): + """ + Test V1beta1RollingUpdateDeployment + """ + model = kubernetes.client.models.v1beta1_rolling_update_deployment.V1beta1RollingUpdateDeployment() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_run_as_user_strategy_options.py b/kubernetes/test/test_v1beta1_run_as_user_strategy_options.py index 65de46eb22..960a0c4c4a 100644 --- a/kubernetes/test/test_v1beta1_run_as_user_strategy_options.py +++ b/kubernetes/test/test_v1beta1_run_as_user_strategy_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_scale.py b/kubernetes/test/test_v1beta1_scale.py new file mode 100644 index 0000000000..e8dd2c6189 --- /dev/null +++ b/kubernetes/test/test_v1beta1_scale.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_scale import V1beta1Scale + + +class TestV1beta1Scale(unittest.TestCase): + """ V1beta1Scale unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1Scale(self): + """ + Test V1beta1Scale + """ + model = kubernetes.client.models.v1beta1_scale.V1beta1Scale() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_scale_spec.py b/kubernetes/test/test_v1beta1_scale_spec.py new file mode 100644 index 0000000000..07d7050c40 --- /dev/null +++ b/kubernetes/test/test_v1beta1_scale_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_scale_spec import V1beta1ScaleSpec + + +class TestV1beta1ScaleSpec(unittest.TestCase): + """ V1beta1ScaleSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ScaleSpec(self): + """ + Test V1beta1ScaleSpec + """ + model = kubernetes.client.models.v1beta1_scale_spec.V1beta1ScaleSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_scale_status.py b/kubernetes/test/test_v1beta1_scale_status.py new file mode 100644 index 0000000000..1c0d1d9099 --- /dev/null +++ b/kubernetes/test/test_v1beta1_scale_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_scale_status import V1beta1ScaleStatus + + +class TestV1beta1ScaleStatus(unittest.TestCase): + """ V1beta1ScaleStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ScaleStatus(self): + """ + Test V1beta1ScaleStatus + """ + model = kubernetes.client.models.v1beta1_scale_status.V1beta1ScaleStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_se_linux_strategy_options.py b/kubernetes/test/test_v1beta1_se_linux_strategy_options.py index e53108fe32..11faab125f 100644 --- a/kubernetes/test/test_v1beta1_se_linux_strategy_options.py +++ b/kubernetes/test/test_v1beta1_se_linux_strategy_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_self_subject_access_review.py b/kubernetes/test/test_v1beta1_self_subject_access_review.py deleted file mode 100644 index 5d269f604e..0000000000 --- a/kubernetes/test/test_v1beta1_self_subject_access_review.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview - - -class TestV1beta1SelfSubjectAccessReview(unittest.TestCase): - """ V1beta1SelfSubjectAccessReview unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SelfSubjectAccessReview(self): - """ - Test V1beta1SelfSubjectAccessReview - """ - model = kubernetes.client.models.v1beta1_self_subject_access_review.V1beta1SelfSubjectAccessReview() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py b/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py deleted file mode 100644 index 8fb791323e..0000000000 --- a/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec - - -class TestV1beta1SelfSubjectAccessReviewSpec(unittest.TestCase): - """ V1beta1SelfSubjectAccessReviewSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SelfSubjectAccessReviewSpec(self): - """ - Test V1beta1SelfSubjectAccessReviewSpec - """ - model = kubernetes.client.models.v1beta1_self_subject_access_review_spec.V1beta1SelfSubjectAccessReviewSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_stateful_set.py b/kubernetes/test/test_v1beta1_stateful_set.py index 8538282f00..aec1cdecc7 100644 --- a/kubernetes/test/test_v1beta1_stateful_set.py +++ b/kubernetes/test/test_v1beta1_stateful_set.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_stateful_set_list.py b/kubernetes/test/test_v1beta1_stateful_set_list.py index bee7176986..9c7e812c1c 100644 --- a/kubernetes/test/test_v1beta1_stateful_set_list.py +++ b/kubernetes/test/test_v1beta1_stateful_set_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_stateful_set_spec.py b/kubernetes/test/test_v1beta1_stateful_set_spec.py index e69b403771..e80b8b536d 100644 --- a/kubernetes/test/test_v1beta1_stateful_set_spec.py +++ b/kubernetes/test/test_v1beta1_stateful_set_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_stateful_set_status.py b/kubernetes/test/test_v1beta1_stateful_set_status.py index bd3f289418..e6d6b555ab 100644 --- a/kubernetes/test/test_v1beta1_stateful_set_status.py +++ b/kubernetes/test/test_v1beta1_stateful_set_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_storage_class.py b/kubernetes/test/test_v1beta1_storage_class.py index 39006b1ae1..f6360f7f14 100644 --- a/kubernetes/test/test_v1beta1_storage_class.py +++ b/kubernetes/test/test_v1beta1_storage_class.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_storage_class_list.py b/kubernetes/test/test_v1beta1_storage_class_list.py index 5928b60436..0862e29e75 100644 --- a/kubernetes/test/test_v1beta1_storage_class_list.py +++ b/kubernetes/test/test_v1beta1_storage_class_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_subject.py b/kubernetes/test/test_v1beta1_subject.py deleted file mode 100644 index d4d343c127..0000000000 --- a/kubernetes/test/test_v1beta1_subject.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_subject import V1beta1Subject - - -class TestV1beta1Subject(unittest.TestCase): - """ V1beta1Subject unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1Subject(self): - """ - Test V1beta1Subject - """ - model = kubernetes.client.models.v1beta1_subject.V1beta1Subject() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_subject_access_review.py b/kubernetes/test/test_v1beta1_subject_access_review.py deleted file mode 100644 index bde72930fd..0000000000 --- a/kubernetes/test/test_v1beta1_subject_access_review.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_subject_access_review import V1beta1SubjectAccessReview - - -class TestV1beta1SubjectAccessReview(unittest.TestCase): - """ V1beta1SubjectAccessReview unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SubjectAccessReview(self): - """ - Test V1beta1SubjectAccessReview - """ - model = kubernetes.client.models.v1beta1_subject_access_review.V1beta1SubjectAccessReview() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_subject_access_review_spec.py b/kubernetes/test/test_v1beta1_subject_access_review_spec.py deleted file mode 100644 index 3cb24dcea4..0000000000 --- a/kubernetes/test/test_v1beta1_subject_access_review_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec - - -class TestV1beta1SubjectAccessReviewSpec(unittest.TestCase): - """ V1beta1SubjectAccessReviewSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SubjectAccessReviewSpec(self): - """ - Test V1beta1SubjectAccessReviewSpec - """ - model = kubernetes.client.models.v1beta1_subject_access_review_spec.V1beta1SubjectAccessReviewSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_subject_access_review_status.py b/kubernetes/test/test_v1beta1_subject_access_review_status.py deleted file mode 100644 index 8ed796df6e..0000000000 --- a/kubernetes/test/test_v1beta1_subject_access_review_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus - - -class TestV1beta1SubjectAccessReviewStatus(unittest.TestCase): - """ V1beta1SubjectAccessReviewStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SubjectAccessReviewStatus(self): - """ - Test V1beta1SubjectAccessReviewStatus - """ - model = kubernetes.client.models.v1beta1_subject_access_review_status.V1beta1SubjectAccessReviewStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_subresource_reference.py b/kubernetes/test/test_v1beta1_subresource_reference.py new file mode 100644 index 0000000000..1d74981bfc --- /dev/null +++ b/kubernetes/test/test_v1beta1_subresource_reference.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_subresource_reference import V1beta1SubresourceReference + + +class TestV1beta1SubresourceReference(unittest.TestCase): + """ V1beta1SubresourceReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SubresourceReference(self): + """ + Test V1beta1SubresourceReference + """ + model = kubernetes.client.models.v1beta1_subresource_reference.V1beta1SubresourceReference() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_supplemental_groups_strategy_options.py b/kubernetes/test/test_v1beta1_supplemental_groups_strategy_options.py index 2902d88777..97a3dd177c 100644 --- a/kubernetes/test/test_v1beta1_supplemental_groups_strategy_options.py +++ b/kubernetes/test/test_v1beta1_supplemental_groups_strategy_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_third_party_resource.py b/kubernetes/test/test_v1beta1_third_party_resource.py index 3c83f577fa..9ec74ff70d 100644 --- a/kubernetes/test/test_v1beta1_third_party_resource.py +++ b/kubernetes/test/test_v1beta1_third_party_resource.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_third_party_resource_list.py b/kubernetes/test/test_v1beta1_third_party_resource_list.py index cb95dcfe0f..527df7b7a0 100644 --- a/kubernetes/test/test_v1beta1_third_party_resource_list.py +++ b/kubernetes/test/test_v1beta1_third_party_resource_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_token_review.py b/kubernetes/test/test_v1beta1_token_review.py index e1e1cffc1d..8a9a445a82 100644 --- a/kubernetes/test/test_v1beta1_token_review.py +++ b/kubernetes/test/test_v1beta1_token_review.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_token_review_spec.py b/kubernetes/test/test_v1beta1_token_review_spec.py index 3188fa5957..d79ec47f82 100644 --- a/kubernetes/test/test_v1beta1_token_review_spec.py +++ b/kubernetes/test/test_v1beta1_token_review_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_token_review_status.py b/kubernetes/test/test_v1beta1_token_review_status.py index cf5571927e..5087e314bc 100644 --- a/kubernetes/test/test_v1beta1_token_review_status.py +++ b/kubernetes/test/test_v1beta1_token_review_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_user_info.py b/kubernetes/test/test_v1beta1_user_info.py index d5e505205c..3c5e20de8c 100644 --- a/kubernetes/test/test_v1beta1_user_info.py +++ b/kubernetes/test/test_v1beta1_user_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v2alpha1_cron_job.py b/kubernetes/test/test_v2alpha1_cron_job.py index f627b4a747..20fc61ee3c 100644 --- a/kubernetes/test/test_v2alpha1_cron_job.py +++ b/kubernetes/test/test_v2alpha1_cron_job.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v2alpha1_cron_job_list.py b/kubernetes/test/test_v2alpha1_cron_job_list.py index 30d5bc07a6..5b43ce0834 100644 --- a/kubernetes/test/test_v2alpha1_cron_job_list.py +++ b/kubernetes/test/test_v2alpha1_cron_job_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v2alpha1_cron_job_spec.py b/kubernetes/test/test_v2alpha1_cron_job_spec.py index 59092349f8..687868b6df 100644 --- a/kubernetes/test/test_v2alpha1_cron_job_spec.py +++ b/kubernetes/test/test_v2alpha1_cron_job_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v2alpha1_cron_job_status.py b/kubernetes/test/test_v2alpha1_cron_job_status.py index 0fa8a0995d..3c618b96e8 100644 --- a/kubernetes/test/test_v2alpha1_cron_job_status.py +++ b/kubernetes/test/test_v2alpha1_cron_job_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v2alpha1_cross_version_object_reference.py b/kubernetes/test/test_v2alpha1_cross_version_object_reference.py deleted file mode 100644 index 491f757054..0000000000 --- a/kubernetes/test/test_v2alpha1_cross_version_object_reference.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_cross_version_object_reference import V2alpha1CrossVersionObjectReference - - -class TestV2alpha1CrossVersionObjectReference(unittest.TestCase): - """ V2alpha1CrossVersionObjectReference unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1CrossVersionObjectReference(self): - """ - Test V2alpha1CrossVersionObjectReference - """ - model = kubernetes.client.models.v2alpha1_cross_version_object_reference.V2alpha1CrossVersionObjectReference() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler.py b/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler.py deleted file mode 100644 index 4da700508f..0000000000 --- a/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler import V2alpha1HorizontalPodAutoscaler - - -class TestV2alpha1HorizontalPodAutoscaler(unittest.TestCase): - """ V2alpha1HorizontalPodAutoscaler unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1HorizontalPodAutoscaler(self): - """ - Test V2alpha1HorizontalPodAutoscaler - """ - model = kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler.V2alpha1HorizontalPodAutoscaler() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_list.py b/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_list.py deleted file mode 100644 index d091fd3e77..0000000000 --- a/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler_list import V2alpha1HorizontalPodAutoscalerList - - -class TestV2alpha1HorizontalPodAutoscalerList(unittest.TestCase): - """ V2alpha1HorizontalPodAutoscalerList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1HorizontalPodAutoscalerList(self): - """ - Test V2alpha1HorizontalPodAutoscalerList - """ - model = kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler_list.V2alpha1HorizontalPodAutoscalerList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_spec.py b/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_spec.py deleted file mode 100644 index 6e392075a7..0000000000 --- a/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler_spec import V2alpha1HorizontalPodAutoscalerSpec - - -class TestV2alpha1HorizontalPodAutoscalerSpec(unittest.TestCase): - """ V2alpha1HorizontalPodAutoscalerSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1HorizontalPodAutoscalerSpec(self): - """ - Test V2alpha1HorizontalPodAutoscalerSpec - """ - model = kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler_spec.V2alpha1HorizontalPodAutoscalerSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_status.py b/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_status.py deleted file mode 100644 index e00d3d957a..0000000000 --- a/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler_status import V2alpha1HorizontalPodAutoscalerStatus - - -class TestV2alpha1HorizontalPodAutoscalerStatus(unittest.TestCase): - """ V2alpha1HorizontalPodAutoscalerStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1HorizontalPodAutoscalerStatus(self): - """ - Test V2alpha1HorizontalPodAutoscalerStatus - """ - model = kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler_status.V2alpha1HorizontalPodAutoscalerStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_job.py b/kubernetes/test/test_v2alpha1_job.py new file mode 100644 index 0000000000..f89f47872c --- /dev/null +++ b/kubernetes/test/test_v2alpha1_job.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_job import V2alpha1Job + + +class TestV2alpha1Job(unittest.TestCase): + """ V2alpha1Job unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1Job(self): + """ + Test V2alpha1Job + """ + model = kubernetes.client.models.v2alpha1_job.V2alpha1Job() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_job_condition.py b/kubernetes/test/test_v2alpha1_job_condition.py new file mode 100644 index 0000000000..3048f61266 --- /dev/null +++ b/kubernetes/test/test_v2alpha1_job_condition.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_job_condition import V2alpha1JobCondition + + +class TestV2alpha1JobCondition(unittest.TestCase): + """ V2alpha1JobCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1JobCondition(self): + """ + Test V2alpha1JobCondition + """ + model = kubernetes.client.models.v2alpha1_job_condition.V2alpha1JobCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_job_list.py b/kubernetes/test/test_v2alpha1_job_list.py new file mode 100644 index 0000000000..41ca63d84c --- /dev/null +++ b/kubernetes/test/test_v2alpha1_job_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_job_list import V2alpha1JobList + + +class TestV2alpha1JobList(unittest.TestCase): + """ V2alpha1JobList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1JobList(self): + """ + Test V2alpha1JobList + """ + model = kubernetes.client.models.v2alpha1_job_list.V2alpha1JobList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_job_spec.py b/kubernetes/test/test_v2alpha1_job_spec.py new file mode 100644 index 0000000000..0b1ea1ca59 --- /dev/null +++ b/kubernetes/test/test_v2alpha1_job_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_job_spec import V2alpha1JobSpec + + +class TestV2alpha1JobSpec(unittest.TestCase): + """ V2alpha1JobSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1JobSpec(self): + """ + Test V2alpha1JobSpec + """ + model = kubernetes.client.models.v2alpha1_job_spec.V2alpha1JobSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_job_status.py b/kubernetes/test/test_v2alpha1_job_status.py new file mode 100644 index 0000000000..8c97b3b299 --- /dev/null +++ b/kubernetes/test/test_v2alpha1_job_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_job_status import V2alpha1JobStatus + + +class TestV2alpha1JobStatus(unittest.TestCase): + """ V2alpha1JobStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1JobStatus(self): + """ + Test V2alpha1JobStatus + """ + model = kubernetes.client.models.v2alpha1_job_status.V2alpha1JobStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_job_template_spec.py b/kubernetes/test/test_v2alpha1_job_template_spec.py index c50778ad9e..30c93d8f89 100644 --- a/kubernetes/test/test_v2alpha1_job_template_spec.py +++ b/kubernetes/test/test_v2alpha1_job_template_spec.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v2alpha1_metric_spec.py b/kubernetes/test/test_v2alpha1_metric_spec.py deleted file mode 100644 index 4d217bf696..0000000000 --- a/kubernetes/test/test_v2alpha1_metric_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_metric_spec import V2alpha1MetricSpec - - -class TestV2alpha1MetricSpec(unittest.TestCase): - """ V2alpha1MetricSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1MetricSpec(self): - """ - Test V2alpha1MetricSpec - """ - model = kubernetes.client.models.v2alpha1_metric_spec.V2alpha1MetricSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_metric_status.py b/kubernetes/test/test_v2alpha1_metric_status.py deleted file mode 100644 index 3f1034a6fd..0000000000 --- a/kubernetes/test/test_v2alpha1_metric_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_metric_status import V2alpha1MetricStatus - - -class TestV2alpha1MetricStatus(unittest.TestCase): - """ V2alpha1MetricStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1MetricStatus(self): - """ - Test V2alpha1MetricStatus - """ - model = kubernetes.client.models.v2alpha1_metric_status.V2alpha1MetricStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_object_metric_source.py b/kubernetes/test/test_v2alpha1_object_metric_source.py deleted file mode 100644 index 00e49ad7f7..0000000000 --- a/kubernetes/test/test_v2alpha1_object_metric_source.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_object_metric_source import V2alpha1ObjectMetricSource - - -class TestV2alpha1ObjectMetricSource(unittest.TestCase): - """ V2alpha1ObjectMetricSource unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1ObjectMetricSource(self): - """ - Test V2alpha1ObjectMetricSource - """ - model = kubernetes.client.models.v2alpha1_object_metric_source.V2alpha1ObjectMetricSource() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_object_metric_status.py b/kubernetes/test/test_v2alpha1_object_metric_status.py deleted file mode 100644 index 6f383f8bdb..0000000000 --- a/kubernetes/test/test_v2alpha1_object_metric_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_object_metric_status import V2alpha1ObjectMetricStatus - - -class TestV2alpha1ObjectMetricStatus(unittest.TestCase): - """ V2alpha1ObjectMetricStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1ObjectMetricStatus(self): - """ - Test V2alpha1ObjectMetricStatus - """ - model = kubernetes.client.models.v2alpha1_object_metric_status.V2alpha1ObjectMetricStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_pods_metric_source.py b/kubernetes/test/test_v2alpha1_pods_metric_source.py deleted file mode 100644 index 1bcd268104..0000000000 --- a/kubernetes/test/test_v2alpha1_pods_metric_source.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_pods_metric_source import V2alpha1PodsMetricSource - - -class TestV2alpha1PodsMetricSource(unittest.TestCase): - """ V2alpha1PodsMetricSource unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1PodsMetricSource(self): - """ - Test V2alpha1PodsMetricSource - """ - model = kubernetes.client.models.v2alpha1_pods_metric_source.V2alpha1PodsMetricSource() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_pods_metric_status.py b/kubernetes/test/test_v2alpha1_pods_metric_status.py deleted file mode 100644 index 4e111519e1..0000000000 --- a/kubernetes/test/test_v2alpha1_pods_metric_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_pods_metric_status import V2alpha1PodsMetricStatus - - -class TestV2alpha1PodsMetricStatus(unittest.TestCase): - """ V2alpha1PodsMetricStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1PodsMetricStatus(self): - """ - Test V2alpha1PodsMetricStatus - """ - model = kubernetes.client.models.v2alpha1_pods_metric_status.V2alpha1PodsMetricStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_resource_metric_source.py b/kubernetes/test/test_v2alpha1_resource_metric_source.py deleted file mode 100644 index a603e4eec5..0000000000 --- a/kubernetes/test/test_v2alpha1_resource_metric_source.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_resource_metric_source import V2alpha1ResourceMetricSource - - -class TestV2alpha1ResourceMetricSource(unittest.TestCase): - """ V2alpha1ResourceMetricSource unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1ResourceMetricSource(self): - """ - Test V2alpha1ResourceMetricSource - """ - model = kubernetes.client.models.v2alpha1_resource_metric_source.V2alpha1ResourceMetricSource() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_resource_metric_status.py b/kubernetes/test/test_v2alpha1_resource_metric_status.py deleted file mode 100644 index ecc2a43062..0000000000 --- a/kubernetes/test/test_v2alpha1_resource_metric_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.5 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_resource_metric_status import V2alpha1ResourceMetricStatus - - -class TestV2alpha1ResourceMetricStatus(unittest.TestCase): - """ V2alpha1ResourceMetricStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1ResourceMetricStatus(self): - """ - Test V2alpha1ResourceMetricStatus - """ - model = kubernetes.client.models.v2alpha1_resource_metric_status.V2alpha1ResourceMetricStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_version_api.py b/kubernetes/test/test_version_api.py index 180cb13a2f..45513a59b8 100644 --- a/kubernetes/test/test_version_api.py +++ b/kubernetes/test/test_version_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_version_info.py b/kubernetes/test/test_version_info.py index 5260c72e2d..27a5b15a18 100644 --- a/kubernetes/test/test_version_info.py +++ b/kubernetes/test/test_version_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Kubernetes + OpenShift API (with Kubernetes) - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. - OpenAPI spec version: v1.6.5 + OpenAPI spec version: latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_versioned_event.py b/kubernetes/test/test_versioned_event.py new file mode 100644 index 0000000000..bbca73fee3 --- /dev/null +++ b/kubernetes/test/test_versioned_event.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenShift API (with Kubernetes) + + OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use kubernetes.client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a kubernetes.client. By listing and beginning a watch from the returned resourceVersion, kubernetes.clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so kubernetes.clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but kubernetes.clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information. + + OpenAPI spec version: latest + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.versioned_event import VersionedEvent + + +class TestVersionedEvent(unittest.TestCase): + """ VersionedEvent unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVersionedEvent(self): + """ + Test VersionedEvent + """ + model = kubernetes.client.models.versioned_event.VersionedEvent() + + +if __name__ == '__main__': + unittest.main() diff --git a/scripts/constants.py b/scripts/constants.py index fa57e8e3f2..b1e221fa17 100644 --- a/scripts/constants.py +++ b/scripts/constants.py @@ -15,13 +15,13 @@ import sys # Kubernetes branch to get the OpenAPI spec from. -KUBERNETES_BRANCH = "release-1.6" +KUBERNETES_BRANCH = "release-1.5" # client version for packaging and releasing. -CLIENT_VERSION = "2.0.0-snapshot" +CLIENT_VERSION = "2.0.0" # Name of the release package -PACKAGE_NAME = "kubernetes" +PACKAGE_NAME = "openshift" # Stage of development, mainly used in setup.py's classifiers. DEVELOPMENT_STATUS = "3 - Alpha" diff --git a/scripts/preprocess_spec.py b/scripts/preprocess_spec.py index 6a903b9e68..83b1087e47 100644 --- a/scripts/preprocess_spec.py +++ b/scripts/preprocess_spec.py @@ -29,8 +29,9 @@ LIST_OP_PREFIX = "list" WATCH_QUERY_PARAM_NAME = "watch" -SPEC_URL = 'https://raw.githubusercontent.com/kubernetes/kubernetes/' \ - '%s/api/openapi-spec/swagger.json' % KUBERNETES_BRANCH +SPEC_URL = 'https://raw.githubusercontent.com/openshift/origin/' \ + '%s/api/swagger-spec/openshift-openapi-spec.json' % KUBERNETES_BRANCH + OUTPUT_PATH = os.path.join(os.path.dirname(__file__), 'swagger.json') @@ -99,7 +100,7 @@ def remove_watch_operations(op, parent, operation_ids): def strip_tags_from_operation_id(operation, _): operation_id = operation['operationId'] - for t in operation['tags']: + for t in operation.get('tags', []): operation_id = operation_id.replace(_to_camel_case(t), '') operation['operationId'] = operation_id @@ -113,8 +114,29 @@ def add_thirdparty_resource_paths(spec): return spec +def ensure_security_definitions(spec): + if 'securityDefinitions' in spec: + return spec + + spec['securityDefinitions'] = { + 'BearerToken': { + 'description': "Bearer Token authentication", + 'type': "apiKey", + 'name': "authorization", + 'in': "header" + } + } + spec['security'] = [ + { + 'BearerToken': [ ] + } + ] + return spec + + def process_swagger(spec): spec = add_thirdparty_resource_paths(spec) + spec = ensure_security_definitions(spec) apply_func_to_spec_operations(spec, strip_tags_from_operation_id) diff --git a/scripts/swagger.json b/scripts/swagger.json index f8f7e77cb4..567eb86379 100644 --- a/scripts/swagger.json +++ b/scripts/swagger.json @@ -1,8 +1,13 @@ { "swagger": "2.0", "info": { - "title": "Kubernetes", - "version": "v1.6.5" + "description": "OpenShift provides builds, application lifecycle, image content management,\nand administrative policy on top of Kubernetes. The API allows consistent\nmanagement of those objects.\n\nAll API operations are authenticated via an Authorization\tbearer token that\nis provided for service accounts as a generated secret (in JWT form) or via\nthe native OAuth endpoint located at /oauth/authorize. Core infrastructure\ncomponents may use client certificates that require no authentication.\n\nAll API operations return a 'resourceVersion' string that represents the\nversion of the object in the underlying storage. The standard LIST operation\nperforms a snapshot read of the underlying objects, returning a resourceVersion\nrepresenting a consistent version of the listed objects. The WATCH operation\nallows all updates to a set of objects after the provided resourceVersion to\nbe observed by a client. By listing and beginning a watch from the returned\nresourceVersion, clients may observe a consistent view of the state of one\nor more objects. Note that WATCH always returns the update after the provided\nresourceVersion. Watch may be extended a limited time in the past - using\netcd 2 the watch window is 1000 events (which on a large cluster may only\nbe a few tens of seconds) so clients must explicitly handle the \"watch\nto old error\" by re-listing.\n\nObjects are divided into two rough categories - those that have a lifecycle\nand must reflect the state of the cluster, and those that have no state.\nObjects with lifecycle typically have three main sections:\n\n* 'metadata' common to all objects\n* a 'spec' that represents the desired state\n* a 'status' that represents how much of the desired state is reflected on\n the cluster at the current time\n\nObjects that have no state have 'metadata' but may lack a 'spec' or 'status'\nsection.\n\nObjects are divided into those that are namespace scoped (only exist inside\nof a namespace) and those that are cluster scoped (exist outside of\na namespace). A namespace scoped resource will be deleted when the namespace\nis deleted and cannot be created if the namespace has not yet been created\nor is in the process of deletion. Cluster scoped resources are typically\nonly accessible to admins - resources like nodes, persistent volumes, and\ncluster policy.\n\nAll objects have a schema that is a combination of the 'kind' and\n'apiVersion' fields. This schema is additive only for any given version -\nno backwards incompatible changes are allowed without incrementing the\napiVersion. The server will return and accept a number of standard\nresponses that share a common schema - for instance, the common\nerror type is 'unversioned.Status' (described below) and will be returned\non any error from the API server.\n\nThe API is available in multiple serialization formats - the default is\nJSON (Accept: application/json and Content-Type: application/json) but\nclients may also use YAML (application/yaml) or the native Protobuf\nschema (application/vnd.kubernetes.protobuf). Note that the format\nof the WATCH API call is slightly different - for JSON it returns newline\ndelimited objects while for Protobuf it returns length-delimited frames\n(4 bytes in network-order) that contain a 'versioned.Watch' Protobuf\nobject.\n\nSee the OpenShift documentation at https://docs.openshift.org for more\ninformation.\n", + "title": "OpenShift API (with Kubernetes)", + "license": { + "name": "Apache 2.0 (ASL2.0)", + "url": "http://www.apache.org/licenses/LICENSE-2.0" + }, + "version": "latest" }, "paths": { "/api/": { @@ -18,9 +23,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core" ], @@ -29,11 +31,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIVersions" + "$ref": "#/definitions/unversioned.APIVersions" } - }, - "401": { - "description": "Unauthorized" } } } @@ -51,9 +50,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -62,15 +58,54 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/unversioned.APIResourceList" } - }, - "401": { - "description": "Unauthorized" } } } }, + "/api/v1/bindings": { + "post": { + "description": "create a Binding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "createBindingForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Binding" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Binding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, "/api/v1/componentstatuses": { "get": { "description": "list objects of kind ComponentStatus", @@ -84,9 +119,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -97,9 +129,6 @@ "schema": { "$ref": "#/definitions/v1.ComponentStatusList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -128,7 +157,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -159,9 +188,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -172,9 +198,6 @@ "schema": { "$ref": "#/definitions/v1.ComponentStatus" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -209,67 +232,96 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], "operationId": "listConfigMapForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.ConfigMapList" } - }, - "401": { - "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a ConfigMap", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "createConfigMapForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ConfigMap" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ConfigMap" + } } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, @@ -286,67 +338,96 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], "operationId": "listEndpointsForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.EndpointsList" } - }, - "401": { - "description": "Unauthorized" + } + } + }, + "post": { + "description": "create Endpoints", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "createEndpointsForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Endpoints" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Endpoints" + } } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, @@ -363,67 +444,96 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], "operationId": "listEventForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.EventList" } - }, - "401": { - "description": "Unauthorized" + } + } + }, + "post": { + "description": "create an Event", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "createEventForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Event" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Event" + } } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, @@ -440,67 +550,96 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], "operationId": "listLimitRangeForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.LimitRangeList" } - }, - "401": { - "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a LimitRange", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "createLimitRangeForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.LimitRange" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.LimitRange" + } } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, @@ -517,9 +656,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -542,7 +678,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -567,9 +703,6 @@ "schema": { "$ref": "#/definitions/v1.NamespaceList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -583,9 +716,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -606,9 +736,6 @@ "schema": { "$ref": "#/definitions/v1.Namespace" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -622,9 +749,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -647,7 +771,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -670,11 +794,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -699,36 +820,28 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], "operationId": "createNamespacedBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Binding" - } - } - ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.Binding" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Binding" + } + }, { "uniqueItems": true, "type": "string", @@ -759,9 +872,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -784,7 +894,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -809,9 +919,6 @@ "schema": { "$ref": "#/definitions/v1.ConfigMapList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -825,9 +932,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -848,9 +952,6 @@ "schema": { "$ref": "#/definitions/v1.ConfigMap" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -864,9 +965,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -889,7 +987,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -912,11 +1010,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -949,9 +1044,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -960,7 +1052,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -978,9 +1070,6 @@ "schema": { "$ref": "#/definitions/v1.ConfigMap" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -994,9 +1083,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1017,9 +1103,6 @@ "schema": { "$ref": "#/definitions/v1.ConfigMap" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1033,9 +1116,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1059,27 +1139,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1095,9 +1165,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1119,9 +1186,6 @@ "schema": { "$ref": "#/definitions/v1.ConfigMap" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1164,9 +1228,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1189,7 +1250,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -1214,9 +1275,6 @@ "schema": { "$ref": "#/definitions/v1.EndpointsList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1230,9 +1288,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1253,9 +1308,6 @@ "schema": { "$ref": "#/definitions/v1.Endpoints" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1269,9 +1321,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1294,7 +1343,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -1317,11 +1366,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1354,9 +1400,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1365,7 +1408,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -1383,9 +1426,6 @@ "schema": { "$ref": "#/definitions/v1.Endpoints" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1399,9 +1439,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1422,9 +1459,6 @@ "schema": { "$ref": "#/definitions/v1.Endpoints" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1438,9 +1472,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1464,27 +1495,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1500,9 +1521,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1524,9 +1542,6 @@ "schema": { "$ref": "#/definitions/v1.Endpoints" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1569,9 +1584,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1594,7 +1606,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -1619,9 +1631,6 @@ "schema": { "$ref": "#/definitions/v1.EventList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1635,9 +1644,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1658,9 +1664,6 @@ "schema": { "$ref": "#/definitions/v1.Event" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1674,9 +1677,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1699,7 +1699,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -1722,11 +1722,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1759,9 +1756,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1770,7 +1764,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -1788,9 +1782,6 @@ "schema": { "$ref": "#/definitions/v1.Event" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1804,9 +1795,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1827,9 +1815,6 @@ "schema": { "$ref": "#/definitions/v1.Event" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1843,9 +1828,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1869,27 +1851,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1905,9 +1877,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1929,9 +1898,6 @@ "schema": { "$ref": "#/definitions/v1.Event" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -1974,9 +1940,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -1999,7 +1962,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -2024,9 +1987,6 @@ "schema": { "$ref": "#/definitions/v1.LimitRangeList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2040,9 +2000,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2063,9 +2020,6 @@ "schema": { "$ref": "#/definitions/v1.LimitRange" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2079,9 +2033,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2104,7 +2055,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -2127,11 +2078,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2164,9 +2112,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2175,7 +2120,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -2193,9 +2138,6 @@ "schema": { "$ref": "#/definitions/v1.LimitRange" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2209,9 +2151,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2232,9 +2171,6 @@ "schema": { "$ref": "#/definitions/v1.LimitRange" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2248,9 +2184,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2274,27 +2207,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2310,9 +2233,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2334,9 +2254,6 @@ "schema": { "$ref": "#/definitions/v1.LimitRange" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2379,9 +2296,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2404,7 +2318,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -2429,9 +2343,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolumeClaimList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2445,9 +2356,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2468,9 +2376,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolumeClaim" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2484,9 +2389,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2509,7 +2411,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -2532,11 +2434,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2569,9 +2468,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2580,7 +2476,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -2598,9 +2494,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolumeClaim" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2614,9 +2507,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2637,9 +2527,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolumeClaim" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2653,9 +2540,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2679,27 +2563,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2715,9 +2589,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2739,9 +2610,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolumeClaim" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2782,9 +2650,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2795,9 +2660,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolumeClaim" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2811,9 +2673,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2834,9 +2693,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolumeClaim" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2852,9 +2708,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2876,9 +2729,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolumeClaim" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2921,9 +2771,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -2946,7 +2793,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -2971,9 +2818,6 @@ "schema": { "$ref": "#/definitions/v1.PodList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -2987,9 +2831,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3010,9 +2851,6 @@ "schema": { "$ref": "#/definitions/v1.Pod" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3026,9 +2864,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3051,7 +2886,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -3074,11 +2909,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3111,9 +2943,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3122,7 +2951,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -3140,9 +2969,6 @@ "schema": { "$ref": "#/definitions/v1.Pod" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3156,9 +2982,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3179,9 +3002,6 @@ "schema": { "$ref": "#/definitions/v1.Pod" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3195,9 +3015,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3221,27 +3038,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3257,9 +3064,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3281,9 +3085,6 @@ "schema": { "$ref": "#/definitions/v1.Pod" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3322,9 +3123,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3335,9 +3133,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3349,9 +3144,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3362,9 +3154,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3433,36 +3222,28 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], "operationId": "createNamespacedBindingBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Binding" - } - } - ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.Binding" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Binding" + } + }, { "uniqueItems": true, "type": "string", @@ -3499,36 +3280,28 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], "operationId": "createNamespacedEvictionEviction", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Eviction" - } - } - ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1beta1.Eviction" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.Eviction" + } + }, { "uniqueItems": true, "type": "string", @@ -3563,9 +3336,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3576,9 +3346,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3590,9 +3357,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3603,9 +3367,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3682,9 +3443,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3695,9 +3453,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3760,6 +3515,13 @@ "name": "sinceSeconds", "in": "query" }, + { + "uniqueItems": true, + "type": "string", + "description": "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + "name": "sinceTime", + "in": "query" + }, { "uniqueItems": true, "type": "integer", @@ -3785,9 +3547,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3798,9 +3557,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3812,9 +3568,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3825,9 +3578,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3847,13 +3597,6 @@ "name": "namespace", "in": "path", "required": true - }, - { - "uniqueItems": true, - "type": "integer", - "description": "List of ports to forward Required when using WebSockets", - "name": "ports", - "in": "query" } ] }, @@ -3866,9 +3609,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3879,9 +3619,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3893,9 +3630,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3906,9 +3640,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3920,9 +3651,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3933,9 +3661,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3947,9 +3672,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3960,9 +3682,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -3974,9 +3693,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -3987,9 +3703,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4001,9 +3714,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4014,9 +3724,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4055,9 +3762,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4068,9 +3772,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4082,9 +3783,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4095,9 +3793,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4109,9 +3804,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4122,9 +3814,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4136,9 +3825,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4149,9 +3835,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4163,9 +3846,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4176,9 +3856,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4190,9 +3867,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4203,9 +3877,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4254,9 +3925,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4267,9 +3935,6 @@ "schema": { "$ref": "#/definitions/v1.Pod" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4283,9 +3948,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4306,9 +3968,6 @@ "schema": { "$ref": "#/definitions/v1.Pod" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4324,9 +3983,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4348,9 +4004,6 @@ "schema": { "$ref": "#/definitions/v1.Pod" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4393,9 +4046,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4418,7 +4068,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -4443,9 +4093,6 @@ "schema": { "$ref": "#/definitions/v1.PodTemplateList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4459,9 +4106,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4482,9 +4126,6 @@ "schema": { "$ref": "#/definitions/v1.PodTemplate" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4498,9 +4139,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4523,7 +4161,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -4546,11 +4184,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4583,9 +4218,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4594,7 +4226,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -4612,9 +4244,6 @@ "schema": { "$ref": "#/definitions/v1.PodTemplate" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4628,9 +4257,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4651,9 +4277,6 @@ "schema": { "$ref": "#/definitions/v1.PodTemplate" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4667,9 +4290,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4693,27 +4313,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4729,9 +4339,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4753,9 +4360,6 @@ "schema": { "$ref": "#/definitions/v1.PodTemplate" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4798,9 +4402,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4823,7 +4424,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -4848,9 +4449,6 @@ "schema": { "$ref": "#/definitions/v1.ReplicationControllerList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4864,9 +4462,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4887,9 +4482,6 @@ "schema": { "$ref": "#/definitions/v1.ReplicationController" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4903,9 +4495,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4928,7 +4517,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -4951,11 +4540,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -4988,9 +4574,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -4999,7 +4582,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -5017,9 +4600,6 @@ "schema": { "$ref": "#/definitions/v1.ReplicationController" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5033,9 +4613,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5056,9 +4633,6 @@ "schema": { "$ref": "#/definitions/v1.ReplicationController" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5072,9 +4646,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5098,27 +4669,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5134,9 +4695,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5158,9 +4716,6 @@ "schema": { "$ref": "#/definitions/v1.ReplicationController" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5201,9 +4756,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5214,9 +4766,6 @@ "schema": { "$ref": "#/definitions/v1.Scale" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5230,9 +4779,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5253,9 +4799,6 @@ "schema": { "$ref": "#/definitions/v1.Scale" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5271,9 +4814,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5295,9 +4835,6 @@ "schema": { "$ref": "#/definitions/v1.Scale" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5338,9 +4875,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5351,9 +4885,6 @@ "schema": { "$ref": "#/definitions/v1.ReplicationController" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5367,9 +4898,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5390,9 +4918,6 @@ "schema": { "$ref": "#/definitions/v1.ReplicationController" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5408,9 +4933,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5432,9 +4954,6 @@ "schema": { "$ref": "#/definitions/v1.ReplicationController" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5477,9 +4996,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5502,7 +5018,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -5527,9 +5043,6 @@ "schema": { "$ref": "#/definitions/v1.ResourceQuotaList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5543,9 +5056,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5566,9 +5076,6 @@ "schema": { "$ref": "#/definitions/v1.ResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5582,9 +5089,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5607,7 +5111,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -5630,11 +5134,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5667,9 +5168,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5678,7 +5176,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -5696,9 +5194,6 @@ "schema": { "$ref": "#/definitions/v1.ResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5712,9 +5207,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5735,9 +5227,6 @@ "schema": { "$ref": "#/definitions/v1.ResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5751,9 +5240,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5777,27 +5263,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5813,9 +5289,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5837,9 +5310,6 @@ "schema": { "$ref": "#/definitions/v1.ResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5880,9 +5350,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5893,9 +5360,6 @@ "schema": { "$ref": "#/definitions/v1.ResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5909,9 +5373,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5932,9 +5393,6 @@ "schema": { "$ref": "#/definitions/v1.ResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -5950,9 +5408,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -5974,9 +5429,6 @@ "schema": { "$ref": "#/definitions/v1.ResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6019,9 +5471,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6044,7 +5493,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -6069,9 +5518,6 @@ "schema": { "$ref": "#/definitions/v1.SecretList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6085,9 +5531,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6108,9 +5551,6 @@ "schema": { "$ref": "#/definitions/v1.Secret" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6124,9 +5564,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6149,7 +5586,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -6172,11 +5609,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6209,9 +5643,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6220,7 +5651,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -6238,9 +5669,6 @@ "schema": { "$ref": "#/definitions/v1.Secret" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6254,9 +5682,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6277,9 +5702,6 @@ "schema": { "$ref": "#/definitions/v1.Secret" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6293,9 +5715,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6319,27 +5738,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6355,9 +5764,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6379,9 +5785,6 @@ "schema": { "$ref": "#/definitions/v1.Secret" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6424,9 +5827,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6449,7 +5849,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -6474,9 +5874,6 @@ "schema": { "$ref": "#/definitions/v1.ServiceAccountList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6490,9 +5887,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6513,9 +5907,6 @@ "schema": { "$ref": "#/definitions/v1.ServiceAccount" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6529,9 +5920,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6554,7 +5942,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -6577,11 +5965,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6614,9 +5999,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6625,7 +6007,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -6643,9 +6025,6 @@ "schema": { "$ref": "#/definitions/v1.ServiceAccount" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6659,9 +6038,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6682,9 +6058,6 @@ "schema": { "$ref": "#/definitions/v1.ServiceAccount" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6698,9 +6071,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6724,27 +6094,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6760,9 +6120,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6784,9 +6141,6 @@ "schema": { "$ref": "#/definitions/v1.ServiceAccount" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6829,9 +6183,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6854,7 +6205,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -6879,9 +6230,6 @@ "schema": { "$ref": "#/definitions/v1.ServiceList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6895,9 +6243,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6918,9 +6263,6 @@ "schema": { "$ref": "#/definitions/v1.Service" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6953,9 +6295,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -6964,7 +6303,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -6982,9 +6321,6 @@ "schema": { "$ref": "#/definitions/v1.Service" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -6998,9 +6334,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7021,9 +6354,6 @@ "schema": { "$ref": "#/definitions/v1.Service" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7037,9 +6367,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7048,11 +6375,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7068,9 +6392,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7092,9 +6413,6 @@ "schema": { "$ref": "#/definitions/v1.Service" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7133,9 +6451,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7146,9 +6461,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7160,9 +6472,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7173,9 +6482,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7187,9 +6493,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7200,9 +6503,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7214,9 +6514,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7227,9 +6524,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7241,9 +6535,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7254,9 +6545,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7268,9 +6556,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7281,9 +6566,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7322,9 +6604,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7335,9 +6614,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7349,9 +6625,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7362,9 +6635,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7376,9 +6646,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7389,9 +6656,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7403,9 +6667,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7416,9 +6677,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7430,9 +6688,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7443,9 +6698,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7457,9 +6709,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7470,9 +6719,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7521,9 +6767,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7534,9 +6777,6 @@ "schema": { "$ref": "#/definitions/v1.Service" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7550,9 +6790,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7573,9 +6810,6 @@ "schema": { "$ref": "#/definitions/v1.Service" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7591,9 +6825,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7615,9 +6846,6 @@ "schema": { "$ref": "#/definitions/v1.Service" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7658,9 +6886,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7669,7 +6894,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -7687,9 +6912,6 @@ "schema": { "$ref": "#/definitions/v1.Namespace" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7703,9 +6925,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7726,9 +6945,6 @@ "schema": { "$ref": "#/definitions/v1.Namespace" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7742,9 +6958,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7768,27 +6981,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7804,9 +7007,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7828,9 +7028,6 @@ "schema": { "$ref": "#/definitions/v1.Namespace" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7863,36 +7060,28 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], "operationId": "replaceNamespaceFinalize", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - } - ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.Namespace" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Namespace" + } + }, { "uniqueItems": true, "type": "string", @@ -7921,9 +7110,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7934,9 +7120,6 @@ "schema": { "$ref": "#/definitions/v1.Namespace" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7950,9 +7133,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -7973,9 +7153,6 @@ "schema": { "$ref": "#/definitions/v1.Namespace" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -7991,9 +7168,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8015,9 +7189,6 @@ "schema": { "$ref": "#/definitions/v1.Namespace" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8052,9 +7223,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8077,7 +7245,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -8102,9 +7270,6 @@ "schema": { "$ref": "#/definitions/v1.NodeList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8118,9 +7283,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8141,9 +7303,6 @@ "schema": { "$ref": "#/definitions/v1.Node" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8157,9 +7316,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8182,7 +7338,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -8205,11 +7361,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8234,9 +7387,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8245,7 +7395,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -8263,9 +7413,6 @@ "schema": { "$ref": "#/definitions/v1.Node" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8279,9 +7426,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8302,9 +7446,6 @@ "schema": { "$ref": "#/definitions/v1.Node" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8318,9 +7459,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8344,27 +7482,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8380,9 +7508,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8404,9 +7529,6 @@ "schema": { "$ref": "#/definitions/v1.Node" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8437,9 +7559,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8450,9 +7569,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8464,9 +7580,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8477,9 +7590,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8491,9 +7601,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8504,9 +7611,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8518,9 +7622,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8531,9 +7632,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8545,9 +7643,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8558,9 +7653,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8572,9 +7664,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8585,9 +7674,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8618,9 +7704,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8631,9 +7714,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8645,9 +7725,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8658,9 +7735,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8672,9 +7746,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8685,9 +7756,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8699,9 +7767,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8712,9 +7777,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8726,9 +7788,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8739,9 +7798,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8753,9 +7809,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8766,9 +7819,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8809,9 +7859,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8822,9 +7869,6 @@ "schema": { "$ref": "#/definitions/v1.Node" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8838,9 +7882,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8861,9 +7902,6 @@ "schema": { "$ref": "#/definitions/v1.Node" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8879,9 +7917,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -8903,9 +7938,6 @@ "schema": { "$ref": "#/definitions/v1.Node" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -8940,67 +7972,96 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], "operationId": "listPersistentVolumeClaimForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.PersistentVolumeClaimList" } - }, - "401": { - "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a PersistentVolumeClaim", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "createPersistentVolumeClaimForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PersistentVolumeClaim" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PersistentVolumeClaim" + } } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, @@ -9017,9 +8078,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9042,7 +8100,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -9067,9 +8125,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolumeList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9083,9 +8138,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9106,9 +8158,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolume" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9122,9 +8171,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9147,7 +8193,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -9170,11 +8216,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9199,9 +8242,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9210,7 +8250,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -9228,9 +8268,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolume" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9244,9 +8281,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9267,9 +8301,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolume" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9283,9 +8314,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9309,27 +8337,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9345,9 +8363,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9369,9 +8384,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolume" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9404,9 +8416,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9417,9 +8426,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolume" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9433,9 +8439,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9456,9 +8459,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolume" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9474,9 +8474,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9498,9 +8495,6 @@ "schema": { "$ref": "#/definitions/v1.PersistentVolume" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9535,67 +8529,96 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], "operationId": "listPodForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.PodList" } - }, - "401": { - "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a Pod", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "createPodForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Pod" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Pod" + } } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, @@ -9612,67 +8635,96 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], "operationId": "listPodTemplateForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.PodTemplateList" } - }, - "401": { - "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a PodTemplate", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "createPodTemplateForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodTemplate" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodTemplate" + } } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, @@ -9685,9 +8737,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9698,9 +8747,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9712,9 +8758,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9725,9 +8768,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9739,9 +8779,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9752,9 +8789,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9766,9 +8800,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9779,9 +8810,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9793,9 +8821,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9806,9 +8831,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9820,9 +8842,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9833,36 +8852,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "proxy PATCH requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9894,9 +8883,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9907,9 +8893,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9921,9 +8904,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9934,9 +8914,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9948,9 +8925,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9961,9 +8935,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -9975,9 +8946,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -9988,9 +8956,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10002,9 +8967,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10015,9 +8977,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10029,9 +8988,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10042,36 +8998,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "proxy PATCH requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10111,9 +9037,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10124,9 +9047,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10138,9 +9058,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10151,9 +9068,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10165,9 +9079,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10178,9 +9089,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10192,9 +9100,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10205,9 +9110,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10219,9 +9121,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10232,9 +9131,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10246,9 +9142,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10259,36 +9152,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "proxy PATCH requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10320,9 +9183,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10333,9 +9193,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10347,9 +9204,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10360,9 +9214,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10374,9 +9225,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10387,9 +9235,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10401,9 +9246,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10414,9 +9256,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10428,9 +9267,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10441,9 +9277,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10455,9 +9288,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10468,36 +9298,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "proxy PATCH requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10537,9 +9337,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10550,9 +9347,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10564,9 +9358,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10577,9 +9368,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10591,9 +9379,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10604,9 +9389,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10618,9 +9400,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10631,9 +9410,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10645,9 +9421,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10658,9 +9431,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10672,9 +9442,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10685,36 +9452,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "proxy PATCH requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10738,9 +9475,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10751,9 +9485,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10765,9 +9496,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10778,9 +9506,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10792,9 +9517,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10805,9 +9527,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10819,9 +9538,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10832,9 +9548,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10846,9 +9559,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10859,9 +9569,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10873,9 +9580,6 @@ "produces": [ "*/*" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], @@ -10886,36 +9590,6 @@ "schema": { "type": "string" } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "proxy PATCH requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" } } }, @@ -10951,150 +9625,102 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], "operationId": "listReplicationControllerForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.ReplicationControllerList" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/resourcequotas": { - "get": { - "description": "list or watch objects of kind ResourceQuota", + "post": { + "description": "create a ReplicationController", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf" ], "tags": [ "core_v1" ], - "operationId": "listResourceQuotaForAllNamespaces", + "operationId": "createReplicationControllerForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ReplicationController" + } + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceQuotaList" + "$ref": "#/definitions/v1.ReplicationController" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/api/v1/secrets": { + "/api/v1/resourcequotas": { "get": { - "description": "list or watch objects of kind Secret", + "description": "list or watch objects of kind ResourceQuota", "consumes": [ "*/*" ], @@ -11105,150 +9731,102 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], - "operationId": "listSecretForAllNamespaces", + "operationId": "listResourceQuotaForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.SecretList" + "$ref": "#/definitions/v1.ResourceQuotaList" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/serviceaccounts": { - "get": { - "description": "list or watch objects of kind ServiceAccount", + "post": { + "description": "create a ResourceQuota", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf" ], "tags": [ "core_v1" ], - "operationId": "listServiceAccountForAllNamespaces", + "operationId": "createResourceQuotaForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ResourceQuota" + } + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceAccountList" + "$ref": "#/definitions/v1.ResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/api/v1/services": { + "/api/v1/secrets": { "get": { - "description": "list or watch objects of kind Service", + "description": "list or watch objects of kind Secret", "consumes": [ "*/*" ], @@ -11259,131 +9837,429 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "core_v1" ], - "operationId": "listServiceForAllNamespaces", + "operationId": "listSecretForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceList" + "$ref": "#/definitions/v1.SecretList" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, + "post": { + "description": "create a Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "createSecretForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Secret" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Secret" + } + } + } + }, + "parameters": [ { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/api/v1/watch/configmaps": { + "/api/v1/securitycontextconstraints": { + "get": { + "description": "list or watch objects of kind SecurityContextConstraints", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "core_v1" + ], + "operationId": "listSecurityContextConstraints", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SecurityContextConstraintsList" + } + } + } + }, + "post": { + "description": "create SecurityContextConstraints", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "createSecurityContextConstraints", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SecurityContextConstraints" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SecurityContextConstraints" + } + } + } + }, + "delete": { + "description": "delete collection of SecurityContextConstraints", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "deleteCollectionSecurityContextConstraints", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/api/v1/watch/endpoints": { + "/api/v1/securitycontextconstraints/{name}": { + "get": { + "description": "read the specified SecurityContextConstraints", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "readSecurityContextConstraints", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SecurityContextConstraints" + } + } + } + }, + "put": { + "description": "replace the specified SecurityContextConstraints", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "replaceSecurityContextConstraints", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SecurityContextConstraints" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SecurityContextConstraints" + } + } + } + }, + "delete": { + "description": "delete SecurityContextConstraints", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "deleteSecurityContextConstraints", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified SecurityContextConstraints", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "patchSecurityContextConstraints", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SecurityContextConstraints" + } + } + } + }, "parameters": [ { "uniqueItems": true, "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + "description": "name of the SecurityContextConstraints", + "name": "name", + "in": "path", + "required": true }, { "uniqueItems": true, @@ -11391,123 +10267,222 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/api/v1/watch/events": { + "/api/v1/serviceaccounts": { + "get": { + "description": "list or watch objects of kind ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "core_v1" + ], + "operationId": "listServiceAccountForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ServiceAccountList" + } + } + } + }, + "post": { + "description": "create a ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "createServiceAccountForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ServiceAccount" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ServiceAccount" + } + } + } + }, "parameters": [ { "uniqueItems": true, "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", "in": "query" } ] }, - "/api/v1/watch/limitranges": { + "/api/v1/services": { + "get": { + "description": "list or watch objects of kind Service", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "core_v1" + ], + "operationId": "listServiceForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ServiceList" + } + } + } + }, + "post": { + "description": "create a Service", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "core_v1" + ], + "operationId": "createServiceForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Service" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Service" + } + } + } + }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/api/v1/watch/namespaces": { + "/api/v1/watch/configmaps": { "parameters": [ { "uniqueItems": true, @@ -11533,7 +10508,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -11553,7 +10528,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/configmaps": { + "/api/v1/watch/endpoints": { "parameters": [ { "uniqueItems": true, @@ -11569,14 +10544,6 @@ "name": "labelSelector", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -11587,7 +10554,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -11607,7 +10574,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/configmaps/{name}": { + "/api/v1/watch/events": { "parameters": [ { "uniqueItems": true, @@ -11623,22 +10590,6 @@ "name": "labelSelector", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ConfigMap", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -11649,7 +10600,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -11669,7 +10620,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/endpoints": { + "/api/v1/watch/limitranges": { "parameters": [ { "uniqueItems": true, @@ -11685,14 +10636,6 @@ "name": "labelSelector", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -11703,7 +10646,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -11723,7 +10666,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/endpoints/{name}": { + "/api/v1/watch/namespaces": { "parameters": [ { "uniqueItems": true, @@ -11739,22 +10682,6 @@ "name": "labelSelector", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Endpoints", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -11765,7 +10692,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -11785,7 +10712,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/events": { + "/api/v1/watch/namespaces/{namespace}/configmaps": { "parameters": [ { "uniqueItems": true, @@ -11819,7 +10746,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -11839,7 +10766,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/events/{name}": { + "/api/v1/watch/namespaces/{namespace}/configmaps/{name}": { "parameters": [ { "uniqueItems": true, @@ -11858,7 +10785,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Event", + "description": "name of the ConfigMap", "name": "name", "in": "path", "required": true @@ -11881,7 +10808,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -11901,7 +10828,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/limitranges": { + "/api/v1/watch/namespaces/{namespace}/endpoints": { "parameters": [ { "uniqueItems": true, @@ -11935,7 +10862,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -11955,7 +10882,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/limitranges/{name}": { + "/api/v1/watch/namespaces/{namespace}/endpoints/{name}": { "parameters": [ { "uniqueItems": true, @@ -11974,7 +10901,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the LimitRange", + "description": "name of the Endpoints", "name": "name", "in": "path", "required": true @@ -11997,7 +10924,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12017,7 +10944,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims": { + "/api/v1/watch/namespaces/{namespace}/events": { "parameters": [ { "uniqueItems": true, @@ -12051,7 +10978,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12071,7 +10998,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}": { + "/api/v1/watch/namespaces/{namespace}/events/{name}": { "parameters": [ { "uniqueItems": true, @@ -12090,7 +11017,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the PersistentVolumeClaim", + "description": "name of the Event", "name": "name", "in": "path", "required": true @@ -12113,7 +11040,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12133,7 +11060,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/pods": { + "/api/v1/watch/namespaces/{namespace}/limitranges": { "parameters": [ { "uniqueItems": true, @@ -12167,7 +11094,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12187,7 +11114,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/pods/{name}": { + "/api/v1/watch/namespaces/{namespace}/limitranges/{name}": { "parameters": [ { "uniqueItems": true, @@ -12206,7 +11133,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Pod", + "description": "name of the LimitRange", "name": "name", "in": "path", "required": true @@ -12229,7 +11156,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12249,7 +11176,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/podtemplates": { + "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims": { "parameters": [ { "uniqueItems": true, @@ -12283,7 +11210,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12303,7 +11230,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}": { + "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}": { "parameters": [ { "uniqueItems": true, @@ -12322,7 +11249,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the PodTemplate", + "description": "name of the PersistentVolumeClaim", "name": "name", "in": "path", "required": true @@ -12345,7 +11272,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12365,7 +11292,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/replicationcontrollers": { + "/api/v1/watch/namespaces/{namespace}/pods": { "parameters": [ { "uniqueItems": true, @@ -12399,7 +11326,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12419,7 +11346,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}": { + "/api/v1/watch/namespaces/{namespace}/pods/{name}": { "parameters": [ { "uniqueItems": true, @@ -12438,7 +11365,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ReplicationController", + "description": "name of the Pod", "name": "name", "in": "path", "required": true @@ -12461,7 +11388,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12481,7 +11408,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/resourcequotas": { + "/api/v1/watch/namespaces/{namespace}/podtemplates": { "parameters": [ { "uniqueItems": true, @@ -12515,7 +11442,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12535,7 +11462,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}": { + "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}": { "parameters": [ { "uniqueItems": true, @@ -12554,7 +11481,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ResourceQuota", + "description": "name of the PodTemplate", "name": "name", "in": "path", "required": true @@ -12577,7 +11504,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12597,7 +11524,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/secrets": { + "/api/v1/watch/namespaces/{namespace}/replicationcontrollers": { "parameters": [ { "uniqueItems": true, @@ -12631,7 +11558,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12651,7 +11578,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/secrets/{name}": { + "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}": { "parameters": [ { "uniqueItems": true, @@ -12670,7 +11597,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Secret", + "description": "name of the ReplicationController", "name": "name", "in": "path", "required": true @@ -12693,7 +11620,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12713,7 +11640,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/serviceaccounts": { + "/api/v1/watch/namespaces/{namespace}/resourcequotas": { "parameters": [ { "uniqueItems": true, @@ -12747,7 +11674,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12767,7 +11694,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}": { + "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}": { "parameters": [ { "uniqueItems": true, @@ -12786,7 +11713,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ServiceAccount", + "description": "name of the ResourceQuota", "name": "name", "in": "path", "required": true @@ -12809,7 +11736,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12829,7 +11756,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/services": { + "/api/v1/watch/namespaces/{namespace}/secrets": { "parameters": [ { "uniqueItems": true, @@ -12863,7 +11790,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12883,7 +11810,7 @@ } ] }, - "/api/v1/watch/namespaces/{namespace}/services/{name}": { + "/api/v1/watch/namespaces/{namespace}/secrets/{name}": { "parameters": [ { "uniqueItems": true, @@ -12902,7 +11829,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Service", + "description": "name of the Secret", "name": "name", "in": "path", "required": true @@ -12925,7 +11852,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12945,7 +11872,7 @@ } ] }, - "/api/v1/watch/namespaces/{name}": { + "/api/v1/watch/namespaces/{namespace}/serviceaccounts": { "parameters": [ { "uniqueItems": true, @@ -12964,8 +11891,8 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Namespace", - "name": "name", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", "in": "path", "required": true }, @@ -12979,7 +11906,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -12999,7 +11926,7 @@ } ] }, - "/api/v1/watch/nodes": { + "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}": { "parameters": [ { "uniqueItems": true, @@ -13018,54 +11945,16 @@ { "uniqueItems": true, "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/nodes/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + "description": "name of the ServiceAccount", + "name": "name", + "in": "path", + "required": true }, { "uniqueItems": true, "type": "string", - "description": "name of the Node", - "name": "name", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", "in": "path", "required": true }, @@ -13079,7 +11968,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -13099,7 +11988,7 @@ } ] }, - "/api/v1/watch/persistentvolumeclaims": { + "/api/v1/watch/namespaces/{namespace}/services": { "parameters": [ { "uniqueItems": true, @@ -13118,48 +12007,10 @@ { "uniqueItems": true, "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/persistentvolumes": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true }, { "uniqueItems": true, @@ -13171,7 +12022,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -13191,7 +12042,7 @@ } ] }, - "/api/v1/watch/persistentvolumes/{name}": { + "/api/v1/watch/namespaces/{namespace}/services/{name}": { "parameters": [ { "uniqueItems": true, @@ -13210,7 +12061,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the PersistentVolume", + "description": "name of the Service", "name": "name", "in": "path", "required": true @@ -13218,48 +12069,10 @@ { "uniqueItems": true, "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/pods": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true }, { "uniqueItems": true, @@ -13271,7 +12084,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -13291,7 +12104,7 @@ } ] }, - "/api/v1/watch/podtemplates": { + "/api/v1/watch/namespaces/{name}": { "parameters": [ { "uniqueItems": true, @@ -13310,48 +12123,10 @@ { "uniqueItems": true, "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/replicationcontrollers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + "description": "name of the Namespace", + "name": "name", + "in": "path", + "required": true }, { "uniqueItems": true, @@ -13363,7 +12138,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -13383,7 +12158,7 @@ } ] }, - "/api/v1/watch/resourcequotas": { + "/api/v1/watch/nodes": { "parameters": [ { "uniqueItems": true, @@ -13409,7 +12184,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -13429,7 +12204,7 @@ } ] }, - "/api/v1/watch/secrets": { + "/api/v1/watch/nodes/{name}": { "parameters": [ { "uniqueItems": true, @@ -13448,48 +12223,10 @@ { "uniqueItems": true, "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/serviceaccounts": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + "description": "name of the Node", + "name": "name", + "in": "path", + "required": true }, { "uniqueItems": true, @@ -13501,7 +12238,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -13521,7 +12258,7 @@ } ] }, - "/api/v1/watch/services": { + "/api/v1/watch/persistentvolumeclaims": { "parameters": [ { "uniqueItems": true, @@ -13547,7 +12284,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -13567,137 +12304,7 @@ } ] }, - "/apis/": { - "get": { - "description": "get available API versions", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apis" - ], - "operationId": "getAPIVersions", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroupList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apps/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apps/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apps/v1beta1/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listDeploymentForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + "/api/v1/watch/persistentvolumes": { "parameters": [ { "uniqueItems": true, @@ -13723,7 +12330,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -13743,186 +12350,27 @@ } ] }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteCollectionNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + "/api/v1/watch/persistentvolumes/{name}": { "parameters": [ { "uniqueItems": true, "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PersistentVolume", + "name": "name", "in": "path", "required": true }, @@ -13932,212 +12380,45 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ] }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "read the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + "/api/v1/watch/pods": { "parameters": [ { "uniqueItems": true, "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" }, { "uniqueItems": true, "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" }, { "uniqueItems": true, @@ -14145,54 +12426,280 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ] }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback": { - "post": { - "description": "create rollback of a DeploymentRollback", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createNamespacedDeploymentRollbackRollback", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentRollback" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentRollback" - } - }, - "401": { - "description": "Unauthorized" - } + "/api/v1/watch/podtemplates": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } - }, + ] + }, + "/api/v1/watch/replicationcontrollers": { "parameters": [ { "uniqueItems": true, "type": "string", - "description": "name of the DeploymentRollback", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/api/v1/watch/resourcequotas": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/api/v1/watch/secrets": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/api/v1/watch/securitycontextconstraints": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/api/v1/watch/securitycontextconstraints/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the SecurityContextConstraints", "name": "name", "in": "path", "required": true @@ -14200,10 +12707,94 @@ { "uniqueItems": true, "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/api/v1/watch/serviceaccounts": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/api/v1/watch/services": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" }, { "uniqueItems": true, @@ -14211,105 +12802,195 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ] }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale": { + "/apis/": { "get": { - "description": "read scale of the specified Scale", + "description": "get available API versions", "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "apis" + ], + "operationId": "getAPIVersions", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.APIGroupList" + } + } + } + } + }, + "/apis/apps/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" + "tags": [ + "apps" + ], + "operationId": "getAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.APIGroup" + } + } + } + } + }, + "/apis/apps/v1beta1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "tags": [ "apps_v1beta1" ], - "operationId": "readNamespacedScaleScale", + "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" + "$ref": "#/definitions/unversioned.APIResourceList" } - }, - "401": { - "description": "Unauthorized" } } - }, - "put": { - "description": "replace scale of the specified Scale", + } + }, + "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets": { + "get": { + "description": "list or watch objects of kind StatefulSet", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "tags": [ "apps_v1beta1" ], - "operationId": "replaceNamespacedScaleScale", + "operationId": "listNamespacedStatefulSet", "parameters": [ { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.StatefulSetList" } - }, - "401": { - "description": "Unauthorized" } } }, - "patch": { - "description": "partially update scale of the specified Scale", + "post": { + "description": "create a StatefulSet", "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" + "*/*" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "apps_v1beta1" ], - "operationId": "patchNamespacedScaleScale", + "operationId": "createNamespacedStatefulSet", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" + "$ref": "#/definitions/v1beta1.StatefulSet" } } ], @@ -14317,282 +12998,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.StatefulSet" } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status": { - "get": { - "description": "read status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedDeploymentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets": { - "get": { - "description": "list or watch objects of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listNamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" } } }, @@ -14606,9 +13013,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "apps_v1beta1" ], @@ -14631,7 +13035,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -14654,11 +13058,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -14691,9 +13092,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "apps_v1beta1" ], @@ -14702,7 +13100,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -14720,9 +13118,6 @@ "schema": { "$ref": "#/definitions/v1beta1.StatefulSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -14736,9 +13131,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "apps_v1beta1" ], @@ -14759,9 +13151,6 @@ "schema": { "$ref": "#/definitions/v1beta1.StatefulSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -14775,9 +13164,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "apps_v1beta1" ], @@ -14801,27 +13187,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -14837,9 +13213,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "apps_v1beta1" ], @@ -14861,9 +13234,6 @@ "schema": { "$ref": "#/definitions/v1beta1.StatefulSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -14904,9 +13274,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "apps_v1beta1" ], @@ -14917,9 +13284,6 @@ "schema": { "$ref": "#/definitions/v1beta1.StatefulSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -14933,9 +13297,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "apps_v1beta1" ], @@ -14956,9 +13317,6 @@ "schema": { "$ref": "#/definitions/v1beta1.StatefulSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -14974,9 +13332,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "apps_v1beta1" ], @@ -14998,9 +13353,6 @@ "schema": { "$ref": "#/definitions/v1beta1.StatefulSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -15043,117 +13395,100 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "apps_v1beta1" ], "operationId": "listStatefulSetForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1beta1.StatefulSetList" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" + "post": { + "description": "create a StatefulSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "apps_v1beta1" + ], + "operationId": "createStatefulSetForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.StatefulSet" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.StatefulSet" + } + } } - ] - }, - "/apis/apps/v1beta1/watch/deployments": { + }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments": { + "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets": { "parameters": [ { "uniqueItems": true, @@ -15187,7 +13522,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -15207,7 +13542,7 @@ } ] }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { + "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name}": { "parameters": [ { "uniqueItems": true, @@ -15226,7 +13561,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Deployment", + "description": "name of the StatefulSet", "name": "name", "in": "path", "required": true @@ -15249,7 +13584,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -15269,7 +13604,7 @@ } ] }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets": { + "/apis/apps/v1beta1/watch/statefulsets": { "parameters": [ { "uniqueItems": true, @@ -15285,14 +13620,6 @@ "name": "labelSelector", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -15303,7 +13630,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -15323,115 +13650,103 @@ } ] }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name}": { + "/apis/authentication.k8s.io/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "authentication" + ], + "operationId": "getAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.APIGroup" + } + } + } + } + }, + "/apis/authentication.k8s.io/v1beta1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "authentication_v1beta1" + ], + "operationId": "getAPIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.APIResourceList" + } + } + } + } + }, + "/apis/authentication.k8s.io/v1beta1/tokenreviews": { + "post": { + "description": "create a TokenReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "authentication_v1beta1" + ], + "operationId": "createTokenReview", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.TokenReview" + } + } + } + }, "parameters": [ { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.TokenReview" + } }, { "uniqueItems": true, "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/statefulsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", "in": "query" } ] }, - "/apis/authentication.k8s.io/": { + "/apis/autoscaling/": { "get": { "description": "get information of a group", "consumes": [ @@ -15444,27 +13759,21 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "authentication" + "autoscaling" ], "operationId": "getAPIGroup", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/unversioned.APIGroup" } - }, - "401": { - "description": "Unauthorized" } } } }, - "/apis/authentication.k8s.io/v1/": { + "/apis/autoscaling/v1/": { "get": { "description": "get available resources", "consumes": [ @@ -15477,112 +13786,85 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "authentication_v1" + "autoscaling_v1" ], "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/unversioned.APIResourceList" } - }, - "401": { - "description": "Unauthorized" } } } }, - "/apis/authentication.k8s.io/v1/tokenreviews": { - "post": { - "description": "create a TokenReview", + "/apis/autoscaling/v1/horizontalpodautoscalers": { + "get": { + "description": "list or watch objects of kind HorizontalPodAutoscaler", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "tags": [ - "authentication_v1" + "autoscaling_v1" ], - "operationId": "createTokenReview", + "operationId": "listHorizontalPodAutoscalerForAllNamespaces", "parameters": [ { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.TokenReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.TokenReview" - } + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" }, - "401": { - "description": "Unauthorized" + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authentication.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" ], - "tags": [ - "authentication_v1beta1" - ], - "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" } - }, - "401": { - "description": "Unauthorized" } } - } - }, - "/apis/authentication.k8s.io/v1beta1/tokenreviews": { + }, "post": { - "description": "create a TokenReview", + "description": "create a HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -15591,20 +13873,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "authentication_v1beta1" + "autoscaling_v1" ], - "operationId": "createTokenReview", + "operationId": "createHorizontalPodAutoscalerForAllNamespaces", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.TokenReview" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } } ], @@ -15612,11 +13891,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.TokenReview" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -15630,75 +13906,104 @@ } ] }, - "/apis/authorization.k8s.io/": { + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { "get": { - "description": "get information of a group", + "description": "list or watch objects of kind HorizontalPodAutoscaler", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "tags": [ - "authorization" + "autoscaling_v1" + ], + "operationId": "listNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } ], - "operationId": "getAPIGroup", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" } - }, - "401": { - "description": "Unauthorized" } } - } - }, - "/apis/authorization.k8s.io/v1/": { - "get": { - "description": "get available resources", + }, + "post": { + "description": "create a HorizontalPodAutoscaler", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "authorization_v1" + "autoscaling_v1" + ], + "operationId": "createNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + } ], - "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } - } - }, - "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { - "post": { - "description": "create a LocalSubjectAccessReview", + }, + "delete": { + "description": "delete collection of HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -15707,32 +14012,53 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "authorization_v1" + "autoscaling_v1" ], - "operationId": "createNamespacedLocalSubjectAccessReview", + "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -15754,9 +14080,9 @@ } ] }, - "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { - "post": { - "description": "create a SelfSubjectAccessReview", + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "get": { + "description": "read the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -15765,48 +14091,37 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "authorization_v1" + "autoscaling_v1" ], - "operationId": "createSelfSubjectAccessReview", + "operationId": "readNamespacedHorizontalPodAutoscaler", "parameters": [ { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1/subjectaccessreviews": { - "post": { - "description": "create a SubjectAccessReview", + "put": { + "description": "replace the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -15815,20 +14130,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "authorization_v1" + "autoscaling_v1" ], - "operationId": "createSubjectAccessReview", + "operationId": "replaceNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } } ], @@ -15836,82 +14148,82 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", + "delete": { + "description": "delete a HorizontalPodAutoscaler", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "authorization_v1beta1" + "autoscaling_v1" + ], + "operationId": "deleteNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } ], - "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } - } - }, - "/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews": { - "post": { - "description": "create a LocalSubjectAccessReview", + }, + "patch": { + "description": "partially update the specified HorizontalPodAutoscaler", "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "authorization_v1beta1" + "autoscaling_v1" ], - "operationId": "createNamespacedLocalSubjectAccessReview", + "operationId": "patchNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.LocalSubjectAccessReview" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -15919,15 +14231,20 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LocalSubjectAccessReview" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the HorizontalPodAutoscaler", + "name": "name", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -15945,9 +14262,9 @@ } ] }, - "/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews": { - "post": { - "description": "create a SelfSubjectAccessReview", + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "get": { + "description": "read status of the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -15956,20 +14273,40 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" + "tags": [ + "autoscaling_v1" + ], + "operationId": "readNamespacedHorizontalPodAutoscalerStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + } + } + }, + "put": { + "description": "replace status of the specified HorizontalPodAutoscaler", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "tags": [ - "authorization_v1beta1" + "autoscaling_v1" ], - "operationId": "createSelfSubjectAccessReview", + "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.SelfSubjectAccessReview" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } } ], @@ -15977,49 +14314,35 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.SelfSubjectAccessReview" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/subjectaccessreviews": { - "post": { - "description": "create a SubjectAccessReview", + "patch": { + "description": "partially update status of the specified HorizontalPodAutoscaler", "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "authorization_v1beta1" + "autoscaling_v1" ], - "operationId": "createSubjectAccessReview", + "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.SubjectAccessReview" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -16027,11 +14350,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.SubjectAccessReview" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -16039,18 +14359,196 @@ { "uniqueItems": true, "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", + "description": "name of the HorizontalPodAutoscaler", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the HorizontalPodAutoscaler", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/batch/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", "application/vnd.kubernetes.protobuf" ], "produces": [ @@ -16058,27 +14556,21 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling" + "batch" ], "operationId": "getAPIGroup", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/unversioned.APIGroup" } - }, - "401": { - "description": "Unauthorized" } } } }, - "/apis/autoscaling/v1/": { + "/apis/batch/v1/": { "get": { "description": "get available resources", "consumes": [ @@ -16091,29 +14583,23 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v1" + "batch_v1" ], "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/unversioned.APIResourceList" } - }, - "401": { - "description": "Unauthorized" } } } }, - "/apis/autoscaling/v1/horizontalpodautoscalers": { + "/apis/batch/v1/jobs": { "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", + "description": "list or watch objects of kind Job", "consumes": [ "*/*" ], @@ -16124,73 +14610,102 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" + "tags": [ + "batch_v1" + ], + "operationId": "listJobForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.JobList" + } + } + } + }, + "post": { + "description": "create a Job", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "tags": [ - "autoscaling_v1" + "batch_v1" + ], + "operationId": "createJobForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Job" + } + } ], - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/batch/v1/namespaces/{namespace}/jobs": { "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", + "description": "list or watch objects of kind Job", "consumes": [ "*/*" ], @@ -16201,13 +14716,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v1" + "batch_v1" ], - "operationId": "listNamespacedHorizontalPodAutoscaler", + "operationId": "listNamespacedJob", "parameters": [ { "uniqueItems": true, @@ -16226,7 +14738,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -16249,16 +14761,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v1.JobList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a HorizontalPodAutoscaler", + "description": "create a Job", "consumes": [ "*/*" ], @@ -16267,20 +14776,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v1" + "batch_v1" ], - "operationId": "createNamespacedHorizontalPodAutoscaler", + "operationId": "createNamespacedJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } } ], @@ -16288,16 +14794,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete collection of HorizontalPodAutoscaler", + "description": "delete collection of Job", "consumes": [ "*/*" ], @@ -16306,13 +14809,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v1" + "batch_v1" ], - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", + "operationId": "deleteCollectionNamespacedJob", "parameters": [ { "uniqueItems": true, @@ -16331,7 +14831,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -16354,11 +14854,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -16380,9 +14877,9 @@ } ] }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { "get": { - "description": "read the specified HorizontalPodAutoscaler", + "description": "read the specified Job", "consumes": [ "*/*" ], @@ -16391,18 +14888,15 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v1" + "batch_v1" ], - "operationId": "readNamespacedHorizontalPodAutoscaler", + "operationId": "readNamespacedJob", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -16418,16 +14912,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified HorizontalPodAutoscaler", + "description": "replace the specified Job", "consumes": [ "*/*" ], @@ -16436,20 +14927,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v1" + "batch_v1" ], - "operationId": "replaceNamespacedHorizontalPodAutoscaler", + "operationId": "replaceNamespacedJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } } ], @@ -16457,16 +14945,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a HorizontalPodAutoscaler", + "description": "delete a Job", "consumes": [ "*/*" ], @@ -16475,13 +14960,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v1" + "batch_v1" ], - "operationId": "deleteNamespacedHorizontalPodAutoscaler", + "operationId": "deleteNamespacedJob", "parameters": [ { "name": "body", @@ -16501,32 +14983,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified HorizontalPodAutoscaler", + "description": "partially update the specified Job", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -16537,13 +15009,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v1" + "batch_v1" ], - "operationId": "patchNamespacedHorizontalPodAutoscaler", + "operationId": "patchNamespacedJob", "parameters": [ { "name": "body", @@ -16559,11 +15028,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -16571,7 +15037,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the Job", "name": "name", "in": "path", "required": true @@ -16593,9 +15059,9 @@ } ] }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { "get": { - "description": "read status of the specified HorizontalPodAutoscaler", + "description": "read status of the specified Job", "consumes": [ "*/*" ], @@ -16604,27 +15070,21 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v1" + "batch_v1" ], - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", + "operationId": "readNamespacedJobStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace status of the specified HorizontalPodAutoscaler", + "description": "replace status of the specified Job", "consumes": [ "*/*" ], @@ -16633,20 +15093,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v1" + "batch_v1" ], - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", + "operationId": "replaceNamespacedJobStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } } ], @@ -16654,16 +15111,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update status of the specified HorizontalPodAutoscaler", + "description": "partially update status of the specified Job", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -16674,13 +15128,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v1" + "batch_v1" ], - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", + "operationId": "patchNamespacedJobStatus", "parameters": [ { "name": "body", @@ -16696,11 +15147,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -16708,7 +15156,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the Job", "name": "name", "in": "path", "required": true @@ -16730,7 +15178,7 @@ } ] }, - "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { + "/apis/batch/v1/watch/jobs": { "parameters": [ { "uniqueItems": true, @@ -16756,7 +15204,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -16776,7 +15224,7 @@ } ] }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { "parameters": [ { "uniqueItems": true, @@ -16810,7 +15258,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -16830,7 +15278,7 @@ } ] }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { "parameters": [ { "uniqueItems": true, @@ -16849,7 +15297,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the Job", "name": "name", "in": "path", "required": true @@ -16872,7 +15320,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -16892,7 +15340,7 @@ } ] }, - "/apis/autoscaling/v2alpha1/": { + "/apis/batch/v2alpha1/": { "get": { "description": "get available resources", "consumes": [ @@ -16905,29 +15353,23 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v2alpha1" + "batch_v2alpha1" ], "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/unversioned.APIResourceList" } - }, - "401": { - "description": "Unauthorized" } } } }, - "/apis/autoscaling/v2alpha1/horizontalpodautoscalers": { + "/apis/batch/v2alpha1/cronjobs": { "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", + "description": "list or watch objects of kind CronJob", "consumes": [ "*/*" ], @@ -16938,73 +15380,208 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v2alpha1" + "batch_v2alpha1" + ], + "operationId": "listCronJobForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } ], - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v2alpha1.CronJobList" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, + "post": { + "description": "create a CronJob", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "batch_v2alpha1" + ], + "operationId": "createCronJobForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v2alpha1.CronJob" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v2alpha1.CronJob" + } + } + } + }, + "parameters": [ { "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", "in": "query" - }, + } + ] + }, + "/apis/batch/v2alpha1/jobs": { + "get": { + "description": "list or watch objects of kind Job", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "batch_v2alpha1" + ], + "operationId": "listJobForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v2alpha1.JobList" + } + } + } + }, + "post": { + "description": "create a Job", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "batch_v2alpha1" + ], + "operationId": "createJobForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v2alpha1.Job" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v2alpha1.Job" + } + } + } + }, + "parameters": [ { "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", "in": "query" } ] }, - "/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs": { "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", + "description": "list or watch objects of kind CronJob", "consumes": [ "*/*" ], @@ -17015,13 +15592,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v2alpha1" + "batch_v2alpha1" ], - "operationId": "listNamespacedHorizontalPodAutoscaler", + "operationId": "listNamespacedCronJob", "parameters": [ { "uniqueItems": true, @@ -17040,7 +15614,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -17063,16 +15637,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v2alpha1.CronJobList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a HorizontalPodAutoscaler", + "description": "create a CronJob", "consumes": [ "*/*" ], @@ -17081,20 +15652,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v2alpha1" + "batch_v2alpha1" ], - "operationId": "createNamespacedHorizontalPodAutoscaler", + "operationId": "createNamespacedCronJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2alpha1.CronJob" } } ], @@ -17102,16 +15670,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete collection of HorizontalPodAutoscaler", + "description": "delete collection of CronJob", "consumes": [ "*/*" ], @@ -17120,13 +15685,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v2alpha1" + "batch_v2alpha1" ], - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", + "operationId": "deleteCollectionNamespacedCronJob", "parameters": [ { "uniqueItems": true, @@ -17145,7 +15707,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -17168,11 +15730,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -17194,9 +15753,9 @@ } ] }, - "/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}": { "get": { - "description": "read the specified HorizontalPodAutoscaler", + "description": "read the specified CronJob", "consumes": [ "*/*" ], @@ -17205,18 +15764,15 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v2alpha1" + "batch_v2alpha1" ], - "operationId": "readNamespacedHorizontalPodAutoscaler", + "operationId": "readNamespacedCronJob", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -17232,16 +15788,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified HorizontalPodAutoscaler", + "description": "replace the specified CronJob", "consumes": [ "*/*" ], @@ -17250,20 +15803,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v2alpha1" + "batch_v2alpha1" ], - "operationId": "replaceNamespacedHorizontalPodAutoscaler", + "operationId": "replaceNamespacedCronJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2alpha1.CronJob" } } ], @@ -17271,16 +15821,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a HorizontalPodAutoscaler", + "description": "delete a CronJob", "consumes": [ "*/*" ], @@ -17289,13 +15836,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v2alpha1" + "batch_v2alpha1" ], - "operationId": "deleteNamespacedHorizontalPodAutoscaler", + "operationId": "deleteNamespacedCronJob", "parameters": [ { "name": "body", @@ -17315,32 +15859,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified HorizontalPodAutoscaler", + "description": "partially update the specified CronJob", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -17351,13 +15885,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v2alpha1" + "batch_v2alpha1" ], - "operationId": "patchNamespacedHorizontalPodAutoscaler", + "operationId": "patchNamespacedCronJob", "parameters": [ { "name": "body", @@ -17373,11 +15904,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -17385,7 +15913,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the CronJob", "name": "name", "in": "path", "required": true @@ -17407,9 +15935,9 @@ } ] }, - "/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status": { "get": { - "description": "read status of the specified HorizontalPodAutoscaler", + "description": "read status of the specified CronJob", "consumes": [ "*/*" ], @@ -17418,27 +15946,21 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v2alpha1" + "batch_v2alpha1" ], - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", + "operationId": "readNamespacedCronJobStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace status of the specified HorizontalPodAutoscaler", + "description": "replace status of the specified CronJob", "consumes": [ "*/*" ], @@ -17447,20 +15969,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v2alpha1" + "batch_v2alpha1" ], - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", + "operationId": "replaceNamespacedCronJobStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2alpha1.CronJob" } } ], @@ -17468,16 +15987,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update status of the specified HorizontalPodAutoscaler", + "description": "partially update status of the specified CronJob", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -17488,13 +16004,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "autoscaling_v2alpha1" + "batch_v2alpha1" ], - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", + "operationId": "patchNamespacedCronJobStatus", "parameters": [ { "name": "body", @@ -17510,11 +16023,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -17522,148 +16032,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2alpha1/watch/horizontalpodautoscalers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2alpha1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2alpha1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the CronJob", "name": "name", "in": "path", "required": true @@ -17682,305 +16051,126 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/batch/": { + "/apis/batch/v2alpha1/namespaces/{namespace}/jobs": { "get": { - "description": "get information of a group", + "description": "list or watch objects of kind Job", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "tags": [ - "batch" + "batch_v2alpha1" + ], + "operationId": "listNamespacedJob", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } ], - "operationId": "getAPIGroup", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v2alpha1.JobList" } - }, - "401": { - "description": "Unauthorized" } } - } - }, - "/apis/batch/v1/": { - "get": { - "description": "get available resources", + }, + "post": { + "description": "create a Job", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "batch_v1" + "batch_v2alpha1" + ], + "operationId": "createNamespacedJob", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v2alpha1.Job" + } + } ], - "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v2alpha1.Job" } - }, - "401": { - "description": "Unauthorized" } } - } - }, - "/apis/batch/v1/jobs": { - "get": { - "description": "list or watch objects of kind Job", + }, + "delete": { + "description": "delete collection of Job", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf" ], "tags": [ - "batch_v1" + "batch_v2alpha1" ], - "operationId": "listJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/jobs": { - "get": { - "description": "list or watch objects of kind Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "listNamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "createNamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Job" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "deleteCollectionNamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" + "operationId": "deleteCollectionNamespacedJob", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" }, { "uniqueItems": true, @@ -17992,7 +16182,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -18015,11 +16205,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -18041,7 +16228,7 @@ } ] }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { + "/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}": { "get": { "description": "read the specified Job", "consumes": [ @@ -18052,18 +16239,15 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "batch_v1" + "batch_v2alpha1" ], "operationId": "readNamespacedJob", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -18079,11 +16263,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2alpha1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -18097,11 +16278,8 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "batch_v1" + "batch_v2alpha1" ], "operationId": "replaceNamespacedJob", "parameters": [ @@ -18110,7 +16288,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2alpha1.Job" } } ], @@ -18118,11 +16296,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2alpha1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -18136,11 +16311,8 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "batch_v1" + "batch_v2alpha1" ], "operationId": "deleteNamespacedJob", "parameters": [ @@ -18162,27 +16334,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -18198,11 +16360,8 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "batch_v1" + "batch_v2alpha1" ], "operationId": "patchNamespacedJob", "parameters": [ @@ -18220,11 +16379,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2alpha1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -18254,7 +16410,7 @@ } ] }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { + "/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status": { "get": { "description": "read status of the specified Job", "consumes": [ @@ -18265,22 +16421,16 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "batch_v1" + "batch_v2alpha1" ], "operationId": "readNamespacedJobStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2alpha1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -18294,11 +16444,8 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "batch_v1" + "batch_v2alpha1" ], "operationId": "replaceNamespacedJobStatus", "parameters": [ @@ -18307,7 +16454,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2alpha1.Job" } } ], @@ -18315,11 +16462,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2alpha1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -18335,11 +16479,8 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "batch_v1" + "batch_v2alpha1" ], "operationId": "patchNamespacedJobStatus", "parameters": [ @@ -18357,11 +16498,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2alpha1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -18391,281 +16529,9 @@ } ] }, - "/apis/batch/v1/watch/jobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v2alpha1/cronjobs": { - "get": { - "description": "list or watch objects of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listCronJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs": { + "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs": { "get": { - "description": "list or watch objects of kind CronJob", + "description": "list or watch objects of kind ScheduledJob", "consumes": [ "*/*" ], @@ -18676,13 +16542,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "batch_v2alpha1" ], - "operationId": "listNamespacedCronJob", + "operationId": "listNamespacedScheduledJob", "parameters": [ { "uniqueItems": true, @@ -18701,7 +16564,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -18726,14 +16589,11 @@ "schema": { "$ref": "#/definitions/v2alpha1.CronJobList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a CronJob", + "description": "create a ScheduledJob", "consumes": [ "*/*" ], @@ -18742,13 +16602,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "batch_v2alpha1" ], - "operationId": "createNamespacedCronJob", + "operationId": "createNamespacedScheduledJob", "parameters": [ { "name": "body", @@ -18765,14 +16622,11 @@ "schema": { "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete collection of CronJob", + "description": "delete collection of ScheduledJob", "consumes": [ "*/*" ], @@ -18781,13 +16635,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "batch_v2alpha1" ], - "operationId": "deleteCollectionNamespacedCronJob", + "operationId": "deleteCollectionNamespacedScheduledJob", "parameters": [ { "uniqueItems": true, @@ -18806,7 +16657,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -18829,11 +16680,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -18855,9 +16703,9 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}": { + "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}": { "get": { - "description": "read the specified CronJob", + "description": "read the specified ScheduledJob", "consumes": [ "*/*" ], @@ -18866,18 +16714,15 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "batch_v2alpha1" ], - "operationId": "readNamespacedCronJob", + "operationId": "readNamespacedScheduledJob", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -18895,14 +16740,11 @@ "schema": { "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified CronJob", + "description": "replace the specified ScheduledJob", "consumes": [ "*/*" ], @@ -18911,13 +16753,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "batch_v2alpha1" ], - "operationId": "replaceNamespacedCronJob", + "operationId": "replaceNamespacedScheduledJob", "parameters": [ { "name": "body", @@ -18934,14 +16773,11 @@ "schema": { "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a CronJob", + "description": "delete a ScheduledJob", "consumes": [ "*/*" ], @@ -18950,13 +16786,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "batch_v2alpha1" ], - "operationId": "deleteNamespacedCronJob", + "operationId": "deleteNamespacedScheduledJob", "parameters": [ { "name": "body", @@ -18976,32 +16809,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified CronJob", + "description": "partially update the specified ScheduledJob", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -19012,13 +16835,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "batch_v2alpha1" ], - "operationId": "patchNamespacedCronJob", + "operationId": "patchNamespacedScheduledJob", "parameters": [ { "name": "body", @@ -19036,9 +16856,6 @@ "schema": { "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -19046,7 +16863,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the CronJob", + "description": "name of the ScheduledJob", "name": "name", "in": "path", "required": true @@ -19068,9 +16885,9 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status": { + "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status": { "get": { - "description": "read status of the specified CronJob", + "description": "read status of the specified ScheduledJob", "consumes": [ "*/*" ], @@ -19079,27 +16896,21 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "batch_v2alpha1" ], - "operationId": "readNamespacedCronJobStatus", + "operationId": "readNamespacedScheduledJobStatus", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace status of the specified CronJob", + "description": "replace status of the specified ScheduledJob", "consumes": [ "*/*" ], @@ -19108,13 +16919,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "batch_v2alpha1" ], - "operationId": "replaceNamespacedCronJobStatus", + "operationId": "replaceNamespacedScheduledJobStatus", "parameters": [ { "name": "body", @@ -19131,14 +16939,11 @@ "schema": { "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update status of the specified CronJob", + "description": "partially update status of the specified ScheduledJob", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -19149,13 +16954,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "batch_v2alpha1" ], - "operationId": "patchNamespacedCronJobStatus", + "operationId": "patchNamespacedScheduledJobStatus", "parameters": [ { "name": "body", @@ -19173,9 +16975,6 @@ "schema": { "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -19183,7 +16982,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the CronJob", + "description": "name of the ScheduledJob", "name": "name", "in": "path", "required": true @@ -19205,7 +17004,7 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs": { + "/apis/batch/v2alpha1/scheduledjobs": { "get": { "description": "list or watch objects of kind ScheduledJob", "consumes": [ @@ -19218,13 +17017,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "batch_v2alpha1" ], - "operationId": "listNamespacedScheduledJob", + "operationId": "listScheduledJobForAllNamespaces", "parameters": [ { "uniqueItems": true, @@ -19243,7 +17039,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -19268,9 +17064,6 @@ "schema": { "$ref": "#/definitions/v2alpha1.CronJobList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -19284,13 +17077,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "batch_v2alpha1" ], - "operationId": "createNamespacedScheduledJob", + "operationId": "createScheduledJobForAllNamespaces", "parameters": [ { "name": "body", @@ -19307,87 +17097,10 @@ "schema": { "$ref": "#/definitions/v2alpha1.CronJob" } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "deleteCollectionNamespacedScheduledJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -19397,209 +17110,21 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}": { - "get": { - "description": "read the specified ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "readNamespacedScheduledJob", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "replaceNamespacedScheduledJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "deleteNamespacedScheduledJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified ScheduledJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "patchNamespacedScheduledJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + "/apis/batch/v2alpha1/watch/cronjobs": { "parameters": [ { "uniqueItems": true, "type": "string", - "description": "name of the ScheduledJob", - "name": "name", - "in": "path", - "required": true + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" }, { "uniqueItems": true, "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" }, { "uniqueItems": true, @@ -19607,136 +17132,45 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status": { - "get": { - "description": "read status of the specified ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "readNamespacedScheduledJobStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "replaceNamespacedScheduledJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified ScheduledJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "patchNamespacedScheduledJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + "/apis/batch/v2alpha1/watch/jobs": { "parameters": [ { "uniqueItems": true, "type": "string", - "description": "name of the ScheduledJob", - "name": "name", - "in": "path", - "required": true + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" }, { "uniqueItems": true, "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" }, { "uniqueItems": true, @@ -19744,41 +17178,31 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ] }, - "/apis/batch/v2alpha1/scheduledjobs": { - "get": { - "description": "list or watch objects of kind ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listScheduledJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs": { "parameters": [ { "uniqueItems": true, @@ -19794,6 +17218,14 @@ "name": "labelSelector", "in": "query" }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -19804,7 +17236,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -19824,7 +17256,7 @@ } ] }, - "/apis/batch/v2alpha1/watch/cronjobs": { + "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name}": { "parameters": [ { "uniqueItems": true, @@ -19840,6 +17272,22 @@ "name": "labelSelector", "in": "query" }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the CronJob", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -19850,7 +17298,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -19870,7 +17318,7 @@ } ] }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs": { + "/apis/batch/v2alpha1/watch/namespaces/{namespace}/jobs": { "parameters": [ { "uniqueItems": true, @@ -19904,7 +17352,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -19924,7 +17372,7 @@ } ] }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name}": { + "/apis/batch/v2alpha1/watch/namespaces/{namespace}/jobs/{name}": { "parameters": [ { "uniqueItems": true, @@ -19943,7 +17391,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the CronJob", + "description": "name of the Job", "name": "name", "in": "path", "required": true @@ -19966,7 +17414,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -20020,7 +17468,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -20082,7 +17530,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -20128,7 +17576,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -20161,9 +17609,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "certificates" ], @@ -20172,16 +17617,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/unversioned.APIGroup" } - }, - "401": { - "description": "Unauthorized" } } } }, - "/apis/certificates.k8s.io/v1beta1/": { + "/apis/certificates.k8s.io/v1alpha1/": { "get": { "description": "get available resources", "consumes": [ @@ -20194,27 +17636,21 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/unversioned.APIResourceList" } - }, - "401": { - "description": "Unauthorized" } } } }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests": { + "/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests": { "get": { "description": "list or watch objects of kind CertificateSigningRequest", "consumes": [ @@ -20227,11 +17663,8 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], "operationId": "listCertificateSigningRequest", "parameters": [ @@ -20252,7 +17685,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -20275,11 +17708,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequestList" + "$ref": "#/definitions/v1alpha1.CertificateSigningRequestList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -20293,11 +17723,8 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], "operationId": "createCertificateSigningRequest", "parameters": [ @@ -20306,7 +17733,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" + "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" } } ], @@ -20314,11 +17741,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" + "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -20332,11 +17756,8 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], "operationId": "deleteCollectionCertificateSigningRequest", "parameters": [ @@ -20357,7 +17778,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -20380,11 +17801,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -20398,7 +17816,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}": { + "/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}": { "get": { "description": "read the specified CertificateSigningRequest", "consumes": [ @@ -20409,18 +17827,15 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], "operationId": "readCertificateSigningRequest", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -20436,11 +17851,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" + "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -20454,11 +17866,8 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], "operationId": "replaceCertificateSigningRequest", "parameters": [ @@ -20467,7 +17876,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" + "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" } } ], @@ -20475,11 +17884,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" + "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -20493,11 +17899,8 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], "operationId": "deleteCertificateSigningRequest", "parameters": [ @@ -20519,27 +17922,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -20555,11 +17948,8 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], "operationId": "patchCertificateSigningRequest", "parameters": [ @@ -20577,11 +17967,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" + "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -20603,7 +17990,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval": { + "/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/approval": { "put": { "description": "replace approval of the specified CertificateSigningRequest", "consumes": [ @@ -20614,36 +18001,28 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], "operationId": "replaceCertificateSigningRequestApproval", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - } - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" + "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + } + }, { "uniqueItems": true, "type": "string", @@ -20661,7 +18040,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status": { + "/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/status": { "put": { "description": "replace status of the specified CertificateSigningRequest", "consumes": [ @@ -20672,36 +18051,28 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], "operationId": "replaceCertificateSigningRequestStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - } - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" + "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + } + }, { "uniqueItems": true, "type": "string", @@ -20719,7 +18090,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests": { + "/apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests": { "parameters": [ { "uniqueItems": true, @@ -20745,7 +18116,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -20765,7 +18136,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests/{name}": { + "/apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests/{name}": { "parameters": [ { "uniqueItems": true, @@ -20799,7 +18170,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -20832,9 +18203,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions" ], @@ -20843,11 +18211,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/unversioned.APIGroup" } - }, - "401": { - "description": "Unauthorized" } } } @@ -20865,9 +18230,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -20876,11 +18238,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/unversioned.APIResourceList" } - }, - "401": { - "description": "Unauthorized" } } } @@ -20898,67 +18257,96 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], "operationId": "listDaemonSetForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1beta1.DaemonSetList" } - }, - "401": { - "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a DaemonSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "createDaemonSetForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.DaemonSet" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.DaemonSet" + } } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, @@ -20975,150 +18363,102 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], "operationId": "listDeploymentForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentList" + "$ref": "#/definitions/v1beta1.DeploymentList" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/ingresses": { - "get": { - "description": "list or watch objects of kind Ingress", + "post": { + "description": "create a Deployment", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf" ], "tags": [ "extensions_v1beta1" ], - "operationId": "listIngressForAllNamespaces", + "operationId": "createDeploymentForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.Deployment" + } + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IngressList" + "$ref": "#/definitions/v1beta1.Deployment" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets": { + "/apis/extensions/v1beta1/horizontalpodautoscalers": { "get": { - "description": "list or watch objects of kind DaemonSet", + "description": "list or watch objects of kind HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -21129,13 +18469,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "listNamespacedDaemonSet", + "operationId": "listHorizontalPodAutoscalerForAllNamespaces", "parameters": [ { "uniqueItems": true, @@ -21154,7 +18491,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -21177,16 +18514,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DaemonSetList" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscalerList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a DaemonSet", + "description": "create a HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -21195,20 +18529,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "createNamespacedDaemonSet", + "operationId": "createHorizontalPodAutoscalerForAllNamespaces", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } } ], @@ -21216,31 +18547,38 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, - "delete": { - "description": "delete collection of DaemonSet", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/extensions/v1beta1/ingresses": { + "get": { + "description": "list or watch objects of kind Ingress", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "tags": [ "extensions_v1beta1" ], - "operationId": "deleteCollectionNamespacedDaemonSet", + "operationId": "listIngressForAllNamespaces", "parameters": [ { "uniqueItems": true, @@ -21259,7 +18597,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -21282,11 +18620,313 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1beta1.IngressList" + } + } + } + }, + "post": { + "description": "create an Ingress", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "createIngressForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.Ingress" } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Ingress" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/extensions/v1beta1/jobs": { + "get": { + "description": "list or watch objects of kind Job", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "listJobForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" }, - "401": { - "description": "Unauthorized" + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.JobList" + } + } + } + }, + "post": { + "description": "create a Job", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "createJobForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.Job" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Job" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets": { + "get": { + "description": "list or watch objects of kind DaemonSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "listNamespacedDaemonSet", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.DaemonSetList" + } + } + } + }, + "post": { + "description": "create a DaemonSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "createNamespacedDaemonSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.DaemonSet" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.DaemonSet" + } + } + } + }, + "delete": { + "description": "delete collection of DaemonSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "deleteCollectionNamespacedDaemonSet", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } } } }, @@ -21319,9 +18959,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21330,7 +18967,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -21348,9 +18985,6 @@ "schema": { "$ref": "#/definitions/v1beta1.DaemonSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -21364,9 +18998,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21387,9 +19018,6 @@ "schema": { "$ref": "#/definitions/v1beta1.DaemonSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -21403,9 +19031,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21429,27 +19054,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -21465,9 +19080,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21489,9 +19101,6 @@ "schema": { "$ref": "#/definitions/v1beta1.DaemonSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -21532,9 +19141,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21545,9 +19151,6 @@ "schema": { "$ref": "#/definitions/v1beta1.DaemonSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -21561,9 +19164,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21584,9 +19184,6 @@ "schema": { "$ref": "#/definitions/v1beta1.DaemonSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -21602,9 +19199,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21626,9 +19220,6 @@ "schema": { "$ref": "#/definitions/v1beta1.DaemonSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -21671,9 +19262,6 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21696,7 +19284,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -21719,11 +19307,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentList" + "$ref": "#/definitions/v1beta1.DeploymentList" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -21737,9 +19322,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21750,7 +19332,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.Deployment" } } ], @@ -21758,11 +19340,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.Deployment" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -21776,9 +19355,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21801,7 +19377,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -21824,11 +19400,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -21861,9 +19434,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21872,7 +19442,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -21888,11 +19458,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.Deployment" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -21906,9 +19473,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21919,7 +19483,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.Deployment" } } ], @@ -21927,11 +19491,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.Deployment" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -21945,9 +19506,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -21971,27 +19529,17 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -22007,9 +19555,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -22029,11 +19574,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.Deployment" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -22074,36 +19616,28 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], "operationId": "createNamespacedDeploymentRollbackRollback", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentRollback" - } - } - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentRollback" + "$ref": "#/definitions/v1beta1.DeploymentRollback" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.DeploymentRollback" + } + }, { "uniqueItems": true, "type": "string", @@ -22140,9 +19674,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -22151,11 +19682,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.Scale" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -22169,9 +19697,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -22182,7 +19707,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.Scale" } } ], @@ -22190,11 +19715,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.Scale" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -22210,9 +19732,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -22232,11 +19751,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.Scale" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -22277,9 +19793,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -22288,11 +19801,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.Deployment" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -22306,9 +19816,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -22319,7 +19826,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.Deployment" } } ], @@ -22327,11 +19834,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.Deployment" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -22347,9 +19851,6 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], @@ -22369,11 +19870,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.Deployment" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -22403,9 +19901,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses": { + "/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers": { "get": { - "description": "list or watch objects of kind Ingress", + "description": "list or watch objects of kind HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -22416,13 +19914,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "listNamespacedIngress", + "operationId": "listNamespacedHorizontalPodAutoscaler", "parameters": [ { "uniqueItems": true, @@ -22441,7 +19936,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -22464,16 +19959,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IngressList" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscalerList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create an Ingress", + "description": "create a HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -22482,20 +19974,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "createNamespacedIngress", + "operationId": "createNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } } ], @@ -22503,16 +19992,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete collection of Ingress", + "description": "delete collection of HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -22521,13 +20007,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "deleteCollectionNamespacedIngress", + "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ { "uniqueItems": true, @@ -22546,7 +20029,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -22569,11 +20052,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -22595,9 +20075,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}": { + "/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "get": { - "description": "read the specified Ingress", + "description": "read the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -22606,18 +20086,15 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedIngress", + "operationId": "readNamespacedHorizontalPodAutoscaler", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -22633,16 +20110,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified Ingress", + "description": "replace the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -22651,20 +20125,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedIngress", + "operationId": "replaceNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } } ], @@ -22672,16 +20143,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete an Ingress", + "description": "delete a HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -22690,13 +20158,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "deleteNamespacedIngress", + "operationId": "deleteNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", @@ -22716,32 +20181,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified Ingress", + "description": "partially update the specified HorizontalPodAutoscaler", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -22752,13 +20207,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedIngress", + "operationId": "patchNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", @@ -22774,11 +20226,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -22786,7 +20235,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Ingress", + "description": "name of the HorizontalPodAutoscaler", "name": "name", "in": "path", "required": true @@ -22808,9 +20257,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status": { + "/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { "get": { - "description": "read status of the specified Ingress", + "description": "read status of the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -22819,27 +20268,21 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedIngressStatus", + "operationId": "readNamespacedHorizontalPodAutoscalerStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace status of the specified Ingress", + "description": "replace status of the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -22848,20 +20291,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedIngressStatus", + "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } } ], @@ -22869,16 +20309,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update status of the specified Ingress", + "description": "partially update status of the specified HorizontalPodAutoscaler", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -22889,13 +20326,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedIngressStatus", + "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "name": "body", @@ -22911,11 +20345,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -22923,7 +20354,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Ingress", + "description": "name of the HorizontalPodAutoscaler", "name": "name", "in": "path", "required": true @@ -22945,9 +20376,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies": { + "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses": { "get": { - "description": "list or watch objects of kind NetworkPolicy", + "description": "list or watch objects of kind Ingress", "consumes": [ "*/*" ], @@ -22958,13 +20389,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "listNamespacedNetworkPolicy", + "operationId": "listNamespacedIngress", "parameters": [ { "uniqueItems": true, @@ -22983,7 +20411,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -23006,16 +20434,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicyList" + "$ref": "#/definitions/v1beta1.IngressList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a NetworkPolicy", + "description": "create an Ingress", "consumes": [ "*/*" ], @@ -23024,20 +20449,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "createNamespacedNetworkPolicy", + "operationId": "createNamespacedIngress", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" + "$ref": "#/definitions/v1beta1.Ingress" } } ], @@ -23045,16 +20467,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" + "$ref": "#/definitions/v1beta1.Ingress" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete collection of NetworkPolicy", + "description": "delete collection of Ingress", "consumes": [ "*/*" ], @@ -23063,13 +20482,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "deleteCollectionNamespacedNetworkPolicy", + "operationId": "deleteCollectionNamespacedIngress", "parameters": [ { "uniqueItems": true, @@ -23088,7 +20504,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -23111,11 +20527,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -23137,9 +20550,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}": { + "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}": { "get": { - "description": "read the specified NetworkPolicy", + "description": "read the specified Ingress", "consumes": [ "*/*" ], @@ -23148,18 +20561,15 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedNetworkPolicy", + "operationId": "readNamespacedIngress", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -23175,16 +20585,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" + "$ref": "#/definitions/v1beta1.Ingress" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified NetworkPolicy", + "description": "replace the specified Ingress", "consumes": [ "*/*" ], @@ -23193,20 +20600,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedNetworkPolicy", + "operationId": "replaceNamespacedIngress", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" + "$ref": "#/definitions/v1beta1.Ingress" } } ], @@ -23214,16 +20618,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" + "$ref": "#/definitions/v1beta1.Ingress" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a NetworkPolicy", + "description": "delete an Ingress", "consumes": [ "*/*" ], @@ -23232,13 +20633,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "deleteNamespacedNetworkPolicy", + "operationId": "deleteNamespacedIngress", "parameters": [ { "name": "body", @@ -23258,32 +20656,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified NetworkPolicy", + "description": "partially update the specified Ingress", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -23294,13 +20682,129 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" + "tags": [ + "extensions_v1beta1" + ], + "operationId": "patchNamespacedIngress", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Ingress" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Ingress", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status": { + "get": { + "description": "read status of the specified Ingress", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedNetworkPolicy", + "operationId": "readNamespacedIngressStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Ingress" + } + } + } + }, + "put": { + "description": "replace status of the specified Ingress", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "replaceNamespacedIngressStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.Ingress" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Ingress" + } + } + } + }, + "patch": { + "description": "partially update status of the specified Ingress", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "patchNamespacedIngressStatus", "parameters": [ { "name": "body", @@ -23316,11 +20820,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" + "$ref": "#/definitions/v1beta1.Ingress" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -23328,7 +20829,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the NetworkPolicy", + "description": "name of the Ingress", "name": "name", "in": "path", "required": true @@ -23350,9 +20851,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets": { + "/apis/extensions/v1beta1/namespaces/{namespace}/jobs": { "get": { - "description": "list or watch objects of kind ReplicaSet", + "description": "list or watch objects of kind Job", "consumes": [ "*/*" ], @@ -23363,13 +20864,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "listNamespacedReplicaSet", + "operationId": "listNamespacedJob", "parameters": [ { "uniqueItems": true, @@ -23388,7 +20886,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -23411,16 +20909,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSetList" + "$ref": "#/definitions/v1beta1.JobList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a ReplicaSet", + "description": "create a Job", "consumes": [ "*/*" ], @@ -23429,20 +20924,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "createNamespacedReplicaSet", + "operationId": "createNamespacedJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" + "$ref": "#/definitions/v1beta1.Job" } } ], @@ -23450,16 +20942,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" + "$ref": "#/definitions/v1beta1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete collection of ReplicaSet", + "description": "delete collection of Job", "consumes": [ "*/*" ], @@ -23468,13 +20957,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "deleteCollectionNamespacedReplicaSet", + "operationId": "deleteCollectionNamespacedJob", "parameters": [ { "uniqueItems": true, @@ -23493,7 +20979,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -23516,11 +21002,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -23542,9 +21025,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}": { + "/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}": { "get": { - "description": "read the specified ReplicaSet", + "description": "read the specified Job", "consumes": [ "*/*" ], @@ -23553,18 +21036,15 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedReplicaSet", + "operationId": "readNamespacedJob", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -23580,16 +21060,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" + "$ref": "#/definitions/v1beta1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified ReplicaSet", + "description": "replace the specified Job", "consumes": [ "*/*" ], @@ -23598,20 +21075,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedReplicaSet", + "operationId": "replaceNamespacedJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" + "$ref": "#/definitions/v1beta1.Job" } } ], @@ -23619,16 +21093,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" + "$ref": "#/definitions/v1beta1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a ReplicaSet", + "description": "delete a Job", "consumes": [ "*/*" ], @@ -23637,13 +21108,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "deleteNamespacedReplicaSet", + "operationId": "deleteNamespacedJob", "parameters": [ { "name": "body", @@ -23663,32 +21131,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified ReplicaSet", + "description": "partially update the specified Job", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -23699,13 +21157,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedReplicaSet", + "operationId": "patchNamespacedJob", "parameters": [ { "name": "body", @@ -23721,11 +21176,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" + "$ref": "#/definitions/v1beta1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -23733,7 +21185,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ReplicaSet", + "description": "name of the Job", "name": "name", "in": "path", "required": true @@ -23755,9 +21207,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale": { + "/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status": { "get": { - "description": "read scale of the specified Scale", + "description": "read status of the specified Job", "consumes": [ "*/*" ], @@ -23766,27 +21218,21 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedReplicasetsScale", + "operationId": "readNamespacedJobStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace scale of the specified Scale", + "description": "replace status of the specified Job", "consumes": [ "*/*" ], @@ -23795,20 +21241,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedReplicasetsScale", + "operationId": "replaceNamespacedJobStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.Job" } } ], @@ -23816,16 +21259,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update scale of the specified Scale", + "description": "partially update status of the specified Job", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -23836,13 +21276,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedReplicasetsScale", + "operationId": "patchNamespacedJobStatus", "parameters": [ { "name": "body", @@ -23858,11 +21295,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.Job" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -23870,7 +21304,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Scale", + "description": "name of the Job", "name": "name", "in": "path", "required": true @@ -23892,38 +21326,71 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status": { + "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies": { "get": { - "description": "read status of the specified ReplicaSet", + "description": "list or watch objects of kind NetworkPolicy", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedReplicaSetStatus", + "operationId": "listNamespacedNetworkPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" + "$ref": "#/definitions/v1beta1.NetworkPolicyList" } - }, - "401": { - "description": "Unauthorized" } } }, - "put": { - "description": "replace status of the specified ReplicaSet", + "post": { + "description": "create a NetworkPolicy", "consumes": [ "*/*" ], @@ -23932,20 +21399,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedReplicaSetStatus", + "operationId": "createNamespacedNetworkPolicy", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" + "$ref": "#/definitions/v1beta1.NetworkPolicy" } } ], @@ -23953,65 +21417,72 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" + "$ref": "#/definitions/v1beta1.NetworkPolicy" } - }, - "401": { - "description": "Unauthorized" } } }, - "patch": { - "description": "partially update status of the specified ReplicaSet", + "delete": { + "description": "delete collection of NetworkPolicy", "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" + "*/*" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedReplicaSetStatus", + "operationId": "deleteCollectionNamespacedNetworkPolicy", "parameters": [ { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -24029,9 +21500,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale": { + "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}": { "get": { - "description": "read scale of the specified Scale", + "description": "read the specified NetworkPolicy", "consumes": [ "*/*" ], @@ -24040,27 +21511,37 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedReplicationcontrollersScale", + "operationId": "readNamespacedNetworkPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.NetworkPolicy" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace scale of the specified Scale", + "description": "replace the specified NetworkPolicy", "consumes": [ "*/*" ], @@ -24069,20 +21550,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedReplicationcontrollersScale", + "operationId": "replaceNamespacedNetworkPolicy", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.NetworkPolicy" } } ], @@ -24090,16 +21568,60 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.NetworkPolicy" } + } + } + }, + "delete": { + "description": "delete a NetworkPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "deleteNamespacedNetworkPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" }, - "401": { - "description": "Unauthorized" + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } } } }, "patch": { - "description": "partially update scale of the specified Scale", + "description": "partially update the specified NetworkPolicy", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -24110,13 +21632,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedReplicationcontrollersScale", + "operationId": "patchNamespacedNetworkPolicy", "parameters": [ { "name": "body", @@ -24132,11 +21651,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" + "$ref": "#/definitions/v1beta1.NetworkPolicy" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -24144,7 +21660,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Scale", + "description": "name of the NetworkPolicy", "name": "name", "in": "path", "required": true @@ -24166,86 +21682,9 @@ } ] }, - "/apis/extensions/v1beta1/networkpolicies": { - "get": { - "description": "list or watch objects of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNetworkPolicyForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/podsecuritypolicies": { + "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets": { "get": { - "description": "list or watch objects of kind PodSecurityPolicy", + "description": "list or watch objects of kind ReplicaSet", "consumes": [ "*/*" ], @@ -24256,13 +21695,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "listPodSecurityPolicy", + "operationId": "listNamespacedReplicaSet", "parameters": [ { "uniqueItems": true, @@ -24281,7 +21717,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -24304,16 +21740,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicyList" + "$ref": "#/definitions/v1beta1.ReplicaSetList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a PodSecurityPolicy", + "description": "create a ReplicaSet", "consumes": [ "*/*" ], @@ -24322,20 +21755,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "createPodSecurityPolicy", + "operationId": "createNamespacedReplicaSet", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1beta1.ReplicaSet" } } ], @@ -24343,16 +21773,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1beta1.ReplicaSet" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete collection of PodSecurityPolicy", + "description": "delete collection of ReplicaSet", "consumes": [ "*/*" ], @@ -24361,13 +21788,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "deleteCollectionPodSecurityPolicy", + "operationId": "deleteCollectionNamespacedReplicaSet", "parameters": [ { "uniqueItems": true, @@ -24386,7 +21810,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -24409,15 +21833,20 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -24427,9 +21856,9 @@ } ] }, - "/apis/extensions/v1beta1/podsecuritypolicies/{name}": { + "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}": { "get": { - "description": "read the specified PodSecurityPolicy", + "description": "read the specified ReplicaSet", "consumes": [ "*/*" ], @@ -24438,18 +21867,15 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "readPodSecurityPolicy", + "operationId": "readNamespacedReplicaSet", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -24465,16 +21891,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1beta1.ReplicaSet" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified PodSecurityPolicy", + "description": "replace the specified ReplicaSet", "consumes": [ "*/*" ], @@ -24483,20 +21906,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "replacePodSecurityPolicy", + "operationId": "replaceNamespacedReplicaSet", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1beta1.ReplicaSet" } } ], @@ -24504,16 +21924,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1beta1.ReplicaSet" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a PodSecurityPolicy", + "description": "delete a ReplicaSet", "consumes": [ "*/*" ], @@ -24522,13 +21939,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "deletePodSecurityPolicy", + "operationId": "deleteNamespacedReplicaSet", "parameters": [ { "name": "body", @@ -24548,32 +21962,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified PodSecurityPolicy", + "description": "partially update the specified ReplicaSet", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -24584,13 +21988,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "patchPodSecurityPolicy", + "operationId": "patchNamespacedReplicaSet", "parameters": [ { "name": "body", @@ -24606,11 +22007,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1beta1.ReplicaSet" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -24618,11 +22016,19 @@ { "uniqueItems": true, "type": "string", - "description": "name of the PodSecurityPolicy", + "description": "name of the ReplicaSet", "name": "name", "in": "path", "required": true }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -24632,176 +22038,87 @@ } ] }, - "/apis/extensions/v1beta1/replicasets": { + "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale": { "get": { - "description": "list or watch objects of kind ReplicaSet", + "description": "read scale of the specified Scale", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf" ], "tags": [ "extensions_v1beta1" ], - "operationId": "listReplicaSetForAllNamespaces", + "operationId": "readNamespacedReplicasetsScale", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSetList" + "$ref": "#/definitions/v1beta1.Scale" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/thirdpartyresources": { - "get": { - "description": "list or watch objects of kind ThirdPartyResource", + "put": { + "description": "replace scale of the specified Scale", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf" ], "tags": [ "extensions_v1beta1" ], - "operationId": "listThirdPartyResource", + "operationId": "replaceNamespacedReplicasetsScale", "parameters": [ { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.Scale" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResourceList" + "$ref": "#/definitions/v1beta1.Scale" } - }, - "401": { - "description": "Unauthorized" } } }, - "post": { - "description": "create a ThirdPartyResource", + "patch": { + "description": "partially update scale of the specified Scale", "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "createThirdPartyResource", + "operationId": "patchNamespacedReplicasetsScale", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -24809,16 +22126,40 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" + "$ref": "#/definitions/v1beta1.Scale" } - }, - "401": { - "description": "Unauthorized" } } }, - "delete": { - "description": "delete collection of ThirdPartyResource", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Scale", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status": { + "get": { + "description": "read status of the specified ReplicaSet", "consumes": [ "*/*" ], @@ -24827,75 +22168,21 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "deleteCollectionThirdPartyResource", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], + "operationId": "readNamespacedReplicaSetStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1beta1.ReplicaSet" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/thirdpartyresources/{name}": { - "get": { - "description": "read the specified ThirdPartyResource", + "put": { + "description": "replace status of the specified ReplicaSet", "consumes": [ "*/*" ], @@ -24904,65 +22191,53 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "readThirdPartyResource", + "operationId": "replaceNamespacedReplicaSetStatus", "parameters": [ { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.ReplicaSet" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" + "$ref": "#/definitions/v1beta1.ReplicaSet" } - }, - "401": { - "description": "Unauthorized" } } }, - "put": { - "description": "replace the specified ThirdPartyResource", + "patch": { + "description": "partially update status of the specified ReplicaSet", "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "replaceThirdPartyResource", + "operationId": "patchNamespacedReplicaSetStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -24970,16 +22245,40 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" + "$ref": "#/definitions/v1beta1.ReplicaSet" } - }, - "401": { - "description": "Unauthorized" } } }, - "delete": { - "description": "delete a ThirdPartyResource", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ReplicaSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale": { + "get": { + "description": "read scale of the specified Scale", "consumes": [ "*/*" ], @@ -24988,58 +22287,54 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" + "tags": [ + "extensions_v1beta1" + ], + "operationId": "readNamespacedReplicationcontrollersScale", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Scale" + } + } + } + }, + "put": { + "description": "replace scale of the specified Scale", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "tags": [ "extensions_v1beta1" ], - "operationId": "deleteThirdPartyResource", + "operationId": "replaceNamespacedReplicationcontrollersScale", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1beta1.Scale" } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1beta1.Scale" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified ThirdPartyResource", + "description": "partially update scale of the specified Scale", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -25050,13 +22345,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ "extensions_v1beta1" ], - "operationId": "patchThirdPartyResource", + "operationId": "patchNamespacedReplicationcontrollersScale", "parameters": [ { "name": "body", @@ -25072,11 +22364,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" + "$ref": "#/definitions/v1beta1.Scale" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -25084,11 +22373,19 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ThirdPartyResource", + "description": "name of the Scale", "name": "name", "in": "path", "required": true }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -25098,113 +22395,442 @@ } ] }, - "/apis/extensions/v1beta1/watch/daemonsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, + "/apis/extensions/v1beta1/networkpolicies": { + "get": { + "description": "list or watch objects of kind NetworkPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "listNetworkPolicyForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.NetworkPolicyList" + } + } + } + }, + "post": { + "description": "create a NetworkPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "createNetworkPolicyForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.NetworkPolicy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.NetworkPolicy" + } + } + } + }, + "parameters": [ { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/extensions/v1beta1/watch/deployments": { + "/apis/extensions/v1beta1/podsecuritypolicies": { + "get": { + "description": "list or watch objects of kind PodSecurityPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "listPodSecurityPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicyList" + } + } + } + }, + "post": { + "description": "create a PodSecurityPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "createPodSecurityPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + } + } + } + }, + "delete": { + "description": "delete collection of PodSecurityPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "deleteCollectionPodSecurityPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/extensions/v1beta1/watch/ingresses": { + "/apis/extensions/v1beta1/podsecuritypolicies/{name}": { + "get": { + "description": "read the specified PodSecurityPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "readPodSecurityPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + } + } + } + }, + "put": { + "description": "replace the specified PodSecurityPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "replacePodSecurityPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + } + } + } + }, + "delete": { + "description": "delete a PodSecurityPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "deletePodSecurityPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified PodSecurityPolicy", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "patchPodSecurityPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + } + } + } + }, "parameters": [ { "uniqueItems": true, "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + "description": "name of the PodSecurityPolicy", + "name": "name", + "in": "path", + "required": true }, { "uniqueItems": true, @@ -25212,85 +22838,456 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, + "/apis/extensions/v1beta1/replicasets": { + "get": { + "description": "list or watch objects of kind ReplicaSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "listReplicaSetForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ReplicaSetList" + } + } + } + }, + "post": { + "description": "create a ReplicaSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "createReplicaSetForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.ReplicaSet" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ReplicaSet" + } + } + } + }, + "parameters": [ { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, + } + ] + }, + "/apis/extensions/v1beta1/thirdpartyresources": { + "get": { + "description": "list or watch objects of kind ThirdPartyResource", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "listThirdPartyResource", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ThirdPartyResourceList" + } + } + } + }, + "post": { + "description": "create a ThirdPartyResource", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "createThirdPartyResource", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.ThirdPartyResource" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ThirdPartyResource" + } + } + } + }, + "delete": { + "description": "delete collection of ThirdPartyResource", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "deleteCollectionThirdPartyResource", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", "in": "query" - }, + } + ] + }, + "/apis/extensions/v1beta1/thirdpartyresources/{name}": { + "get": { + "description": "read the specified ThirdPartyResource", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "readThirdPartyResource", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ThirdPartyResource" + } + } + } + }, + "put": { + "description": "replace the specified ThirdPartyResource", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "replaceThirdPartyResource", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.ThirdPartyResource" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ThirdPartyResource" + } + } + } + }, + "delete": { + "description": "delete a ThirdPartyResource", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "deleteThirdPartyResource", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified ThirdPartyResource", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "patchThirdPartyResource", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ThirdPartyResource" + } + } + } + }, + "parameters": [ { "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" + "type": "string", + "description": "name of the ThirdPartyResource", + "name": "name", + "in": "path", + "required": true }, { "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", "in": "query" } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name}": { + "/apis/extensions/v1beta1/watch/daemonsets": { "parameters": [ { "uniqueItems": true, @@ -25306,22 +23303,6 @@ "name": "labelSelector", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -25332,7 +23313,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -25352,7 +23333,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments": { + "/apis/extensions/v1beta1/watch/deployments": { "parameters": [ { "uniqueItems": true, @@ -25368,14 +23349,6 @@ "name": "labelSelector", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -25386,7 +23359,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -25406,7 +23379,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { + "/apis/extensions/v1beta1/watch/horizontalpodautoscalers": { "parameters": [ { "uniqueItems": true, @@ -25422,22 +23395,6 @@ "name": "labelSelector", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -25448,7 +23405,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -25468,7 +23425,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses": { + "/apis/extensions/v1beta1/watch/ingresses": { "parameters": [ { "uniqueItems": true, @@ -25484,14 +23441,6 @@ "name": "labelSelector", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -25502,7 +23451,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -25522,7 +23471,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}": { + "/apis/extensions/v1beta1/watch/jobs": { "parameters": [ { "uniqueItems": true, @@ -25538,22 +23487,6 @@ "name": "labelSelector", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Ingress", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -25564,7 +23497,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -25584,7 +23517,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets": { "parameters": [ { "uniqueItems": true, @@ -25618,7 +23551,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -25638,7 +23571,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name}": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name}": { "parameters": [ { "uniqueItems": true, @@ -25657,7 +23590,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the NetworkPolicy", + "description": "name of the DaemonSet", "name": "name", "in": "path", "required": true @@ -25680,7 +23613,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -25700,7 +23633,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments": { "parameters": [ { "uniqueItems": true, @@ -25734,7 +23667,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -25754,7 +23687,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { "parameters": [ { "uniqueItems": true, @@ -25773,7 +23706,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ReplicaSet", + "description": "name of the Deployment", "name": "name", "in": "path", "required": true @@ -25796,7 +23729,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -25816,7 +23749,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/networkpolicies": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers": { "parameters": [ { "uniqueItems": true, @@ -25832,6 +23765,14 @@ "name": "labelSelector", "in": "query" }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -25842,7 +23783,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -25862,7 +23803,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/podsecuritypolicies": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "parameters": [ { "uniqueItems": true, @@ -25878,6 +23819,22 @@ "name": "labelSelector", "in": "query" }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the HorizontalPodAutoscaler", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -25888,7 +23845,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -25908,7 +23865,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/podsecuritypolicies/{name}": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses": { "parameters": [ { "uniqueItems": true, @@ -25927,8 +23884,8 @@ { "uniqueItems": true, "type": "string", - "description": "name of the PodSecurityPolicy", - "name": "name", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", "in": "path", "required": true }, @@ -25942,7 +23899,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -25962,7 +23919,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/replicasets": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}": { "parameters": [ { "uniqueItems": true, @@ -25978,6 +23935,22 @@ "name": "labelSelector", "in": "query" }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Ingress", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -25988,7 +23961,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -26008,7 +23981,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/thirdpartyresources": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs": { "parameters": [ { "uniqueItems": true, @@ -26024,6 +23997,14 @@ "name": "labelSelector", "in": "query" }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -26034,7 +24015,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -26054,7 +24035,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/thirdpartyresources/{name}": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs/{name}": { "parameters": [ { "uniqueItems": true, @@ -26073,11 +24054,19 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ThirdPartyResource", + "description": "name of the Job", "name": "name", "in": "path", "required": true }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -26088,7 +24077,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -26108,247 +24097,22 @@ } ] }, - "/apis/policy/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/policy/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets": { - "get": { - "description": "list or watch objects of kind PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "listNamespacedPodDisruptionBudget", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "createNamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "deleteCollectionNamespacedPodDisruptionBudget", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies": { "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, { "uniqueItems": true, "type": "string", @@ -26363,201 +24127,50 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ] }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "get": { - "description": "read the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "readNamespacedPodDisruptionBudget", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "replaceNamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "deleteNamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified PodDisruptionBudget", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "patchNamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name}": { "parameters": [ { "uniqueItems": true, "type": "string", - "description": "name of the PodDisruptionBudget", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the NetworkPolicy", "name": "name", "in": "path", "required": true @@ -26576,125 +24189,104 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } ] }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { - "get": { - "description": "read status of the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "readNamespacedPodDisruptionBudgetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "replaceNamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified PodDisruptionBudget", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "patchNamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } - }, + ] + }, + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}": { "parameters": [ { "uniqueItems": true, "type": "string", - "description": "name of the PodDisruptionBudget", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ReplicaSet", "name": "name", "in": "path", "required": true @@ -26713,41 +24305,77 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ] }, - "/apis/policy/v1beta1/poddisruptionbudgets": { - "get": { - "description": "list or watch objects of kind PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "listPodDisruptionBudgetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/extensions/v1beta1/watch/networkpolicies": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } - }, + ] + }, + "/apis/extensions/v1beta1/watch/podsecuritypolicies": { "parameters": [ { "uniqueItems": true, @@ -26773,7 +24401,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -26793,7 +24421,7 @@ } ] }, - "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets": { + "/apis/extensions/v1beta1/watch/podsecuritypolicies/{name}": { "parameters": [ { "uniqueItems": true, @@ -26812,8 +24440,8 @@ { "uniqueItems": true, "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", + "description": "name of the PodSecurityPolicy", + "name": "name", "in": "path", "required": true }, @@ -26827,7 +24455,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -26847,7 +24475,7 @@ } ] }, - "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/extensions/v1beta1/watch/replicasets": { "parameters": [ { "uniqueItems": true, @@ -26866,18 +24494,48 @@ { "uniqueItems": true, "type": "string", - "description": "name of the PodDisruptionBudget", - "name": "name", - "in": "path", - "required": true + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" }, { "uniqueItems": true, "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/extensions/v1beta1/watch/thirdpartyresources": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" }, { "uniqueItems": true, @@ -26889,7 +24547,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -26909,7 +24567,7 @@ } ] }, - "/apis/policy/v1beta1/watch/poddisruptionbudgets": { + "/apis/extensions/v1beta1/watch/thirdpartyresources/{name}": { "parameters": [ { "uniqueItems": true, @@ -26925,6 +24583,14 @@ "name": "labelSelector", "in": "query" }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ThirdPartyResource", + "name": "name", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -26935,7 +24601,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -26955,7 +24621,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/": { + "/apis/policy/": { "get": { "description": "get information of a group", "consumes": [ @@ -26968,27 +24634,21 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization" + "policy" ], "operationId": "getAPIGroup", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/unversioned.APIGroup" } - }, - "401": { - "description": "Unauthorized" } } } }, - "/apis/rbac.authorization.k8s.io/v1alpha1/": { + "/apis/policy/v1beta1/": { "get": { "description": "get available resources", "consumes": [ @@ -27001,29 +24661,23 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "policy_v1beta1" ], "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/unversioned.APIResourceList" } - }, - "401": { - "description": "Unauthorized" } } } }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings": { + "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets": { "get": { - "description": "list or watch objects of kind ClusterRoleBinding", + "description": "list or watch objects of kind PodDisruptionBudget", "consumes": [ "*/*" ], @@ -27034,13 +24688,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "policy_v1beta1" ], - "operationId": "listClusterRoleBinding", + "operationId": "listNamespacedPodDisruptionBudget", "parameters": [ { "uniqueItems": true, @@ -27059,7 +24710,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -27082,16 +24733,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBindingList" + "$ref": "#/definitions/v1beta1.PodDisruptionBudgetList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a ClusterRoleBinding", + "description": "create a PodDisruptionBudget", "consumes": [ "*/*" ], @@ -27100,20 +24748,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "policy_v1beta1" ], - "operationId": "createClusterRoleBinding", + "operationId": "createNamespacedPodDisruptionBudget", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" } } ], @@ -27121,16 +24766,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete collection of ClusterRoleBinding", + "description": "delete collection of PodDisruptionBudget", "consumes": [ "*/*" ], @@ -27139,13 +24781,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "policy_v1beta1" ], - "operationId": "deleteCollectionClusterRoleBinding", + "operationId": "deleteCollectionNamespacedPodDisruptionBudget", "parameters": [ { "uniqueItems": true, @@ -27164,7 +24803,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -27187,15 +24826,20 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -27205,9 +24849,9 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}": { + "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}": { "get": { - "description": "read the specified ClusterRoleBinding", + "description": "read the specified PodDisruptionBudget", "consumes": [ "*/*" ], @@ -27216,27 +24860,37 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "policy_v1beta1" + ], + "operationId": "readNamespacedPodDisruptionBudget", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } ], - "operationId": "readClusterRoleBinding", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified ClusterRoleBinding", + "description": "replace the specified PodDisruptionBudget", "consumes": [ "*/*" ], @@ -27245,20 +24899,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "policy_v1beta1" ], - "operationId": "replaceClusterRoleBinding", + "operationId": "replaceNamespacedPodDisruptionBudget", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" } } ], @@ -27266,16 +24917,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a ClusterRoleBinding", + "description": "delete a PodDisruptionBudget", "consumes": [ "*/*" ], @@ -27284,13 +24932,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "policy_v1beta1" ], - "operationId": "deleteClusterRoleBinding", + "operationId": "deleteNamespacedPodDisruptionBudget", "parameters": [ { "name": "body", @@ -27310,32 +24955,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified ClusterRoleBinding", + "description": "partially update the specified PodDisruptionBudget", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -27346,13 +24981,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "policy_v1beta1" ], - "operationId": "patchClusterRoleBinding", + "operationId": "patchNamespacedPodDisruptionBudget", "parameters": [ { "name": "body", @@ -27368,11 +25000,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -27380,11 +25009,19 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ClusterRoleBinding", + "description": "name of the PodDisruptionBudget", "name": "name", "in": "path", "required": true }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -27394,77 +25031,32 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles": { + "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { "get": { - "description": "list or watch objects of kind ClusterRole", + "description": "read status of the specified PodDisruptionBudget", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf" ], "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } + "policy_v1beta1" ], + "operationId": "readNamespacedPodDisruptionBudgetStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleList" + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" } - }, - "401": { - "description": "Unauthorized" } } }, - "post": { - "description": "create a ClusterRole", + "put": { + "description": "replace status of the specified PodDisruptionBudget", "consumes": [ "*/*" ], @@ -27473,20 +25065,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "policy_v1beta1" ], - "operationId": "createClusterRole", + "operationId": "replaceNamespacedPodDisruptionBudgetStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" } } ], @@ -27494,31 +25083,90 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" } - }, - "401": { - "description": "Unauthorized" } } }, - "delete": { - "description": "delete collection of ClusterRole", + "patch": { + "description": "partially update status of the specified PodDisruptionBudget", "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "policy_v1beta1" + ], + "operationId": "patchNamespacedPodDisruptionBudgetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PodDisruptionBudget", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/policy/v1beta1/poddisruptionbudgets": { + "get": { + "description": "list or watch objects of kind PodDisruptionBudget", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "policy_v1beta1" ], - "operationId": "deleteCollectionClusterRole", + "operationId": "listPodDisruptionBudgetForAllNamespaces", "parameters": [ { "uniqueItems": true, @@ -27537,7 +25185,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -27560,56 +25208,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}": { - "get": { - "description": "read the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" + "$ref": "#/definitions/v1beta1.PodDisruptionBudgetList" } - }, - "401": { - "description": "Unauthorized" } } }, - "put": { - "description": "replace the specified ClusterRole", + "post": { + "description": "create a PodDisruptionBudget", "consumes": [ "*/*" ], @@ -27618,20 +25223,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "policy_v1beta1" ], - "operationId": "replaceClusterRole", + "operationId": "createPodDisruptionBudgetForAllNamespaces", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" } } ], @@ -27639,137 +25241,240 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" } - }, - "401": { - "description": "Unauthorized" } } }, - "delete": { - "description": "delete a ClusterRole", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PodDisruptionBudget", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/policy/v1beta1/watch/poddisruptionbudgets": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/storage.k8s.io/": { + "get": { + "description": "get information of a group", "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } + "storage" ], + "operationId": "getAPIGroup", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.APIGroup" } - }, - "401": { - "description": "Unauthorized" } } - }, - "patch": { - "description": "partially update the specified ClusterRole", + } + }, + "/apis/storage.k8s.io/v1beta1/": { + "get": { + "description": "get available resources", "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } + "storage_v1beta1" ], + "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" + "$ref": "#/definitions/unversioned.APIResourceList" } - }, - "401": { - "description": "Unauthorized" } } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] + } }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings": { + "/apis/storage.k8s.io/v1beta1/storageclasses": { "get": { - "description": "list or watch objects of kind RoleBinding", + "description": "list or watch objects of kind StorageClass", "consumes": [ "*/*" ], @@ -27780,13 +25485,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "storage_v1beta1" ], - "operationId": "listNamespacedRoleBinding", + "operationId": "listStorageClass", "parameters": [ { "uniqueItems": true, @@ -27805,7 +25507,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -27828,16 +25530,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.RoleBindingList" + "$ref": "#/definitions/v1beta1.StorageClassList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a RoleBinding", + "description": "create a StorageClass", "consumes": [ "*/*" ], @@ -27846,20 +25545,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "storage_v1beta1" ], - "operationId": "createNamespacedRoleBinding", + "operationId": "createStorageClass", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" + "$ref": "#/definitions/v1beta1.StorageClass" } } ], @@ -27867,16 +25563,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" + "$ref": "#/definitions/v1beta1.StorageClass" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete collection of RoleBinding", + "description": "delete collection of StorageClass", "consumes": [ "*/*" ], @@ -27885,13 +25578,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "storage_v1beta1" ], - "operationId": "deleteCollectionNamespacedRoleBinding", + "operationId": "deleteCollectionStorageClass", "parameters": [ { "uniqueItems": true, @@ -27910,7 +25600,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -27933,23 +25623,12 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -27959,9 +25638,9 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}": { + "/apis/storage.k8s.io/v1beta1/storageclasses/{name}": { "get": { - "description": "read the specified RoleBinding", + "description": "read the specified StorageClass", "consumes": [ "*/*" ], @@ -27970,27 +25649,37 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "storage_v1beta1" + ], + "operationId": "readStorageClass", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } ], - "operationId": "readNamespacedRoleBinding", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" + "$ref": "#/definitions/v1beta1.StorageClass" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified RoleBinding", + "description": "replace the specified StorageClass", "consumes": [ "*/*" ], @@ -27999,20 +25688,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "storage_v1beta1" ], - "operationId": "replaceNamespacedRoleBinding", + "operationId": "replaceStorageClass", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" + "$ref": "#/definitions/v1beta1.StorageClass" } } ], @@ -28020,16 +25706,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" + "$ref": "#/definitions/v1beta1.StorageClass" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a RoleBinding", + "description": "delete a StorageClass", "consumes": [ "*/*" ], @@ -28038,13 +25721,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "storage_v1beta1" ], - "operationId": "deleteNamespacedRoleBinding", + "operationId": "deleteStorageClass", "parameters": [ { "name": "body", @@ -28064,32 +25744,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified RoleBinding", + "description": "partially update the specified StorageClass", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -28100,13 +25770,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "storage_v1beta1" ], - "operationId": "patchNamespacedRoleBinding", + "operationId": "patchStorageClass", "parameters": [ { "name": "body", @@ -28122,11 +25789,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" + "$ref": "#/definitions/v1beta1.StorageClass" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -28134,7 +25798,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the RoleBinding", + "description": "name of the StorageClass", "name": "name", "in": "path", "required": true @@ -28142,10 +25806,27 @@ { "uniqueItems": true, "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/storage.k8s.io/v1beta1/watch/storageclasses": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" }, { "uniqueItems": true, @@ -28153,29 +25834,219 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ] }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "/apis/storage.k8s.io/v1beta1/watch/storageclasses/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the StorageClass", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/": { + "get": { + "description": "list supported server API versions", + "consumes": [ + "application/json" ], - "schemes": [ - "https" + "produces": [ + "application/json" ], "tags": [ - "rbacAuthorization_v1alpha1" + "oapi" ], - "operationId": "listNamespacedRole", + "operationId": "getVersion", + "responses": { + "default": { + "description": "Default Response." + } + } + } + }, + "/oapi/v1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "getAPIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.APIResourceList" + } + } + } + } + }, + "/oapi/v1/appliedclusterresourcequotas": { + "get": { + "description": "list objects of kind AppliedClusterResourceQuota", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listAppliedClusterResourceQuotaForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.AppliedClusterResourceQuotaList" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/buildconfigs": { + "get": { + "description": "list or watch objects of kind BuildConfig", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listBuildConfigForAllNamespaces", "parameters": [ { "uniqueItems": true, @@ -28194,7 +26065,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -28217,16 +26088,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.RoleList" + "$ref": "#/definitions/v1.BuildConfigList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a Role", + "description": "create a BuildConfig", "consumes": [ "*/*" ], @@ -28235,20 +26103,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "oapi" ], - "operationId": "createNamespacedRole", + "operationId": "createBuildConfigForAllNamespaces", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.Role" + "$ref": "#/definitions/v1.BuildConfig" } } ], @@ -28256,16 +26121,86 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.Role" + "$ref": "#/definitions/v1.BuildConfig" } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/builds": { + "get": { + "description": "list or watch objects of kind Build", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listBuildForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" }, - "401": { - "description": "Unauthorized" + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.BuildList" + } } } }, - "delete": { - "description": "delete collection of Role", + "post": { + "description": "create a Build", "consumes": [ "*/*" ], @@ -28274,13 +26209,56 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" + "tags": [ + "oapi" + ], + "operationId": "createBuildForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Build" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Build" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/clusternetworks": { + "get": { + "description": "list or watch objects of kind ClusterNetwork", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "tags": [ - "rbacAuthorization_v1alpha1" + "oapi" ], - "operationId": "deleteCollectionNamespacedRole", + "operationId": "listClusterNetwork", "parameters": [ { "uniqueItems": true, @@ -28299,7 +26277,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -28322,23 +26300,105 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.ClusterNetworkList" + } + } + } + }, + "post": { + "description": "create a ClusterNetwork", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createClusterNetwork", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterNetwork" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterNetwork" } + } + } + }, + "delete": { + "description": "delete collection of ClusterNetwork", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionClusterNetwork", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" }, - "401": { - "description": "Unauthorized" + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -28348,9 +26408,9 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}": { + "/oapi/v1/clusternetworks/{name}": { "get": { - "description": "read the specified Role", + "description": "read the specified ClusterNetwork", "consumes": [ "*/*" ], @@ -28359,27 +26419,37 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "oapi" + ], + "operationId": "readClusterNetwork", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } ], - "operationId": "readNamespacedRole", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.Role" + "$ref": "#/definitions/v1.ClusterNetwork" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified Role", + "description": "replace the specified ClusterNetwork", "consumes": [ "*/*" ], @@ -28388,20 +26458,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "oapi" ], - "operationId": "replaceNamespacedRole", + "operationId": "replaceClusterNetwork", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.Role" + "$ref": "#/definitions/v1.ClusterNetwork" } } ], @@ -28409,16 +26476,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.Role" + "$ref": "#/definitions/v1.ClusterNetwork" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a Role", + "description": "delete a ClusterNetwork", "consumes": [ "*/*" ], @@ -28427,13 +26491,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "oapi" ], - "operationId": "deleteNamespacedRole", + "operationId": "deleteClusterNetwork", "parameters": [ { "name": "body", @@ -28453,32 +26514,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified Role", + "description": "partially update the specified ClusterNetwork", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -28489,13 +26540,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "oapi" ], - "operationId": "patchNamespacedRole", + "operationId": "patchClusterNetwork", "parameters": [ { "name": "body", @@ -28511,11 +26559,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.Role" + "$ref": "#/definitions/v1.ClusterNetwork" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -28523,19 +26568,11 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Role", + "description": "name of the ClusterNetwork", "name": "name", "in": "path", "required": true }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -28545,9 +26582,9 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings": { + "/oapi/v1/clusterpolicies": { "get": { - "description": "list or watch objects of kind RoleBinding", + "description": "list or watch objects of kind ClusterPolicy", "consumes": [ "*/*" ], @@ -28558,213 +26595,320 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1alpha1" + "oapi" + ], + "operationId": "listClusterPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } ], - "operationId": "listRoleBindingForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.RoleBindingList" + "$ref": "#/definitions/v1.ClusterPolicyList" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/roles": { - "get": { - "description": "list or watch objects of kind Role", + "post": { + "description": "create a ClusterPolicy", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf" ], "tags": [ - "rbacAuthorization_v1alpha1" + "oapi" ], - "operationId": "listRoleForAllNamespaces", - "responses": { - "200": { - "description": "OK", + "operationId": "createClusterPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.RoleList" + "$ref": "#/definitions/v1.ClusterPolicy" } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterPolicy" + } + } + } + }, + "delete": { + "description": "delete collection of ClusterPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionClusterPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" }, - "401": { - "description": "Unauthorized" + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" + "/oapi/v1/clusterpolicies/{name}": { + "get": { + "description": "read the specified ClusterPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readClusterPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterPolicy" + } + } } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name}": { + }, + "put": { + "description": "replace the specified ClusterPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceClusterPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterPolicy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterPolicy" + } + } + } + }, + "delete": { + "description": "delete a ClusterPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteClusterPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified ClusterPolicy", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchClusterPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterPolicy" + } + } + } + }, "parameters": [ { "uniqueItems": true, "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", + "description": "name of the ClusterPolicy", "name": "name", "in": "path", "required": true @@ -28775,490 +26919,352 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles": { + "/oapi/v1/clusterpolicybindings": { + "get": { + "description": "list or watch objects of kind ClusterPolicyBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listClusterPolicyBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterPolicyBindingList" + } + } + } + }, + "post": { + "description": "create a ClusterPolicyBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createClusterPolicyBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterPolicyBinding" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterPolicyBinding" + } + } + } + }, + "delete": { + "description": "delete collection of ClusterPolicyBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionClusterPolicyBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/": { + "/oapi/v1/clusterpolicybindings/{name}": { "get": { - "description": "get available resources", + "description": "read the specified ClusterPolicyBinding", "consumes": [ + "*/*" + ], + "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], + "tags": [ + "oapi" + ], + "operationId": "readClusterPolicyBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterPolicyBinding" + } + } + } + }, + "put": { + "description": "replace the specified ClusterPolicyBinding", + "consumes": [ + "*/*" + ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" + ], + "operationId": "replaceClusterPolicyBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterPolicyBinding" + } + } ], - "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.ClusterPolicyBinding" + } + } + } + }, + "delete": { + "description": "delete a ClusterPolicyBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteClusterPolicyBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" } }, - "401": { - "description": "Unauthorized" + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } } } - } + }, + "patch": { + "description": "partially update the specified ClusterPolicyBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchClusterPolicyBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterPolicyBinding" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterPolicyBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings": { + "/oapi/v1/clusterresourcequotas": { "get": { - "description": "list or watch objects of kind ClusterRoleBinding", + "description": "list or watch objects of kind ClusterResourceQuota", "consumes": [ "*/*" ], @@ -29269,13 +27275,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "listClusterRoleBinding", + "operationId": "listClusterResourceQuota", "parameters": [ { "uniqueItems": true, @@ -29294,7 +27297,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -29317,16 +27320,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBindingList" + "$ref": "#/definitions/v1.ClusterResourceQuotaList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a ClusterRoleBinding", + "description": "create a ClusterResourceQuota", "consumes": [ "*/*" ], @@ -29335,20 +27335,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "createClusterRoleBinding", + "operationId": "createClusterResourceQuota", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ClusterResourceQuota" } } ], @@ -29356,16 +27353,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ClusterResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete collection of ClusterRoleBinding", + "description": "delete collection of ClusterResourceQuota", "consumes": [ "*/*" ], @@ -29374,13 +27368,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "deleteCollectionClusterRoleBinding", + "operationId": "deleteCollectionClusterResourceQuota", "parameters": [ { "uniqueItems": true, @@ -29399,7 +27390,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -29422,11 +27413,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -29440,9 +27428,9 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}": { + "/oapi/v1/clusterresourcequotas/{name}": { "get": { - "description": "read the specified ClusterRoleBinding", + "description": "read the specified ClusterResourceQuota", "consumes": [ "*/*" ], @@ -29451,27 +27439,37 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" + ], + "operationId": "readClusterResourceQuota", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } ], - "operationId": "readClusterRoleBinding", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ClusterResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified ClusterRoleBinding", + "description": "replace the specified ClusterResourceQuota", "consumes": [ "*/*" ], @@ -29480,20 +27478,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "replaceClusterRoleBinding", + "operationId": "replaceClusterResourceQuota", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ClusterResourceQuota" } } ], @@ -29501,16 +27496,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ClusterResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a ClusterRoleBinding", + "description": "delete a ClusterResourceQuota", "consumes": [ "*/*" ], @@ -29519,13 +27511,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "deleteClusterRoleBinding", + "operationId": "deleteClusterResourceQuota", "parameters": [ { "name": "body", @@ -29545,32 +27534,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified ClusterRoleBinding", + "description": "partially update the specified ClusterResourceQuota", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -29581,13 +27560,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "patchClusterRoleBinding", + "operationId": "patchClusterResourceQuota", "parameters": [ { "name": "body", @@ -29603,11 +27579,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ClusterResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -29615,7 +27588,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ClusterRoleBinding", + "description": "name of the ClusterResourceQuota", "name": "name", "in": "path", "required": true @@ -29629,99 +27602,87 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles": { + "/oapi/v1/clusterresourcequotas/{name}/status": { "get": { - "description": "list or watch objects of kind ClusterRole", + "description": "read status of the specified ClusterResourceQuota", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" + "tags": [ + "oapi" + ], + "operationId": "readClusterResourceQuotaStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterResourceQuota" + } + } + } + }, + "put": { + "description": "replace status of the specified ClusterResourceQuota", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "listClusterRole", + "operationId": "replaceClusterResourceQuotaStatus", "parameters": [ { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterResourceQuota" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleList" + "$ref": "#/definitions/v1.ClusterResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, - "post": { - "description": "create a ClusterRole", + "patch": { + "description": "partially update status of the specified ClusterResourceQuota", "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "createClusterRole", + "operationId": "patchClusterResourceQuotaStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -29729,31 +27690,46 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" + "$ref": "#/definitions/v1.ClusterResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } }, - "delete": { - "description": "delete collection of ClusterRole", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterResourceQuota", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/clusterrolebindings": { + "get": { + "description": "list objects of kind ClusterRoleBinding", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "deleteCollectionClusterRole", + "operationId": "listClusterRoleBinding", "parameters": [ { "uniqueItems": true, @@ -29772,7 +27748,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -29795,11 +27771,41 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.ClusterRoleBindingList" + } + } + } + }, + "post": { + "description": "create a ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -29813,9 +27819,9 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}": { + "/oapi/v1/clusterrolebindings/{name}": { "get": { - "description": "read the specified ClusterRole", + "description": "read the specified ClusterRoleBinding", "consumes": [ "*/*" ], @@ -29824,27 +27830,21 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "readClusterRole", + "operationId": "readClusterRoleBinding", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" + "$ref": "#/definitions/v1.ClusterRoleBinding" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified ClusterRole", + "description": "replace the specified ClusterRoleBinding", "consumes": [ "*/*" ], @@ -29853,20 +27853,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "replaceClusterRole", + "operationId": "replaceClusterRoleBinding", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" + "$ref": "#/definitions/v1.ClusterRoleBinding" } } ], @@ -29874,16 +27871,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" + "$ref": "#/definitions/v1.ClusterRoleBinding" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a ClusterRole", + "description": "delete a ClusterRoleBinding", "consumes": [ "*/*" ], @@ -29892,13 +27886,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "deleteClusterRole", + "operationId": "deleteClusterRoleBinding", "parameters": [ { "name": "body", @@ -29918,32 +27909,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified ClusterRole", + "description": "partially update the specified ClusterRoleBinding", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -29954,13 +27935,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "patchClusterRole", + "operationId": "patchClusterRoleBinding", "parameters": [ { "name": "body", @@ -29976,11 +27954,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" + "$ref": "#/definitions/v1.ClusterRoleBinding" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -29988,7 +27963,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ClusterRole", + "description": "name of the ClusterRoleBinding", "name": "name", "in": "path", "required": true @@ -30002,9 +27977,9 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings": { + "/oapi/v1/clusterroles": { "get": { - "description": "list or watch objects of kind RoleBinding", + "description": "list objects of kind ClusterRole", "consumes": [ "*/*" ], @@ -30015,13 +27990,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "listNamespacedRoleBinding", + "operationId": "listClusterRole", "parameters": [ { "uniqueItems": true, @@ -30040,7 +28012,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -30063,16 +28035,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.RoleBindingList" + "$ref": "#/definitions/v1.ClusterRoleList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a RoleBinding", + "description": "create a ClusterRole", "consumes": [ "*/*" ], @@ -30081,110 +28050,30 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "createNamespacedRoleBinding", + "operationId": "createClusterRole", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" + "$ref": "#/definitions/v1.ClusterRole" } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteCollectionNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.ClusterRole" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -30194,9 +28083,9 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}": { + "/oapi/v1/clusterroles/{name}": { "get": { - "description": "read the specified RoleBinding", + "description": "read the specified ClusterRole", "consumes": [ "*/*" ], @@ -30205,27 +28094,21 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "readNamespacedRoleBinding", + "operationId": "readClusterRole", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" + "$ref": "#/definitions/v1.ClusterRole" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified RoleBinding", + "description": "replace the specified ClusterRole", "consumes": [ "*/*" ], @@ -30234,20 +28117,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "replaceNamespacedRoleBinding", + "operationId": "replaceClusterRole", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" + "$ref": "#/definitions/v1.ClusterRole" } } ], @@ -30255,16 +28135,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" + "$ref": "#/definitions/v1.ClusterRole" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a RoleBinding", + "description": "delete a ClusterRole", "consumes": [ "*/*" ], @@ -30273,13 +28150,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "deleteNamespacedRoleBinding", + "operationId": "deleteClusterRole", "parameters": [ { "name": "body", @@ -30299,32 +28173,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified RoleBinding", + "description": "partially update the specified ClusterRole", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -30335,13 +28199,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "patchNamespacedRoleBinding", + "operationId": "patchClusterRole", "parameters": [ { "name": "body", @@ -30357,11 +28218,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" + "$ref": "#/definitions/v1.ClusterRole" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -30369,7 +28227,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the RoleBinding", + "description": "name of the ClusterRole", "name": "name", "in": "path", "required": true @@ -30377,10 +28235,44 @@ { "uniqueItems": true, "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/deploymentconfigrollbacks": { + "post": { + "description": "create a DeploymentConfigRollback", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createDeploymentConfigRollbackForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeploymentConfigRollback" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeploymentConfigRollback" + } }, { "uniqueItems": true, @@ -30391,9 +28283,9 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles": { + "/oapi/v1/deploymentconfigs": { "get": { - "description": "list or watch objects of kind Role", + "description": "list or watch objects of kind DeploymentConfig", "consumes": [ "*/*" ], @@ -30404,13 +28296,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "listNamespacedRole", + "operationId": "listDeploymentConfigForAllNamespaces", "parameters": [ { "uniqueItems": true, @@ -30429,7 +28318,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -30452,16 +28341,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.RoleList" + "$ref": "#/definitions/v1.DeploymentConfigList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a Role", + "description": "create a DeploymentConfig", "consumes": [ "*/*" ], @@ -30470,20 +28356,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "createNamespacedRole", + "operationId": "createDeploymentConfigForAllNamespaces", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Role" + "$ref": "#/definitions/v1.DeploymentConfig" } } ], @@ -30491,16 +28374,86 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Role" + "$ref": "#/definitions/v1.DeploymentConfig" } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/egressnetworkpolicies": { + "get": { + "description": "list or watch objects of kind EgressNetworkPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listEgressNetworkPolicyForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" }, - "401": { - "description": "Unauthorized" + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.EgressNetworkPolicyList" + } } } }, - "delete": { - "description": "delete collection of Role", + "post": { + "description": "create an EgressNetworkPolicy", "consumes": [ "*/*" ], @@ -30509,13 +28462,56 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" + "tags": [ + "oapi" + ], + "operationId": "createEgressNetworkPolicyForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.EgressNetworkPolicy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.EgressNetworkPolicy" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/groups": { + "get": { + "description": "list or watch objects of kind Group", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "deleteCollectionNamespacedRole", + "operationId": "listGroup", "parameters": [ { "uniqueItems": true, @@ -30534,7 +28530,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -30557,23 +28553,105 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.GroupList" } + } + } + }, + "post": { + "description": "create a Group", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createGroup", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Group" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Group" + } + } + } + }, + "delete": { + "description": "delete collection of Group", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionGroup", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" }, - "401": { - "description": "Unauthorized" + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -30583,9 +28661,9 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}": { + "/oapi/v1/groups/{name}": { "get": { - "description": "read the specified Role", + "description": "read the specified Group", "consumes": [ "*/*" ], @@ -30594,27 +28672,37 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" + ], + "operationId": "readGroup", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } ], - "operationId": "readNamespacedRole", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Role" + "$ref": "#/definitions/v1.Group" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified Role", + "description": "replace the specified Group", "consumes": [ "*/*" ], @@ -30623,20 +28711,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "replaceNamespacedRole", + "operationId": "replaceGroup", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Role" + "$ref": "#/definitions/v1.Group" } } ], @@ -30644,16 +28729,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Role" + "$ref": "#/definitions/v1.Group" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a Role", + "description": "delete a Group", "consumes": [ "*/*" ], @@ -30662,13 +28744,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "deleteNamespacedRole", + "operationId": "deleteGroup", "parameters": [ { "name": "body", @@ -30688,32 +28767,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified Role", + "description": "partially update the specified Group", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -30724,13 +28793,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" ], - "operationId": "patchNamespacedRole", + "operationId": "patchGroup", "parameters": [ { "name": "body", @@ -30746,11 +28812,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Role" + "$ref": "#/definitions/v1.Group" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -30758,19 +28821,11 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Role", + "description": "name of the Group", "name": "name", "in": "path", "required": true }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -30780,9 +28835,9 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1beta1/rolebindings": { + "/oapi/v1/hostsubnets": { "get": { - "description": "list or watch objects of kind RoleBinding", + "description": "list or watch objects of kind HostSubnet", "consumes": [ "*/*" ], @@ -30793,213 +28848,320 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" + "tags": [ + "oapi" + ], + "operationId": "listHostSubnet", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HostSubnetList" + } + } + } + }, + "post": { + "description": "create a HostSubnet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" + ], + "operationId": "createHostSubnet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.HostSubnet" + } + } ], - "operationId": "listRoleBindingForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.RoleBindingList" + "$ref": "#/definitions/v1.HostSubnet" } + } + } + }, + "delete": { + "description": "delete collection of HostSubnet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionHostSubnet", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" }, - "401": { - "description": "Unauthorized" + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/rbac.authorization.k8s.io/v1beta1/roles": { + "/oapi/v1/hostsubnets/{name}": { "get": { - "description": "list or watch objects of kind Role", + "description": "read the specified HostSubnet", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readHostSubnet", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HostSubnet" + } + } + } + }, + "put": { + "description": "replace the specified HostSubnet", + "consumes": [ + "*/*" ], - "schemes": [ - "https" + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "tags": [ - "rbacAuthorization_v1beta1" + "oapi" + ], + "operationId": "replaceHostSubnet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.HostSubnet" + } + } ], - "operationId": "listRoleForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.RoleList" + "$ref": "#/definitions/v1.HostSubnet" } - }, - "401": { - "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" + "delete": { + "description": "delete a HostSubnet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteHostSubnet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" + }, + "patch": { + "description": "partially update the specified HostSubnet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchHostSubnet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HostSubnet" + } + } } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings/{name}": { + }, "parameters": [ { "uniqueItems": true, "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", + "description": "name of the HostSubnet", "name": "name", "in": "path", "required": true @@ -31010,96 +29172,336 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles": { + "/oapi/v1/identities": { + "get": { + "description": "list or watch objects of kind Identity", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listIdentity", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.IdentityList" + } + } + } + }, + "post": { + "description": "create an Identity", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createIdentity", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Identity" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Identity" + } + } + } + }, + "delete": { + "description": "delete collection of Identity", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionIdentity", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles/{name}": { + "/oapi/v1/identities/{name}": { + "get": { + "description": "read the specified Identity", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readIdentity", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Identity" + } + } + } + }, + "put": { + "description": "replace the specified Identity", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceIdentity", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Identity" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Identity" + } + } + } + }, + "delete": { + "description": "delete an Identity", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteIdentity", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified Identity", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchIdentity", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Identity" + } + } + } + }, "parameters": [ { "uniqueItems": true, "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", + "description": "name of the Identity", "name": "name", "in": "path", "required": true @@ -31110,423 +29512,12 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/settings.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/settings.k8s.io/v1alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets": { + "/oapi/v1/images": { "get": { - "description": "list or watch objects of kind PodPreset", + "description": "list or watch objects of kind Image", "consumes": [ "*/*" ], @@ -31537,13 +29528,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "settings_v1alpha1" + "oapi" ], - "operationId": "listNamespacedPodPreset", + "operationId": "listImage", "parameters": [ { "uniqueItems": true, @@ -31562,7 +29550,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -31585,16 +29573,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.PodPresetList" + "$ref": "#/definitions/v1.ImageList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a PodPreset", + "description": "create an Image", "consumes": [ "*/*" ], @@ -31603,20 +29588,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "settings_v1alpha1" + "oapi" ], - "operationId": "createNamespacedPodPreset", + "operationId": "createImage", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" + "$ref": "#/definitions/v1.Image" } } ], @@ -31624,16 +29606,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" + "$ref": "#/definitions/v1.Image" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete collection of PodPreset", + "description": "delete collection of Image", "consumes": [ "*/*" ], @@ -31642,13 +29621,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "settings_v1alpha1" + "oapi" ], - "operationId": "deleteCollectionNamespacedPodPreset", + "operationId": "deleteCollectionImage", "parameters": [ { "uniqueItems": true, @@ -31667,7 +29643,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -31690,23 +29666,12 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -31716,9 +29681,9 @@ } ] }, - "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}": { + "/oapi/v1/images/{name}": { "get": { - "description": "read the specified PodPreset", + "description": "read the specified Image", "consumes": [ "*/*" ], @@ -31727,18 +29692,15 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "settings_v1alpha1" + "oapi" ], - "operationId": "readNamespacedPodPreset", + "operationId": "readImage", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -31754,16 +29716,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" + "$ref": "#/definitions/v1.Image" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified PodPreset", + "description": "replace the specified Image", "consumes": [ "*/*" ], @@ -31772,20 +29731,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "settings_v1alpha1" + "oapi" ], - "operationId": "replaceNamespacedPodPreset", + "operationId": "replaceImage", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" + "$ref": "#/definitions/v1.Image" } } ], @@ -31793,16 +29749,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" + "$ref": "#/definitions/v1.Image" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a PodPreset", + "description": "delete an Image", "consumes": [ "*/*" ], @@ -31811,13 +29764,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "settings_v1alpha1" + "oapi" ], - "operationId": "deleteNamespacedPodPreset", + "operationId": "deleteImage", "parameters": [ { "name": "body", @@ -31837,32 +29787,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified PodPreset", + "description": "partially update the specified Image", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -31873,13 +29813,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "settings_v1alpha1" + "oapi" ], - "operationId": "patchNamespacedPodPreset", + "operationId": "patchImage", "parameters": [ { "name": "body", @@ -31895,11 +29832,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" + "$ref": "#/definitions/v1.Image" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -31907,19 +29841,11 @@ { "uniqueItems": true, "type": "string", - "description": "name of the PodPreset", + "description": "name of the Image", "name": "name", "in": "path", "required": true }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -31929,52 +29855,38 @@ } ] }, - "/apis/settings.k8s.io/v1alpha1/podpresets": { - "get": { - "description": "list or watch objects of kind PodPreset", + "/oapi/v1/imagesignatures": { + "post": { + "description": "create an ImageSignature", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf" ], "tags": [ - "settings_v1alpha1" + "oapi" ], - "operationId": "listPodPresetForAllNamespaces", + "operationId": "createImageSignature", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.PodPresetList" + "$ref": "#/definitions/v1.ImageSignature" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ImageSignature" + } }, { "uniqueItems": true, @@ -31982,51 +29894,39 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets": { + "/oapi/v1/imagesignatures/{name}": { + "delete": { + "description": "delete an ImageSignature", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteImageSignature", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, "parameters": [ { "uniqueItems": true, "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", + "description": "name of the ImageSignature", + "name": "name", "in": "path", "required": true }, @@ -32036,107 +29936,41 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodPreset", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/watch/podpresets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + } + ] + }, + "/oapi/v1/imagestreamimports": { + "post": { + "description": "create an ImageStreamImport", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createImageStreamImportForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStreamImport" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ImageStreamImport" + } }, { "uniqueItems": true, @@ -32144,99 +29978,54 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/storage.k8s.io/": { - "get": { - "description": "get information of a group", + "/oapi/v1/imagestreammappings": { + "post": { + "description": "create an ImageStreamMapping", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "storage" + "oapi" ], - "operationId": "getAPIGroup", + "operationId": "createImageStreamMappingForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1.ImageStreamMapping" } - }, - "401": { - "description": "Unauthorized" } } - } - }, - "/apis/storage.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ImageStreamMapping" } + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" } - } + ] }, - "/apis/storage.k8s.io/v1/storageclasses": { + "/oapi/v1/imagestreams": { "get": { - "description": "list or watch objects of kind StorageClass", + "description": "list or watch objects of kind ImageStream", "consumes": [ "*/*" ], @@ -32247,13 +30036,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1" + "oapi" ], - "operationId": "listStorageClass", + "operationId": "listImageStreamForAllNamespaces", "parameters": [ { "uniqueItems": true, @@ -32272,7 +30058,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -32295,16 +30081,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StorageClassList" + "$ref": "#/definitions/v1.ImageStreamList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a StorageClass", + "description": "create an ImageStream", "consumes": [ "*/*" ], @@ -32313,20 +30096,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1" + "oapi" ], - "operationId": "createStorageClass", + "operationId": "createImageStreamForAllNamespaces", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.StorageClass" + "$ref": "#/definitions/v1.ImageStream" } } ], @@ -32334,31 +30114,38 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StorageClass" + "$ref": "#/definitions/v1.ImageStream" } - }, - "401": { - "description": "Unauthorized" } } }, - "delete": { - "description": "delete collection of StorageClass", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/imagestreamtags": { + "get": { + "description": "list objects of kind ImageStreamTag", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "tags": [ - "storage_v1" + "oapi" ], - "operationId": "deleteCollectionStorageClass", + "operationId": "listImageStreamTagForAllNamespaces", "parameters": [ { "uniqueItems": true, @@ -32377,7 +30164,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -32400,72 +30187,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1/storageclasses/{name}": { - "get": { - "description": "read the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "readStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.StorageClass" + "$ref": "#/definitions/v1.ImageStreamTagList" } - }, - "401": { - "description": "Unauthorized" } } }, - "put": { - "description": "replace the specified StorageClass", + "post": { + "description": "create an ImageStreamTag", "consumes": [ "*/*" ], @@ -32474,20 +30202,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1" + "oapi" ], - "operationId": "replaceStorageClass", + "operationId": "createImageStreamTagForAllNamespaces", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.StorageClass" + "$ref": "#/definitions/v1.ImageStreamTag" } } ], @@ -32495,16 +30220,24 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StorageClass" + "$ref": "#/definitions/v1.ImageStreamTag" } - }, - "401": { - "description": "Unauthorized" } } }, - "delete": { - "description": "delete a StorageClass", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/localresourceaccessreviews": { + "post": { + "description": "create a LocalResourceAccessReview", "consumes": [ "*/*" ], @@ -32513,106 +30246,69 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1" - ], - "operationId": "deleteStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } + "oapi" ], + "operationId": "createLocalResourceAccessReviewForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.LocalResourceAccessReview" } - }, - "401": { - "description": "Unauthorized" } } }, - "patch": { - "description": "partially update the specified StorageClass", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.LocalResourceAccessReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/localsubjectaccessreviews": { + "post": { + "description": "create a LocalSubjectAccessReview", "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" + "*/*" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1" - ], - "operationId": "patchStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } + "oapi" ], + "operationId": "createLocalSubjectAccessReviewForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StorageClass" + "$ref": "#/definitions/v1.LocalSubjectAccessReview" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.LocalSubjectAccessReview" + } }, { "uniqueItems": true, @@ -32623,53 +30319,32 @@ } ] }, - "/apis/storage.k8s.io/v1/watch/storageclasses": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" + "/oapi/v1/namespaces/{namespace}/appliedclusterresourcequotas": { + "get": { + "description": "list objects of kind AppliedClusterResourceQuota", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedAppliedClusterResourceQuota", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.AppliedClusterResourceQuotaList" + } + } } - ] - }, - "/apis/storage.k8s.io/v1/watch/storageclasses/{name}": { + }, "parameters": [ { "uniqueItems": true, @@ -32688,8 +30363,8 @@ { "uniqueItems": true, "type": "string", - "description": "name of the StorageClass", - "name": "name", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", "in": "path", "required": true }, @@ -32703,7 +30378,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -32723,42 +30398,59 @@ } ] }, - "/apis/storage.k8s.io/v1beta1/": { + "/oapi/v1/namespaces/{namespace}/appliedclusterresourcequotas/{name}": { "get": { - "description": "get available resources", + "description": "read the specified AppliedClusterResourceQuota", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1beta1" + "oapi" ], - "operationId": "getAPIResources", + "operationId": "readNamespacedAppliedClusterResourceQuota", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.AppliedClusterResourceQuota" } - }, - "401": { - "description": "Unauthorized" } } - } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the AppliedClusterResourceQuota", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] }, - "/apis/storage.k8s.io/v1beta1/storageclasses": { + "/oapi/v1/namespaces/{namespace}/buildconfigs": { "get": { - "description": "list or watch objects of kind StorageClass", + "description": "list or watch objects of kind BuildConfig", "consumes": [ "*/*" ], @@ -32769,13 +30461,10 @@ "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1beta1" + "oapi" ], - "operationId": "listStorageClass", + "operationId": "listNamespacedBuildConfig", "parameters": [ { "uniqueItems": true, @@ -32794,7 +30483,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -32817,16 +30506,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StorageClassList" + "$ref": "#/definitions/v1.BuildConfigList" } - }, - "401": { - "description": "Unauthorized" } } }, "post": { - "description": "create a StorageClass", + "description": "create a BuildConfig", "consumes": [ "*/*" ], @@ -32835,20 +30521,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1beta1" + "oapi" ], - "operationId": "createStorageClass", + "operationId": "createNamespacedBuildConfig", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" + "$ref": "#/definitions/v1.BuildConfig" } } ], @@ -32856,16 +30539,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" + "$ref": "#/definitions/v1.BuildConfig" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete collection of StorageClass", + "description": "delete collection of BuildConfig", "consumes": [ "*/*" ], @@ -32874,13 +30554,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1beta1" + "oapi" ], - "operationId": "deleteCollectionStorageClass", + "operationId": "deleteCollectionNamespacedBuildConfig", "parameters": [ { "uniqueItems": true, @@ -32899,7 +30576,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "name": "resourceVersion", "in": "query" }, @@ -32922,15 +30599,20 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -32940,9 +30622,9 @@ } ] }, - "/apis/storage.k8s.io/v1beta1/storageclasses/{name}": { + "/oapi/v1/namespaces/{namespace}/buildconfigs/{name}": { "get": { - "description": "read the specified StorageClass", + "description": "read the specified BuildConfig", "consumes": [ "*/*" ], @@ -32951,18 +30633,15 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1beta1" + "oapi" ], - "operationId": "readStorageClass", + "operationId": "readNamespacedBuildConfig", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "name": "exact", "in": "query" }, @@ -32978,16 +30657,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" + "$ref": "#/definitions/v1.BuildConfig" } - }, - "401": { - "description": "Unauthorized" } } }, "put": { - "description": "replace the specified StorageClass", + "description": "replace the specified BuildConfig", "consumes": [ "*/*" ], @@ -32996,20 +30672,17 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1beta1" + "oapi" ], - "operationId": "replaceStorageClass", + "operationId": "replaceNamespacedBuildConfig", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" + "$ref": "#/definitions/v1.BuildConfig" } } ], @@ -33017,16 +30690,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" + "$ref": "#/definitions/v1.BuildConfig" } - }, - "401": { - "description": "Unauthorized" } } }, "delete": { - "description": "delete a StorageClass", + "description": "delete a BuildConfig", "consumes": [ "*/*" ], @@ -33035,13 +30705,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1beta1" + "oapi" ], - "operationId": "deleteStorageClass", + "operationId": "deleteNamespacedBuildConfig", "parameters": [ { "name": "body", @@ -33061,32 +30728,22 @@ { "uniqueItems": true, "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", "name": "orphanDependents", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/unversioned.Status" } - }, - "401": { - "description": "Unauthorized" } } }, "patch": { - "description": "partially update the specified StorageClass", + "description": "partially update the specified BuildConfig", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -33097,13 +30754,10 @@ "application/yaml", "application/vnd.kubernetes.protobuf" ], - "schemes": [ - "https" - ], "tags": [ - "storage_v1beta1" + "oapi" ], - "operationId": "patchStorageClass", + "operationId": "patchNamespacedBuildConfig", "parameters": [ { "name": "body", @@ -33119,11 +30773,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" + "$ref": "#/definitions/v1.BuildConfig" } - }, - "401": { - "description": "Unauthorized" } } }, @@ -33131,11 +30782,19 @@ { "uniqueItems": true, "type": "string", - "description": "name of the StorageClass", + "description": "name of the BuildConfig", "name": "name", "in": "path", "required": true }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -33145,705 +30804,15622 @@ } ] }, - "/apis/storage.k8s.io/v1beta1/watch/storageclasses": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" + "/oapi/v1/namespaces/{namespace}/buildconfigs/{name}/instantiate": { + "post": { + "description": "create instantiate of a BuildRequest", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedBuildRequestInstantiate", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.BuildRequest" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.BuildRequest" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BuildRequest", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/buildconfigs/{name}/instantiatebinary": { + "post": { + "description": "connect POST requests to instantiatebinary of BinaryBuildRequestOptions", + "consumes": [ + "*/*" + ], + "produces": [ + "*/*" + ], + "tags": [ + "oapi" + ], + "operationId": "connectPostNamespacedBinaryBuildRequestOptionsInstantiatebinary", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "asFile determines if the binary should be created as a file within the source rather than extracted as an archive", + "name": "asFile", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BinaryBuildRequestOptions", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "revision.authorEmail of the source control user", + "name": "revision.authorEmail", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "revision.authorName of the source control user", + "name": "revision.authorName", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "revision.commit is the value identifying a specific commit", + "name": "revision.commit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "revision.committerEmail of the source control user", + "name": "revision.committerEmail", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "revision.committerName of the source control user", + "name": "revision.committerName", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "revision.message is the description of a specific commit", + "name": "revision.message", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/buildconfigs/{name}/webhooks": { + "post": { + "description": "connect POST requests to webhooks of Status", + "consumes": [ + "*/*" + ], + "produces": [ + "*/*" + ], + "tags": [ + "oapi" + ], + "operationId": "connectPostNamespacedStatusWebhooks", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Status", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Path is the URL path to use for the current proxy request to pod.", + "name": "path", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/buildconfigs/{name}/webhooks/{path}": { + "post": { + "description": "connect POST requests to webhooks of Status", + "consumes": [ + "*/*" + ], + "produces": [ + "*/*" + ], + "tags": [ + "oapi" + ], + "operationId": "connectPostNamespacedStatusWebhooksWithPath", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Status", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "path to the resource", + "name": "path", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Path is the URL path to use for the current proxy request to pod.", + "name": "path", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/builds": { + "get": { + "description": "list or watch objects of kind Build", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedBuild", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.BuildList" + } + } + } + }, + "post": { + "description": "create a Build", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedBuild", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Build" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Build" + } + } + } + }, + "delete": { + "description": "delete collection of Build", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionNamespacedBuild", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/builds/{name}": { + "get": { + "description": "read the specified Build", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedBuild", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Build" + } + } + } + }, + "put": { + "description": "replace the specified Build", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedBuild", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Build" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Build" + } + } + } + }, + "delete": { + "description": "delete a Build", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNamespacedBuild", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified Build", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedBuild", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Build" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Build", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/builds/{name}/clone": { + "post": { + "description": "create clone of a BuildRequest", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedBuildRequestClone", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.BuildRequest" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.BuildRequest" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BuildRequest", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/builds/{name}/details": { + "put": { + "description": "replace details of the specified Build", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedBuildDetails", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Build" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Build" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Build", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/builds/{name}/log": { + "get": { + "description": "read log of the specified BuildLog", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedBuildLogLog", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.BuildLog" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "cointainer for which to stream logs. Defaults to only container if there is one container in the pod.", + "name": "container", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "follow if true indicates that the build log should be streamed until the build terminates.", + "name": "follow", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limitBytes, If set, is the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", + "name": "limitBytes", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BuildLog", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "noWait if true causes the call to return immediately even if the build is not available yet. Otherwise the server will wait until the build has started.", + "name": "nowait", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "previous returns previous build logs. Defaults to false.", + "name": "previous", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "sinceSeconds is a relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + "name": "sinceSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "sinceTime is an RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + "name": "sinceTime", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "tailLines, If set, is the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", + "name": "tailLines", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "timestamps, If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", + "name": "timestamps", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "version of the build for which to view logs.", + "name": "version", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/deploymentconfigrollbacks": { + "post": { + "description": "create a DeploymentConfigRollback", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedDeploymentConfigRollback", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeploymentConfigRollback" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeploymentConfigRollback" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/deploymentconfigs": { + "get": { + "description": "list or watch objects of kind DeploymentConfig", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedDeploymentConfig", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeploymentConfigList" + } + } + } + }, + "post": { + "description": "create a DeploymentConfig", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedDeploymentConfig", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeploymentConfig" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeploymentConfig" + } + } + } + }, + "delete": { + "description": "delete collection of DeploymentConfig", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionNamespacedDeploymentConfig", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}": { + "get": { + "description": "read the specified DeploymentConfig", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedDeploymentConfig", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeploymentConfig" + } + } + } + }, + "put": { + "description": "replace the specified DeploymentConfig", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedDeploymentConfig", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeploymentConfig" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeploymentConfig" + } + } + } + }, + "delete": { + "description": "delete a DeploymentConfig", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNamespacedDeploymentConfig", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified DeploymentConfig", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedDeploymentConfig", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeploymentConfig" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the DeploymentConfig", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/instantiate": { + "post": { + "description": "create instantiate of a DeploymentRequest", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedDeploymentRequestInstantiate", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeploymentRequest" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeploymentRequest" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the DeploymentRequest", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/log": { + "get": { + "description": "read log of the specified DeploymentLog", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedDeploymentLogLog", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeploymentLog" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", + "name": "container", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Follow if true indicates that the build log should be streamed until the build terminates.", + "name": "follow", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", + "name": "limitBytes", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the DeploymentLog", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "NoWait if true causes the call to return immediately even if the deployment is not available yet. Otherwise the server will wait until the deployment has started.", + "name": "nowait", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Return previous deployment logs. Defaults to false.", + "name": "previous", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + "name": "sinceSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + "name": "sinceTime", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", + "name": "tailLines", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", + "name": "timestamps", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Version of the deployment for which to view logs.", + "name": "version", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/rollback": { + "post": { + "description": "create rollback of a DeploymentConfigRollback", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedDeploymentConfigRollbackRollback", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeploymentConfigRollback" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeploymentConfigRollback" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the DeploymentConfigRollback", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale": { + "get": { + "description": "read scale of the specified Scale", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedScaleScale", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Scale" + } + } + } + }, + "put": { + "description": "replace scale of the specified Scale", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedScaleScale", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.Scale" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Scale" + } + } + } + }, + "patch": { + "description": "partially update scale of the specified Scale", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedScaleScale", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Scale" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Scale", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/deploymentconfigs/{name}/status": { + "put": { + "description": "replace status of the specified DeploymentConfig", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedDeploymentConfigStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeploymentConfig" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeploymentConfig" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the DeploymentConfig", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/egressnetworkpolicies": { + "get": { + "description": "list or watch objects of kind EgressNetworkPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedEgressNetworkPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.EgressNetworkPolicyList" + } + } + } + }, + "post": { + "description": "create an EgressNetworkPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedEgressNetworkPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.EgressNetworkPolicy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.EgressNetworkPolicy" + } + } + } + }, + "delete": { + "description": "delete collection of EgressNetworkPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionNamespacedEgressNetworkPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/egressnetworkpolicies/{name}": { + "get": { + "description": "read the specified EgressNetworkPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedEgressNetworkPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.EgressNetworkPolicy" + } + } + } + }, + "put": { + "description": "replace the specified EgressNetworkPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedEgressNetworkPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.EgressNetworkPolicy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.EgressNetworkPolicy" + } + } + } + }, + "delete": { + "description": "delete an EgressNetworkPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNamespacedEgressNetworkPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified EgressNetworkPolicy", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedEgressNetworkPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.EgressNetworkPolicy" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the EgressNetworkPolicy", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/generatedeploymentconfigs/{name}": { + "get": { + "description": "read the specified DeploymentConfig", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "operationId": "generateNamespacedDeploymentConfig", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeploymentConfig" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the DeploymentConfig", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/imagestreamimages/{name}": { + "get": { + "description": "read the specified ImageStreamImage", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedImageStreamImage", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStreamImage" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ImageStreamImage", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/imagestreamimports": { + "post": { + "description": "create an ImageStreamImport", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedImageStreamImport", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStreamImport" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ImageStreamImport" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/imagestreammappings": { + "post": { + "description": "create an ImageStreamMapping", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedImageStreamMapping", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStreamMapping" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ImageStreamMapping" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/imagestreams": { + "get": { + "description": "list or watch objects of kind ImageStream", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedImageStream", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStreamList" + } + } + } + }, + "post": { + "description": "create an ImageStream", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedImageStream", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ImageStream" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStream" + } + } + } + }, + "delete": { + "description": "delete collection of ImageStream", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionNamespacedImageStream", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/imagestreams/{name}": { + "get": { + "description": "read the specified ImageStream", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedImageStream", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStream" + } + } + } + }, + "put": { + "description": "replace the specified ImageStream", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedImageStream", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ImageStream" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStream" + } + } + } + }, + "delete": { + "description": "delete an ImageStream", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNamespacedImageStream", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified ImageStream", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedImageStream", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStream" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ImageStream", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/imagestreams/{name}/secrets": { + "get": { + "description": "read secrets of the specified SecretList", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedSecretListSecrets", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SecretList" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the SecretList", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/imagestreams/{name}/status": { + "put": { + "description": "replace status of the specified ImageStream", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedImageStreamStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStream" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ImageStream" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ImageStream", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/imagestreamtags": { + "get": { + "description": "list objects of kind ImageStreamTag", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedImageStreamTag", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStreamTagList" + } + } + } + }, + "post": { + "description": "create an ImageStreamTag", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedImageStreamTag", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ImageStreamTag" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStreamTag" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/imagestreamtags/{name}": { + "get": { + "description": "read the specified ImageStreamTag", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedImageStreamTag", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStreamTag" + } + } + } + }, + "put": { + "description": "replace the specified ImageStreamTag", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedImageStreamTag", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ImageStreamTag" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStreamTag" + } + } + } + }, + "delete": { + "description": "delete an ImageStreamTag", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNamespacedImageStreamTag", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified ImageStreamTag", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedImageStreamTag", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ImageStreamTag" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ImageStreamTag", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/localresourceaccessreviews": { + "post": { + "description": "create a LocalResourceAccessReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedLocalResourceAccessReview", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.LocalResourceAccessReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.LocalResourceAccessReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/localsubjectaccessreviews": { + "post": { + "description": "create a LocalSubjectAccessReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedLocalSubjectAccessReview", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.LocalSubjectAccessReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.LocalSubjectAccessReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/podsecuritypolicyreviews": { + "post": { + "description": "create a PodSecurityPolicyReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedPodSecurityPolicyReview", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodSecurityPolicyReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodSecurityPolicyReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/podsecuritypolicyselfsubjectreviews": { + "post": { + "description": "create a PodSecurityPolicySelfSubjectReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedPodSecurityPolicySelfSubjectReview", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodSecurityPolicySelfSubjectReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodSecurityPolicySelfSubjectReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/podsecuritypolicysubjectreviews": { + "post": { + "description": "create a PodSecurityPolicySubjectReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedPodSecurityPolicySubjectReview", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodSecurityPolicySubjectReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodSecurityPolicySubjectReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/policies": { + "get": { + "description": "list or watch objects of kind Policy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PolicyList" + } + } + } + }, + "post": { + "description": "create a Policy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Policy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Policy" + } + } + } + }, + "delete": { + "description": "delete collection of Policy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionNamespacedPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/policies/{name}": { + "get": { + "description": "read the specified Policy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Policy" + } + } + } + }, + "put": { + "description": "replace the specified Policy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Policy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Policy" + } + } + } + }, + "delete": { + "description": "delete a Policy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNamespacedPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified Policy", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Policy" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Policy", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/policybindings": { + "get": { + "description": "list or watch objects of kind PolicyBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedPolicyBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PolicyBindingList" + } + } + } + }, + "post": { + "description": "create a PolicyBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedPolicyBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PolicyBinding" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PolicyBinding" + } + } + } + }, + "delete": { + "description": "delete collection of PolicyBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionNamespacedPolicyBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/policybindings/{name}": { + "get": { + "description": "read the specified PolicyBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedPolicyBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PolicyBinding" + } + } + } + }, + "put": { + "description": "replace the specified PolicyBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedPolicyBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PolicyBinding" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PolicyBinding" + } + } + } + }, + "delete": { + "description": "delete a PolicyBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNamespacedPolicyBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified PolicyBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedPolicyBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PolicyBinding" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PolicyBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/processedtemplates": { + "post": { + "description": "create a Template", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "operationId": "createNamespacedProcessedTemplate", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Template" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Template" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/resourceaccessreviews": { + "post": { + "description": "create a ResourceAccessReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedResourceAccessReview", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceAccessReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ResourceAccessReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/rolebindingrestrictions": { + "get": { + "description": "list or watch objects of kind RoleBindingRestriction", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedRoleBindingRestriction", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBindingRestrictionList" + } + } + } + }, + "post": { + "description": "create a RoleBindingRestriction", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedRoleBindingRestriction", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RoleBindingRestriction" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBindingRestriction" + } + } + } + }, + "delete": { + "description": "delete collection of RoleBindingRestriction", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionNamespacedRoleBindingRestriction", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/rolebindingrestrictions/{name}": { + "get": { + "description": "read the specified RoleBindingRestriction", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedRoleBindingRestriction", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBindingRestriction" + } + } + } + }, + "put": { + "description": "replace the specified RoleBindingRestriction", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedRoleBindingRestriction", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RoleBindingRestriction" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBindingRestriction" + } + } + } + }, + "delete": { + "description": "delete a RoleBindingRestriction", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNamespacedRoleBindingRestriction", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified RoleBindingRestriction", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedRoleBindingRestriction", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBindingRestriction" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the RoleBindingRestriction", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/rolebindings": { + "get": { + "description": "list objects of kind RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedRoleBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBindingList" + } + } + } + }, + "post": { + "description": "create a RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/rolebindings/{name}": { + "get": { + "description": "read the specified RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedRoleBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + } + } + }, + "put": { + "description": "replace the specified RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + } + } + }, + "delete": { + "description": "delete a RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified RoleBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the RoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/roles": { + "get": { + "description": "list objects of kind Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedRole", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleList" + } + } + } + }, + "post": { + "description": "create a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Role" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Role" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/roles/{name}": { + "get": { + "description": "read the specified Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedRole", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Role" + } + } + } + }, + "put": { + "description": "replace the specified Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Role" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Role" + } + } + } + }, + "delete": { + "description": "delete a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified Role", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Role" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Role", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/routes": { + "get": { + "description": "list or watch objects of kind Route", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedRoute", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RouteList" + } + } + } + }, + "post": { + "description": "create a Route", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedRoute", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Route" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Route" + } + } + } + }, + "delete": { + "description": "delete collection of Route", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionNamespacedRoute", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/routes/{name}": { + "get": { + "description": "read the specified Route", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedRoute", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Route" + } + } + } + }, + "put": { + "description": "replace the specified Route", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedRoute", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Route" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Route" + } + } + } + }, + "delete": { + "description": "delete a Route", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNamespacedRoute", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified Route", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedRoute", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Route" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Route", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/routes/{name}/status": { + "put": { + "description": "replace status of the specified Route", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedRouteStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Route" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Route" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Route", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/selfsubjectrulesreviews": { + "post": { + "description": "create a SelfSubjectRulesReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedSelfSubjectRulesReview", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SelfSubjectRulesReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SelfSubjectRulesReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/subjectaccessreviews": { + "post": { + "description": "create a SubjectAccessReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedSubjectAccessReview", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SubjectAccessReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SubjectAccessReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/subjectrulesreviews": { + "post": { + "description": "create a SubjectRulesReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedSubjectRulesReview", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SubjectRulesReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SubjectRulesReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/templates": { + "get": { + "description": "list or watch objects of kind Template", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNamespacedTemplate", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.TemplateList" + } + } + } + }, + "post": { + "description": "create a Template", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNamespacedTemplate", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Template" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Template" + } + } + } + }, + "delete": { + "description": "delete collection of Template", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionNamespacedTemplate", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/namespaces/{namespace}/templates/{name}": { + "get": { + "description": "read the specified Template", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNamespacedTemplate", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Template" + } + } + } + }, + "put": { + "description": "replace the specified Template", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNamespacedTemplate", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Template" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Template" + } + } + } + }, + "delete": { + "description": "delete a Template", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNamespacedTemplate", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified Template", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNamespacedTemplate", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Template" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Template", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/netnamespaces": { + "get": { + "description": "list or watch objects of kind NetNamespace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listNetNamespace", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetNamespaceList" + } + } + } + }, + "post": { + "description": "create a NetNamespace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createNetNamespace", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.NetNamespace" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetNamespace" + } + } + } + }, + "delete": { + "description": "delete collection of NetNamespace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionNetNamespace", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/netnamespaces/{name}": { + "get": { + "description": "read the specified NetNamespace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readNetNamespace", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetNamespace" + } + } + } + }, + "put": { + "description": "replace the specified NetNamespace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceNetNamespace", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.NetNamespace" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetNamespace" + } + } + } + }, + "delete": { + "description": "delete a NetNamespace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteNetNamespace", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified NetNamespace", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchNetNamespace", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetNamespace" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the NetNamespace", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/oauthaccesstokens": { + "get": { + "description": "list or watch objects of kind OAuthAccessToken", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listOAuthAccessToken", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthAccessTokenList" + } + } + } + }, + "post": { + "description": "create an OAuthAccessToken", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createOAuthAccessToken", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.OAuthAccessToken" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthAccessToken" + } + } + } + }, + "delete": { + "description": "delete collection of OAuthAccessToken", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionOAuthAccessToken", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/oauthaccesstokens/{name}": { + "get": { + "description": "read the specified OAuthAccessToken", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readOAuthAccessToken", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthAccessToken" + } + } + } + }, + "put": { + "description": "replace the specified OAuthAccessToken", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceOAuthAccessToken", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.OAuthAccessToken" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthAccessToken" + } + } + } + }, + "delete": { + "description": "delete an OAuthAccessToken", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteOAuthAccessToken", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified OAuthAccessToken", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchOAuthAccessToken", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthAccessToken" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the OAuthAccessToken", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/oauthauthorizetokens": { + "get": { + "description": "list or watch objects of kind OAuthAuthorizeToken", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listOAuthAuthorizeToken", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthAuthorizeTokenList" + } + } + } + }, + "post": { + "description": "create an OAuthAuthorizeToken", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createOAuthAuthorizeToken", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.OAuthAuthorizeToken" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthAuthorizeToken" + } + } + } + }, + "delete": { + "description": "delete collection of OAuthAuthorizeToken", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionOAuthAuthorizeToken", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/oauthauthorizetokens/{name}": { + "get": { + "description": "read the specified OAuthAuthorizeToken", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readOAuthAuthorizeToken", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthAuthorizeToken" + } + } + } + }, + "put": { + "description": "replace the specified OAuthAuthorizeToken", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceOAuthAuthorizeToken", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.OAuthAuthorizeToken" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthAuthorizeToken" + } + } + } + }, + "delete": { + "description": "delete an OAuthAuthorizeToken", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteOAuthAuthorizeToken", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified OAuthAuthorizeToken", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchOAuthAuthorizeToken", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthAuthorizeToken" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the OAuthAuthorizeToken", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/oauthclientauthorizations": { + "get": { + "description": "list or watch objects of kind OAuthClientAuthorization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listOAuthClientAuthorization", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthClientAuthorizationList" + } + } + } + }, + "post": { + "description": "create an OAuthClientAuthorization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createOAuthClientAuthorization", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.OAuthClientAuthorization" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthClientAuthorization" + } + } + } + }, + "delete": { + "description": "delete collection of OAuthClientAuthorization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionOAuthClientAuthorization", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/oauthclientauthorizations/{name}": { + "get": { + "description": "read the specified OAuthClientAuthorization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readOAuthClientAuthorization", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthClientAuthorization" + } + } + } + }, + "put": { + "description": "replace the specified OAuthClientAuthorization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceOAuthClientAuthorization", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.OAuthClientAuthorization" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthClientAuthorization" + } + } + } + }, + "delete": { + "description": "delete an OAuthClientAuthorization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteOAuthClientAuthorization", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified OAuthClientAuthorization", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchOAuthClientAuthorization", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthClientAuthorization" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the OAuthClientAuthorization", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/oauthclients": { + "get": { + "description": "list or watch objects of kind OAuthClient", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listOAuthClient", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthClientList" + } + } + } + }, + "post": { + "description": "create an OAuthClient", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createOAuthClient", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.OAuthClient" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthClient" + } + } + } + }, + "delete": { + "description": "delete collection of OAuthClient", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionOAuthClient", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/oauthclients/{name}": { + "get": { + "description": "read the specified OAuthClient", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readOAuthClient", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthClient" + } + } + } + }, + "put": { + "description": "replace the specified OAuthClient", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceOAuthClient", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.OAuthClient" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthClient" + } + } + } + }, + "delete": { + "description": "delete an OAuthClient", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteOAuthClient", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified OAuthClient", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchOAuthClient", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.OAuthClient" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the OAuthClient", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/podsecuritypolicyreviews": { + "post": { + "description": "create a PodSecurityPolicyReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createPodSecurityPolicyReviewForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodSecurityPolicyReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodSecurityPolicyReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/podsecuritypolicyselfsubjectreviews": { + "post": { + "description": "create a PodSecurityPolicySelfSubjectReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createPodSecurityPolicySelfSubjectReviewForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodSecurityPolicySelfSubjectReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodSecurityPolicySelfSubjectReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/podsecuritypolicysubjectreviews": { + "post": { + "description": "create a PodSecurityPolicySubjectReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createPodSecurityPolicySubjectReviewForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodSecurityPolicySubjectReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodSecurityPolicySubjectReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/policies": { + "get": { + "description": "list or watch objects of kind Policy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listPolicyForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PolicyList" + } + } + } + }, + "post": { + "description": "create a Policy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createPolicyForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Policy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Policy" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/policybindings": { + "get": { + "description": "list or watch objects of kind PolicyBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listPolicyBindingForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PolicyBindingList" + } + } + } + }, + "post": { + "description": "create a PolicyBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createPolicyBindingForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PolicyBinding" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PolicyBinding" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/processedtemplates": { + "post": { + "description": "create a Template", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "operationId": "createProcessedTemplateForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Template" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Template" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/projectrequests": { + "get": { + "description": "list objects of kind ProjectRequest", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listProjectRequest", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "post": { + "description": "create a ProjectRequest", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createProjectRequest", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ProjectRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ProjectRequest" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/projects": { + "get": { + "description": "list or watch objects of kind Project", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listProject", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ProjectList" + } + } + } + }, + "post": { + "description": "create a Project", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createProject", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Project" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Project" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/projects/{name}": { + "get": { + "description": "read the specified Project", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readProject", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Project" + } + } + } + }, + "put": { + "description": "replace the specified Project", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceProject", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Project" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Project" + } + } + } + }, + "delete": { + "description": "delete a Project", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteProject", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified Project", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchProject", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Project" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Project", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/resourceaccessreviews": { + "post": { + "description": "create a ResourceAccessReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createResourceAccessReviewForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceAccessReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ResourceAccessReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/rolebindingrestrictions": { + "get": { + "description": "list or watch objects of kind RoleBindingRestriction", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listRoleBindingRestrictionForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBindingRestrictionList" + } + } + } + }, + "post": { + "description": "create a RoleBindingRestriction", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createRoleBindingRestrictionForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RoleBindingRestriction" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBindingRestriction" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/rolebindings": { + "get": { + "description": "list objects of kind RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listRoleBindingForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBindingList" + } + } + } + }, + "post": { + "description": "create a RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createRoleBindingForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/roles": { + "get": { + "description": "list objects of kind Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listRoleForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleList" + } + } + } + }, + "post": { + "description": "create a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createRoleForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Role" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Role" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/routes": { + "get": { + "description": "list or watch objects of kind Route", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listRouteForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RouteList" + } + } + } + }, + "post": { + "description": "create a Route", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createRouteForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Route" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Route" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/selfsubjectrulesreviews": { + "post": { + "description": "create a SelfSubjectRulesReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createSelfSubjectRulesReviewForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SelfSubjectRulesReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SelfSubjectRulesReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/subjectaccessreviews": { + "post": { + "description": "create a SubjectAccessReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createSubjectAccessReviewForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SubjectAccessReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SubjectAccessReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/subjectrulesreviews": { + "post": { + "description": "create a SubjectRulesReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createSubjectRulesReviewForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SubjectRulesReview" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SubjectRulesReview" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/templates": { + "get": { + "description": "list or watch objects of kind Template", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listTemplateForAllNamespaces", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.TemplateList" + } + } + } + }, + "post": { + "description": "create a Template", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createTemplateForAllNamespaces", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Template" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Template" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/useridentitymappings": { + "post": { + "description": "create an UserIdentityMapping", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createUserIdentityMapping", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.UserIdentityMapping" + } + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.UserIdentityMapping" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/useridentitymappings/{name}": { + "get": { + "description": "read the specified UserIdentityMapping", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readUserIdentityMapping", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.UserIdentityMapping" + } + } + } + }, + "put": { + "description": "replace the specified UserIdentityMapping", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceUserIdentityMapping", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.UserIdentityMapping" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.UserIdentityMapping" + } + } + } + }, + "delete": { + "description": "delete an UserIdentityMapping", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteUserIdentityMapping", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified UserIdentityMapping", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchUserIdentityMapping", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.UserIdentityMapping" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the UserIdentityMapping", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/users": { + "get": { + "description": "list or watch objects of kind User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "tags": [ + "oapi" + ], + "operationId": "listUser", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.UserList" + } + } + } + }, + "post": { + "description": "create an User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "createUser", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.User" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.User" + } + } + } + }, + "delete": { + "description": "delete collection of User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteCollectionUser", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/users/{name}": { + "get": { + "description": "read the specified User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "readUser", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.User" + } + } + } + }, + "put": { + "description": "replace the specified User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "replaceUser", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.User" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.User" + } + } + } + }, + "delete": { + "description": "delete an User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "deleteUser", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "name": "orphanDependents", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/unversioned.Status" + } + } + } + }, + "patch": { + "description": "partially update the specified User", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "tags": [ + "oapi" + ], + "operationId": "patchUser", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.User" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the User", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/oapi/v1/watch/buildconfigs": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/builds": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/clusternetworks": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/clusternetworks/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterNetwork", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/clusterpolicies": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/clusterpolicies/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterPolicy", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/clusterpolicybindings": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/clusterpolicybindings/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterPolicyBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/clusterresourcequotas": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/clusterresourcequotas/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterResourceQuota", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/deploymentconfigs": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/egressnetworkpolicies": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/groups": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/groups/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Group", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/hostsubnets": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/hostsubnets/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the HostSubnet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/identities": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/identities/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Identity", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/images": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/images/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Image", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/imagestreams": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/buildconfigs": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/buildconfigs/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BuildConfig", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/builds": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/builds/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Build", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/deploymentconfigs": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/deploymentconfigs/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the DeploymentConfig", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/egressnetworkpolicies": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/egressnetworkpolicies/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the EgressNetworkPolicy", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/imagestreams": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/imagestreams/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ImageStream", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/policies": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/policies/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Policy", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/policybindings": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/policybindings/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PolicyBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/rolebindingrestrictions": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/rolebindingrestrictions/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the RoleBindingRestriction", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/routes": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/routes/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Route", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/templates": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/namespaces/{namespace}/templates/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Template", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/netnamespaces": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/netnamespaces/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the NetNamespace", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/oauthaccesstokens": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/oauthaccesstokens/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the OAuthAccessToken", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/oauthauthorizetokens": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/oauthauthorizetokens/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the OAuthAuthorizeToken", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/oauthclientauthorizations": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/oauthclientauthorizations/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the OAuthClientAuthorization", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/oauthclients": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/oauthclients/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the OAuthClient", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/policies": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/policybindings": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/projects": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/projects/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Project", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/rolebindingrestrictions": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/routes": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/templates": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/users": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/oapi/v1/watch/users/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the User", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/osapi/": { + "get": { + "description": "list supported server API versions", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "osapi" + ], + "operationId": "getVersion", + "responses": { + "default": { + "description": "Default Response." + } + } + } + }, + "/version/": { + "get": { + "description": "get the code version", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "version" + ], + "operationId": "getCode", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/version.Info" + } + } + } + } + }, + "/apis/{fqdn}/v1/{resource}": { + "get": { + "responses": { + "200": { + "description": "A list of Resources", + "schema": { + "type": "object" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "in": "query", + "type": "boolean", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion." + }, + { + "description": "The Third party Resource fqdn", + "required": true, + "type": "string", + "name": "fqdn", + "in": "path" + }, + { + "description": "The Resource type", + "required": true, + "type": "string", + "name": "resource", + "in": "path" + } + ], + "tags": [ + "third_party_resources" + ], + "summary": "Gets Resources", + "operationId": "listThirdPartyResource", + "description": "Returns a list of Resources" + } + }, + "/apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name}": { + "put": { + "responses": { + "201": { + "description": "A list of Resources", + "schema": { + "type": "object" + } + } + }, + "parameters": [ + { + "description": "The Resource's namespace", + "required": true, + "type": "string", + "name": "namespace", + "in": "path" + }, + { + "description": "The Third party Resource fqdn", + "required": true, + "type": "string", + "name": "fqdn", + "in": "path" + }, + { + "description": "The Resource type", + "required": true, + "type": "string", + "name": "resource", + "in": "path" + }, + { + "schema": { + "type": "object" + }, + "description": "The JSON schema of the Resource to create.", + "required": true, + "name": "body", + "in": "body" + } + ], + "tags": [ + "third_party_resources" + ], + "summary": "Update a Resource", + "operationId": "updateThirdPartyResource", + "description": "Update the specified third party resource of the type specified" + }, + "delete": { + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + } + }, + "parameters": [ + { + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + }, + "required": true, + "name": "body", + "in": "body" + }, + { + "uniqueItems": true, + "in": "query", + "type": "integer", + "name": "gracePeriodSeconds", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately." + }, + { + "uniqueItems": true, + "in": "query", + "type": "boolean", + "name": "orphanDependents", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both." + }, + { + "uniqueItems": true, + "in": "query", + "type": "string", + "name": "propagationPolicy", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy." + } + ], + "tags": [ + "third_party_resources" + ], + "summary": "Deletes a specific Resource", + "operationId": "deleteThirdPartyResource", + "description": "Deletes the specified Resource in the specified namespace" + }, + "get": { + "responses": { + "200": { + "description": "A single Resource", + "schema": { + "type": "object" + } + } + }, + "parameters": [ + { + "description": "The Resource's namespace", + "required": true, + "type": "string", + "name": "namespace", + "in": "path" + }, + { + "description": "The Resource's name", + "required": true, + "type": "string", + "name": "name", + "in": "path" + }, + { + "description": "The Third party Resource fqdn", + "required": true, + "type": "string", + "name": "fqdn", + "in": "path" + }, + { + "description": "The Resource type", + "required": true, + "type": "string", + "name": "resource", + "in": "path" + } + ], + "tags": [ + "third_party_resources" + ], + "summary": "Gets a specific Resource", + "operationId": "getThirdPartyResource", + "description": "Returns a specific Resource in a namespace" + } + }, + "/apis/{fqdn}/v1/namespaces/{namespace}/{resource}": { + "post": { + "responses": { + "201": { + "description": "A list of Resources", + "schema": { + "type": "object" + } + } + }, + "parameters": [ + { + "description": "The Resource's namespace", + "required": true, + "type": "string", + "name": "namespace", + "in": "path" + }, + { + "description": "The Third party Resource fqdn", + "required": true, + "type": "string", + "name": "fqdn", + "in": "path" + }, + { + "description": "The Resource type", + "required": true, + "type": "string", + "name": "resource", + "in": "path" + }, + { + "schema": { + "type": "object" + }, + "description": "The JSON schema of the Resource to create.", + "required": true, + "name": "body", + "in": "body" + } + ], + "tags": [ + "third_party_resources" + ], + "summary": "Create a Resource", + "operationId": "createThirdPartyResource", + "description": "Creates a third party resource of the type specified" + } + } + }, + "definitions": { + "runtime.RawExtension": { + "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.Object `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// External package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// On the wire, the JSON will look something like this: {\n\t\"kind\":\"MyAPIObject\",\n\t\"apiVersion\":\"v1\",\n\t\"myPlugin\": {\n\t\t\"kind\":\"PluginA\",\n\t\t\"aOption\":\"foo\",\n\t},\n}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", + "required": [ + "Raw" + ], + "properties": { + "Raw": { + "description": "Raw is the underlying serialization of this object.", + "type": "string", + "format": "byte" + } + } + }, + "unversioned.APIGroup": { + "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "required": [ + "name", + "versions", + "serverAddressByClientCIDRs" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "name is the name of the group.", + "type": "string" + }, + "preferredVersion": { + "description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", + "$ref": "#/definitions/unversioned.GroupVersionForDiscovery" + }, + "serverAddressByClientCIDRs": { + "description": "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.", + "type": "array", + "items": { + "$ref": "#/definitions/unversioned.ServerAddressByClientCIDR" + } + }, + "versions": { + "description": "versions are the versions supported in this group.", + "type": "array", + "items": { + "$ref": "#/definitions/unversioned.GroupVersionForDiscovery" + } + } + } + }, + "unversioned.APIGroupList": { + "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "required": [ + "groups" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "groups": { + "description": "groups is a list of APIGroup.", + "type": "array", + "items": { + "$ref": "#/definitions/unversioned.APIGroup" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + } + } + }, + "unversioned.APIResource": { + "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "required": [ + "name", + "namespaced", + "kind" + ], + "properties": { + "kind": { + "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "type": "string" + }, + "name": { + "description": "name is the name of the resource.", + "type": "string" + }, + "namespaced": { + "description": "namespaced indicates if a resource is namespaced or not.", + "type": "boolean" + } + } + }, + "unversioned.APIResourceList": { + "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "required": [ + "groupVersion", + "resources" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "groupVersion": { + "description": "groupVersion is the group and version this APIResourceList is for.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "resources": { + "description": "resources contains the name of the resources and if they are namespaced.", + "type": "array", + "items": { + "$ref": "#/definitions/unversioned.APIResource" + } + } + } + }, + "unversioned.APIVersions": { + "description": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", + "required": [ + "versions", + "serverAddressByClientCIDRs" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "serverAddressByClientCIDRs": { + "description": "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.", + "type": "array", + "items": { + "$ref": "#/definitions/unversioned.ServerAddressByClientCIDR" + } + }, + "versions": { + "description": "versions are the api versions that are available.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "unversioned.GroupVersionForDiscovery": { + "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "required": [ + "groupVersion", + "version" + ], + "properties": { + "groupVersion": { + "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "type": "string" + }, + "version": { + "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "type": "string" + } + } + }, + "unversioned.LabelSelector": { + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "$ref": "#/definitions/unversioned.LabelSelectorRequirement" + } + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "unversioned.LabelSelectorRequirement": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "unversioned.ListMeta": { + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "properties": { + "resourceVersion": { + "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.", + "type": "string" + } + } + }, + "unversioned.ServerAddressByClientCIDR": { + "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "required": [ + "clientCIDR", + "serverAddress" + ], + "properties": { + "clientCIDR": { + "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + "type": "string" + }, + "serverAddress": { + "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "type": "string" + } + } + }, + "unversioned.Status": { + "description": "Status is a return value for calls that don't return other objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "code": { + "description": "Suggested HTTP return code for this status, 0 if not set.", + "type": "integer", + "format": "int32" + }, + "details": { + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", + "$ref": "#/definitions/unversioned.StatusDetails" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/unversioned.ListMeta" + }, + "reason": { + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", + "type": "string" + }, + "status": { + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "type": "string" + } + } + }, + "unversioned.StatusCause": { + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "properties": { + "field": { + "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "type": "string" + }, + "message": { + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "type": "string" + }, + "reason": { + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "type": "string" + } + } + }, + "unversioned.StatusDetails": { + "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "properties": { + "causes": { + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "type": "array", + "items": { + "$ref": "#/definitions/unversioned.StatusCause" + } + }, + "group": { + "description": "The group attribute of the resource associated with the status StatusReason.", + "type": "string" + }, + "kind": { + "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "type": "string" + }, + "retryAfterSeconds": { + "description": "If specified, the time in seconds before the operation should be retried.", + "type": "integer", + "format": "int32" + } + } + }, + "v1.AWSElasticBlockStoreVolumeSource": { + "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", + "required": [ + "volumeID" + ], + "properties": { + "fsType": { + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", + "type": "string" + }, + "partition": { + "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", + "type": "integer", + "format": "int32" + }, + "readOnly": { + "description": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", + "type": "boolean" + }, + "volumeID": { + "description": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", + "type": "string" + } + } + }, + "v1.AppliedClusterResourceQuota": { + "description": "AppliedClusterResourceQuota mirrors ClusterResourceQuota at a project scope, for projection into a project. It allows a project-admin to know which ClusterResourceQuotas are applied to his project and their associated usage.", + "required": [ + "metadata", + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec defines the desired quota", + "$ref": "#/definitions/v1.ClusterResourceQuotaSpec" + }, + "status": { + "description": "Status defines the actual enforced quota and its current usage", + "$ref": "#/definitions/v1.ClusterResourceQuotaStatus" + } + } + }, + "v1.AppliedClusterResourceQuotaList": { + "description": "AppliedClusterResourceQuotaList is a collection of AppliedClusterResourceQuotas", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of AppliedClusterResourceQuota", + "type": "array", + "items": { + "$ref": "#/definitions/v1.AppliedClusterResourceQuota" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.AttachedVolume": { + "description": "AttachedVolume describes a volume attached to a node", + "required": [ + "name", + "devicePath" + ], + "properties": { + "devicePath": { + "description": "DevicePath represents the device path where the volume should be available", + "type": "string" + }, + "name": { + "description": "Name of the attached volume", + "type": "string" + } + } + }, + "v1.AzureDiskVolumeSource": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "required": [ + "diskName", + "diskURI" + ], + "properties": { + "cachingMode": { + "description": "Host Caching mode: None, Read Only, Read Write.", + "type": "string" + }, + "diskName": { + "description": "The Name of the data disk in the blob storage", + "type": "string" + }, + "diskURI": { + "description": "The URI the data disk in the blob storage", + "type": "string" + }, + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "readOnly": { + "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + } + } + }, + "v1.AzureFileVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "required": [ + "secretName", + "shareName" + ], + "properties": { + "readOnly": { + "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretName": { + "description": "the name of secret that contains Azure Storage Account Name and Key", + "type": "string" + }, + "shareName": { + "description": "Share Name", + "type": "string" + } + } + }, + "v1.BinaryBuildSource": { + "description": "BinaryBuildSource describes a binary file to be used for the Docker and Source build strategies, where the file will be extracted and used as the build source.", + "properties": { + "asFile": { + "description": "asFile indicates that the provided binary input should be considered a single file within the build input. For example, specifying \"webapp.war\" would place the provided binary as `/webapp.war` for the builder. If left empty, the Docker and Source build strategies assume this file is a zip, tar, or tar.gz file and extract it as the source. The custom strategy receives this binary as standard input. This filename may not contain slashes or be '..' or '.'.", + "type": "string" + } + } + }, + "v1.Binding": { + "description": "Binding ties one object to another. For example, a pod is bound to a node by a scheduler.", + "required": [ + "target" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "target": { + "description": "The target object that you want to bind to the standard object.", + "$ref": "#/definitions/v1.ObjectReference" + } + } + }, + "v1.Build": { + "description": "Build encapsulates the inputs needed to produce a new deployable image, as well as the status of the execution and a reference to the Pod which executed the build.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "spec is all the inputs used to execute the build.", + "$ref": "#/definitions/v1.BuildSpec" + }, + "status": { + "description": "status is the current status of the build.", + "$ref": "#/definitions/v1.BuildStatus" + } + } + }, + "v1.BuildConfig": { + "description": "Build configurations define a build process for new Docker images. There are three types of builds possible - a Docker build using a Dockerfile, a Source-to-Image build that uses a specially prepared base image that accepts source code that it can make runnable, and a custom build that can run // arbitrary Docker images as a base and accept the build parameters. Builds run on the cluster and on completion are pushed to the Docker registry specified in the \"output\" section. A build can be triggered via a webhook, when the base image changes, or when a user manually requests a new build be // created.\n\nEach build created by a build configuration is numbered and refers back to its parent configuration. Multiple builds can be triggered at once. Builds that do not have \"output\" set can be used to test code or run a verification build.", + "required": [ + "spec", + "status" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "metadata for BuildConfig.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "spec holds all the input necessary to produce a new build, and the conditions when to trigger them.", + "$ref": "#/definitions/v1.BuildConfigSpec" + }, + "status": { + "description": "status holds any relevant information about a build config", + "$ref": "#/definitions/v1.BuildConfigStatus" + } + } + }, + "v1.BuildConfigList": { + "description": "BuildConfigList is a collection of BuildConfigs.", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is a list of build configs", + "type": "array", + "items": { + "$ref": "#/definitions/v1.BuildConfig" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "metadata for BuildConfigList.", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.BuildConfigSpec": { + "description": "BuildConfigSpec describes when and how builds are created", + "required": [ + "triggers", + "strategy", + "nodeSelector" + ], + "properties": { + "completionDeadlineSeconds": { + "description": "completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets scheduled in the system, that the build may be active on a node before the system actively tries to terminate the build; value must be positive integer", + "type": "integer", + "format": "int64" + }, + "nodeSelector": { + "description": "nodeSelector is a selector which must be true for the build pod to fit on a node If nil, it can be overridden by default build nodeselector values for the cluster. If set to an empty map or a map with any values, default build nodeselector values are ignored.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "output": { + "description": "output describes the Docker image the Strategy should produce.", + "$ref": "#/definitions/v1.BuildOutput" + }, + "postCommit": { + "description": "postCommit is a build hook executed after the build output image is committed, before it is pushed to a registry.", + "$ref": "#/definitions/v1.BuildPostCommitSpec" + }, + "resources": { + "description": "resources computes resource requirements to execute the build.", + "$ref": "#/definitions/v1.ResourceRequirements" + }, + "revision": { + "description": "revision is the information from the source for a specific repo snapshot. This is optional.", + "$ref": "#/definitions/v1.SourceRevision" + }, + "runPolicy": { + "description": "RunPolicy describes how the new build created from this build configuration will be scheduled for execution. This is optional, if not specified we default to \"Serial\".", + "type": "string" + }, + "serviceAccount": { + "description": "serviceAccount is the name of the ServiceAccount to use to run the pod created by this build. The pod will be allowed to use secrets referenced by the ServiceAccount", + "type": "string" + }, + "source": { + "description": "source describes the SCM in use.", + "$ref": "#/definitions/v1.BuildSource" + }, + "strategy": { + "description": "strategy defines how to perform a build.", + "$ref": "#/definitions/v1.BuildStrategy" + }, + "triggers": { + "description": "triggers determine how new Builds can be launched from a BuildConfig. If no triggers are defined, a new build can only occur as a result of an explicit client build creation.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.BuildTriggerPolicy" + } + } + } + }, + "v1.BuildConfigStatus": { + "description": "BuildConfigStatus contains current state of the build config object.", + "required": [ + "lastVersion" + ], + "properties": { + "lastVersion": { + "description": "lastVersion is used to inform about number of last triggered build.", + "type": "integer", + "format": "int64" + } + } + }, + "v1.BuildList": { + "description": "BuildList is a collection of Builds.", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is a list of builds", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Build" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "metadata for BuildList.", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.BuildLog": { + "description": "BuildLog is the (unused) resource associated with the build log redirector", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + } + } + }, + "v1.BuildOutput": { + "description": "BuildOutput is input to a build strategy and describes the Docker image that the strategy should produce.", + "properties": { + "imageLabels": { + "description": "imageLabels define a list of labels that are applied to the resulting image. If there are multiple labels with the same name then the last one in the list is used.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ImageLabel" + } + }, + "pushSecret": { + "description": "PushSecret is the name of a Secret that would be used for setting up the authentication for executing the Docker push to authentication enabled Docker Registry (or Docker Hub).", + "$ref": "#/definitions/v1.LocalObjectReference" + }, + "to": { + "description": "to defines an optional location to push the output of this build to. Kind must be one of 'ImageStreamTag' or 'DockerImage'. This value will be used to look up a Docker image repository to push to. In the case of an ImageStreamTag, the ImageStreamTag will be looked for in the namespace of the build unless Namespace is specified.", + "$ref": "#/definitions/v1.ObjectReference" + } + } + }, + "v1.BuildPostCommitSpec": { + "description": "A BuildPostCommitSpec holds a build post commit hook specification. The hook executes a command in a temporary container running the build output image, immediately after the last layer of the image is committed and before the image is pushed to a registry. The command is executed with the current working directory ($PWD) set to the image's WORKDIR.\n\nThe build will be marked as failed if the hook execution fails. It will fail if the script or command return a non-zero exit code, or if there is any other error related to starting the temporary container.\n\nThere are five different ways to configure the hook. As an example, all forms below are equivalent and will execute `rake test --verbose`.\n\n1. Shell script:\n\n \"postCommit\": {\n \"script\": \"rake test --verbose\",\n }\n\n The above is a convenient form which is equivalent to:\n\n \"postCommit\": {\n \"command\": [\"/bin/sh\", \"-ic\"],\n \"args\": [\"rake test --verbose\"]\n }\n\n2. A command as the image entrypoint:\n\n \"postCommit\": {\n \"commit\": [\"rake\", \"test\", \"--verbose\"]\n }\n\n Command overrides the image entrypoint in the exec form, as documented in\n Docker: https://docs.docker.com/engine/reference/builder/#entrypoint.\n\n3. Pass arguments to the default entrypoint:\n\n \"postCommit\": {\n\t\t \"args\": [\"rake\", \"test\", \"--verbose\"]\n\t }\n\n This form is only useful if the image entrypoint can handle arguments.\n\n4. Shell script with arguments:\n\n \"postCommit\": {\n \"script\": \"rake test $1\",\n \"args\": [\"--verbose\"]\n }\n\n This form is useful if you need to pass arguments that would otherwise be\n hard to quote properly in the shell script. In the script, $0 will be\n \"/bin/sh\" and $1, $2, etc, are the positional arguments from Args.\n\n5. Command with arguments:\n\n \"postCommit\": {\n \"command\": [\"rake\", \"test\"],\n \"args\": [\"--verbose\"]\n }\n\n This form is equivalent to appending the arguments to the Command slice.\n\nIt is invalid to provide both Script and Command simultaneously. If none of the fields are specified, the hook is not executed.", + "properties": { + "args": { + "description": "args is a list of arguments that are provided to either Command, Script or the Docker image's default entrypoint. The arguments are placed immediately after the command to be run.", + "type": "array", + "items": { + "type": "string" + } + }, + "command": { + "description": "command is the command to run. It may not be specified with Script. This might be needed if the image doesn't have `/bin/sh`, or if you do not want to use a shell. In all other cases, using Script might be more convenient.", + "type": "array", + "items": { + "type": "string" + } + }, + "script": { + "description": "script is a shell script to be run with `/bin/sh -ic`. It may not be specified with Command. Use Script when a shell script is appropriate to execute the post build hook, for example for running unit tests with `rake test`. If you need control over the image entrypoint, or if the image does not have `/bin/sh`, use Command and/or Args. The `-i` flag is needed to support CentOS and RHEL images that use Software Collections (SCL), in order to have the appropriate collections enabled in the shell. E.g., in the Ruby image, this is necessary to make `ruby`, `bundle` and other binaries available in the PATH.", + "type": "string" + } + } + }, + "v1.BuildRequest": { + "description": "BuildRequest is the resource used to pass parameters to build generator", + "required": [ + "triggeredBy" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "binary": { + "description": "binary indicates a request to build from a binary provided to the builder", + "$ref": "#/definitions/v1.BinaryBuildSource" + }, + "env": { + "description": "env contains additional environment variables you want to pass into a builder container", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EnvVar" + } + }, + "from": { + "description": "from is the reference to the ImageStreamTag that triggered the build.", + "$ref": "#/definitions/v1.ObjectReference" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "lastVersion": { + "description": "lastVersion (optional) is the LastVersion of the BuildConfig that was used to generate the build. If the BuildConfig in the generator doesn't match, a build will not be generated.", + "type": "integer", + "format": "int64" + }, + "metadata": { + "description": "metadata for BuildRequest.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "revision": { + "description": "revision is the information from the source for a specific repo snapshot.", + "$ref": "#/definitions/v1.SourceRevision" + }, + "triggeredBy": { + "description": "triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.BuildTriggerCause" + } + }, + "triggeredByImage": { + "description": "triggeredByImage is the Image that triggered this build.", + "$ref": "#/definitions/v1.ObjectReference" + } + } + }, + "v1.BuildSource": { + "description": "BuildSource is the SCM used for the build.", + "required": [ + "type" + ], + "properties": { + "binary": { + "description": "binary builds accept a binary as their input. The binary is generally assumed to be a tar, gzipped tar, or zip file depending on the strategy. For Docker builds, this is the build context and an optional Dockerfile may be specified to override any Dockerfile in the build context. For Source builds, this is assumed to be an archive as described above. For Source and Docker builds, if binary.asFile is set the build will receive a directory with a single file. contextDir may be used when an archive is provided. Custom builds will receive this binary as input on STDIN.", + "$ref": "#/definitions/v1.BinaryBuildSource" + }, + "contextDir": { + "description": "contextDir specifies the sub-directory where the source code for the application exists. This allows to have buildable sources in directory other than root of repository.", + "type": "string" + }, + "dockerfile": { + "description": "dockerfile is the raw contents of a Dockerfile which should be built. When this option is specified, the FROM may be modified based on your strategy base image and additional ENV stanzas from your strategy environment will be added after the FROM, but before the rest of your Dockerfile stanzas. The Dockerfile source type may be used with other options like git - in those cases the Git repo will have any innate Dockerfile replaced in the context dir.", + "type": "string" + }, + "git": { + "description": "git contains optional information about git build source", + "$ref": "#/definitions/v1.GitBuildSource" + }, + "images": { + "description": "images describes a set of images to be used to provide source for the build", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ImageSource" + } + }, + "secrets": { + "description": "secrets represents a list of secrets and their destinations that will be used only for the build.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.SecretBuildSource" + } + }, + "sourceSecret": { + "description": "sourceSecret is the name of a Secret that would be used for setting up the authentication for cloning private repository. The secret contains valid credentials for remote repository, where the data's key represent the authentication method to be used and value is the base64 encoded credentials. Supported auth methods are: ssh-privatekey.", + "$ref": "#/definitions/v1.LocalObjectReference" + }, + "type": { + "description": "type of build input to accept", + "type": "string" + } + } + }, + "v1.BuildSpec": { + "description": "BuildSpec has the information to represent a build and also additional information about a build", + "required": [ + "strategy", + "nodeSelector", + "triggeredBy" + ], + "properties": { + "completionDeadlineSeconds": { + "description": "completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets scheduled in the system, that the build may be active on a node before the system actively tries to terminate the build; value must be positive integer", + "type": "integer", + "format": "int64" + }, + "nodeSelector": { + "description": "nodeSelector is a selector which must be true for the build pod to fit on a node If nil, it can be overridden by default build nodeselector values for the cluster. If set to an empty map or a map with any values, default build nodeselector values are ignored.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "output": { + "description": "output describes the Docker image the Strategy should produce.", + "$ref": "#/definitions/v1.BuildOutput" + }, + "postCommit": { + "description": "postCommit is a build hook executed after the build output image is committed, before it is pushed to a registry.", + "$ref": "#/definitions/v1.BuildPostCommitSpec" + }, + "resources": { + "description": "resources computes resource requirements to execute the build.", + "$ref": "#/definitions/v1.ResourceRequirements" + }, + "revision": { + "description": "revision is the information from the source for a specific repo snapshot. This is optional.", + "$ref": "#/definitions/v1.SourceRevision" + }, + "serviceAccount": { + "description": "serviceAccount is the name of the ServiceAccount to use to run the pod created by this build. The pod will be allowed to use secrets referenced by the ServiceAccount", + "type": "string" + }, + "source": { + "description": "source describes the SCM in use.", + "$ref": "#/definitions/v1.BuildSource" + }, + "strategy": { + "description": "strategy defines how to perform a build.", + "$ref": "#/definitions/v1.BuildStrategy" + }, + "triggeredBy": { + "description": "triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.BuildTriggerCause" + } + } + } + }, + "v1.BuildStatus": { + "description": "BuildStatus contains the status of a build", + "required": [ + "phase" + ], + "properties": { + "cancelled": { + "description": "cancelled describes if a cancel event was triggered for the build.", + "type": "boolean" + }, + "completionTimestamp": { + "description": "completionTimestamp is a timestamp representing the server time when this Build was finished, whether that build failed or succeeded. It reflects the time at which the Pod running the Build terminated. It is represented in RFC3339 form and is in UTC.", + "type": "string", + "format": "date-time" + }, + "config": { + "description": "config is an ObjectReference to the BuildConfig this Build is based on.", + "$ref": "#/definitions/v1.ObjectReference" + }, + "duration": { + "description": "duration contains time.Duration object describing build time.", + "type": "integer", + "format": "int64" + }, + "message": { + "description": "message is a human-readable message indicating details about why the build has this status.", + "type": "string" + }, + "output": { + "description": "output describes the Docker image the build has produced.", + "$ref": "#/definitions/v1.BuildStatusOutput" + }, + "outputDockerImageReference": { + "description": "outputDockerImageReference contains a reference to the Docker image that will be built by this build. Its value is computed from Build.Spec.Output.To, and should include the registry address, so that it can be used to push and pull the image.", + "type": "string" + }, + "phase": { + "description": "phase is the point in the build lifecycle.", + "type": "string" + }, + "reason": { + "description": "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", + "type": "string" + }, + "startTimestamp": { + "description": "startTimestamp is a timestamp representing the server time when this Build started running in a Pod. It is represented in RFC3339 form and is in UTC.", + "type": "string", + "format": "date-time" + } + } + }, + "v1.BuildStatusOutput": { + "description": "BuildStatusOutput contains the status of the built image.", + "properties": { + "to": { + "description": "to describes the status of the built image being pushed to a registry.", + "$ref": "#/definitions/v1.BuildStatusOutputTo" + } + } + }, + "v1.BuildStatusOutputTo": { + "description": "BuildStatusOutputTo describes the status of the built image with regards to image registry to which it was supposed to be pushed.", + "properties": { + "imageDigest": { + "description": "imageDigest is the digest of the built Docker image. The digest uniquely identifies the image in the registry to which it was pushed.\n\nPlease note that this field may not always be set even if the push completes successfully - e.g. when the registry returns no digest or returns it in a format that the builder doesn't understand.", + "type": "string" + } + } + }, + "v1.BuildStrategy": { + "description": "BuildStrategy contains the details of how to perform a build.", + "required": [ + "type" + ], + "properties": { + "customStrategy": { + "description": "customStrategy holds the parameters to the Custom build strategy", + "$ref": "#/definitions/v1.CustomBuildStrategy" + }, + "dockerStrategy": { + "description": "dockerStrategy holds the parameters to the Docker build strategy.", + "$ref": "#/definitions/v1.DockerBuildStrategy" + }, + "jenkinsPipelineStrategy": { + "description": "JenkinsPipelineStrategy holds the parameters to the Jenkins Pipeline build strategy. This strategy is in tech preview.", + "$ref": "#/definitions/v1.JenkinsPipelineBuildStrategy" + }, + "sourceStrategy": { + "description": "sourceStrategy holds the parameters to the Source build strategy.", + "$ref": "#/definitions/v1.SourceBuildStrategy" + }, + "type": { + "description": "type is the kind of build strategy.", + "type": "string" + } + } + }, + "v1.BuildTriggerCause": { + "description": "BuildTriggerCause holds information about a triggered build. It is used for displaying build trigger data for each build and build configuration in oc describe. It is also used to describe which triggers led to the most recent update in the build configuration.", + "properties": { + "genericWebHook": { + "description": "genericWebHook holds data about a builds generic webhook trigger.", + "$ref": "#/definitions/v1.GenericWebHookCause" + }, + "githubWebHook": { + "description": "gitHubWebHook represents data for a GitHub webhook that fired a specific build.", + "$ref": "#/definitions/v1.GitHubWebHookCause" + }, + "imageChangeBuild": { + "description": "imageChangeBuild stores information about an imagechange event that triggered a new build.", + "$ref": "#/definitions/v1.ImageChangeCause" + }, + "message": { + "description": "message is used to store a human readable message for why the build was triggered. E.g.: \"Manually triggered by user\", \"Configuration change\",etc.", + "type": "string" + } + } + }, + "v1.BuildTriggerPolicy": { + "description": "BuildTriggerPolicy describes a policy for a single trigger that results in a new Build.", + "required": [ + "type" + ], + "properties": { + "generic": { + "description": "generic contains the parameters for a Generic webhook type of trigger", + "$ref": "#/definitions/v1.WebHookTrigger" + }, + "github": { + "description": "github contains the parameters for a GitHub webhook type of trigger", + "$ref": "#/definitions/v1.WebHookTrigger" + }, + "imageChange": { + "description": "imageChange contains parameters for an ImageChange type of trigger", + "$ref": "#/definitions/v1.ImageChangeTrigger" + }, + "type": { + "description": "type is the type of build trigger", + "type": "string" + } + } + }, + "v1.Capabilities": { + "description": "Adds and removes POSIX capabilities from running containers.", + "properties": { + "add": { + "description": "Added capabilities", + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "description": "Removed capabilities", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "v1.CephFSVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "required": [ + "monitors" + ], + "properties": { + "monitors": { + "description": "Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "type": "array", + "items": { + "type": "string" + } + }, + "path": { + "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": "string" + }, + "readOnly": { + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" + }, + "secretFile": { + "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + }, + "secretRef": { + "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "$ref": "#/definitions/v1.LocalObjectReference" + }, + "user": { + "description": "Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + } + } + }, + "v1.CinderVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "required": [ + "volumeID" + ], + "properties": { + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", + "type": "string" + }, + "readOnly": { + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", + "type": "boolean" + }, + "volumeID": { + "description": "volume id used to identify the volume in cinder More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", + "type": "string" + } + } + }, + "v1.ClusterNetwork": { + "description": "ClusterNetwork describes the cluster network. There is normally only one object of this type, named \"default\", which is created by the SDN network plugin based on the master configuration when the cluster is brought up for the first time.", + "required": [ + "network", + "hostsubnetlength", + "serviceNetwork" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "hostsubnetlength": { + "description": "HostSubnetLength is the number of bits of network to allocate to each node. eg, 8 would mean that each node would have a /24 slice of the overlay network for its pods", + "type": "integer", + "format": "int64" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "network": { + "description": "Network is a CIDR string specifying the global overlay network's L3 space", + "type": "string" + }, + "pluginName": { + "description": "PluginName is the name of the network plugin being used", + "type": "string" + }, + "serviceNetwork": { + "description": "ServiceNetwork is the CIDR range that Service IP addresses are allocated from", + "type": "string" + } + } + }, + "v1.ClusterNetworkList": { + "description": "ClusterNetworkList is a collection of ClusterNetworks", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of cluster networks", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ClusterNetwork" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.ClusterPolicy": { + "description": "ClusterPolicy is a object that holds all the ClusterRoles for a particular namespace. There is at most one ClusterPolicy document per namespace.", + "required": [ + "lastModified", + "roles" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "lastModified": { + "description": "LastModified is the last time that any part of the ClusterPolicy was created, updated, or deleted", + "type": "string", + "format": "date-time" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "roles": { + "description": "Roles holds all the ClusterRoles held by this ClusterPolicy, mapped by ClusterRole.Name", + "type": "array", + "items": { + "$ref": "#/definitions/v1.NamedClusterRole" + } + } + } + }, + "v1.ClusterPolicyBinding": { + "description": "ClusterPolicyBinding is a object that holds all the ClusterRoleBindings for a particular namespace. There is one ClusterPolicyBinding document per referenced ClusterPolicy namespace", + "required": [ + "lastModified", + "policyRef", + "roleBindings" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "lastModified": { + "description": "LastModified is the last time that any part of the ClusterPolicyBinding was created, updated, or deleted", + "type": "string", + "format": "date-time" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "policyRef": { + "description": "PolicyRef is a reference to the ClusterPolicy that contains all the ClusterRoles that this ClusterPolicyBinding's RoleBindings may reference", + "$ref": "#/definitions/v1.ObjectReference" + }, + "roleBindings": { + "description": "RoleBindings holds all the ClusterRoleBindings held by this ClusterPolicyBinding, mapped by ClusterRoleBinding.Name", + "type": "array", + "items": { + "$ref": "#/definitions/v1.NamedClusterRoleBinding" + } + } + } + }, + "v1.ClusterPolicyBindingList": { + "description": "ClusterPolicyBindingList is a collection of ClusterPolicyBindings", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of ClusterPolicyBindings", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ClusterPolicyBinding" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.ClusterPolicyList": { + "description": "ClusterPolicyList is a collection of ClusterPolicies", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of ClusterPolicies", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ClusterPolicy" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.ClusterResourceQuota": { + "description": "ClusterResourceQuota mirrors ResourceQuota at a cluster scope. This object is easily convertible to synthetic ResourceQuota object to allow quota evaluation re-use.", + "required": [ + "metadata", + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec defines the desired quota", + "$ref": "#/definitions/v1.ClusterResourceQuotaSpec" + }, + "status": { + "description": "Status defines the actual enforced quota and its current usage", + "$ref": "#/definitions/v1.ClusterResourceQuotaStatus" + } + } + }, + "v1.ClusterResourceQuotaList": { + "description": "ClusterResourceQuotaList is a collection of ClusterResourceQuotas", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of ClusterResourceQuotas", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ClusterResourceQuota" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.ClusterResourceQuotaSelector": { + "description": "ClusterResourceQuotaSelector is used to select projects. At least one of LabelSelector or AnnotationSelector must present. If only one is present, it is the only selection criteria. If both are specified, the project must match both restrictions.", + "required": [ + "labels", + "annotations" + ], + "properties": { + "annotations": { + "description": "AnnotationSelector is used to select projects by annotation.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "description": "LabelSelector is used to select projects by label.", + "$ref": "#/definitions/unversioned.LabelSelector" + } + } + }, + "v1.ClusterResourceQuotaSpec": { + "description": "ClusterResourceQuotaSpec defines the desired quota restrictions", + "required": [ + "selector", + "quota" + ], + "properties": { + "quota": { + "description": "Quota defines the desired quota", + "$ref": "#/definitions/v1.ResourceQuotaSpec" + }, + "selector": { + "description": "Selector is the selector used to match projects. It should only select active projects on the scale of dozens (though it can select many more less active projects). These projects will contend on object creation through this resource.", + "$ref": "#/definitions/v1.ClusterResourceQuotaSelector" + } + } + }, + "v1.ClusterResourceQuotaStatus": { + "description": "ClusterResourceQuotaStatus defines the actual enforced quota and its current usage", + "required": [ + "total", + "namespaces" + ], + "properties": { + "namespaces": { + "description": "Namespaces slices the usage by project. This division allows for quick resolution of deletion reconciliation inside of a single project without requiring a recalculation across all projects. This can be used to pull the deltas for a given project.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ResourceQuotaStatusByNamespace" + } + }, + "total": { + "description": "Total defines the actual enforced quota and its current usage across all projects", + "$ref": "#/definitions/v1.ResourceQuotaStatus" + } + } + }, + "v1.ClusterRole": { + "description": "ClusterRole is a logical grouping of PolicyRules that can be referenced as a unit by ClusterRoleBindings.", + "required": [ + "rules" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "rules": { + "description": "Rules holds all the PolicyRules for this ClusterRole", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PolicyRule" + } + } + } + }, + "v1.ClusterRoleBinding": { + "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference any ClusterRole in the same namespace or in the global namespace. It adds who information via (Users and Groups) OR Subjects and namespace information by which namespace it exists in. ClusterRoleBindings in a given namespace only have effect in that namespace (excepting the master namespace which has power in all namespaces).", + "required": [ + "userNames", + "groupNames", + "subjects", + "roleRef" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "groupNames": { + "description": "GroupNames holds all the groups directly bound to the role. This field should only be specified when supporting legacy clients and servers. See Subjects for further details.", + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "roleRef": { + "description": "RoleRef can only reference the current namespace and the global namespace. If the ClusterRoleRef cannot be resolved, the Authorizer must return an error. Since Policy is a singleton, this is sufficient knowledge to locate a role.", + "$ref": "#/definitions/v1.ObjectReference" + }, + "subjects": { + "description": "Subjects hold object references to authorize with this rule. This field is ignored if UserNames or GroupNames are specified to support legacy clients and servers. Thus newer clients that do not need to support backwards compatibility should send only fully qualified Subjects and should omit the UserNames and GroupNames fields. Clients that need to support backwards compatibility can use this field to build the UserNames and GroupNames.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ObjectReference" + } + }, + "userNames": { + "description": "UserNames holds all the usernames directly bound to the role. This field should only be specified when supporting legacy clients and servers. See Subjects for further details.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "v1.ClusterRoleBindingList": { + "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of ClusterRoleBindings", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.ClusterRoleList": { + "description": "ClusterRoleList is a collection of ClusterRoles", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of ClusterRoles", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.ClusterRoleScopeRestriction": { + "description": "ClusterRoleScopeRestriction describes restrictions on cluster role scopes", + "required": [ + "roleNames", + "namespaces", + "allowEscalation" + ], + "properties": { + "allowEscalation": { + "description": "AllowEscalation indicates whether you can request roles and their escalating resources", + "type": "boolean" + }, + "namespaces": { + "description": "Namespaces is the list of namespaces that can be referenced. * means any of them (including *)", + "type": "array", + "items": { + "type": "string" + } + }, + "roleNames": { + "description": "RoleNames is the list of cluster roles that can referenced. * means anything", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "v1.ComponentCondition": { + "description": "Information about the condition of a component.", + "required": [ + "type", + "status" + ], + "properties": { + "error": { + "description": "Condition error code for a component. For example, a health check error code.", + "type": "string" + }, + "message": { + "description": "Message about the condition for a component. For example, information about a health check.", + "type": "string" + }, + "status": { + "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", + "type": "string" + }, + "type": { + "description": "Type of condition for a component. Valid value: \"Healthy\"", + "type": "string" + } + } + }, + "v1.ComponentStatus": { + "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "conditions": { + "description": "List of component conditions observed", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ComponentCondition" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + } + } + }, + "v1.ComponentStatusList": { + "description": "Status of all the conditions for the component as a list of ComponentStatus objects.", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ComponentStatus objects.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ComponentStatus" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.ConfigMap": { + "description": "ConfigMap holds configuration data for pods to consume.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "data": { + "description": "Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + } + } + }, + "v1.ConfigMapKeySelector": { + "description": "Selects a key from a ConfigMap.", + "required": [ + "key" + ], + "properties": { + "key": { + "description": "The key to select.", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + } + } + }, + "v1.ConfigMapList": { + "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of ConfigMaps.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ConfigMap" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.ConfigMapVolumeSource": { + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "items": { + "description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.KeyToPath" + } + }, + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + } + } + }, + "v1.Container": { + "description": "A single application container that you want to run within a pod.", + "required": [ + "name" + ], + "properties": { + "args": { + "description": "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands", + "type": "array", + "items": { + "type": "string" + } + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands", + "type": "array", + "items": { + "type": "string" + } + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EnvVar" + } + }, + "image": { + "description": "Docker image name. More info: http://kubernetes.io/docs/user-guide/images", + "type": "string" + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images", + "type": "string" + }, + "lifecycle": { + "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", + "$ref": "#/definitions/v1.Lifecycle" + }, + "livenessProbe": { + "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", + "$ref": "#/definitions/v1.Probe" + }, + "name": { + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", + "type": "string" + }, + "ports": { + "description": "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ContainerPort" + } + }, + "readinessProbe": { + "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", + "$ref": "#/definitions/v1.Probe" + }, + "resources": { + "description": "Compute Resources required by this container. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources", + "$ref": "#/definitions/v1.ResourceRequirements" + }, + "securityContext": { + "description": "Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md", + "$ref": "#/definitions/v1.SecurityContext" + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": "boolean" + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": "boolean" + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated.", + "type": "string" + }, + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": "boolean" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.VolumeMount" + } + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": "string" + } + } + }, + "v1.ContainerImage": { + "description": "Describe a container image", + "required": [ + "names" + ], + "properties": { + "names": { + "description": "Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]", + "type": "array", + "items": { + "type": "string" + } + }, + "sizeBytes": { + "description": "The size of the image in bytes.", + "type": "integer", + "format": "int64" + } + } + }, + "v1.ContainerPort": { + "description": "ContainerPort represents a network port in a single container.", + "required": [ + "containerPort" + ], + "properties": { + "containerPort": { + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", + "type": "integer", + "format": "int32" + }, + "hostIP": { + "description": "What host IP to bind the external port to.", + "type": "string" + }, + "hostPort": { + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "type": "integer", + "format": "int32" + }, + "name": { + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "type": "string" + }, + "protocol": { + "description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\".", + "type": "string" + } + } + }, + "v1.ContainerState": { + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", + "properties": { + "running": { + "description": "Details about a running container", + "$ref": "#/definitions/v1.ContainerStateRunning" + }, + "terminated": { + "description": "Details about a terminated container", + "$ref": "#/definitions/v1.ContainerStateTerminated" + }, + "waiting": { + "description": "Details about a waiting container", + "$ref": "#/definitions/v1.ContainerStateWaiting" + } + } + }, + "v1.ContainerStateRunning": { + "description": "ContainerStateRunning is a running state of a container.", + "properties": { + "startedAt": { + "description": "Time at which the container was last (re-)started", + "type": "string", + "format": "date-time" + } + } + }, + "v1.ContainerStateTerminated": { + "description": "ContainerStateTerminated is a terminated state of a container.", + "required": [ + "exitCode" + ], + "properties": { + "containerID": { + "description": "Container's ID in the format 'docker://'", + "type": "string" + }, + "exitCode": { + "description": "Exit status from the last termination of the container", + "type": "integer", + "format": "int32" + }, + "finishedAt": { + "description": "Time at which the container last terminated", + "type": "string", + "format": "date-time" + }, + "message": { + "description": "Message regarding the last termination of the container", + "type": "string" + }, + "reason": { + "description": "(brief) reason from the last termination of the container", + "type": "string" + }, + "signal": { + "description": "Signal from the last termination of the container", + "type": "integer", + "format": "int32" + }, + "startedAt": { + "description": "Time at which previous execution of the container started", + "type": "string", + "format": "date-time" + } + } + }, + "v1.ContainerStateWaiting": { + "description": "ContainerStateWaiting is a waiting state of a container.", + "properties": { + "message": { + "description": "Message regarding why the container is not yet running.", + "type": "string" + }, + "reason": { + "description": "(brief) reason the container is not yet running.", + "type": "string" + } + } + }, + "v1.ContainerStatus": { + "description": "ContainerStatus contains details for the current status of this container.", + "required": [ + "name", + "ready", + "restartCount", + "image", + "imageID" + ], + "properties": { + "containerID": { + "description": "Container's ID in the format 'docker://'. More info: http://kubernetes.io/docs/user-guide/container-environment#container-information", + "type": "string" }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + "image": { + "description": "The image the container is running. More info: http://kubernetes.io/docs/user-guide/images", + "type": "string" }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" + "imageID": { + "description": "ImageID of the container's image.", + "type": "string" }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" + "lastState": { + "description": "Details about the container's last termination condition.", + "$ref": "#/definitions/v1.ContainerState" }, - { - "uniqueItems": true, + "name": { + "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", + "type": "string" + }, + "ready": { + "description": "Specifies whether the container has passed its readiness probe.", + "type": "boolean" + }, + "restartCount": { + "description": "The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC.", "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" + "format": "int32" }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" + "state": { + "description": "Details about the container's current condition.", + "$ref": "#/definitions/v1.ContainerState" } - ] + } }, - "/apis/storage.k8s.io/v1beta1/watch/storageclasses/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" + "v1.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "required": [ + "kind", + "name" + ], + "properties": { + "apiVersion": { + "description": "API version of the referent", + "type": "string" }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + "kind": { + "description": "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\"", + "type": "string" }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true + "name": { + "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + } + } + }, + "v1.CustomBuildStrategy": { + "description": "CustomBuildStrategy defines input parameters specific to Custom build.", + "required": [ + "from" + ], + "properties": { + "buildAPIVersion": { + "description": "buildAPIVersion is the requested API version for the Build object serialized and passed to the custom builder", + "type": "string" }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" + "env": { + "description": "env contains additional environment variables you want to pass into a builder container", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EnvVar" + } }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" + "exposeDockerSocket": { + "description": "exposeDockerSocket will allow running Docker commands (and build Docker images) from inside the Docker container.", + "type": "boolean" }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" + "forcePull": { + "description": "forcePull describes if the controller should configure the build pod to always pull the images for the builder or only pull if it is not present locally", + "type": "boolean" }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/logs/": { - "get": { - "schemes": [ - "https" - ], - "tags": [ - "logs" - ], - "operationId": "logFileListHandler", - "responses": { - "401": { - "description": "Unauthorized" + "from": { + "description": "from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the docker image should be pulled", + "$ref": "#/definitions/v1.ObjectReference" + }, + "pullSecret": { + "description": "pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the Docker images from the private Docker registries", + "$ref": "#/definitions/v1.LocalObjectReference" + }, + "secrets": { + "description": "secrets is a list of additional secrets that will be included in the build pod", + "type": "array", + "items": { + "$ref": "#/definitions/v1.SecretSpec" } } } }, - "/logs/{logpath}": { - "get": { - "schemes": [ - "https" - ], - "tags": [ - "logs" - ], - "operationId": "logFileHandler", - "responses": { - "401": { - "description": "Unauthorized" + "v1.CustomDeploymentStrategyParams": { + "description": "CustomDeploymentStrategyParams are the input to the Custom deployment strategy.", + "properties": { + "command": { + "description": "Command is optional and overrides CMD in the container Image.", + "type": "array", + "items": { + "type": "string" + } + }, + "environment": { + "description": "Environment holds the environment which will be given to the container for Image.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EnvVar" } + }, + "image": { + "description": "Image specifies a Docker image which can carry out a deployment.", + "type": "string" } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "path to the log", - "name": "logpath", - "in": "path", - "required": true + } + }, + "v1.DaemonEndpoint": { + "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "required": [ + "Port" + ], + "properties": { + "Port": { + "description": "Port number of the given endpoint.", + "type": "integer", + "format": "int32" } - ] + } }, - "/version/": { - "get": { - "description": "get the code version", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "schemes": [ - "https" - ], - "tags": [ - "version" - ], - "operationId": "getCode", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/version.Info" - } - }, - "401": { - "description": "Unauthorized" - } + "v1.DeleteOptions": { + "description": "DeleteOptions may be provided when deleting an API object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "gracePeriodSeconds": { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "type": "integer", + "format": "int64" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "orphanDependents": { + "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "type": "boolean" + }, + "preconditions": { + "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", + "$ref": "#/definitions/v1.Preconditions" } } }, - "/apis/{fqdn}/v1/{resource}": { - "get": { - "responses": { - "200": { - "description": "A list of Resources", - "schema": { - "type": "object" - } - } + "v1.DeploymentCause": { + "description": "DeploymentCause captures information about a particular cause of a deployment.", + "required": [ + "type" + ], + "properties": { + "imageTrigger": { + "description": "ImageTrigger contains the image trigger details, if this trigger was fired based on an image change", + "$ref": "#/definitions/v1.DeploymentCauseImageTrigger" }, - "parameters": [ - { - "uniqueItems": true, - "in": "query", - "type": "boolean", - "name": "watch", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion." - }, - { - "description": "The Third party Resource fqdn", - "required": true, - "type": "string", - "name": "fqdn", - "in": "path" - }, - { - "description": "The Resource type", - "required": true, - "type": "string", - "name": "resource", - "in": "path" - } - ], - "tags": [ - "third_party_resources" - ], - "summary": "Gets Resources", - "operationId": "listThirdPartyResource", - "description": "Returns a list of Resources" + "type": { + "description": "Type of the trigger that resulted in the creation of a new deployment", + "type": "string" + } } }, - "/apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name}": { - "put": { - "responses": { - "201": { - "description": "A list of Resources", - "schema": { - "type": "object" - } - } + "v1.DeploymentCauseImageTrigger": { + "description": "DeploymentCauseImageTrigger represents details about the cause of a deployment originating from an image change trigger", + "required": [ + "from" + ], + "properties": { + "from": { + "description": "From is a reference to the changed object which triggered a deployment. The field may have the kinds DockerImage, ImageStreamTag, or ImageStreamImage.", + "$ref": "#/definitions/v1.ObjectReference" + } + } + }, + "v1.DeploymentCondition": { + "description": "DeploymentCondition describes the state of a deployment config at a certain point.", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "description": "The last time the condition transitioned from one status to another.", + "type": "string", + "format": "date-time" }, - "parameters": [ - { - "description": "The Resource's namespace", - "required": true, - "type": "string", - "name": "namespace", - "in": "path" - }, - { - "description": "The Third party Resource fqdn", - "required": true, - "type": "string", - "name": "fqdn", - "in": "path" - }, - { - "description": "The Resource type", - "required": true, - "type": "string", - "name": "resource", - "in": "path" - }, - { - "schema": { - "type": "object" - }, - "description": "The JSON schema of the Resource to create.", - "required": true, - "name": "body", - "in": "body" - } - ], - "tags": [ - "third_party_resources" - ], - "summary": "Update a Resource", - "operationId": "updateThirdPartyResource", - "description": "Update the specified third party resource of the type specified" - }, - "delete": { - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - } + "lastUpdateTime": { + "description": "The last time this condition was updated.", + "type": "string", + "format": "date-time" }, - "parameters": [ - { - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - }, - "required": true, - "name": "body", - "in": "body" - }, - { - "uniqueItems": true, - "in": "query", - "type": "integer", - "name": "gracePeriodSeconds", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately." - }, - { - "uniqueItems": true, - "in": "query", - "type": "boolean", - "name": "orphanDependents", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both." - }, - { - "uniqueItems": true, - "in": "query", - "type": "string", - "name": "propagationPolicy", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy." - } - ], - "tags": [ - "third_party_resources" - ], - "summary": "Deletes a specific Resource", - "operationId": "deleteThirdPartyResource", - "description": "Deletes the specified Resource in the specified namespace" - }, - "get": { - "responses": { - "200": { - "description": "A single Resource", - "schema": { - "type": "object" - } - } + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" }, - "parameters": [ - { - "description": "The Resource's namespace", - "required": true, - "type": "string", - "name": "namespace", - "in": "path" - }, - { - "description": "The Resource's name", - "required": true, - "type": "string", - "name": "name", - "in": "path" - }, - { - "description": "The Third party Resource fqdn", - "required": true, - "type": "string", - "name": "fqdn", - "in": "path" - }, - { - "description": "The Resource type", - "required": true, - "type": "string", - "name": "resource", - "in": "path" - } - ], - "tags": [ - "third_party_resources" - ], - "summary": "Gets a specific Resource", - "operationId": "getThirdPartyResource", - "description": "Returns a specific Resource in a namespace" - } - }, - "/apis/{fqdn}/v1/namespaces/{namespace}/{resource}": { - "post": { - "responses": { - "201": { - "description": "A list of Resources", - "schema": { - "type": "object" - } - } + "reason": { + "description": "The reason for the condition's last transition.", + "type": "string" }, - "parameters": [ - { - "description": "The Resource's namespace", - "required": true, - "type": "string", - "name": "namespace", - "in": "path" - }, - { - "description": "The Third party Resource fqdn", - "required": true, - "type": "string", - "name": "fqdn", - "in": "path" - }, - { - "description": "The Resource type", - "required": true, - "type": "string", - "name": "resource", - "in": "path" - }, - { - "schema": { - "type": "object" - }, - "description": "The JSON schema of the Resource to create.", - "required": true, - "name": "body", - "in": "body" - } - ], - "tags": [ - "third_party_resources" - ], - "summary": "Create a Resource", - "operationId": "createThirdPartyResource", - "description": "Creates a third party resource of the type specified" + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of deployment condition.", + "type": "string" + } } - } - }, - "definitions": { - "v1.NonResourceAttributes": { - "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", + }, + "v1.DeploymentConfig": { + "description": "Deployment Configs define the template for a pod and manages deploying new images or configuration changes. A single deployment configuration is usually analogous to a single micro-service. Can support many different deployment patterns, including full restart, customizable rolling updates, and fully custom behaviors, as well as pre- and post- deployment hooks. Each individual deployment is represented as a replication controller.\n\nA deployment is \"triggered\" when its configuration is changed or a tag in an Image Stream is changed. Triggers can be disabled to allow manual control over a deployment. The \"strategy\" determines how the deployment is carried out and may be changed at any time. The `latestVersion` field is updated when a new deployment is triggered by any means.", + "required": [ + "spec", + "status" + ], "properties": { - "path": { - "description": "Path is the URL path of the request", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "verb": { - "description": "Verb is the standard HTTP verb", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec represents a desired deployment state and how to deploy to it.", + "$ref": "#/definitions/v1.DeploymentConfigSpec" + }, + "status": { + "description": "Status represents the current deployment state.", + "$ref": "#/definitions/v1.DeploymentConfigStatus" } } }, - "v1.EndpointAddress": { - "description": "EndpointAddress is a tuple that describes single IP address.", + "v1.DeploymentConfigList": { + "description": "DeploymentConfigList is a collection of deployment configs.", "required": [ - "ip" + "items" ], "properties": { - "hostname": { - "description": "The Hostname of this endpoint", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "ip": { - "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", - "type": "string" + "items": { + "description": "Items is a list of deployment configs", + "type": "array", + "items": { + "$ref": "#/definitions/v1.DeploymentConfig" + } }, - "nodeName": { - "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "targetRef": { - "description": "Reference to object providing the endpoint.", - "$ref": "#/definitions/v1.ObjectReference" + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1.ContainerImage": { - "description": "Describe a container image", + "v1.DeploymentConfigRollback": { + "description": "DeploymentConfigRollback provides the input to rollback generation.", "required": [ - "names" + "name", + "spec" ], "properties": { - "names": { - "description": "Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]", - "type": "array", - "items": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the deployment config that will be rolled back.", + "type": "string" + }, + "spec": { + "description": "Spec defines the options to rollback generation.", + "$ref": "#/definitions/v1.DeploymentConfigRollbackSpec" + }, + "updatedAnnotations": { + "description": "UpdatedAnnotations is a set of new annotations that will be added in the deployment config.", + "type": "object", + "additionalProperties": { "type": "string" } - }, - "sizeBytes": { - "description": "The size of the image in bytes.", - "type": "integer", - "format": "int64" } } }, - "apps.v1beta1.RollbackConfig": { + "v1.DeploymentConfigRollbackSpec": { + "description": "DeploymentConfigRollbackSpec represents the options for rollback generation.", + "required": [ + "from", + "includeTriggers", + "includeTemplate", + "includeReplicationMeta", + "includeStrategy" + ], "properties": { + "from": { + "description": "From points to a ReplicationController which is a deployment.", + "$ref": "#/definitions/v1.ObjectReference" + }, + "includeReplicationMeta": { + "description": "IncludeReplicationMeta specifies whether to include the replica count and selector.", + "type": "boolean" + }, + "includeStrategy": { + "description": "IncludeStrategy specifies whether to include the deployment Strategy.", + "type": "boolean" + }, + "includeTemplate": { + "description": "IncludeTemplate specifies whether to include the PodTemplateSpec.", + "type": "boolean" + }, + "includeTriggers": { + "description": "IncludeTriggers specifies whether to include config Triggers.", + "type": "boolean" + }, "revision": { - "description": "The revision to rollback to. If set to 0, rollbck to the last revision.", + "description": "Revision to rollback to. If set to 0, rollback to the last revision.", "type": "integer", "format": "int64" } } }, - "extensions.v1beta1.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", - "properties": { - "maxSurge": { - "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", - "type": "string", - "format": "int-or-string" - }, - "maxUnavailable": { - "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "type": "string", - "format": "int-or-string" - } - } - }, - "v1.APIResource": { - "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "v1.DeploymentConfigSpec": { + "description": "DeploymentConfigSpec represents the desired state of the deployment.", "required": [ - "name", - "namespaced", - "kind", - "verbs" + "strategy", + "triggers", + "replicas", + "test" ], "properties": { - "kind": { - "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", - "type": "string" - }, - "name": { - "description": "name is the name of the resource.", - "type": "string" + "minReadySeconds": { + "description": "MinReadySeconds is the minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "type": "integer", + "format": "int32" }, - "namespaced": { - "description": "namespaced indicates if a resource is namespaced or not.", + "paused": { + "description": "Paused indicates that the deployment config is paused resulting in no new deployments on template changes or changes in the template caused by other triggers.", "type": "boolean" }, - "shortNames": { - "description": "shortNames is a list of suggested short names of the resource.", - "type": "array", - "items": { + "replicas": { + "description": "Replicas is the number of desired replicas.", + "type": "integer", + "format": "int32" + }, + "revisionHistoryLimit": { + "description": "RevisionHistoryLimit is the number of old ReplicationControllers to retain to allow for rollbacks. This field is a pointer to allow for differentiation between an explicit zero and not specified.", + "type": "integer", + "format": "int32" + }, + "selector": { + "description": "Selector is a label query over pods that should match the Replicas count.", + "type": "object", + "additionalProperties": { "type": "string" } }, - "verbs": { - "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "strategy": { + "description": "Strategy describes how a deployment is executed.", + "$ref": "#/definitions/v1.DeploymentStrategy" + }, + "template": { + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected.", + "$ref": "#/definitions/v1.PodTemplateSpec" + }, + "test": { + "description": "Test ensures that this deployment config will have zero replicas except while a deployment is running. This allows the deployment config to be used as a continuous deployment test - triggering on images, running the deployment, and then succeeding or failing. Post strategy hooks and After actions can be used to integrate successful deployment with an action.", + "type": "boolean" + }, + "triggers": { + "description": "Triggers determine how updates to a DeploymentConfig result in new deployments. If no triggers are defined, a new deployment can only occur as a result of an explicit client update to the DeploymentConfig with a new LatestVersion. If null, defaults to having a config change trigger.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1.DeploymentTriggerPolicy" } } } }, - "v1.Lifecycle": { - "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "v1.DeploymentConfigStatus": { + "description": "DeploymentConfigStatus represents the current deployment state.", + "required": [ + "latestVersion", + "observedGeneration", + "replicas", + "updatedReplicas", + "availableReplicas", + "unavailableReplicas" + ], "properties": { - "postStart": { - "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details", - "$ref": "#/definitions/v1.Handler" + "availableReplicas": { + "description": "AvailableReplicas is the total number of available pods targeted by this deployment config.", + "type": "integer", + "format": "int32" }, - "preStop": { - "description": "PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details", - "$ref": "#/definitions/v1.Handler" + "conditions": { + "description": "Conditions represents the latest available observations of a deployment config's current state.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.DeploymentCondition" + } + }, + "details": { + "description": "Details are the reasons for the update to this deployment config. This could be based on a change made by the user or caused by an automatic trigger", + "$ref": "#/definitions/v1.DeploymentDetails" + }, + "latestVersion": { + "description": "LatestVersion is used to determine whether the current deployment associated with a deployment config is out of sync.", + "type": "integer", + "format": "int64" + }, + "observedGeneration": { + "description": "ObservedGeneration is the most recent generation observed by the deployment config controller.", + "type": "integer", + "format": "int64" + }, + "readyReplicas": { + "description": "Total number of ready pods targeted by this deployment.", + "type": "integer", + "format": "int32" + }, + "replicas": { + "description": "Replicas is the total number of pods targeted by this deployment config.", + "type": "integer", + "format": "int32" + }, + "unavailableReplicas": { + "description": "UnavailableReplicas is the total number of unavailable pods targeted by this deployment config.", + "type": "integer", + "format": "int32" + }, + "updatedReplicas": { + "description": "UpdatedReplicas is the total number of non-terminated pods targeted by this deployment config that have the desired template spec.", + "type": "integer", + "format": "int32" } } }, - "v1.AzureDiskVolumeSource": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "v1.DeploymentDetails": { + "description": "DeploymentDetails captures information about the causes of a deployment.", "required": [ - "diskName", - "diskURI" + "causes" ], "properties": { - "cachingMode": { - "description": "Host Caching mode: None, Read Only, Read Write.", - "type": "string" + "causes": { + "description": "Causes are extended data associated with all the causes for creating a new deployment", + "type": "array", + "items": { + "$ref": "#/definitions/v1.DeploymentCause" + } }, - "diskName": { - "description": "The Name of the data disk in the blob storage", + "message": { + "description": "Message is the user specified change message, if this deployment was triggered manually by the user", "type": "string" - }, - "diskURI": { - "description": "The URI the data disk in the blob storage", + } + } + }, + "v1.DeploymentLog": { + "description": "DeploymentLog represents the logs for a deployment", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" - }, - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" } } }, - "v1beta1.StatefulSet": { - "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "v1.DeploymentRequest": { + "description": "DeploymentRequest is a request to a deployment config for a new deployment.", + "required": [ + "name", + "latest", + "force" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "force": { + "description": "Force will try to force a new deployment to run. If the deployment config is paused, then setting this to true will return an Invalid error.", + "type": "boolean" + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the desired identities of pods in this set.", - "$ref": "#/definitions/v1beta1.StatefulSetSpec" + "latest": { + "description": "Latest will update the deployment config with the latest state from all triggers.", + "type": "boolean" }, - "status": { - "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", - "$ref": "#/definitions/v1beta1.StatefulSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "apps", - "Version": "v1beta1", - "Kind": "StatefulSet" - } - ] - }, - "v1beta1.APIVersion": { - "description": "An APIVersion represents a single concrete version of an object model.", - "properties": { "name": { - "description": "Name of this version (e.g. 'v1').", + "description": "Name of the deployment config for requesting a new deployment.", "type": "string" } } }, - "v1.UserInfo": { - "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", + "v1.DeploymentStrategy": { + "description": "DeploymentStrategy describes how to perform a deployment.", "properties": { - "extra": { - "description": "Any additional information provided by the authenticator.", + "activeDeadlineSeconds": { + "description": "ActiveDeadlineSeconds is the duration in seconds that the deployer pods for this deployment config may be active on a node before the system actively tries to terminate them.", + "type": "integer", + "format": "int64" + }, + "annotations": { + "description": "Annotations is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.", "type": "object", "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } + "type": "string" } }, - "groups": { - "description": "The names of groups this user is a part of.", - "type": "array", - "items": { + "customParams": { + "description": "CustomParams are the input to the Custom deployment strategy, and may also be specified for the Recreate and Rolling strategies to customize the execution process that runs the deployment.", + "$ref": "#/definitions/v1.CustomDeploymentStrategyParams" + }, + "labels": { + "description": "Labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.", + "type": "object", + "additionalProperties": { "type": "string" } }, - "uid": { - "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", - "type": "string" + "recreateParams": { + "description": "RecreateParams are the input to the Recreate deployment strategy.", + "$ref": "#/definitions/v1.RecreateDeploymentStrategyParams" }, - "username": { - "description": "The name that uniquely identifies this user among all active users.", + "resources": { + "description": "Resources contains resource requirements to execute the deployment and any hooks.", + "$ref": "#/definitions/v1.ResourceRequirements" + }, + "rollingParams": { + "description": "RollingParams are the input to the Rolling deployment strategy.", + "$ref": "#/definitions/v1.RollingDeploymentStrategyParams" + }, + "type": { + "description": "Type is the name of a deployment strategy.", "type": "string" } } }, - "v1.ServiceSpec": { - "description": "ServiceSpec describes the attributes that a user creates on a service.", + "v1.DeploymentTriggerImageChangeParams": { + "description": "DeploymentTriggerImageChangeParams represents the parameters to the ImageChange trigger.", + "required": [ + "from" + ], "properties": { - "clusterIP": { - "description": "clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies", - "type": "string" + "automatic": { + "description": "Automatic means that the detection of a new tag value should result in an image update inside the pod template.", + "type": "boolean" }, - "deprecatedPublicIPs": { - "description": "deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics. This field is retained in the v1 API for compatibility until at least 8/20/2016. It will be removed from any new API revisions. If both deprecatedPublicIPs *and* externalIPs are set, deprecatedPublicIPs is used.", + "containerNames": { + "description": "ContainerNames is used to restrict tag updates to the specified set of container names in a pod.", "type": "array", "items": { "type": "string" } }, - "externalIPs": { - "description": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field.", - "type": "array", - "items": { - "type": "string" - } + "from": { + "description": "From is a reference to an image stream tag to watch for changes. From.Name is the only required subfield - if From.Namespace is blank, the namespace of the current deployment trigger will be used.", + "$ref": "#/definitions/v1.ObjectReference" }, - "externalName": { - "description": "externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName.", + "lastTriggeredImage": { + "description": "LastTriggeredImage is the last image to be triggered.", "type": "string" + } + } + }, + "v1.DeploymentTriggerPolicy": { + "description": "DeploymentTriggerPolicy describes a policy for a single trigger that results in a new deployment.", + "properties": { + "imageChangeParams": { + "description": "ImageChangeParams represents the parameters for the ImageChange trigger.", + "$ref": "#/definitions/v1.DeploymentTriggerImageChangeParams" }, - "loadBalancerIP": { - "description": "Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature.", + "type": { + "description": "Type of the trigger", "type": "string" + } + } + }, + "v1.DeprecatedDownwardAPIVolumeFile": { + "description": "DeprecatedDownwardAPIVolumeFile represents information to create the file containing the pod field This type is deprecated and should be replaced by use of the downwardAPI volume source.", + "required": [ + "name" + ], + "properties": { + "fieldRef": { + "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", + "$ref": "#/definitions/v1.ObjectFieldSelector" }, - "loadBalancerSourceRanges": { - "description": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: http://kubernetes.io/docs/user-guide/services-firewalls", + "mode": { + "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "name": { + "description": "Required: Name is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "type": "string" + }, + "resourceFieldRef": { + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", + "$ref": "#/definitions/v1.ResourceFieldSelector" + } + } + }, + "v1.DeprecatedDownwardAPIVolumeSource": { + "description": "DeprecatedDownwardAPIVolumeSource represents a volume containing downward API info. This type is deprecated and should be replaced by use of the downwardAPI volume source.", + "properties": { + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "items": { + "description": "Items is a list of downward API volume file", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1.DeprecatedDownwardAPIVolumeFile" } + } + } + }, + "v1.DockerBuildStrategy": { + "description": "DockerBuildStrategy defines input parameters specific to Docker build.", + "properties": { + "dockerfilePath": { + "description": "dockerfilePath is the path of the Dockerfile that will be used to build the Docker image, relative to the root of the context (contextDir).", + "type": "string" }, - "ports": { - "description": "The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies", + "env": { + "description": "env contains additional environment variables you want to pass into a builder container", "type": "array", "items": { - "$ref": "#/definitions/v1.ServicePort" + "$ref": "#/definitions/v1.EnvVar" } }, - "selector": { - "description": "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#overview", - "type": "object", - "additionalProperties": { - "type": "string" - } + "forcePull": { + "description": "forcePull describes if the builder should pull the images from registry prior to building.", + "type": "boolean" }, - "sessionAffinity": { - "description": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies", - "type": "string" + "from": { + "description": "from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the docker image should be pulled the resulting image will be used in the FROM line of the Dockerfile for this build.", + "$ref": "#/definitions/v1.ObjectReference" }, - "type": { - "description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: http://kubernetes.io/docs/user-guide/services#overview", + "noCache": { + "description": "noCache if set to true indicates that the docker build must be executed with the --no-cache=true flag", + "type": "boolean" + }, + "pullSecret": { + "description": "pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the Docker images from the private Docker registries", + "$ref": "#/definitions/v1.LocalObjectReference" + } + } + }, + "v1.DownwardAPIVolumeFile": { + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "required": [ + "path" + ], + "properties": { + "fieldRef": { + "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", + "$ref": "#/definitions/v1.ObjectFieldSelector" + }, + "mode": { + "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "path": { + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", "type": "string" + }, + "resourceFieldRef": { + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", + "$ref": "#/definitions/v1.ResourceFieldSelector" } } }, - "extensions.v1beta1.Deployment": { - "description": "Deployment enables declarative updates for Pods and ReplicaSets.", + "v1.DownwardAPIVolumeSource": { + "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "items": { + "description": "Items is a list of downward API volume file", + "type": "array", + "items": { + "$ref": "#/definitions/v1.DownwardAPIVolumeFile" + } + } + } + }, + "v1.EgressNetworkPolicy": { + "description": "EgressNetworkPolicy describes the current egress network policy for a Namespace. When using the 'redhat/openshift-ovs-multitenant' network plugin, traffic from a pod to an IP address outside the cluster will be checked against each EgressNetworkPolicyRule in the pod's namespace's EgressNetworkPolicy, in order. If no rule matches (or no EgressNetworkPolicy is present) then the traffic will be allowed by default.", + "required": [ + "spec" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -33854,58 +46430,195 @@ "type": "string" }, "metadata": { - "description": "Standard object metadata.", + "description": "metadata for EgressNetworkPolicy", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Specification of the desired behavior of the Deployment.", - "$ref": "#/definitions/extensions.v1beta1.DeploymentSpec" + "description": "spec is the specification of the current egress network policy", + "$ref": "#/definitions/v1.EgressNetworkPolicySpec" + } + } + }, + "v1.EgressNetworkPolicyList": { + "description": "EgressNetworkPolicyList is a collection of EgressNetworkPolicy", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of policies", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EgressNetworkPolicy" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "metadata for EgressNetworkPolicyList", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.EgressNetworkPolicyPeer": { + "description": "EgressNetworkPolicyPeer specifies a target to apply egress network policy to", + "required": [ + "cidrSelector" + ], + "properties": { + "cidrSelector": { + "description": "cidrSelector is the CIDR range to allow/deny traffic to", + "type": "string" + } + } + }, + "v1.EgressNetworkPolicyRule": { + "description": "EgressNetworkPolicyRule contains a single egress network policy rule", + "required": [ + "type", + "to" + ], + "properties": { + "to": { + "description": "to is the target that traffic is allowed/denied to", + "$ref": "#/definitions/v1.EgressNetworkPolicyPeer" + }, + "type": { + "description": "type marks this as an \"Allow\" or \"Deny\" rule", + "type": "string" + } + } + }, + "v1.EgressNetworkPolicySpec": { + "description": "EgressNetworkPolicySpec provides a list of policies on outgoing network traffic", + "required": [ + "egress" + ], + "properties": { + "egress": { + "description": "egress contains the list of egress policy rules", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EgressNetworkPolicyRule" + } + } + } + }, + "v1.EmptyDirVolumeSource": { + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", + "properties": { + "medium": { + "description": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", + "type": "string" + } + } + }, + "v1.EndpointAddress": { + "description": "EndpointAddress is a tuple that describes single IP address.", + "required": [ + "ip" + ], + "properties": { + "hostname": { + "description": "The Hostname of this endpoint", + "type": "string" + }, + "ip": { + "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", + "type": "string" + }, + "nodeName": { + "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "type": "string" + }, + "targetRef": { + "description": "Reference to object providing the endpoint.", + "$ref": "#/definitions/v1.ObjectReference" + } + } + }, + "v1.EndpointPort": { + "description": "EndpointPort is a tuple that describes a single port.", + "required": [ + "port" + ], + "properties": { + "name": { + "description": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.", + "type": "string" + }, + "port": { + "description": "The port number of the endpoint.", + "type": "integer", + "format": "int32" + }, + "protocol": { + "description": "The IP protocol for this port. Must be UDP or TCP. Default is TCP.", + "type": "string" + } + } + }, + "v1.EndpointSubset": { + "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "properties": { + "addresses": { + "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EndpointAddress" + } }, - "status": { - "description": "Most recently observed status of the Deployment.", - "$ref": "#/definitions/extensions.v1beta1.DeploymentStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "Deployment" + "notReadyAddresses": { + "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EndpointAddress" + } + }, + "ports": { + "description": "Port numbers available on the related IP addresses.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EndpointPort" + } } - ] + } }, - "v1.DeleteOptions": { - "description": "DeleteOptions may be provided when deleting an API object.", + "v1.Endpoints": { + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", + "required": [ + "subsets" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "gracePeriodSeconds": { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "type": "integer", - "format": "int64" - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "orphanDependents": { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "type": "boolean" - }, - "preconditions": { - "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", - "$ref": "#/definitions/v1.Preconditions" + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "propagationPolicy": { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "type": "string" + "subsets": { + "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EndpointSubset" + } } } }, - "v1.ConfigMapList": { - "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "v1.EndpointsList": { + "description": "EndpointsList is a list of endpoints.", "required": [ "items" ], @@ -33915,10 +46628,10 @@ "type": "string" }, "items": { - "description": "Items is the list of ConfigMaps.", + "description": "List of endpoints.", "type": "array", "items": { - "$ref": "#/definitions/v1.ConfigMap" + "$ref": "#/definitions/v1.Endpoints" } }, "kind": { @@ -33926,166 +46639,110 @@ "type": "string" }, "metadata": { - "description": "More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ConfigMapList" - } - ] - }, - "v1.JobSpec": { - "description": "JobSpec describes how the job execution will look like.", - "required": [ - "template" - ], - "properties": { - "activeDeadlineSeconds": { - "description": "Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer", - "type": "integer", - "format": "int64" - }, - "completions": { - "description": "Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs", - "type": "integer", - "format": "int32" - }, - "manualSelector": { - "description": "ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md", - "type": "boolean" - }, - "parallelism": { - "description": "Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" - }, - "template": { - "description": "Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs", - "$ref": "#/definitions/v1.PodTemplateSpec" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "apps.v1beta1.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "v1.EnvVar": { + "description": "EnvVar represents an environment variable present in a Container.", "required": [ - "type", - "status" + "name" ], "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "A human readable message indicating details about the transition.", - "type": "string" - }, - "reason": { - "description": "The reason for the condition's last transition.", + "name": { + "description": "Name of the environment variable. Must be a C_IDENTIFIER.", "type": "string" }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", + "value": { + "description": "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", "type": "string" }, - "type": { - "description": "Type of deployment condition.", - "type": "string" + "valueFrom": { + "description": "Source for the environment variable's value. Cannot be used if value is not empty.", + "$ref": "#/definitions/v1.EnvVarSource" } } }, - "v1.ContainerStateWaiting": { - "description": "ContainerStateWaiting is a waiting state of a container.", + "v1.EnvVarSource": { + "description": "EnvVarSource represents a source for the value of an EnvVar.", "properties": { - "message": { - "description": "Message regarding why the container is not yet running.", - "type": "string" + "configMapKeyRef": { + "description": "Selects a key of a ConfigMap.", + "$ref": "#/definitions/v1.ConfigMapKeySelector" }, - "reason": { - "description": "(brief) reason the container is not yet running.", - "type": "string" + "fieldRef": { + "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP.", + "$ref": "#/definitions/v1.ObjectFieldSelector" + }, + "resourceFieldRef": { + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", + "$ref": "#/definitions/v1.ResourceFieldSelector" + }, + "secretKeyRef": { + "description": "Selects a key of a secret in the pod's namespace", + "$ref": "#/definitions/v1.SecretKeySelector" } } }, - "v1alpha1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", + "v1.Event": { + "description": "Event is a report of an event somewhere in the cluster.", "required": [ - "rules" + "metadata", + "involvedObject" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "count": { + "description": "The number of times this event has occurred.", + "type": "integer", + "format": "int32" + }, + "firstTimestamp": { + "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", + "type": "string", + "format": "date-time" + }, + "involvedObject": { + "description": "The object that this event is about.", + "$ref": "#/definitions/v1.ObjectReference" + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, + "lastTimestamp": { + "description": "The time at which the most recent occurrence of this event was recorded.", + "type": "string", + "format": "date-time" + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": "string" + }, "metadata": { - "description": "Standard object's metadata.", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "ClusterRole" - } - ] - }, - "v1.LocalObjectReference": { - "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", - "properties": { - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "reason": { + "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", "type": "string" - } - } - }, - "v1.ConfigMapProjection": { - "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", - "properties": { - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - } }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" + "source": { + "description": "The component reporting this event. Should be a short machine understandable string.", + "$ref": "#/definitions/v1.EventSource" }, - "optional": { - "description": "Specify whether the ConfigMap or it's keys must be defined", - "type": "boolean" + "type": { + "description": "Type of this event (Normal, Warning), new types could be added in the future", + "type": "string" } } }, - "v1.EndpointsList": { - "description": "EndpointsList is a list of endpoints.", + "v1.EventList": { + "description": "EventList is a list of events.", "required": [ "items" ], @@ -34095,10 +46752,10 @@ "type": "string" }, "items": { - "description": "List of endpoints.", + "description": "List of events", "type": "array", "items": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.Event" } }, "kind": { @@ -34107,268 +46764,304 @@ }, "metadata": { "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "EndpointsList" + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v2alpha1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", + "v1.EventSource": { + "description": "EventSource contains information for an event.", "properties": { - "active": { - "description": "Active holds pointers to currently running jobs.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ObjectReference" - } + "component": { + "description": "Component from which the event is generated.", + "type": "string" }, - "lastScheduleTime": { - "description": "LastScheduleTime keeps information of when was the last time the job was successfully scheduled.", - "type": "string", - "format": "date-time" + "host": { + "description": "Node name on which the event is generated.", + "type": "string" } } }, - "v1.DownwardAPIProjection": { - "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", + "v1.ExecAction": { + "description": "ExecAction describes a \"run in container\" action.", "properties": { - "items": { - "description": "Items is a list of DownwardAPIVolume file", + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", "type": "array", "items": { - "$ref": "#/definitions/v1.DownwardAPIVolumeFile" + "type": "string" } } } }, - "v1alpha1.PolicyRule": { - "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", + "v1.ExecNewPodHook": { + "description": "ExecNewPodHook is a hook implementation which runs a command in a new pod based on the specified container which is assumed to be part of the deployment template.", "required": [ - "verbs" + "command", + "containerName" ], "properties": { - "apiGroups": { - "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.", + "command": { + "description": "Command is the action command and its arguments.", "type": "array", "items": { "type": "string" } }, - "nonResourceURLs": { - "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", + "containerName": { + "description": "ContainerName is the name of a container in the deployment pod template whose Docker image will be used for the hook pod's container.", + "type": "string" + }, + "env": { + "description": "Env is a set of environment variables to supply to the hook pod's container.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1.EnvVar" } }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "volumes": { + "description": "Volumes is a list of named volumes from the pod template which should be copied to the hook pod. Volumes names not found in pod spec are ignored. An empty list means no volumes will be copied.", "type": "array", "items": { "type": "string" } + } + } + }, + "v1.FCVolumeSource": { + "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "required": [ + "targetWWNs", + "lun" + ], + "properties": { + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", + "lun": { + "description": "Required: FC target lun number", + "type": "integer", + "format": "int32" + }, + "readOnly": { + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "targetWWNs": { + "description": "Required: FC target worldwide names (WWNs)", "type": "array", "items": { "type": "string" } - }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", + } + } + }, + "v1.FSGroupStrategyOptions": { + "description": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.", + "properties": { + "ranges": { + "description": "Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1.IDRange" } + }, + "type": { + "description": "Type is the strategy that will dictate what FSGroup is used in the SecurityContext.", + "type": "string" } } }, - "v2alpha1.ResourceMetricStatus": { - "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "v1.FlexVolumeSource": { + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", "required": [ - "name", - "currentAverageValue" + "driver" ], "properties": { - "currentAverageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "type": "integer", - "format": "int32" + "driver": { + "description": "Driver is the name of the driver to use for this volume.", + "type": "string" }, - "currentAverageValue": { - "description": "currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.", + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", "type": "string" }, - "name": { - "description": "name is the name of the resource in question.", + "options": { + "description": "Optional: Extra command options if any.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "readOnly": { + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "description": "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.", + "$ref": "#/definitions/v1.LocalObjectReference" + } + } + }, + "v1.FlockerVolumeSource": { + "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "properties": { + "datasetName": { + "description": "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "type": "string" + }, + "datasetUUID": { + "description": "UUID of the dataset. This is unique identifier of a Flocker dataset", "type": "string" } } }, - "v1.QuobyteVolumeSource": { - "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", + "v1.GCEPersistentDiskVolumeSource": { + "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", "required": [ - "registry", - "volume" + "pdName" ], "properties": { - "group": { - "description": "Group to map volume access to Default is no group", + "fsType": { + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", "type": "string" }, - "readOnly": { - "description": "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", - "type": "boolean" + "partition": { + "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "type": "integer", + "format": "int32" }, - "registry": { - "description": "Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", + "pdName": { + "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", "type": "string" }, - "user": { - "description": "User to map volume access to Defaults to serivceaccount user", - "type": "string" + "readOnly": { + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "type": "boolean" + } + } + }, + "v1.GenericWebHookCause": { + "description": "GenericWebHookCause holds information about a generic WebHook that triggered a build.", + "properties": { + "revision": { + "description": "revision is an optional field that stores the git source revision information of the generic webhook trigger when it is available.", + "$ref": "#/definitions/v1.SourceRevision" }, - "volume": { - "description": "Volume is a string that references an already created Quobyte volume by name.", + "secret": { + "description": "secret is the obfuscated webhook secret that triggered a build.", "type": "string" } } }, - "v1.SELinuxOptions": { - "description": "SELinuxOptions are the labels to be applied to the container", + "v1.GitBuildSource": { + "description": "GitBuildSource defines the parameters of a Git SCM", + "required": [ + "uri" + ], "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", + "httpProxy": { + "description": "httpProxy is a proxy used to reach the git repository over http", "type": "string" }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", + "httpsProxy": { + "description": "httpsProxy is a proxy used to reach the git repository over https", "type": "string" }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", + "noProxy": { + "description": "noProxy is the list of domains for which the proxy should not be used", "type": "string" }, - "user": { - "description": "User is a SELinux user label that applies to the container.", + "ref": { + "description": "ref is the branch/tag/ref to build.", + "type": "string" + }, + "uri": { + "description": "uri points to the source that will be built. The structure of the source will depend on the type of build to run", "type": "string" } } }, - "v1.HorizontalPodAutoscaler": { - "description": "configuration of a horizontal pod autoscaler.", + "v1.GitHubWebHookCause": { + "description": "GitHubWebHookCause has information about a GitHub webhook that triggered a build.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" + "revision": { + "description": "revision is the git revision information of the trigger.", + "$ref": "#/definitions/v1.SourceRevision" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "secret": { + "description": "secret is the obfuscated webhook secret that triggered a build.", "type": "string" - }, - "metadata": { - "description": "Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v1.HorizontalPodAutoscalerSpec" - }, - "status": { - "description": "current information about the autoscaler.", - "$ref": "#/definitions/v1.HorizontalPodAutoscalerStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "autoscaling", - "Version": "v1", - "Kind": "HorizontalPodAutoscaler" } - ] + } }, - "v1beta1.ThirdPartyResource": { - "description": "A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource types to the API. It consists of one or more Versions of the api.", + "v1.GitRepoVolumeSource": { + "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.", + "required": [ + "repository" + ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "directory": { + "description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", "type": "string" }, - "description": { - "description": "Description is the description of this object.", + "repository": { + "description": "Repository URL", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "revision": { + "description": "Commit hash for the specified revision.", "type": "string" - }, - "metadata": { - "description": "Standard object metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "versions": { - "description": "Versions are versions for this third party object", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.APIVersion" - } } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "ThirdPartyResource" - } - ] + } }, - "v1beta1.RunAsUserStrategyOptions": { - "description": "Run A sUser Strategy Options defines the strategy type and any options used to create the strategy.", - "required": [ - "rule" - ], + "v1.GitSourceRevision": { + "description": "GitSourceRevision is the commit information from a git source for a build", "properties": { - "ranges": { - "description": "Ranges are the allowed ranges of uids that may be used.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - } + "author": { + "description": "author is the author of a specific commit", + "$ref": "#/definitions/v1.SourceControlUser" }, - "rule": { - "description": "Rule is the strategy that will dictate the allowable RunAsUser values that may be set.", + "commit": { + "description": "commit is the commit hash identifying a specific commit", + "type": "string" + }, + "committer": { + "description": "committer is the committer of a specific commit", + "$ref": "#/definitions/v1.SourceControlUser" + }, + "message": { + "description": "message is the description of a specific commit", "type": "string" } } }, - "v1.ResourceRequirements": { - "description": "ResourceRequirements describes the compute resource requirements.", + "v1.GlusterfsVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "required": [ + "endpoints", + "path" + ], "properties": { - "limits": { - "description": "Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/", - "type": "object", - "additionalProperties": { - "type": "string" - } + "endpoints": { + "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", + "type": "string" }, - "requests": { - "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/", - "type": "object", - "additionalProperties": { - "type": "string" - } + "path": { + "description": "Path is the Glusterfs volume path. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", + "type": "boolean" } } }, - "v1.PersistentVolume": { - "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes", + "v1.Group": { + "description": "Group represents a referenceable set of Users", + "required": [ + "users" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -34379,143 +47072,161 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, - "spec": { - "description": "Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes", - "$ref": "#/definitions/v1.PersistentVolumeSpec" - }, - "status": { - "description": "Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes", - "$ref": "#/definitions/v1.PersistentVolumeStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PersistentVolume" + "users": { + "description": "Users is the list of users in this group.", + "type": "array", + "items": { + "type": "string" + } } - ] + } }, - "v1.APIResourceList": { - "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "v1.GroupList": { + "description": "GroupList is a collection of Groups", "required": [ - "groupVersion", - "resources" + "items" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "groupVersion": { - "description": "groupVersion is the group and version this APIResourceList is for.", - "type": "string" + "items": { + "description": "Items is the list of groups", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Group" + } }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "resources": { - "description": "resources contains the name of the resources and if they are namespaced.", + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.GroupRestriction": { + "description": "GroupRestriction matches a group either by a string match on the group name or a label selector applied to group labels.", + "required": [ + "groups", + "labels" + ], + "properties": { + "groups": { + "description": "Groups is a list of groups used to match against an individual user's groups. If the user is a member of one of the whitelisted groups, the user is allowed to be bound to a role.", "type": "array", "items": { - "$ref": "#/definitions/v1.APIResource" + "type": "string" + } + }, + "labels": { + "description": "Selectors specifies a list of label selectors over group labels.", + "type": "array", + "items": { + "$ref": "#/definitions/unversioned.LabelSelector" } } } }, - "v1.ScaleIOVolumeSource": { - "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", + "v1.HTTPGetAction": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", "required": [ - "gateway", - "system", - "secretRef" + "port" ], "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "gateway": { - "description": "The host address of the ScaleIO API Gateway.", - "type": "string" - }, - "protectionDomain": { - "description": "The name of the Protection Domain for the configured storage (defaults to \"default\").", + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", "type": "string" }, - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", - "$ref": "#/definitions/v1.LocalObjectReference" - }, - "sslEnabled": { - "description": "Flag to enable/disable SSL communication with Gateway, default false", - "type": "boolean" - }, - "storageMode": { - "description": "Indicates whether the storage for a volume should be thick or thin (defaults to \"thin\").", - "type": "string" + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.HTTPHeader" + } }, - "storagePool": { - "description": "The Storage Pool associated with the protection domain (defaults to \"default\").", + "path": { + "description": "Path to access on the HTTP server.", "type": "string" }, - "system": { - "description": "The name of the storage system as configured in ScaleIO.", - "type": "string" + "port": { + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "type": "string", + "format": "int-or-string" }, - "volumeName": { - "description": "The name of a volume already created in the ScaleIO system that is associated with this volume source.", + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", "type": "string" } } }, - "v1.DaemonEndpoint": { - "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "v1.HTTPHeader": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", "required": [ - "Port" + "name", + "value" ], "properties": { - "Port": { - "description": "Port number of the given endpoint.", - "type": "integer", - "format": "int32" + "name": { + "description": "The header field name", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" } } }, - "v2alpha1.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", - "required": [ - "type" - ], + "v1.Handler": { + "description": "Handler defines a specific action that should be taken", "properties": { - "object": { - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "$ref": "#/definitions/v2alpha1.ObjectMetricSource" + "exec": { + "description": "One and only one of the following should be specified. Exec specifies the action to take.", + "$ref": "#/definitions/v1.ExecAction" }, - "pods": { - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "$ref": "#/definitions/v2alpha1.PodsMetricSource" + "httpGet": { + "description": "HTTPGet specifies the http request to perform.", + "$ref": "#/definitions/v1.HTTPGetAction" }, - "resource": { - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "$ref": "#/definitions/v2alpha1.ResourceMetricSource" + "tcpSocket": { + "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", + "$ref": "#/definitions/v1.TCPSocketAction" + } + } + }, + "v1.HorizontalPodAutoscaler": { + "description": "configuration of a horizontal pod autoscaler.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "type": { - "description": "type is the type of metric source. It should match one of the fields below.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", + "$ref": "#/definitions/v1.HorizontalPodAutoscalerSpec" + }, + "status": { + "description": "current information about the autoscaler.", + "$ref": "#/definitions/v1.HorizontalPodAutoscalerStatus" } } }, - "v1.ReplicationControllerList": { - "description": "ReplicationControllerList is a collection of replication controllers.", + "v1.HorizontalPodAutoscalerList": { + "description": "list of horizontal pod autoscaler objects.", "required": [ "items" ], @@ -34525,10 +47236,10 @@ "type": "string" }, "items": { - "description": "List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller", + "description": "list of horizontal pod autoscaler objects.", "type": "array", "items": { - "$ref": "#/definitions/v1.ReplicationController" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "kind": { @@ -34536,76 +47247,36 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ReplicationControllerList" - } - ] - }, - "v1beta1.IngressTLS": { - "description": "IngressTLS describes the transport layer security associated with an Ingress.", - "properties": { - "hosts": { - "description": "Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", - "type": "array", - "items": { - "type": "string" - } - }, - "secretName": { - "description": "SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing.", - "type": "string" - } - } - }, - "extensions.v1beta1.ScaleSpec": { - "description": "describes the attributes of a scale subresource", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" + "description": "Standard list metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v2alpha1.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "v1.HorizontalPodAutoscalerSpec": { + "description": "specification of a horizontal pod autoscaler.", "required": [ - "target", - "metricName", - "targetValue" + "scaleTargetRef", + "maxReplicas" ], "properties": { - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" + "maxReplicas": { + "description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", + "type": "integer", + "format": "int32" }, - "target": { - "description": "target is the described Kubernetes object.", - "$ref": "#/definitions/v2alpha1.CrossVersionObjectReference" + "minReplicas": { + "description": "lower limit for the number of pods that can be set by the autoscaler, default 1.", + "type": "integer", + "format": "int32" }, - "targetValue": { - "description": "targetValue is the target value of the metric (as a quantity).", - "type": "string" - } - } - }, - "v1.FlockerVolumeSource": { - "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", - "properties": { - "datasetName": { - "description": "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", - "type": "string" + "scaleTargetRef": { + "description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.", + "$ref": "#/definitions/v1.CrossVersionObjectReference" }, - "datasetUUID": { - "description": "UUID of the dataset. This is unique identifier of a Flocker dataset", - "type": "string" + "targetCPUUtilizationPercentage": { + "description": "target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", + "type": "integer", + "format": "int32" } } }, @@ -34643,71 +47314,54 @@ } } }, - "v1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "v1.HostPathVolumeSource": { + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", "required": [ - "kind", - "name" + "path" ], "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" - }, - "kind": { - "description": "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\"", - "type": "string" - }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "path": { + "description": "Path of the directory on the host. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", "type": "string" } } }, - "apps.v1beta1.DeploymentStatus": { - "description": "DeploymentStatus is the most recently observed status of the Deployment.", + "v1.HostSubnet": { + "description": "HostSubnet describes the container subnet network on a node. The HostSubnet object must have the same name as the Node object it corresponds to.", + "required": [ + "host", + "hostIP", + "subnet" + ], "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/apps.v1beta1.DeploymentCondition" - } + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "type": "integer", - "format": "int64" + "host": { + "description": "Host is the name of the node. (This is redundant with the object's name, and this field is not actually used any more.)", + "type": "string" }, - "readyReplicas": { - "description": "Total number of ready pods targeted by this deployment.", - "type": "integer", - "format": "int32" + "hostIP": { + "description": "HostIP is the IP address to be used as a VTEP by other nodes in the overlay network", + "type": "string" }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "type": "integer", - "format": "int32" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "unavailableReplicas": { - "description": "Total number of unavailable pods targeted by this deployment.", - "type": "integer", - "format": "int32" + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "type": "integer", - "format": "int32" + "subnet": { + "description": "Subnet is the CIDR range of the overlay network assigned to the node for its pods", + "type": "string" } } }, - "v1beta1.PodDisruptionBudgetList": { - "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", + "v1.HostSubnetList": { + "description": "HostSubnetList is a collection of HostSubnets", "required": [ "items" ], @@ -34717,9 +47371,10 @@ "type": "string" }, "items": { + "description": "Items is the list of host subnets", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.HostSubnet" } }, "kind": { @@ -34727,108 +47382,117 @@ "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "policy", - "Version": "v1beta1", - "Kind": "PodDisruptionBudgetList" + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "extensions.v1beta1.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", + "v1.IDRange": { + "description": "IDRange provides a min/max of an allowed range of IDs.", "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - "$ref": "#/definitions/extensions.v1beta1.RollingUpdateDeployment" + "max": { + "description": "Max is the end of the range, inclusive.", + "type": "integer", + "format": "int64" }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "type": "string" + "min": { + "description": "Min is the start of the range, inclusive.", + "type": "integer", + "format": "int64" } } }, - "v1.ContainerStatus": { - "description": "ContainerStatus contains details for the current status of this container.", + "v1.ISCSIVolumeSource": { + "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", "required": [ - "name", - "ready", - "restartCount", - "image", - "imageID" + "targetPortal", + "iqn", + "lun" ], "properties": { - "containerID": { - "description": "Container's ID in the format 'docker://'. More info: http://kubernetes.io/docs/user-guide/container-environment#container-information", - "type": "string" - }, - "image": { - "description": "The image the container is running. More info: http://kubernetes.io/docs/user-guide/images", + "fsType": { + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#iscsi", "type": "string" }, - "imageID": { - "description": "ImageID of the container's image.", + "iqn": { + "description": "Target iSCSI Qualified Name.", "type": "string" }, - "lastState": { - "description": "Details about the container's last termination condition.", - "$ref": "#/definitions/v1.ContainerState" - }, - "name": { - "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", + "iscsiInterface": { + "description": "Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport.", "type": "string" }, - "ready": { - "description": "Specifies whether the container has passed its readiness probe.", - "type": "boolean" - }, - "restartCount": { - "description": "The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC.", + "lun": { + "description": "iSCSI target lun number.", "type": "integer", "format": "int32" }, - "state": { - "description": "Details about the container's current condition.", - "$ref": "#/definitions/v1.ContainerState" + "readOnly": { + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": "boolean" + }, + "targetPortal": { + "description": "iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "string" } } }, - "v2alpha1.ResourceMetricSource": { - "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "v1.Identity": { + "description": "Identity records a successful authentication of a user with an identity provider. The information about the source of authentication is stored on the identity, and the identity is then associated with a single user object. Multiple identities can reference a single user. Information retrieved from the authentication provider is stored in the extra field using a schema determined by the provider.", "required": [ - "name" + "providerName", + "providerUserName", + "user" ], "properties": { - "name": { - "description": "name is the name of the resource in question.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "targetAverageUtilization": { - "description": "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "type": "integer", - "format": "int32" + "extra": { + "description": "Extra holds extra information about this identity", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "providerName": { + "description": "ProviderName is the source of identity information", + "type": "string" }, - "targetAverageValue": { - "description": "targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.", + "providerUserName": { + "description": "ProviderUserName uniquely represents this identity in the scope of the provider", "type": "string" + }, + "user": { + "description": "User is a reference to the user this identity is associated with Both Name and UID must be set", + "$ref": "#/definitions/v1.ObjectReference" } } }, - "v1.ComponentStatus": { - "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.", + "v1.IdentityList": { + "description": "IdentityList is a collection of Identities", + "required": [ + "items" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "conditions": { - "description": "List of component conditions observed", + "items": { + "description": "Items is the list of identities", "type": "array", "items": { - "$ref": "#/definitions/v1.ComponentCondition" + "$ref": "#/definitions/v1.Identity" } }, "kind": { @@ -34836,102 +47500,188 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ComponentStatus" - } - ] - }, - "v1.WeightedPodAffinityTerm": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "podAffinityTerm": { - "description": "Required. A pod affinity term, associated with the corresponding weight.", - "$ref": "#/definitions/v1.PodAffinityTerm" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", - "type": "integer", - "format": "int32" + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1beta1.SubjectAccessReview": { - "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", + "v1.Image": { + "description": "Image is an immutable representation of a Docker image and metadata at a point in time.", "required": [ - "spec" + "dockerImageLayers" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "dockerImageConfig": { + "description": "DockerImageConfig is a JSON blob that the runtime uses to set up the container. This is a part of manifest schema v2.", + "type": "string" + }, + "dockerImageLayers": { + "description": "DockerImageLayers represents the layers in the image. May not be set if the image does not define that data.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ImageLayer" + } + }, + "dockerImageManifest": { + "description": "DockerImageManifest is the raw JSON of the manifest", + "type": "string" + }, + "dockerImageManifestMediaType": { + "description": "DockerImageManifestMediaType specifies the mediaType of manifest. This is a part of manifest schema v2.", + "type": "string" + }, + "dockerImageMetadata": { + "description": "DockerImageMetadata contains metadata about this image", + "$ref": "#/definitions/runtime.RawExtension" + }, + "dockerImageMetadataVersion": { + "description": "DockerImageMetadataVersion conveys the version of the object, which if empty defaults to \"1.0\"", + "type": "string" + }, + "dockerImageReference": { + "description": "DockerImageReference is the string that can be used to pull this image.", + "type": "string" + }, + "dockerImageSignatures": { + "description": "DockerImageSignatures provides the signatures as opaque blobs. This is a part of manifest schema v1.", + "type": "array", + "items": { + "type": "string", + "format": "byte" + } + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { + "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewSpec" + "signatures": { + "description": "Signatures holds all signatures of the image.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ImageSignature" + } + } + } + }, + "v1.ImageChangeCause": { + "description": "ImageChangeCause contains information about the image that triggered a build", + "properties": { + "fromRef": { + "description": "fromRef contains detailed information about an image that triggered a build.", + "$ref": "#/definitions/v1.ObjectReference" }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" + "imageID": { + "description": "imageID is the ID of the image that triggered a a new build.", + "type": "string" } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authorization.k8s.io", - "Version": "v1beta1", - "Kind": "SubjectAccessReview" + } + }, + "v1.ImageChangeTrigger": { + "description": "ImageChangeTrigger allows builds to be triggered when an ImageStream changes", + "properties": { + "from": { + "description": "from is a reference to an ImageStreamTag that will trigger a build when updated It is optional. If no From is specified, the From image from the build strategy will be used. Only one ImageChangeTrigger with an empty From reference is allowed in a build configuration.", + "$ref": "#/definitions/v1.ObjectReference" + }, + "lastTriggeredImageID": { + "description": "lastTriggeredImageID is used internally by the ImageChangeController to save last used image ID for build", + "type": "string" } - ] + } }, - "v1beta1.UserInfo": { - "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", + "v1.ImageImportSpec": { + "description": "ImageImportSpec describes a request to import a specific image.", + "required": [ + "from" + ], "properties": { - "extra": { - "description": "Any additional information provided by the authenticator.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } + "from": { + "description": "From is the source of an image to import; only kind DockerImage is allowed", + "$ref": "#/definitions/v1.ObjectReference" }, - "groups": { - "description": "The names of groups this user is a part of.", - "type": "array", - "items": { - "type": "string" - } + "importPolicy": { + "description": "ImportPolicy is the policy controlling how the image is imported", + "$ref": "#/definitions/v1.TagImportPolicy" }, - "uid": { - "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", + "includeManifest": { + "description": "IncludeManifest determines if the manifest for each image is returned in the response", + "type": "boolean" + }, + "to": { + "description": "To is a tag in the current image stream to assign the imported image to, if name is not specified the default tag from from.name will be used", + "$ref": "#/definitions/v1.LocalObjectReference" + } + } + }, + "v1.ImageImportStatus": { + "description": "ImageImportStatus describes the result of an image import.", + "required": [ + "status" + ], + "properties": { + "image": { + "description": "Image is the metadata of that image, if the image was located", + "$ref": "#/definitions/v1.Image" + }, + "status": { + "description": "Status is the status of the image import, including errors encountered while retrieving the image", + "$ref": "#/definitions/unversioned.Status" + }, + "tag": { + "description": "Tag is the tag this image was located under, if any", + "type": "string" + } + } + }, + "v1.ImageLabel": { + "description": "ImageLabel represents a label applied to the resulting image.", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "name defines the name of the label. It must have non-zero length.", "type": "string" }, - "username": { - "description": "The name that uniquely identifies this user among all active users.", + "value": { + "description": "value defines the literal value of the label.", + "type": "string" + } + } + }, + "v1.ImageLayer": { + "description": "ImageLayer represents a single layer of the image. Some images may have multiple layers. Some may have none.", + "required": [ + "name", + "size", + "mediaType" + ], + "properties": { + "mediaType": { + "description": "MediaType of the referenced object.", + "type": "string" + }, + "name": { + "description": "Name of the layer as defined by the underlying store.", "type": "string" + }, + "size": { + "description": "Size of the layer in bytes as defined by the underlying store.", + "type": "integer", + "format": "int64" } } }, - "v1.PersistentVolumeList": { - "description": "PersistentVolumeList is a list of PersistentVolume items.", + "v1.ImageList": { + "description": "ImageList is a list of Image objects.", "required": [ "items" ], @@ -34941,10 +47691,10 @@ "type": "string" }, "items": { - "description": "List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes", + "description": "Items is a list of images", "type": "array", "items": { - "$ref": "#/definitions/v1.PersistentVolume" + "$ref": "#/definitions/v1.Image" } }, "kind": { @@ -34952,45 +47702,51 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PersistentVolumeList" - } - ] - }, - "v1.ServerAddressByClientCIDR": { - "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", - "required": [ - "clientCIDR", - "serverAddress" - ], - "properties": { - "clientCIDR": { - "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", - "type": "string" - }, - "serverAddress": { - "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", - "type": "string" + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1beta1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", + "v1.ImageSignature": { + "description": "ImageSignature holds a signature of an image. It allows to verify image identity and possibly other claims as long as the signature is trusted. Based on this information it is possible to restrict runnable images to those matching cluster-wide policy. Mandatory fields should be parsed by clients doing image verification. The others are parsed from signature's content by the server. They serve just an informative purpose.", "required": [ - "rules" + "type", + "content" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "conditions": { + "description": "Conditions represent the latest available observations of a signature's current state.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.SignatureCondition" + } + }, + "content": { + "description": "Required: An opaque binary string which is an image's signature.", + "type": "string", + "format": "byte" + }, + "created": { + "description": "If specified, it is the time of signature's creation.", + "type": "string", + "format": "date-time" + }, + "imageIdentity": { + "description": "A human readable string representing image's identity. It could be a product name and version, or an image pull spec (e.g. \"registry.access.redhat.com/rhel7/rhel:7.2\").", + "type": "string" + }, + "issuedBy": { + "description": "If specified, it holds information about an issuer of signing certificate or key (a person or entity who signed the signing certificate or key).", + "$ref": "#/definitions/v1.SignatureIssuer" + }, + "issuedTo": { + "description": "If specified, it holds information about a subject of signing certificate or key (a person or entity who signed the image).", + "$ref": "#/definitions/v1.SignatureSubject" + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" @@ -34999,51 +47755,65 @@ "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.PolicyRule" + "signedClaims": { + "description": "Contains claims from the signature.", + "type": "object", + "additionalProperties": { + "type": "string" } + }, + "type": { + "description": "Required: Describes a type of stored blob.", + "type": "string" } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "Role" - } - ] + } }, - "v1.ScaleSpec": { - "description": "ScaleSpec describes the attributes of a scale subresource.", + "v1.ImageSource": { + "description": "ImageSource is used to describe build source that will be extracted from an image. A reference of type ImageStreamTag, ImageStreamImage or DockerImage may be used. A pull secret can be specified to pull the image from an external registry or override the default service account secret if pulling from the internal registry. A list of paths to copy from the image and their respective destination within the build directory must be specified in the paths array.", + "required": [ + "from", + "paths" + ], "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" + "from": { + "description": "from is a reference to an ImageStreamTag, ImageStreamImage, or DockerImage to copy source from.", + "$ref": "#/definitions/v1.ObjectReference" + }, + "paths": { + "description": "paths is a list of source and destination paths to copy from the image.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ImageSourcePath" + } + }, + "pullSecret": { + "description": "pullSecret is a reference to a secret to be used to pull the image from a registry If the image is pulled from the OpenShift registry, this field does not need to be set.", + "$ref": "#/definitions/v1.LocalObjectReference" } } }, - "v1.StatusCause": { - "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "v1.ImageSourcePath": { + "description": "ImageSourcePath describes a path to be copied from a source image and its destination within the build directory.", + "required": [ + "sourcePath", + "destinationDir" + ], "properties": { - "field": { - "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "destinationDir": { + "description": "destinationDir is the relative directory within the build directory where files copied from the image are placed.", "type": "string" }, - "message": { - "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", - "type": "string" - }, - "reason": { - "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "sourcePath": { + "description": "sourcePath is the absolute path of the file or directory inside the image to copy to the build directory.", "type": "string" } } }, - "v1beta1.DaemonSet": { - "description": "DaemonSet represents the configuration of a daemon set.", + "v1.ImageStream": { + "description": "ImageStream stores a mapping of tags to images, metadata overrides that are applied when images are tagged in a stream, and an optional reference to a Docker image repository on a registry.", + "required": [ + "spec" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -35054,120 +47824,117 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "The desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.DaemonSetSpec" + "description": "Spec describes the desired state of this stream", + "$ref": "#/definitions/v1.ImageStreamSpec" }, "status": { - "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.DaemonSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "DaemonSet" + "description": "Status describes the current state of this stream", + "$ref": "#/definitions/v1.ImageStreamStatus" } - ] + } }, - "extensions.v1beta1.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", + "v1.ImageStreamImage": { + "description": "ImageStreamImage represents an Image that is retrieved by image name from an ImageStream.", "required": [ - "template" + "image" ], "properties": { - "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", - "type": "integer", - "format": "int32" - }, - "paused": { - "description": "Indicates that the deployment is paused and will not be processed by the deployment controller.", - "type": "boolean" - }, - "progressDeadlineSeconds": { - "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "type": "integer", - "format": "int32" - }, - "revisionHistoryLimit": { - "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified.", - "type": "integer", - "format": "int32" - }, - "rollbackTo": { - "description": "The config this deployment is rolling back to. Will be cleared after rollback is done.", - "$ref": "#/definitions/extensions.v1beta1.RollbackConfig" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "selector": { - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - "$ref": "#/definitions/v1.LabelSelector" + "image": { + "description": "Image associated with the ImageStream and image name.", + "$ref": "#/definitions/v1.Image" }, - "strategy": { - "description": "The deployment strategy to use to replace existing pods with new ones.", - "$ref": "#/definitions/extensions.v1beta1.DeploymentStrategy" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "template": { - "description": "Template describes the pods that will be created.", - "$ref": "#/definitions/v1.PodTemplateSpec" + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" } } }, - "v1beta1.NonResourceAttributes": { - "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", + "v1.ImageStreamImport": { + "description": "The image stream import resource provides an easy way for a user to find and import Docker images from other Docker registries into the server. Individual images or an entire image repository may be imported, and users may choose to see the results of the import prior to tagging the resulting images into the specified image stream.\n\nThis API is intended for end-user tools that need to see the metadata of the image prior to import (for instance, to generate an application from it). Clients that know the desired image can continue to create spec.tags directly into their image streams.", + "required": [ + "spec", + "status" + ], "properties": { - "path": { - "description": "Path is the URL path of the request", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "verb": { - "description": "Verb is the standard HTTP verb", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec is a description of the images that the user wishes to import", + "$ref": "#/definitions/v1.ImageStreamImportSpec" + }, + "status": { + "description": "Status is the the result of importing the image", + "$ref": "#/definitions/v1.ImageStreamImportStatus" } } }, - "v1.PodSecurityContext": { - "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "v1.ImageStreamImportSpec": { + "description": "ImageStreamImportSpec defines what images should be imported.", + "required": [ + "import" + ], "properties": { - "fsGroup": { - "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.", - "type": "integer", - "format": "int64" + "images": { + "description": "Images are a list of individual images to import.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ImageImportSpec" + } }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "import": { + "description": "Import indicates whether to perform an import - if so, the specified tags are set on the spec and status of the image stream defined by the type meta.", "type": "boolean" }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", - "type": "integer", - "format": "int64" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", - "$ref": "#/definitions/v1.SELinuxOptions" - }, - "supplementalGroups": { - "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.", + "repository": { + "description": "Repository is an optional import of an entire Docker image repository. A maximum limit on the number of tags imported this way is imposed by the server.", + "$ref": "#/definitions/v1.RepositoryImportSpec" + } + } + }, + "v1.ImageStreamImportStatus": { + "description": "ImageStreamImportStatus contains information about the status of an image stream import.", + "properties": { + "images": { + "description": "Images is set with the result of importing spec.images", "type": "array", "items": { - "type": "integer", - "format": "int64" + "$ref": "#/definitions/v1.ImageImportStatus" } + }, + "import": { + "description": "Import is the image stream that was successfully updated or created when 'to' was set.", + "$ref": "#/definitions/v1.ImageStream" + }, + "repository": { + "description": "Repository is set if spec.repository was set to the outcome of the import", + "$ref": "#/definitions/v1.RepositoryImportStatus" } } }, - "v1.ComponentStatusList": { - "description": "Status of all the conditions for the component as a list of ComponentStatus objects.", + "v1.ImageStreamList": { + "description": "ImageStreamList is a list of ImageStream objects.", "required": [ "items" ], @@ -35177,10 +47944,10 @@ "type": "string" }, "items": { - "description": "List of ComponentStatus objects.", + "description": "Items is a list of imageStreams", "type": "array", "items": { - "$ref": "#/definitions/v1.ComponentStatus" + "$ref": "#/definitions/v1.ImageStream" } }, "kind": { @@ -35188,384 +47955,219 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ComponentStatusList" + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1alpha1.Subject": { - "description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", + "v1.ImageStreamMapping": { + "description": "ImageStreamMapping represents a mapping from a single tag to a Docker image as well as the reference to the Docker image stream the image came from.", "required": [ - "kind", - "name" + "image", + "tag" ], - "properties": { - "apiVersion": { - "description": "APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects.", - "type": "string" - }, - "kind": { - "description": "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.", - "type": "string" - }, - "name": { - "description": "Name of the object being referenced.", - "type": "string" - }, - "namespace": { - "description": "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.", - "type": "string" - } - } - }, - "v1.LabelSelector": { - "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LabelSelectorRequirement" - } - }, - "matchLabels": { - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "v1beta1.Ingress": { - "description": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "image": { + "description": "Image is a Docker image.", + "$ref": "#/definitions/v1.Image" + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, - "spec": { - "description": "Spec is the desired state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.IngressSpec" - }, - "status": { - "description": "Status is the current state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.IngressStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "Ingress" - } - ] - }, - "v1.NodeAddress": { - "description": "NodeAddress contains information for the node's address.", - "required": [ - "type", - "address" - ], - "properties": { - "address": { - "description": "The node address.", - "type": "string" - }, - "type": { - "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", + "tag": { + "description": "Tag is a string value this image can be located with inside the stream.", "type": "string" } } }, - "extensions.v1beta1.DeploymentStatus": { - "description": "DeploymentStatus is the most recently observed status of the Deployment.", + "v1.ImageStreamSpec": { + "description": "ImageStreamSpec represents options for ImageStreams.", "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", - "type": "integer", - "format": "int32" + "dockerImageRepository": { + "description": "DockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server", + "type": "string" }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", + "tags": { + "description": "Tags map arbitrary string values to specific image locators", "type": "array", "items": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentCondition" + "$ref": "#/definitions/v1.TagReference" } - }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "Total number of ready pods targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "type": "integer", - "format": "int32" - }, - "unavailableReplicas": { - "description": "Total number of unavailable pods targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "type": "integer", - "format": "int32" } } }, - "v1.EnvVar": { - "description": "EnvVar represents an environment variable present in a Container.", + "v1.ImageStreamStatus": { + "description": "ImageStreamStatus contains information about the state of this image stream.", "required": [ - "name" + "dockerImageRepository" ], "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string" - }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "dockerImageRepository": { + "description": "DockerImageRepository represents the effective location this stream may be accessed at. May be empty until the server determines where the repository is located", "type": "string" }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "$ref": "#/definitions/v1.EnvVarSource" + "tags": { + "description": "Tags are a historical record of images associated with each tag. The first entry in the TagEvent array is the currently tagged image.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.NamedTagEventList" + } } } }, - "v1.AWSElasticBlockStoreVolumeSource": { - "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", + "v1.ImageStreamTag": { + "description": "ImageStreamTag represents an Image that is retrieved by tag name from an ImageStream.", "required": [ - "volumeID" + "tag", + "generation", + "image" ], "properties": { - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "partition": { - "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", + "conditions": { + "description": "Conditions is an array of conditions that apply to the image stream tag.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.TagEventCondition" + } + }, + "generation": { + "description": "Generation is the current generation of the tagged image - if tag is provided and this value is not equal to the tag generation, a user has requested an import that has not completed, or Conditions will be filled out indicating any error.", "type": "integer", - "format": "int32" + "format": "int64" }, - "readOnly": { - "description": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", - "type": "boolean" + "image": { + "description": "Image associated with the ImageStream and tag.", + "$ref": "#/definitions/v1.Image" }, - "volumeID": { - "description": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", - "type": "string" - } - } - }, - "v1.NFSVolumeSource": { - "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", - "required": [ - "server", - "path" - ], - "properties": { - "path": { - "description": "Path that is exported by the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "readOnly": { - "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", - "type": "boolean" + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" }, - "server": { - "description": "Server is the hostname or IP address of the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", - "type": "string" + "tag": { + "description": "Tag is the spec tag associated with this image stream tag, and it may be null if only pushes have occurred to this image stream.", + "$ref": "#/definitions/v1.TagReference" } } }, - "v1beta1.PodSecurityPolicySpec": { - "description": "Pod Security Policy Spec defines the policy enforced.", + "v1.ImageStreamTagList": { + "description": "ImageStreamTagList is a list of ImageStreamTag objects.", "required": [ - "seLinux", - "runAsUser", - "supplementalGroups", - "fsGroup" + "items" ], "properties": { - "allowedCapabilities": { - "description": "AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities.", - "type": "array", - "items": { - "type": "string" - } - }, - "defaultAddCapabilities": { - "description": "DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities.", - "type": "array", - "items": { - "type": "string" - } - }, - "fsGroup": { - "description": "FSGroup is the strategy that will dictate what fs group is used by the SecurityContext.", - "$ref": "#/definitions/v1beta1.FSGroupStrategyOptions" - }, - "hostIPC": { - "description": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.", - "type": "boolean" - }, - "hostNetwork": { - "description": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.", - "type": "boolean" - }, - "hostPID": { - "description": "hostPID determines if the policy allows the use of HostPID in the pod spec.", - "type": "boolean" - }, - "hostPorts": { - "description": "hostPorts determines which host port ranges are allowed to be exposed.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.HostPortRange" - } - }, - "privileged": { - "description": "privileged determines if a pod can request to be run as privileged.", - "type": "boolean" - }, - "readOnlyRootFilesystem": { - "description": "ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.", - "type": "boolean" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "requiredDropCapabilities": { - "description": "RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.", + "items": { + "description": "Items is the list of image stream tags", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1.ImageStreamTag" } }, - "runAsUser": { - "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.", - "$ref": "#/definitions/v1beta1.RunAsUserStrategyOptions" - }, - "seLinux": { - "description": "seLinux is the strategy that will dictate the allowable labels that may be set.", - "$ref": "#/definitions/v1beta1.SELinuxStrategyOptions" - }, - "supplementalGroups": { - "description": "SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.", - "$ref": "#/definitions/v1beta1.SupplementalGroupsStrategyOptions" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "volumes": { - "description": "volumes is a white list of allowed volume plugins. Empty indicates that all plugins may be used.", - "type": "array", - "items": { - "type": "string" - } + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1.ListMeta": { - "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "v1.JenkinsPipelineBuildStrategy": { + "description": "JenkinsPipelineBuildStrategy holds parameters specific to a Jenkins Pipeline build. This strategy is in tech preview.", "properties": { - "resourceVersion": { - "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency", + "jenkinsfile": { + "description": "Jenkinsfile defines the optional raw contents of a Jenkinsfile which defines a Jenkins pipeline build.", "type": "string" }, - "selfLink": { - "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.", + "jenkinsfilePath": { + "description": "JenkinsfilePath is the optional path of the Jenkinsfile that will be used to configure the pipeline relative to the root of the context (contextDir). If both JenkinsfilePath & Jenkinsfile are both not specified, this defaults to Jenkinsfile in the root of the specified contextDir.", "type": "string" } } }, - "v1beta1.ReplicaSetList": { - "description": "ReplicaSetList is a collection of ReplicaSets.", - "required": [ - "items" - ], + "v1.Job": { + "description": "Job represents the configuration of a single job.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "ReplicaSetList" + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.JobSpec" + }, + "status": { + "description": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.JobStatus" } - ] + } }, - "v1.ServiceAccountList": { - "description": "ServiceAccountList is a list of ServiceAccount objects", + "v1.JobCondition": { + "description": "JobCondition describes current state of a job.", "required": [ - "items" + "type", + "status" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "lastProbeTime": { + "description": "Last time the condition was checked.", + "type": "string", + "format": "date-time" + }, + "lastTransitionTime": { + "description": "Last time the condition transit from one status to another.", + "type": "string", + "format": "date-time" + }, + "message": { + "description": "Human readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "(brief) reason for the condition's last transition.", "type": "string" }, - "items": { - "description": "List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ServiceAccount" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "status": { + "description": "Status of the condition, one of True, False, Unknown.", "type": "string" }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ServiceAccountList" + "type": { + "description": "Type of job condition, Complete or Failed.", + "type": "string" } - ] + } }, - "v1.HorizontalPodAutoscalerList": { - "description": "list of horizontal pod autoscaler objects.", + "v1.JobList": { + "description": "JobList is a collection of jobs.", "required": [ "items" ], @@ -35575,10 +48177,10 @@ "type": "string" }, "items": { - "description": "list of horizontal pod autoscaler objects.", + "description": "Items is the list of Job.", "type": "array", "items": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "kind": { @@ -35586,94 +48188,208 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "autoscaling", - "Version": "v1", - "Kind": "HorizontalPodAutoscalerList" + "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1.Probe": { - "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "v1.JobSpec": { + "description": "JobSpec describes how the job execution will look like.", + "required": [ + "template" + ], "properties": { - "exec": { - "description": "One and only one of the following should be specified. Exec specifies the action to take.", - "$ref": "#/definitions/v1.ExecAction" + "activeDeadlineSeconds": { + "description": "Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer", + "type": "integer", + "format": "int64" }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "completions": { + "description": "Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs", "type": "integer", "format": "int32" }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "$ref": "#/definitions/v1.HTTPGetAction" + "manualSelector": { + "description": "ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md", + "type": "boolean" }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", + "parallelism": { + "description": "Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs", "type": "integer", "format": "int32" }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "selector": { + "description": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "$ref": "#/definitions/unversioned.LabelSelector" + }, + "template": { + "description": "Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs", + "$ref": "#/definitions/v1.PodTemplateSpec" + } + } + }, + "v1.JobStatus": { + "description": "JobStatus represents the current state of a Job.", + "properties": { + "active": { + "description": "Active is the number of actively running pods.", "type": "integer", "format": "int32" }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.", + "completionTime": { + "description": "CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", + "type": "string", + "format": "date-time" + }, + "conditions": { + "description": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", + "type": "array", + "items": { + "$ref": "#/definitions/v1.JobCondition" + } + }, + "failed": { + "description": "Failed is the number of pods which reached Phase Failed.", "type": "integer", "format": "int32" }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", - "$ref": "#/definitions/v1.TCPSocketAction" + "startTime": { + "description": "StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", + "type": "string", + "format": "date-time" }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", + "succeeded": { + "description": "Succeeded is the number of pods which reached Phase Succeeded.", "type": "integer", "format": "int32" } } }, - "v1.SecretKeySelector": { - "description": "SecretKeySelector selects a key of a Secret.", + "v1.KeyToPath": { + "description": "Maps a string key to a path within a volume.", "required": [ - "key" + "key", + "path" ], "properties": { "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", + "description": "The key to project.", "type": "string" }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "mode": { + "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "path": { + "description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", "type": "string" + } + } + }, + "v1.Lifecycle": { + "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "properties": { + "postStart": { + "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details", + "$ref": "#/definitions/v1.Handler" }, - "optional": { - "description": "Specify whether the Secret or it's key must be defined", - "type": "boolean" + "preStop": { + "description": "PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details", + "$ref": "#/definitions/v1.Handler" } } }, - "v1.NamespaceSpec": { - "description": "NamespaceSpec describes the attributes on a Namespace.", + "v1.LifecycleHook": { + "description": "LifecycleHook defines a specific deployment lifecycle action. Only one type of action may be specified at any time.", + "required": [ + "failurePolicy" + ], "properties": { - "finalizers": { - "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#finalizers", + "execNewPod": { + "description": "ExecNewPod specifies the options for a lifecycle hook backed by a pod.", + "$ref": "#/definitions/v1.ExecNewPodHook" + }, + "failurePolicy": { + "description": "FailurePolicy specifies what action to take if the hook fails.", + "type": "string" + }, + "tagImages": { + "description": "TagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag.", "type": "array", "items": { + "$ref": "#/definitions/v1.TagImageHook" + } + } + } + }, + "v1.LimitRange": { + "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec defines the limits enforced. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.LimitRangeSpec" + } + } + }, + "v1.LimitRangeItem": { + "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "properties": { + "default": { + "description": "Default resource requirement limit value by resource name if resource limit is omitted.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "defaultRequest": { + "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "max": { + "description": "Max usage constraints on this kind by resource name.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "maxLimitRequestRatio": { + "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "min": { + "description": "Min usage constraints on this kind by resource name.", + "type": "object", + "additionalProperties": { "type": "string" } + }, + "type": { + "description": "Type of resource that this limit applies to.", + "type": "string" } } }, - "v1beta1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", + "v1.LimitRangeList": { + "description": "LimitRangeList is a list of LimitRange items.", "required": [ "items" ], @@ -35683,10 +48399,10 @@ "type": "string" }, "items": { - "description": "Items is a list of ClusterRoleBindings", + "description": "Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" + "$ref": "#/definitions/v1.LimitRange" } }, "kind": { @@ -35694,222 +48410,317 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "ClusterRoleBindingList" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1.Volume": { - "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "v1.LimitRangeSpec": { + "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", "required": [ - "name" + "limits" ], "properties": { - "awsElasticBlockStore": { - "description": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", - "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource" - }, - "azureDisk": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureDiskVolumeSource" + "limits": { + "description": "Limits is the list of LimitRangeItem objects that are enforced.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.LimitRangeItem" + } + } + } + }, + "v1.LoadBalancerIngress": { + "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", + "properties": { + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", + "type": "string" }, - "azureFile": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureFileVolumeSource" + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", + "type": "string" + } + } + }, + "v1.LoadBalancerStatus": { + "description": "LoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.LoadBalancerIngress" + } + } + } + }, + "v1.LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + } + } + }, + "v1.LocalResourceAccessReview": { + "description": "LocalResourceAccessReview is a means to request a list of which users and groups are authorized to perform the action specified by spec in a particular namespace", + "required": [ + "namespace", + "verb", + "resourceAPIGroup", + "resourceAPIVersion", + "resource", + "resourceName", + "path", + "isNonResourceURL" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "cephfs": { - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.CephFSVolumeSource" + "content": { + "description": "Content is the actual content of the request for create and update", + "$ref": "#/definitions/runtime.RawExtension" }, - "cinder": { - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "$ref": "#/definitions/v1.CinderVolumeSource" + "isNonResourceURL": { + "description": "IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy)", + "type": "boolean" }, - "configMap": { - "description": "ConfigMap represents a configMap that should populate this volume", - "$ref": "#/definitions/v1.ConfigMapVolumeSource" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "downwardAPI": { - "description": "DownwardAPI represents downward API about the pod that should populate this volume", - "$ref": "#/definitions/v1.DownwardAPIVolumeSource" + "namespace": { + "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces", + "type": "string" }, - "emptyDir": { - "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", - "$ref": "#/definitions/v1.EmptyDirVolumeSource" + "path": { + "description": "Path is the path of a non resource URL", + "type": "string" }, - "fc": { - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "$ref": "#/definitions/v1.FCVolumeSource" + "resource": { + "description": "Resource is one of the existing resource types", + "type": "string" }, - "flexVolume": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", - "$ref": "#/definitions/v1.FlexVolumeSource" + "resourceAPIGroup": { + "description": "Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined", + "type": "string" }, - "flocker": { - "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", - "$ref": "#/definitions/v1.FlockerVolumeSource" + "resourceAPIVersion": { + "description": "Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined", + "type": "string" }, - "gcePersistentDisk": { - "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource" + "resourceName": { + "description": "ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\"", + "type": "string" }, - "gitRepo": { - "description": "GitRepo represents a git repository at a particular revision.", - "$ref": "#/definitions/v1.GitRepoVolumeSource" + "verb": { + "description": "Verb is one of: get, list, watch, create, update, delete", + "type": "string" + } + } + }, + "v1.LocalSubjectAccessReview": { + "description": "LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespace", + "required": [ + "namespace", + "verb", + "resourceAPIGroup", + "resourceAPIVersion", + "resource", + "resourceName", + "path", + "isNonResourceURL", + "user", + "groups", + "scopes" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "glusterfs": { - "description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", - "$ref": "#/definitions/v1.GlusterfsVolumeSource" + "content": { + "description": "Content is the actual content of the request for create and update", + "$ref": "#/definitions/runtime.RawExtension" }, - "hostPath": { - "description": "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", - "$ref": "#/definitions/v1.HostPathVolumeSource" + "groups": { + "description": "Groups is optional. Groups is the list of groups to which the User belongs.", + "type": "array", + "items": { + "type": "string" + } }, - "iscsi": { - "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md", - "$ref": "#/definitions/v1.ISCSIVolumeSource" + "isNonResourceURL": { + "description": "IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy)", + "type": "boolean" }, - "name": { - "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "nfs": { - "description": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://kubernetes.io/docs/user-guide/volumes#nfs", - "$ref": "#/definitions/v1.NFSVolumeSource" - }, - "persistentVolumeClaim": { - "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", - "$ref": "#/definitions/v1.PersistentVolumeClaimVolumeSource" + "namespace": { + "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces", + "type": "string" }, - "photonPersistentDisk": { - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource" + "path": { + "description": "Path is the path of a non resource URL", + "type": "string" }, - "portworxVolume": { - "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PortworxVolumeSource" + "resource": { + "description": "Resource is one of the existing resource types", + "type": "string" }, - "projected": { - "description": "Items for all in one resources secrets, configmaps, and downward API", - "$ref": "#/definitions/v1.ProjectedVolumeSource" + "resourceAPIGroup": { + "description": "Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined", + "type": "string" }, - "quobyte": { - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.QuobyteVolumeSource" + "resourceAPIVersion": { + "description": "Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined", + "type": "string" }, - "rbd": { - "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", - "$ref": "#/definitions/v1.RBDVolumeSource" + "resourceName": { + "description": "ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\"", + "type": "string" }, - "scaleIO": { - "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "$ref": "#/definitions/v1.ScaleIOVolumeSource" + "scopes": { + "description": "Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". Nil for a self-SAR, means \"use the scopes on this request\". Nil for a regular SAR, means the same as empty.", + "type": "array", + "items": { + "type": "string" + } }, - "secret": { - "description": "Secret represents a secret that should populate this volume. More info: http://kubernetes.io/docs/user-guide/volumes#secrets", - "$ref": "#/definitions/v1.SecretVolumeSource" + "user": { + "description": "User is optional. If both User and Groups are empty, the current authenticated user is used.", + "type": "string" }, - "vsphereVolume": { - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource" + "verb": { + "description": "Verb is one of: get, list, watch, create, update, delete", + "type": "string" } } }, - "v1.ConfigMapKeySelector": { - "description": "Selects a key from a ConfigMap.", + "v1.NFSVolumeSource": { + "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", "required": [ - "key" + "server", + "path" ], "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "path": { + "description": "Path that is exported by the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", "type": "string" }, - "optional": { - "description": "Specify whether the ConfigMap or it's key must be defined", + "readOnly": { + "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", "type": "boolean" + }, + "server": { + "description": "Server is the hostname or IP address of the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", + "type": "string" } } }, - "v1beta1.IngressList": { - "description": "IngressList is a collection of Ingress.", + "v1.NamedClusterRole": { + "description": "NamedClusterRole relates a name with a cluster role", "required": [ - "items" + "name", + "role" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "name": { + "description": "Name is the name of the cluster role", "type": "string" }, - "items": { - "description": "Items is the list of Ingress.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "role": { + "description": "Role is the cluster role being named", + "$ref": "#/definitions/v1.ClusterRole" + } + } + }, + "v1.NamedClusterRoleBinding": { + "description": "NamedClusterRoleBinding relates a name with a cluster role binding", + "required": [ + "name", + "roleBinding" + ], + "properties": { + "name": { + "description": "Name is the name of the cluster role binding", "type": "string" }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "IngressList" + "roleBinding": { + "description": "RoleBinding is the cluster role binding being named", + "$ref": "#/definitions/v1.ClusterRoleBinding" } - ] + } }, - "v1beta1.ReplicaSet": { - "description": "ReplicaSet represents the configuration of a ReplicaSet.", + "v1.NamedRole": { + "description": "NamedRole relates a Role with a name", + "required": [ + "name", + "role" + ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "name": { + "description": "Name is the name of the role", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "role": { + "description": "Role is the role being named", + "$ref": "#/definitions/v1.Role" + } + } + }, + "v1.NamedRoleBinding": { + "description": "NamedRoleBinding relates a role binding with a name", + "required": [ + "name", + "roleBinding" + ], + "properties": { + "name": { + "description": "Name is the name of the role binding", "type": "string" }, - "metadata": { - "description": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "roleBinding": { + "description": "RoleBinding is the role binding being named", + "$ref": "#/definitions/v1.RoleBinding" + } + } + }, + "v1.NamedTagEventList": { + "description": "NamedTagEventList relates a tag to its image history.", + "required": [ + "tag", + "items" + ], + "properties": { + "conditions": { + "description": "Conditions is an array of conditions that apply to the tag event list.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.TagEventCondition" + } }, - "spec": { - "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.ReplicaSetSpec" + "items": { + "description": "Standard object's metadata.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.TagEvent" + } }, - "status": { - "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.ReplicaSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "ReplicaSet" + "tag": { + "description": "Tag is the tag for which the history is recorded", + "type": "string" } - ] + } }, - "v2alpha1.CronJob": { - "description": "CronJob represents the configuration of a single cron job.", + "v1.Namespace": { + "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -35924,138 +48735,122 @@ "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec is a structure defining the expected behavior of a job, including the schedule. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v2alpha1.CronJobSpec" + "description": "Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.NamespaceSpec" }, "status": { - "description": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v2alpha1.CronJobStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "batch", - "Version": "v2alpha1", - "Kind": "CronJob" - }, - { - "Group": "batch", - "Version": "v2alpha1", - "Kind": "ScheduledJob" + "description": "Status describes the current status of a Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.NamespaceStatus" } - ] + } }, - "v1.VsphereVirtualDiskVolumeSource": { - "description": "Represents a vSphere volume resource.", + "v1.NamespaceList": { + "description": "NamespaceList is a list of Namespaces.", "required": [ - "volumePath" + "items" ], - "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "volumePath": { - "description": "Path that identifies vSphere volume vmdk", - "type": "string" - } - } - }, - "v1.Status": { - "description": "Status is a return value for calls that don't return other objects.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "code": { - "description": "Suggested HTTP return code for this status, 0 if not set.", - "type": "integer", - "format": "int32" - }, - "details": { - "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", - "$ref": "#/definitions/v1.StatusDetails" + "items": { + "description": "Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Namespace" + } }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, "metadata": { "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - }, - "reason": { - "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", - "type": "string" - }, - "status": { - "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.NamespaceSpec": { + "description": "NamespaceSpec describes the attributes on a Namespace.", + "properties": { + "finalizers": { + "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#finalizers", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "v1.NamespaceStatus": { + "description": "NamespaceStatus is information about the current status of a Namespace.", + "properties": { + "phase": { + "description": "Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases", "type": "string" } } }, - "v1.ReplicationControllerStatus": { - "description": "ReplicationControllerStatus represents the current status of a replication controller.", + "v1.NetNamespace": { + "description": "NetNamespace describes a single isolated network. When using the redhat/openshift-ovs-multitenant plugin, every Namespace will have a corresponding NetNamespace object with the same name. (When using redhat/openshift-ovs-subnet, NetNamespaces are not used.)", "required": [ - "replicas" + "netname", + "netid" ], "properties": { - "availableReplicas": { - "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", - "type": "integer", - "format": "int32" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "conditions": { - "description": "Represents the latest available observations of a replication controller's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ReplicationControllerCondition" - } + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "fullyLabeledReplicas": { - "description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", - "type": "integer", - "format": "int32" + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", + "netid": { + "description": "NetID is the network identifier of the network namespace assigned to each overlay network packet. This can be manipulated with the \"oadm pod-network\" commands.", "type": "integer", "format": "int64" }, - "readyReplicas": { - "description": "The number of ready replicas for this replication controller.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", - "type": "integer", - "format": "int32" + "netname": { + "description": "NetName is the name of the network namespace. (This is the same as the object's name, but both fields must be set.)", + "type": "string" } } }, - "v1.LoadBalancerStatus": { - "description": "LoadBalancerStatus represents the status of a load-balancer.", + "v1.NetNamespaceList": { + "description": "NetNamespaceList is a collection of NetNamespaces", + "required": [ + "items" + ], "properties": { - "ingress": { - "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of net namespaces", "type": "array", "items": { - "$ref": "#/definitions/v1.LoadBalancerIngress" + "$ref": "#/definitions/v1.NetNamespace" } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1.Binding": { - "description": "Binding ties one object to another. For example, a pod is bound to a node by a scheduler.", - "required": [ - "target" - ], + "v1.Node": { + "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -36069,70 +48864,77 @@ "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, - "target": { - "description": "The target object that you want to bind to the standard object.", - "$ref": "#/definitions/v1.ObjectReference" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Binding" - } - ] - }, - "v1.VolumeProjection": { - "description": "Projection that may be projected along with other supported volume types", - "properties": { - "configMap": { - "description": "information about the configMap data to project", - "$ref": "#/definitions/v1.ConfigMapProjection" - }, - "downwardAPI": { - "description": "information about the downwardAPI data to project", - "$ref": "#/definitions/v1.DownwardAPIProjection" + "spec": { + "description": "Spec defines the behavior of a node. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.NodeSpec" }, - "secret": { - "description": "information about the secret data to project", - "$ref": "#/definitions/v1.SecretProjection" + "status": { + "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.NodeStatus" } } }, - "v1.TokenReviewSpec": { - "description": "TokenReviewSpec is a description of the token authentication request.", + "v1.NodeAddress": { + "description": "NodeAddress contains information for the node's address.", + "required": [ + "type", + "address" + ], "properties": { - "token": { - "description": "Token is the opaque bearer token.", + "address": { + "description": "The node address.", + "type": "string" + }, + "type": { + "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", "type": "string" } } }, - "v1beta1.Subject": { - "description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", + "v1.NodeCondition": { + "description": "NodeCondition contains condition information for a node.", "required": [ - "kind", - "name" + "type", + "status" ], "properties": { - "apiGroup": { - "description": "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.", + "lastHeartbeatTime": { + "description": "Last time we got an update on a given condition.", + "type": "string", + "format": "date-time" + }, + "lastTransitionTime": { + "description": "Last time the condition transit from one status to another.", + "type": "string", + "format": "date-time" + }, + "message": { + "description": "Human readable message indicating details about last transition.", "type": "string" }, - "kind": { - "description": "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.", + "reason": { + "description": "(brief) reason for the condition's last transition.", "type": "string" }, - "name": { - "description": "Name of the object being referenced.", + "status": { + "description": "Status of the condition, one of True, False, Unknown.", "type": "string" }, - "namespace": { - "description": "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.", + "type": { + "description": "Type of node condition.", "type": "string" } } }, + "v1.NodeDaemonEndpoints": { + "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", + "properties": { + "kubeletEndpoint": { + "description": "Endpoint on which Kubelet is listening.", + "$ref": "#/definitions/v1.DaemonEndpoint" + } + } + }, "v1.NodeList": { "description": "NodeList is the whole list of all Nodes which have been registered with master.", "required": [ @@ -36156,244 +48958,209 @@ }, "metadata": { "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "NodeList" + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1.ContainerPort": { - "description": "ContainerPort represents a network port in a single container.", - "required": [ - "containerPort" - ], + "v1.NodeSpec": { + "description": "NodeSpec describes the attributes that a node is created with.", "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", - "type": "integer", - "format": "int32" - }, - "hostIP": { - "description": "What host IP to bind the external port to.", + "externalID": { + "description": "External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated.", "type": "string" }, - "hostPort": { - "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", - "type": "integer", - "format": "int32" - }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "podCIDR": { + "description": "PodCIDR represents the pod IP range assigned to the node.", "type": "string" }, - "protocol": { - "description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\".", + "providerID": { + "description": "ID of the node assigned by the cloud provider in the format: ://", "type": "string" + }, + "unschedulable": { + "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration\"", + "type": "boolean" } } }, - "v1.FCVolumeSource": { - "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", - "required": [ - "targetWWNs", - "lun" - ], + "v1.NodeStatus": { + "description": "NodeStatus is information about the current status of a node.", "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" + "addresses": { + "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses", + "type": "array", + "items": { + "$ref": "#/definitions/v1.NodeAddress" + } }, - "lun": { - "description": "Required: FC target lun number", - "type": "integer", - "format": "int32" + "allocatable": { + "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" + "capacity": { + "description": "Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details.", + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "targetWWNs": { - "description": "Required: FC target worldwide names (WWNs)", + "conditions": { + "description": "Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1.NodeCondition" } - } - } - }, - "runtime.RawExtension": { - "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.Object `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// External package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// On the wire, the JSON will look something like this: {\n\t\"kind\":\"MyAPIObject\",\n\t\"apiVersion\":\"v1\",\n\t\"myPlugin\": {\n\t\t\"kind\":\"PluginA\",\n\t\t\"aOption\":\"foo\",\n\t},\n}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", - "required": [ - "Raw" - ], - "properties": { - "Raw": { - "description": "Raw is the underlying serialization of this object.", - "type": "string", - "format": "byte" - } - } - }, - "v1alpha1.ClusterRoleBinding": { - "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" + "daemonEndpoints": { + "description": "Endpoints of daemons running on the Node.", + "$ref": "#/definitions/v1.NodeDaemonEndpoints" }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" + "images": { + "description": "List of container images on this node", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ContainerImage" + } }, - "roleRef": { - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/v1alpha1.RoleRef" + "nodeInfo": { + "description": "Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info", + "$ref": "#/definitions/v1.NodeSystemInfo" }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "phase": { + "description": "NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase The field is never populated, and now is deprecated.", + "type": "string" + }, + "volumesAttached": { + "description": "List of volumes that are attached to the node.", "type": "array", "items": { - "$ref": "#/definitions/v1alpha1.Subject" + "$ref": "#/definitions/v1.AttachedVolume" + } + }, + "volumesInUse": { + "description": "List of attachable volumes in use (mounted) by the node.", + "type": "array", + "items": { + "type": "string" } } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "ClusterRoleBinding" - } - ] + } }, - "version.Info": { - "description": "Info contains versioning information. how we'll want to distribute that information.", + "v1.NodeSystemInfo": { + "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", "required": [ - "major", - "minor", - "gitVersion", - "gitCommit", - "gitTreeState", - "buildDate", - "goVersion", - "compiler", - "platform" + "machineID", + "systemUUID", + "bootID", + "kernelVersion", + "osImage", + "containerRuntimeVersion", + "kubeletVersion", + "kubeProxyVersion", + "operatingSystem", + "architecture" ], "properties": { - "buildDate": { + "architecture": { + "description": "The Architecture reported by the node", "type": "string" }, - "compiler": { + "bootID": { + "description": "Boot ID reported by the node.", "type": "string" }, - "gitCommit": { + "containerRuntimeVersion": { + "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).", "type": "string" }, - "gitTreeState": { + "kernelVersion": { + "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", "type": "string" }, - "gitVersion": { + "kubeProxyVersion": { + "description": "KubeProxy Version reported by the node.", "type": "string" }, - "goVersion": { + "kubeletVersion": { + "description": "Kubelet Version reported by the node.", "type": "string" }, - "major": { + "machineID": { + "description": "MachineID reported by the node. For unique machine identification in the cluster this field is prefered. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", "type": "string" }, - "minor": { + "operatingSystem": { + "description": "The Operating System reported by the node", "type": "string" }, - "platform": { + "osImage": { + "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", + "type": "string" + }, + "systemUUID": { + "description": "SystemUUID reported by the node. For unique machine identification MachineID is prefered. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html", "type": "string" } } }, - "v2alpha1.HorizontalPodAutoscaler": { - "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", + "v1.OAuthAccessToken": { + "description": "OAuthAccessToken describes an OAuth access token", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "authorizeToken": { + "description": "AuthorizeToken contains the token that authorized this token", + "type": "string" + }, + "clientName": { + "description": "ClientName references the client that created this token.", + "type": "string" + }, + "expiresIn": { + "description": "ExpiresIn is the seconds from CreationTime before this token expires.", + "type": "integer", + "format": "int64" + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "metadata is the standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, - "spec": { - "description": "spec is the specification for the behaviour of the autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscalerSpec" - }, - "status": { - "description": "status is the current information about the autoscaler.", - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscalerStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "autoscaling", - "Version": "v2alpha1", - "Kind": "HorizontalPodAutoscaler" - } - ] - }, - "v1.ReplicationControllerSpec": { - "description": "ReplicationControllerSpec is the specification of a replication controller.", - "properties": { - "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", - "type": "integer", - "format": "int32" + "redirectURI": { + "description": "RedirectURI is the redirection associated with the token.", + "type": "string" }, - "replicas": { - "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", - "type": "integer", - "format": "int32" + "refreshToken": { + "description": "RefreshToken is the value by which this token can be renewed. Can be blank.", + "type": "string" }, - "selector": { - "description": "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { + "scopes": { + "description": "Scopes is an array of the requested scopes.", + "type": "array", + "items": { "type": "string" } }, - "template": { - "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v1.TCPSocketAction": { - "description": "TCPSocketAction describes an action based on opening a socket", - "required": [ - "port" - ], - "properties": { - "port": { - "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - "type": "string", - "format": "int-or-string" + "userName": { + "description": "UserName is the user name associated with this token", + "type": "string" + }, + "userUID": { + "description": "UserUID is the unique UID associated with this token", + "type": "string" } } }, - "v1alpha1.RoleList": { - "description": "RoleList is a collection of Roles", + "v1.OAuthAccessTokenList": { + "description": "OAuthAccessTokenList is a collection of OAuth access tokens", "required": [ "items" ], @@ -36403,10 +49170,10 @@ "type": "string" }, "items": { - "description": "Items is a list of Roles", + "description": "Items is the list of OAuth access tokens", "type": "array", "items": { - "$ref": "#/definitions/v1alpha1.Role" + "$ref": "#/definitions/v1.OAuthAccessToken" } }, "kind": { @@ -36415,19 +49182,69 @@ }, "metadata": { "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "RoleList" + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1beta1.StatefulSetList": { - "description": "StatefulSetList is a collection of StatefulSets.", + "v1.OAuthAuthorizeToken": { + "description": "OAuthAuthorizeToken describes an OAuth authorization token", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "clientName": { + "description": "ClientName references the client that created this token.", + "type": "string" + }, + "codeChallenge": { + "description": "CodeChallenge is the optional code_challenge associated with this authorization code, as described in rfc7636", + "type": "string" + }, + "codeChallengeMethod": { + "description": "CodeChallengeMethod is the optional code_challenge_method associated with this authorization code, as described in rfc7636", + "type": "string" + }, + "expiresIn": { + "description": "ExpiresIn is the seconds from CreationTime before this token expires.", + "type": "integer", + "format": "int64" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "redirectURI": { + "description": "RedirectURI is the redirection associated with the token.", + "type": "string" + }, + "scopes": { + "description": "Scopes is an array of the requested scopes.", + "type": "array", + "items": { + "type": "string" + } + }, + "state": { + "description": "State data from request", + "type": "string" + }, + "userName": { + "description": "UserName is the user name associated with this token", + "type": "string" + }, + "userUID": { + "description": "UserUID is the unique UID associated with this token. UserUID and UserName must both match for this token to be valid.", + "type": "string" + } + } + }, + "v1.OAuthAuthorizeTokenList": { + "description": "OAuthAuthorizeTokenList is a collection of OAuth authorization tokens", "required": [ "items" ], @@ -36437,9 +49254,10 @@ "type": "string" }, "items": { + "description": "Items is the list of OAuth authorization tokens", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.StatefulSet" + "$ref": "#/definitions/v1.OAuthAuthorizeToken" } }, "kind": { @@ -36447,115 +49265,99 @@ "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "apps", - "Version": "v1beta1", - "Kind": "StatefulSetList" + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1.ISCSIVolumeSource": { - "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", - "required": [ - "targetPortal", - "iqn", - "lun" - ], + "v1.OAuthClient": { + "description": "OAuthClient describes an OAuth client", "properties": { - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#iscsi", + "additionalSecrets": { + "description": "AdditionalSecrets holds other secrets that may be used to identify the client. This is useful for rotation and for service account token validation", + "type": "array", + "items": { + "type": "string" + } + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "iqn": { - "description": "Target iSCSI Qualified Name.", + "grantMethod": { + "description": "GrantMethod determines how to handle grants for this client. If no method is provided, the cluster default grant handling method will be used. Valid grant handling methods are:\n - auto: always approves grant requests, useful for trusted clients\n - prompt: prompts the end user for approval of grant requests, useful for third-party clients\n - deny: always denies grant requests, useful for black-listed clients", "type": "string" }, - "iscsiInterface": { - "description": "Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "lun": { - "description": "iSCSI target lun number.", - "type": "integer", - "format": "int32" + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" }, - "portals": { - "description": "iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "redirectURIs": { + "description": "RedirectURIs is the valid redirection URIs associated with a client", "type": "array", "items": { "type": "string" } }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "respondWithChallenges": { + "description": "RespondWithChallenges indicates whether the client wants authentication needed responses made in the form of challenges instead of redirects", "type": "boolean" }, - "targetPortal": { - "description": "iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "scopeRestrictions": { + "description": "ScopeRestrictions describes which scopes this client can request. Each requested scope is checked against each restriction. If any restriction matches, then the scope is allowed. If no restriction matches, then the scope is denied.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ScopeRestriction" + } + }, + "secret": { + "description": "Secret is the unique secret associated with a client", "type": "string" } } }, - "v1.PodTemplate": { - "description": "PodTemplate describes a template for creating copies of a predefined pod.", + "v1.OAuthClientAuthorization": { + "description": "OAuthClientAuthorization describes an authorization created by an OAuth client", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "clientName": { + "description": "ClientName references the client that created this authorization", + "type": "string" + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, - "template": { - "description": "Template defines the pods that will be created from this pod template. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PodTemplate" - } - ] - }, - "v1.Toleration": { - "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", - "properties": { - "effect": { - "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", - "type": "string" - }, - "key": { - "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", - "type": "string" + "scopes": { + "description": "Scopes is an array of the granted scopes.", + "type": "array", + "items": { + "type": "string" + } }, - "operator": { - "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.", + "userName": { + "description": "UserName is the user name that authorized this client", "type": "string" }, - "tolerationSeconds": { - "description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", - "type": "integer", - "format": "int64" - }, - "value": { - "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "userUID": { + "description": "UserUID is the unique UID associated with this authorization. UserUID and UserName must both match for this authorization to be valid.", "type": "string" } } }, - "v1beta1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles", + "v1.OAuthClientAuthorizationList": { + "description": "OAuthClientAuthorizationList is a collection of OAuth client authorizations", "required": [ "items" ], @@ -36565,10 +49367,10 @@ "type": "string" }, "items": { - "description": "Items is a list of ClusterRoles", + "description": "Items is the list of OAuth client authorizations", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.ClusterRole" + "$ref": "#/definitions/v1.OAuthClientAuthorization" } }, "kind": { @@ -36577,19 +49379,12 @@ }, "metadata": { "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "ClusterRoleList" + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "extensions.v1beta1.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", + "v1.OAuthClientList": { + "description": "OAuthClientList is a collection of OAuth clients", "required": [ "items" ], @@ -36599,10 +49394,10 @@ "type": "string" }, "items": { - "description": "Items is the list of Deployments.", + "description": "Items is the list of OAuth clients", "type": "array", "items": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" + "$ref": "#/definitions/v1.OAuthClient" } }, "kind": { @@ -36610,324 +49405,260 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "DeploymentList" + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", + "v1.ObjectFieldSelector": { + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", "required": [ - "replicas" + "fieldPath" ], "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": "string" }, - "selector": { - "description": "label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "fieldPath": { + "description": "Path of the field to select in the specified API version.", "type": "string" } } }, - "v1.ServiceStatus": { - "description": "ServiceStatus represents the current status of a service.", - "properties": { - "loadBalancer": { - "description": "LoadBalancer contains the current status of the load-balancer, if one is present.", - "$ref": "#/definitions/v1.LoadBalancerStatus" - } - } - }, - "v1.PodSpec": { - "description": "PodSpec is a description of a pod.", - "required": [ - "containers" - ], + "v1.ObjectMeta": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", "properties": { - "activeDeadlineSeconds": { - "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", - "type": "integer", - "format": "int64" - }, - "affinity": { - "description": "If specified, the pod's scheduling constraints", - "$ref": "#/definitions/v1.Affinity" - }, - "automountServiceAccountToken": { - "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", - "type": "boolean" - }, - "containers": { - "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Container" + "annotations": { + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", + "type": "object", + "additionalProperties": { + "type": "string" } }, - "dnsPolicy": { - "description": "Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", + "clusterName": { + "description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.", "type": "string" }, - "hostIPC": { - "description": "Use the host's ipc namespace. Optional: Default to false.", - "type": "boolean" - }, - "hostNetwork": { - "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", - "type": "boolean" - }, - "hostPID": { - "description": "Use the host's pid namespace. Optional: Default to false.", - "type": "boolean" + "creationTimestamp": { + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "type": "string", + "format": "date-time" }, - "hostname": { - "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", - "type": "string" + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "type": "integer", + "format": "int64" }, - "imagePullSecrets": { - "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LocalObjectReference" - } + "deletionTimestamp": { + "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "type": "string", + "format": "date-time" }, - "initContainers": { - "description": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers", + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed.", "type": "array", "items": { - "$ref": "#/definitions/v1.Container" + "type": "string" } }, - "nodeName": { - "description": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.", + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency", "type": "string" }, - "nodeSelector": { - "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://kubernetes.io/docs/user-guide/node-selection/README", + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "type": "integer", + "format": "int64" + }, + "labels": { + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", "type": "object", "additionalProperties": { "type": "string" } }, - "restartPolicy": { - "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy", + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", "type": "string" }, - "schedulerName": { - "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", + "namespace": { + "description": "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", "type": "string" }, - "securityContext": { - "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", - "$ref": "#/definitions/v1.PodSecurityContext" + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.OwnerReference" + } }, - "serviceAccount": { - "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency", "type": "string" }, - "serviceAccountName": { - "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md", + "selfLink": { + "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.", "type": "string" }, - "subdomain": { - "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", "type": "string" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", - "type": "integer", - "format": "int64" - }, - "tolerations": { - "description": "If specified, the pod's tolerations.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Toleration" - } - }, - "volumes": { - "description": "List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Volume" - } } } }, - "v1.NamespaceList": { - "description": "NamespaceList is a list of Namespaces.", - "required": [ - "items" - ], + "v1.ObjectReference": { + "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", "properties": { "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "description": "API version of the referent.", "type": "string" }, - "items": { - "description": "Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "fieldPath": { + "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", "type": "string" }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "NamespaceList" - } - ] - }, - "v1.NodeSystemInfo": { - "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", - "required": [ - "machineID", - "systemUUID", - "bootID", - "kernelVersion", - "osImage", - "containerRuntimeVersion", - "kubeletVersion", - "kubeProxyVersion", - "operatingSystem", - "architecture" - ], - "properties": { - "architecture": { - "description": "The Architecture reported by the node", + "kind": { + "description": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "bootID": { - "description": "Boot ID reported by the node.", + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", "type": "string" }, - "containerRuntimeVersion": { - "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).", + "namespace": { + "description": "Namespace of the referent. More info: http://kubernetes.io/docs/user-guide/namespaces", "type": "string" }, - "kernelVersion": { - "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", + "resourceVersion": { + "description": "Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency", "type": "string" }, - "kubeProxyVersion": { - "description": "KubeProxy Version reported by the node.", + "uid": { + "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", "type": "string" - }, - "kubeletVersion": { - "description": "Kubelet Version reported by the node.", + } + } + }, + "v1.OwnerReference": { + "description": "OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.", + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "properties": { + "apiVersion": { + "description": "API version of the referent.", "type": "string" }, - "machineID": { - "description": "MachineID reported by the node. For unique machine identification in the cluster this field is prefered. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", - "type": "string" + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": "boolean" }, - "operatingSystem": { - "description": "The Operating System reported by the node", + "kind": { + "description": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "osImage": { - "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", "type": "string" }, - "systemUUID": { - "description": "SystemUUID reported by the node. For unique machine identification MachineID is prefered. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html", + "uid": { + "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", "type": "string" } } }, - "v1.KeyToPath": { - "description": "Maps a string key to a path within a volume.", + "v1.Parameter": { + "description": "Parameter defines a name/value variable that is to be processed during the Template to Config transformation.", "required": [ - "key", - "path" + "name" ], "properties": { - "key": { - "description": "The key to project.", + "description": { + "description": "Description of a parameter. Optional.", "type": "string" }, - "mode": { - "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" + "displayName": { + "description": "Optional: The name that will show in UI instead of parameter 'Name'", + "type": "string" }, - "path": { - "description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "from": { + "description": "From is an input value for the generator. Optional.", "type": "string" - } - } - }, - "v1beta1.ResourceAttributes": { - "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", - "properties": { - "group": { - "description": "Group is the API Group of the Resource. \"*\" means all.", + }, + "generate": { + "description": "generate specifies the generator to be used to generate random string from an input value specified by From field. The result string is stored into Value field. If empty, no generator is being used, leaving the result Value untouched. Optional.\n\nThe only supported generator is \"expression\", which accepts a \"from\" value in the form of a simple regular expression containing the range expression \"[a-zA-Z0-9]\", and the length expression \"a{length}\".\n\nExamples:\n\nfrom | value ----------------------------- \"test[0-9]{1}x\" | \"test7x\" \"[0-1]{8}\" | \"01001100\" \"0x[A-F0-9]{4}\" | \"0xB3AF\" \"[a-zA-Z0-9]{8}\" | \"hW4yQU5i\"", "type": "string" }, "name": { - "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", + "description": "Name must be set and it can be referenced in Template Items using ${PARAMETER_NAME}. Required.", "type": "string" }, - "namespace": { - "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", - "type": "string" + "required": { + "description": "Optional: Indicates the parameter must have a value. Defaults to false.", + "type": "boolean" }, - "resource": { - "description": "Resource is one of the existing resource types. \"*\" means all.", + "value": { + "description": "Value holds the Parameter data. If specified, the generator will be ignored. The value replaces all occurrences of the Parameter ${Name} expression during the Template to Config transformation. Optional.", "type": "string" - }, - "subresource": { - "description": "Subresource is one of the existing resource types. \"\" means none.", + } + } + }, + "v1.PersistentVolume": { + "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "verb": { - "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "version": { - "description": "Version is the API Version of the Resource. \"*\" means all.", - "type": "string" + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes", + "$ref": "#/definitions/v1.PersistentVolumeSpec" + }, + "status": { + "description": "Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes", + "$ref": "#/definitions/v1.PersistentVolumeStatus" } } }, - "v1.EnvFromSource": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", + "v1.PersistentVolumeClaim": { + "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", "properties": { - "configMapRef": { - "description": "The ConfigMap to select from", - "$ref": "#/definitions/v1.ConfigMapEnvSource" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "prefix": { - "description": "An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "secretRef": { - "description": "The Secret to select from", - "$ref": "#/definitions/v1.SecretEnvSource" + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec defines the desired characteristics of a volume requested by a pod author. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", + "$ref": "#/definitions/v1.PersistentVolumeClaimSpec" + }, + "status": { + "description": "Status represents the current information/status of a persistent volume claim. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", + "$ref": "#/definitions/v1.PersistentVolumeClaimStatus" } } }, - "v1beta1.CertificateSigningRequestList": { + "v1.PersistentVolumeClaimList": { + "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", "required": [ "items" ], @@ -36937,9 +49668,10 @@ "type": "string" }, "items": { + "description": "A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "kind": { @@ -36947,138 +49679,89 @@ "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "certificates.k8s.io", - "Version": "v1beta1", - "Kind": "CertificateSigningRequestList" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1.JobStatus": { - "description": "JobStatus represents the current state of a Job.", + "v1.PersistentVolumeClaimSpec": { + "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", "properties": { - "active": { - "description": "Active is the number of actively running pods.", - "type": "integer", - "format": "int32" - }, - "completionTime": { - "description": "CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", - "type": "string", - "format": "date-time" - }, - "conditions": { - "description": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", + "accessModes": { + "description": "AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1", "type": "array", "items": { - "$ref": "#/definitions/v1.JobCondition" + "type": "string" } }, - "failed": { - "description": "Failed is the number of pods which reached Phase Failed.", - "type": "integer", - "format": "int32" - }, - "startTime": { - "description": "StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", - "type": "string", - "format": "date-time" + "resources": { + "description": "Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources", + "$ref": "#/definitions/v1.ResourceRequirements" }, - "succeeded": { - "description": "Succeeded is the number of pods which reached Phase Succeeded.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.EventSource": { - "description": "EventSource contains information for an event.", - "properties": { - "component": { - "description": "Component from which the event is generated.", - "type": "string" + "selector": { + "description": "A label query over volumes to consider for binding.", + "$ref": "#/definitions/unversioned.LabelSelector" }, - "host": { - "description": "Node name on which the event is generated.", + "volumeName": { + "description": "VolumeName is the binding reference to the PersistentVolume backing this claim.", "type": "string" } } }, - "v1beta1.ReplicaSetCondition": { - "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", - "required": [ - "type", - "status" - ], + "v1.PersistentVolumeClaimStatus": { + "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", "properties": { - "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "A human readable message indicating details about the transition.", - "type": "string" - }, - "reason": { - "description": "The reason for the condition's last transition.", - "type": "string" + "accessModes": { + "description": "AccessModes contains the actual access modes the volume backing the PVC has. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1", + "type": "array", + "items": { + "type": "string" + } }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" + "capacity": { + "description": "Represents the actual resources of the underlying volume.", + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "type": { - "description": "Type of replica set condition.", + "phase": { + "description": "Phase represents the current phase of PersistentVolumeClaim.", "type": "string" } } }, - "v1.GCEPersistentDiskVolumeSource": { - "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", + "v1.PersistentVolumeClaimVolumeSource": { + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", "required": [ - "pdName" + "claimName" ], "properties": { - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "type": "string" - }, - "partition": { - "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "type": "integer", - "format": "int32" - }, - "pdName": { - "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "claimName": { + "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", "type": "string" }, "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "description": "Will force the ReadOnly setting in VolumeMounts. Default false.", "type": "boolean" } } }, - "v1.ServiceAccount": { - "description": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", + "v1.PersistentVolumeList": { + "description": "PersistentVolumeList is a list of PersistentVolume items.", + "required": [ + "items" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "automountServiceAccountToken": { - "description": "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", - "type": "boolean" - }, - "imagePullSecrets": { - "description": "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://kubernetes.io/docs/user-guide/secrets#manually-specifying-an-imagepullsecret", + "items": { + "description": "List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes", "type": "array", "items": { - "$ref": "#/definitions/v1.LocalObjectReference" + "$ref": "#/definitions/v1.PersistentVolume" } }, "kind": { @@ -37086,24 +49769,10 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "secrets": { - "description": "Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://kubernetes.io/docs/user-guide/secrets", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ObjectReference" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ServiceAccount" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, "v1.PersistentVolumeSpec": { "description": "PersistentVolumeSpec is the specification of a persistent volume.", @@ -37186,10 +49855,6 @@ "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource" }, - "portworxVolume": { - "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PortworxVolumeSource" - }, "quobyte": { "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", "$ref": "#/definitions/v1.QuobyteVolumeSource" @@ -37198,38 +49863,47 @@ "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", "$ref": "#/definitions/v1.RBDVolumeSource" }, - "scaleIO": { - "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "$ref": "#/definitions/v1.ScaleIOVolumeSource" - }, - "storageClassName": { - "description": "Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.", - "type": "string" - }, "vsphereVolume": { "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource" } } }, - "v1beta1.CertificateSigningRequestStatus": { + "v1.PersistentVolumeStatus": { + "description": "PersistentVolumeStatus is the current status of a persistent volume.", "properties": { - "certificate": { - "description": "If request was approved, the controller will place the issued certificate here.", - "type": "string", - "format": "byte" + "message": { + "description": "A human-readable message indicating details about why the volume is in this state.", + "type": "string" }, - "conditions": { - "description": "Conditions applied to the request, such as approval or denial.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequestCondition" - } + "phase": { + "description": "Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#phase", + "type": "string" + }, + "reason": { + "description": "Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", + "type": "string" } } }, - "v1.Service": { - "description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", + "v1.PhotonPersistentDiskVolumeSource": { + "description": "Represents a Photon Controller persistent disk resource.", + "required": [ + "pdID" + ], + "properties": { + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "pdID": { + "description": "ID that identifies Photon Controller persistent disk", + "type": "string" + } + } + }, + "v1.Pod": { + "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -37244,348 +49918,688 @@ "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec defines the behavior of a service. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ServiceSpec" + "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.PodSpec" }, "status": { - "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ServiceStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Service" + "description": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.PodStatus" } - ] + } }, - "v1beta1.IngressRule": { - "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", + "v1.PodCondition": { + "description": "PodCondition contains details for the current condition of this pod.", + "required": [ + "type", + "status" + ], "properties": { - "host": { - "description": "Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the\n\t IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.", + "lastProbeTime": { + "description": "Last time we probed the condition.", + "type": "string", + "format": "date-time" + }, + "lastTransitionTime": { + "description": "Last time the condition transitioned from one status to another.", + "type": "string", + "format": "date-time" + }, + "message": { + "description": "Human-readable message indicating details about last transition.", "type": "string" }, - "http": { - "$ref": "#/definitions/v1beta1.HTTPIngressRuleValue" + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions", + "type": "string" + }, + "type": { + "description": "Type is the type of the condition. Currently only Ready. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions", + "type": "string" } } }, - "apps.v1beta1.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", + "v1.PodList": { + "description": "PodList is a list of Pods.", "required": [ - "template" + "items" ], "properties": { - "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of pods. More info: http://kubernetes.io/docs/user-guide/pods", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Pod" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.PodSecurityContext": { + "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "properties": { + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.", "type": "integer", - "format": "int32" + "format": "int64" }, - "paused": { - "description": "Indicates that the deployment is paused.", + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", "type": "boolean" }, - "progressDeadlineSeconds": { - "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", "type": "integer", - "format": "int32" + "format": "int64" }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "type": "integer", - "format": "int32" + "seLinuxOptions": { + "description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", + "$ref": "#/definitions/v1.SELinuxOptions" }, - "revisionHistoryLimit": { - "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2.", - "type": "integer", - "format": "int32" + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.", + "type": "array", + "items": { + "type": "integer", + "format": "int64" + } + } + } + }, + "v1.PodSecurityPolicyReview": { + "description": "PodSecurityPolicyReview checks which service accounts (not users, since that would be cluster-wide) can create the `PodTemplateSpec` in question.", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "rollbackTo": { - "description": "The config this deployment is rolling back to. Will be cleared after rollback is done.", - "$ref": "#/definitions/apps.v1beta1.RollbackConfig" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "selector": { - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - "$ref": "#/definitions/v1.LabelSelector" + "spec": { + "description": "spec is the PodSecurityPolicy to check.", + "$ref": "#/definitions/v1.PodSecurityPolicyReviewSpec" }, - "strategy": { - "description": "The deployment strategy to use to replace existing pods with new ones.", - "$ref": "#/definitions/apps.v1beta1.DeploymentStrategy" + "status": { + "description": "status represents the current information/status for the PodSecurityPolicyReview.", + "$ref": "#/definitions/v1.PodSecurityPolicyReviewStatus" + } + } + }, + "v1.PodSecurityPolicyReviewSpec": { + "description": "PodSecurityPolicyReviewSpec defines specification for PodSecurityPolicyReview", + "required": [ + "template" + ], + "properties": { + "serviceAccountNames": { + "description": "serviceAccountNames is an optional set of ServiceAccounts to run the check with. If serviceAccountNames is empty, the template.spec.serviceAccountName is used, unless it's empty, in which case \"default\" is used instead. If serviceAccountNames is specified, template.spec.serviceAccountName is ignored.", + "type": "array", + "items": { + "type": "string" + } }, "template": { - "description": "Template describes the pods that will be created.", + "description": "template is the PodTemplateSpec to check. The template.spec.serviceAccountName field is used if serviceAccountNames is empty, unless the template.spec.serviceAccountName is empty, in which case \"default\" is used. If serviceAccountNames is specified, template.spec.serviceAccountName is ignored.", "$ref": "#/definitions/v1.PodTemplateSpec" } } }, - "v1.SubjectAccessReviewStatus": { - "description": "SubjectAccessReviewStatus", + "v1.PodSecurityPolicyReviewStatus": { + "description": "PodSecurityPolicyReviewStatus represents the status of PodSecurityPolicyReview.", "required": [ - "allowed" + "allowedServiceAccounts" ], "properties": { - "allowed": { - "description": "Allowed is required. True if the action would be allowed, false otherwise.", - "type": "boolean" - }, - "evaluationError": { - "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + "allowedServiceAccounts": { + "description": "allowedServiceAccounts returns the list of service accounts in *this* namespace that have the power to create the PodTemplateSpec.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ServiceAccountPodSecurityPolicyReviewStatus" + } + } + } + }, + "v1.PodSecurityPolicySelfSubjectReview": { + "description": "PodSecurityPolicySelfSubjectReview checks whether this user/SA tuple can create the PodTemplateSpec", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "reason": { - "description": "Reason is optional. It indicates why a request was allowed or denied.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "spec": { + "description": "spec defines specification the PodSecurityPolicySelfSubjectReview.", + "$ref": "#/definitions/v1.PodSecurityPolicySelfSubjectReviewSpec" + }, + "status": { + "description": "status represents the current information/status for the PodSecurityPolicySelfSubjectReview.", + "$ref": "#/definitions/v1.PodSecurityPolicySubjectReviewStatus" } } }, - "v2alpha1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "v1.PodSecurityPolicySelfSubjectReviewSpec": { + "description": "PodSecurityPolicySelfSubjectReviewSpec contains specification for PodSecurityPolicySelfSubjectReview.", "required": [ - "kind", - "name" + "template" + ], + "properties": { + "template": { + "description": "template is the PodTemplateSpec to check.", + "$ref": "#/definitions/v1.PodTemplateSpec" + } + } + }, + "v1.PodSecurityPolicySubjectReview": { + "description": "PodSecurityPolicySubjectReview checks whether a particular user/SA tuple can create the PodTemplateSpec.", + "required": [ + "spec" ], "properties": { "apiVersion": { - "description": "API version of the referent", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, "kind": { - "description": "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\"", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "spec": { + "description": "spec defines specification for the PodSecurityPolicySubjectReview.", + "$ref": "#/definitions/v1.PodSecurityPolicySubjectReviewSpec" + }, + "status": { + "description": "status represents the current information/status for the PodSecurityPolicySubjectReview.", + "$ref": "#/definitions/v1.PodSecurityPolicySubjectReviewStatus" + } + } + }, + "v1.PodSecurityPolicySubjectReviewSpec": { + "description": "PodSecurityPolicySubjectReviewSpec defines specification for PodSecurityPolicySubjectReview", + "required": [ + "template" + ], + "properties": { + "groups": { + "description": "groups is the groups you're testing for.", + "type": "array", + "items": { + "type": "string" + } + }, + "template": { + "description": "template is the PodTemplateSpec to check. If template.spec.serviceAccountName is empty it will not be defaulted. If its non-empty, it will be checked.", + "$ref": "#/definitions/v1.PodTemplateSpec" + }, + "user": { + "description": "user is the user you're testing for. If you specify \"user\" but not \"group\", then is it interpreted as \"What if user were not a member of any groups. If user and groups are empty, then the check is performed using *only* the serviceAccountName in the template.", + "type": "string" + } + } + }, + "v1.PodSecurityPolicySubjectReviewStatus": { + "description": "PodSecurityPolicySubjectReviewStatus contains information/status for PodSecurityPolicySubjectReview.", + "properties": { + "allowedBy": { + "description": "allowedBy is a reference to the rule that allows the PodTemplateSpec. A rule can be a SecurityContextConstraint or a PodSecurityPolicy A `nil`, indicates that it was denied.", + "$ref": "#/definitions/v1.ObjectReference" + }, + "reason": { + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available.", "type": "string" + }, + "template": { + "description": "template is the PodTemplateSpec after the defaulting is applied.", + "$ref": "#/definitions/v1.PodTemplateSpec" } } }, - "v1.PortworxVolumeSource": { - "description": "PortworxVolumeSource represents a Portworx volume resource.", + "v1.PodSpec": { + "description": "PodSpec is a description of a pod.", "required": [ - "volumeID" + "containers" ], "properties": { - "fsType": { - "description": "FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "activeDeadlineSeconds": { + "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", + "type": "integer", + "format": "int64" + }, + "containers": { + "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Container" + } + }, + "dnsPolicy": { + "description": "Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\".", "type": "string" }, - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "hostIPC": { + "description": "Use the host's ipc namespace. Optional: Default to false.", "type": "boolean" }, - "volumeID": { - "description": "VolumeID uniquely identifies a Portworx volume", + "hostNetwork": { + "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", + "type": "boolean" + }, + "hostPID": { + "description": "Use the host's pid namespace. Optional: Default to false.", + "type": "boolean" + }, + "hostname": { + "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", + "type": "string" + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod", + "type": "array", + "items": { + "$ref": "#/definitions/v1.LocalObjectReference" + } + }, + "nodeName": { + "description": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.", + "type": "string" + }, + "nodeSelector": { + "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://kubernetes.io/docs/user-guide/node-selection/README", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "restartPolicy": { + "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy", + "type": "string" + }, + "securityContext": { + "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", + "$ref": "#/definitions/v1.PodSecurityContext" + }, + "serviceAccount": { + "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", + "type": "string" + }, + "serviceAccountName": { + "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md", + "type": "string" + }, + "subdomain": { + "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", + "type": "string" + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", + "type": "integer", + "format": "int64" + }, + "volumes": { + "description": "List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Volume" + } + } + } + }, + "v1.PodStatus": { + "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system.", + "properties": { + "conditions": { + "description": "Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PodCondition" + } + }, + "containerStatuses": { + "description": "The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ContainerStatus" + } + }, + "hostIP": { + "description": "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", + "type": "string" + }, + "message": { + "description": "A human readable message indicating details about why the pod is in this condition.", + "type": "string" + }, + "phase": { + "description": "Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase", + "type": "string" + }, + "podIP": { + "description": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", + "type": "string" + }, + "reason": { + "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk'", "type": "string" + }, + "startTime": { + "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", + "type": "string", + "format": "date-time" } } }, - "v1.NodeCondition": { - "description": "NodeCondition contains condition information for a node.", + "v1.PodTemplate": { + "description": "PodTemplate describes a template for creating copies of a predefined pod.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "template": { + "description": "Template defines the pods that will be created from this pod template. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.PodTemplateSpec" + } + } + }, + "v1.PodTemplateList": { + "description": "PodTemplateList is a list of PodTemplates.", "required": [ - "type", - "status" + "items" ], "properties": { - "lastHeartbeatTime": { - "description": "Last time we got an update on a given condition.", - "type": "string", - "format": "date-time" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "type": "string", - "format": "date-time" + "items": { + "description": "List of pod templates", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PodTemplate" + } }, - "message": { - "description": "Human readable message indicating details about last transition.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "reason": { - "description": "(brief) reason for the condition's last transition.", + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.PodTemplateSpec": { + "description": "PodTemplateSpec describes the data a pod should have when created from a template", + "properties": { + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.PodSpec" + } + } + }, + "v1.Policy": { + "description": "Policy is a object that holds all the Roles for a particular namespace. There is at most one Policy document per namespace.", + "required": [ + "lastModified", + "roles" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "type": { - "description": "Type of node condition.", - "type": "string" + "lastModified": { + "description": "LastModified is the last time that any part of the Policy was created, updated, or deleted", + "type": "string", + "format": "date-time" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "roles": { + "description": "Roles holds all the Roles held by this Policy, mapped by Role.Name", + "type": "array", + "items": { + "$ref": "#/definitions/v1.NamedRole" + } } } }, - "v1.EndpointSubset": { - "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "v1.PolicyBinding": { + "description": "PolicyBinding is a object that holds all the RoleBindings for a particular namespace. There is one PolicyBinding document per referenced Policy namespace", + "required": [ + "lastModified", + "policyRef", + "roleBindings" + ], "properties": { - "addresses": { - "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EndpointAddress" - } + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "notReadyAddresses": { - "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EndpointAddress" - } + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "ports": { - "description": "Port numbers available on the related IP addresses.", + "lastModified": { + "description": "LastModified is the last time that any part of the PolicyBinding was created, updated, or deleted", + "type": "string", + "format": "date-time" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "policyRef": { + "description": "PolicyRef is a reference to the Policy that contains all the Roles that this PolicyBinding's RoleBindings may reference", + "$ref": "#/definitions/v1.ObjectReference" + }, + "roleBindings": { + "description": "RoleBindings holds all the RoleBindings held by this PolicyBinding, mapped by RoleBinding.Name", "type": "array", "items": { - "$ref": "#/definitions/v1.EndpointPort" + "$ref": "#/definitions/v1.NamedRoleBinding" } } } }, - "v1.SubjectAccessReviewSpec": { - "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "v1.PolicyBindingList": { + "description": "PolicyBindingList is a collection of PolicyBindings", + "required": [ + "items" + ], "properties": { - "extra": { - "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "groups": { - "description": "Groups is the groups you're testing for.", + "items": { + "description": "Items is a list of PolicyBindings", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1.PolicyBinding" } }, - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1.ResourceAttributes" - }, - "user": { - "description": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "apps.v1beta1.ScaleSpec": { - "description": "ScaleSpec describes the attributes of a scale subresource", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" - } - } - }, - "v1alpha1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", + "v1.PolicyList": { + "description": "PolicyList is a collection of Policies", "required": [ - "apiGroup", - "kind", - "name" + "items" ], "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "items": { + "description": "Items is a list of Policies", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Policy" + } + }, "kind": { - "description": "Kind is the type of resource being referenced", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1beta1.IngressSpec": { - "description": "IngressSpec describes the Ingress the user wishes to exist.", + "v1.PolicyRule": { + "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", + "required": [ + "verbs", + "apiGroups", + "resources" + ], "properties": { - "backend": { - "description": "A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.", - "$ref": "#/definitions/v1beta1.IngressBackend" - }, - "rules": { - "description": "A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If this field is empty, then both kubernetes and origin API groups are assumed. That means that if an action is requested against one of the enumerated resources in either the kubernetes or the origin API group, the request will be allowed", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.IngressRule" + "type": "string" } }, - "tls": { - "description": "TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", + "attributeRestrictions": { + "description": "AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error.", + "$ref": "#/definitions/runtime.RawExtension" + }, + "nonResourceURLs": { + "description": "NonResourceURLsSlice is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.IngressTLS" - } - } - } - }, - "v1beta1.SubjectAccessReviewSpec": { - "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "extra": { - "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } + "type": "string" } }, - "group": { - "description": "Groups is the groups you're testing for.", + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", "type": "array", "items": { "type": "string" } }, - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1beta1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1beta1.ResourceAttributes" - }, - "user": { - "description": "User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups", - "type": "string" - } - } - }, - "v1beta1.NetworkPolicyIngressRule": { - "description": "This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.", - "properties": { - "from": { - "description": "List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is not provided, this rule matches all sources (traffic not restricted by source). If this field is empty, this rule matches no sources (no traffic matches). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list.", + "resources": { + "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyPeer" + "type": "string" } }, - "ports": { - "description": "List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is not provided, this rule matches all ports (traffic not restricted by port). If this field is empty, this rule matches no ports (no traffic matches). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + "verbs": { + "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyPort" + "type": "string" } } } }, - "v1.PersistentVolumeClaim": { - "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", + "v1.Preconditions": { + "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "properties": { + "uid": { + "description": "Specifies the target UID.", + "type": "string" + } + } + }, + "v1.Probe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "properties": { + "exec": { + "description": "One and only one of the following should be specified. Exec specifies the action to take.", + "$ref": "#/definitions/v1.ExecAction" + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "httpGet": { + "description": "HTTPGet specifies the http request to perform.", + "$ref": "#/definitions/v1.HTTPGetAction" + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", + "type": "integer", + "format": "int32" + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "tcpSocket": { + "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", + "$ref": "#/definitions/v1.TCPSocketAction" + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", + "type": "integer", + "format": "int32" + } + } + }, + "v1.Project": { + "description": "Projects are the unit of isolation and collaboration in OpenShift. A project has one or more members, a quota on the resources that the project may consume, and the security controls on the resources in the project. Within a project, members may have different roles - project administrators can set membership, editors can create and manage the resources, and viewers can see but not access running containers. In a normal cluster project administrators are not able to alter their quotas - that is restricted to cluster administrators.\n\nListing or watching projects will return only projects the user has the reader role on.\n\nAn OpenShift project is an alternative representation of a Kubernetes namespace. Projects are exposed as editable to end users while namespaces are not. Direct creation of a project is typically restricted to administrators, while end users should use the requestproject resource.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -37596,28 +50610,21 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec defines the desired characteristics of a volume requested by a pod author. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", - "$ref": "#/definitions/v1.PersistentVolumeClaimSpec" + "description": "Spec defines the behavior of the Namespace.", + "$ref": "#/definitions/v1.ProjectSpec" }, "status": { - "description": "Status represents the current information/status of a persistent volume claim. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", - "$ref": "#/definitions/v1.PersistentVolumeClaimStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PersistentVolumeClaim" + "description": "Status describes the current status of a Namespace", + "$ref": "#/definitions/v1.ProjectStatus" } - ] + } }, - "v1.SecretList": { - "description": "SecretList is a list of Secret.", + "v1.ProjectList": { + "description": "ProjectList is a list of Project objects.", "required": [ "items" ], @@ -37627,10 +50634,10 @@ "type": "string" }, "items": { - "description": "Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets", + "description": "Items is the list of projects", "type": "array", "items": { - "$ref": "#/definitions/v1.Secret" + "$ref": "#/definitions/v1.Project" } }, "kind": { @@ -37638,43 +50645,41 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "SecretList" + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1.SecretEnvSource": { - "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", + "v1.ProjectRequest": { + "description": "ProjecRequest is the set of options necessary to fully qualify a project request", "properties": { - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "optional": { - "description": "Specify whether the Secret must be defined", - "type": "boolean" + "description": { + "description": "Description is the description to apply to a project", + "type": "string" + }, + "displayName": { + "description": "DisplayName is the display name to apply to a project", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" } } }, - "v1.Capabilities": { - "description": "Adds and removes POSIX capabilities from running containers.", + "v1.ProjectSpec": { + "description": "ProjectSpec describes the attributes on a Project", "properties": { - "add": { - "description": "Added capabilities", - "type": "array", - "items": { - "type": "string" - } - }, - "drop": { - "description": "Removed capabilities", + "finalizers": { + "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage", "type": "array", "items": { "type": "string" @@ -37682,180 +50687,167 @@ } } }, - "v1.ResourceQuotaStatus": { - "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", + "v1.ProjectStatus": { + "description": "ProjectStatus is information about the current status of a Project", "properties": { - "hard": { - "description": "Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "used": { - "description": "Used is the current observed total usage of the resource in the namespace.", - "type": "object", - "additionalProperties": { - "type": "string" - } + "phase": { + "description": "Phase is the current lifecycle phase of the project", + "type": "string" } } }, - "v1.OwnerReference": { - "description": "OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.", + "v1.QuobyteVolumeSource": { + "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", "required": [ - "apiVersion", - "kind", - "name", - "uid" + "registry", + "volume" ], "properties": { - "apiVersion": { - "description": "API version of the referent.", + "group": { + "description": "Group to map volume access to Default is no group", "type": "string" }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", + "readOnly": { + "description": "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", "type": "boolean" }, - "kind": { - "description": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "registry": { + "description": "Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", "type": "string" }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "user": { + "description": "User to map volume access to Defaults to serivceaccount user", "type": "string" }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "volume": { + "description": "Volume is a string that references an already created Quobyte volume by name.", "type": "string" } } }, - "v1alpha1.PodPreset": { - "description": "PodPreset is a policy resource that defines additional runtime requirements for a Pod.", + "v1.RBDVolumeSource": { + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "required": [ + "monitors", + "image" + ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "fsType": { + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#rbd", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "image": { + "description": "The rados image name. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" + "keyring": { + "description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "type": "string" }, - "spec": { - "$ref": "#/definitions/v1alpha1.PodPresetSpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "settings.k8s.io", - "Version": "v1alpha1", - "Kind": "PodPreset" + "monitors": { + "description": "A collection of Ceph monitors. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "type": "array", + "items": { + "type": "string" + } + }, + "pool": { + "description": "The rados pool name. Default is rbd. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it.", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "type": "boolean" + }, + "secretRef": { + "description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "$ref": "#/definitions/v1.LocalObjectReference" + }, + "user": { + "description": "The rados user name. Default is admin. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "type": "string" } - ] + } }, - "v1beta1.ReplicaSetSpec": { - "description": "ReplicaSetSpec is the specification of a ReplicaSet.", + "v1.RecreateDeploymentStrategyParams": { + "description": "RecreateDeploymentStrategyParams are the input to the Recreate deployment strategy.", "properties": { - "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", - "type": "integer", - "format": "int32" + "mid": { + "description": "Mid is a lifecycle hook which is executed while the deployment is scaled down to zero before the first new pod is created. All LifecycleHookFailurePolicy values are supported.", + "$ref": "#/definitions/v1.LifecycleHook" }, - "replicas": { - "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", - "type": "integer", - "format": "int32" + "post": { + "description": "Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. All LifecycleHookFailurePolicy values are supported.", + "$ref": "#/definitions/v1.LifecycleHook" }, - "selector": { - "description": "Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" + "pre": { + "description": "Pre is a lifecycle hook which is executed before the strategy manipulates the deployment. All LifecycleHookFailurePolicy values are supported.", + "$ref": "#/definitions/v1.LifecycleHook" }, - "template": { - "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template", - "$ref": "#/definitions/v1.PodTemplateSpec" + "timeoutSeconds": { + "description": "TimeoutSeconds is the time to wait for updates before giving up. If the value is nil, a default will be used.", + "type": "integer", + "format": "int64" } } }, - "v1.PhotonPersistentDiskVolumeSource": { - "description": "Represents a Photon Controller persistent disk resource.", - "required": [ - "pdID" - ], + "v1.ReplicationController": { + "description": "ReplicationController represents the configuration of a replication controller.", "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "pdID": { - "description": "ID that identifies Photon Controller persistent disk", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" - } - } - }, - "v1.SecretVolumeSource": { - "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", - "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" }, - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - } + "metadata": { + "description": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "optional": { - "description": "Specify whether the Secret or it's keys must be defined", - "type": "boolean" + "spec": { + "description": "Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.ReplicationControllerSpec" }, - "secretName": { - "description": "Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets", - "type": "string" + "status": { + "description": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.ReplicationControllerStatus" } } }, - "v1.PersistentVolumeClaimSpec": { - "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", + "v1.ReplicationControllerCondition": { + "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", + "required": [ + "type", + "status" + ], "properties": { - "accessModes": { - "description": "AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1", - "type": "array", - "items": { - "type": "string" - } + "lastTransitionTime": { + "description": "The last time the condition transitioned from one status to another.", + "type": "string", + "format": "date-time" }, - "resources": { - "description": "Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources", - "$ref": "#/definitions/v1.ResourceRequirements" + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" }, - "selector": { - "description": "A label query over volumes to consider for binding.", - "$ref": "#/definitions/v1.LabelSelector" + "reason": { + "description": "The reason for the condition's last transition.", + "type": "string" }, - "storageClassName": { - "description": "Name of the StorageClass required by the claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1", + "status": { + "description": "Status of the condition, one of True, False, Unknown.", "type": "string" }, - "volumeName": { - "description": "VolumeName is the binding reference to the PersistentVolume backing this claim.", + "type": { + "description": "Type of replication controller condition.", "type": "string" } } }, - "v1.PersistentVolumeClaimList": { - "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", + "v1.ReplicationControllerList": { + "description": "ReplicationControllerList is a collection of replication controllers.", "required": [ "items" ], @@ -37865,10 +50857,10 @@ "type": "string" }, "items": { - "description": "A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", + "description": "List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller", "type": "array", "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.ReplicationController" } }, "kind": { @@ -37877,199 +50869,200 @@ }, "metadata": { "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PersistentVolumeClaimList" + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1.ObjectReference": { - "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", + "v1.ReplicationControllerSpec": { + "description": "ReplicationControllerSpec is the specification of a replication controller.", "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "type": "integer", + "format": "int32" }, - "fieldPath": { - "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", - "type": "string" + "replicas": { + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", + "type": "integer", + "format": "int32" }, - "kind": { - "description": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" + "selector": { + "description": "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" + "template": { + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template", + "$ref": "#/definitions/v1.PodTemplateSpec" + } + } + }, + "v1.ReplicationControllerStatus": { + "description": "ReplicationControllerStatus represents the current status of a replication controller.", + "required": [ + "replicas" + ], + "properties": { + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", + "type": "integer", + "format": "int32" + }, + "conditions": { + "description": "Represents the latest available observations of a replication controller's current state.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ReplicationControllerCondition" + } }, - "namespace": { - "description": "Namespace of the referent. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", + "type": "integer", + "format": "int32" }, - "resourceVersion": { - "description": "Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency", - "type": "string" + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", + "type": "integer", + "format": "int64" }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" + "readyReplicas": { + "description": "The number of ready replicas for this replication controller.", + "type": "integer", + "format": "int32" + }, + "replicas": { + "description": "Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", + "type": "integer", + "format": "int32" } } }, - "v1.PodCondition": { - "description": "PodCondition contains details for the current condition of this pod.", + "v1.RepositoryImportSpec": { + "description": "RepositoryImportSpec describes a request to import images from a Docker image repository.", "required": [ - "type", - "status" + "from" ], "properties": { - "lastProbeTime": { - "description": "Last time we probed the condition.", - "type": "string", - "format": "date-time" + "from": { + "description": "From is the source for the image repository to import; only kind DockerImage and a name of a Docker image repository is allowed", + "$ref": "#/definitions/v1.ObjectReference" }, - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" + "importPolicy": { + "description": "ImportPolicy is the policy controlling how the image is imported", + "$ref": "#/definitions/v1.TagImportPolicy" }, - "message": { - "description": "Human-readable message indicating details about last transition.", - "type": "string" + "includeManifest": { + "description": "IncludeManifest determines if the manifest for each image is returned in the response", + "type": "boolean" + } + } + }, + "v1.RepositoryImportStatus": { + "description": "RepositoryImportStatus describes the result of an image repository import", + "properties": { + "additionalTags": { + "description": "AdditionalTags are tags that exist in the repository but were not imported because a maximum limit of automatic imports was applied.", + "type": "array", + "items": { + "type": "string" + } }, - "reason": { - "description": "Unique, one-word, CamelCase reason for the condition's last transition.", - "type": "string" + "images": { + "description": "Images is a list of images successfully retrieved by the import of the repository.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ImageImportStatus" + } }, "status": { - "description": "Status is the status of the condition. Can be True, False, Unknown. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions", - "type": "string" - }, - "type": { - "description": "Type is the type of the condition. Currently only Ready. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions", - "type": "string" + "description": "Status reflects whether any failure occurred during import", + "$ref": "#/definitions/unversioned.Status" } } }, - "v1beta1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", + "v1.ResourceAccessReview": { + "description": "ResourceAccessReview is a means to request a list of which users and groups are authorized to perform the action specified by spec", "required": [ - "apiGroup", - "kind", - "name" + "namespace", + "verb", + "resourceAPIGroup", + "resourceAPIVersion", + "resource", + "resourceName", + "path", + "isNonResourceURL" ], "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "content": { + "description": "Content is the actual content of the request for create and update", + "$ref": "#/definitions/runtime.RawExtension" + }, + "isNonResourceURL": { + "description": "IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy)", + "type": "boolean" + }, "kind": { - "description": "Kind is the type of resource being referenced", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "name": { - "description": "Name is the name of resource being referenced", + "namespace": { + "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces", "type": "string" - } - } - }, - "v2alpha1.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", - "required": [ - "type" - ], - "properties": { - "object": { - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "$ref": "#/definitions/v2alpha1.ObjectMetricStatus" }, - "pods": { - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "$ref": "#/definitions/v2alpha1.PodsMetricStatus" + "path": { + "description": "Path is the path of a non resource URL", + "type": "string" }, "resource": { - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "$ref": "#/definitions/v2alpha1.ResourceMetricStatus" + "description": "Resource is one of the existing resource types", + "type": "string" }, - "type": { - "description": "type is the type of metric source. It will match one of the fields below.", + "resourceAPIGroup": { + "description": "Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined", "type": "string" - } - } - }, - "v1beta1.IngressStatus": { - "description": "IngressStatus describe the current state of the Ingress.", - "properties": { - "loadBalancer": { - "description": "LoadBalancer contains the current status of the load-balancer.", - "$ref": "#/definitions/v1.LoadBalancerStatus" - } - } - }, - "v1.ConfigMapEnvSource": { - "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", - "properties": { - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + }, + "resourceAPIVersion": { + "description": "Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined", "type": "string" }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" + "resourceName": { + "description": "ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\"", + "type": "string" + }, + "verb": { + "description": "Verb is one of: get, list, watch, create, update, delete", + "type": "string" } } }, - "v1beta1.CertificateSigningRequestCondition": { + "v1.ResourceFieldSelector": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", "required": [ - "type" + "resource" ], "properties": { - "lastUpdateTime": { - "description": "timestamp for the last update to this condition", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "human readable message with details about the request state", + "containerName": { + "description": "Container name: required for volumes, optional for env vars", "type": "string" }, - "reason": { - "description": "brief reason for the request state", + "divisor": { + "description": "Specifies the output format of the exposed resources, defaults to \"1\"", "type": "string" }, - "type": { - "description": "request approval state, currently Approved or Denied.", + "resource": { + "description": "Required: resource to select", "type": "string" } } }, - "v1.ContainerState": { - "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", - "properties": { - "running": { - "description": "Details about a running container", - "$ref": "#/definitions/v1.ContainerStateRunning" - }, - "terminated": { - "description": "Details about a terminated container", - "$ref": "#/definitions/v1.ContainerStateTerminated" - }, - "waiting": { - "description": "Details about a waiting container", - "$ref": "#/definitions/v1.ContainerStateWaiting" - } - } - }, - "v1beta1.TokenReview": { - "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", - "required": [ - "spec" - ], + "v1.ResourceQuota": { + "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -38080,39 +51073,43 @@ "type": "string" }, "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1beta1.TokenReviewSpec" + "description": "Spec defines the desired quota. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.ResourceQuotaSpec" }, "status": { - "description": "Status is filled in by the server and indicates whether the request can be authenticated.", - "$ref": "#/definitions/v1beta1.TokenReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authentication.k8s.io", - "Version": "v1beta1", - "Kind": "TokenReview" + "description": "Status defines the actual enforced quota and its current usage. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.ResourceQuotaStatus" } - ] + } }, - "v1.GroupVersionForDiscovery": { - "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "v1.ResourceQuotaList": { + "description": "ResourceQuotaList is a list of ResourceQuota items.", "required": [ - "groupVersion", - "version" + "items" ], "properties": { - "groupVersion": { - "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "version": { - "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "items": { + "description": "Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ResourceQuota" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/unversioned.ListMeta" } } }, @@ -38135,43 +51132,93 @@ } } }, - "v1beta1.PodSecurityPolicyList": { - "description": "Pod Security Policy List is a list of PodSecurityPolicy objects.", + "v1.ResourceQuotaStatus": { + "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", + "properties": { + "hard": { + "description": "Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "used": { + "description": "Used is the current observed total usage of the resource in the namespace.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "v1.ResourceQuotaStatusByNamespace": { + "description": "ResourceQuotaStatusByNamespace gives status for a particular project", "required": [ - "items" + "namespace", + "status" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "namespace": { + "description": "Namespace the project this status applies to", "type": "string" }, - "items": { - "description": "Items is a list of schema objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "status": { + "description": "Status indicates how many resources have been consumed by this project", + "$ref": "#/definitions/v1.ResourceQuotaStatus" + } + } + }, + "v1.ResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "properties": { + "limits": { + "description": "Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "requests": { + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/", + "type": "object", + "additionalProperties": { + "type": "string" } + } + } + }, + "v1.Role": { + "description": "Role is a logical grouping of PolicyRules that can be referenced as a unit by RoleBindings.", + "required": [ + "rules" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "PodSecurityPolicyList" + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "rules": { + "description": "Rules holds all the PolicyRules for this Role", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PolicyRule" + } } - ] + } }, - "v1beta1.ClusterRoleBinding": { - "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", + "v1.RoleBinding": { + "description": "RoleBinding references a Role, but not contain it. It can reference any Role in the same namespace or in the global namespace. It adds who information via (Users and Groups) OR Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace (excepting the master namespace which has power in all namespaces).", "required": [ + "userNames", + "groupNames", "subjects", "roleRef" ], @@ -38180,6 +51227,13 @@ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "groupNames": { + "description": "GroupNames holds all the groups directly bound to the role. This field should only be specified when supporting legacy clients and servers. See Subjects for further details.", + "type": "array", + "items": { + "type": "string" + } + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" @@ -38189,26 +51243,26 @@ "$ref": "#/definitions/v1.ObjectMeta" }, "roleRef": { - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/v1beta1.RoleRef" + "description": "RoleRef can only reference the current namespace and the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. Since Policy is a singleton, this is sufficient knowledge to locate a role.", + "$ref": "#/definitions/v1.ObjectReference" }, "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "description": "Subjects hold object references to authorize with this rule. This field is ignored if UserNames or GroupNames are specified to support legacy clients and servers. Thus newer clients that do not need to support backwards compatibility should send only fully qualified Subjects and should omit the UserNames and GroupNames fields. Clients that need to support backwards compatibility can use this field to build the UserNames and GroupNames.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.Subject" + "$ref": "#/definitions/v1.ObjectReference" + } + }, + "userNames": { + "description": "UserNames holds all the usernames directly bound to the role. This field should only be specified when supporting legacy clients and servers. See Subjects for further details.", + "type": "array", + "items": { + "type": "string" } } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "ClusterRoleBinding" - } - ] + } }, - "v1alpha1.RoleBindingList": { + "v1.RoleBindingList": { "description": "RoleBindingList is a collection of RoleBindings", "required": [ "items" @@ -38222,7 +51276,7 @@ "description": "Items is a list of RoleBindings", "type": "array", "items": { - "$ref": "#/definitions/v1alpha1.RoleBinding" + "$ref": "#/definitions/v1.RoleBinding" } }, "kind": { @@ -38231,29 +51285,14 @@ }, "metadata": { "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "RoleBindingList" - } - ] - }, - "v1.EmptyDirVolumeSource": { - "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", - "properties": { - "medium": { - "description": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", - "type": "string" + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1.LocalSubjectAccessReview": { - "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", + "v1.RoleBindingRestriction": { + "description": "RoleBindingRestriction is an object that can be matched against a subject (user, group, or service account) to determine whether rolebindings on that subject are allowed in the namespace to which the RoleBindingRestriction belongs. If any one of those RoleBindingRestriction objects matches a subject, rolebindings on that subject in the namespace are allowed.", "required": [ + "metadata", "spec" ], "properties": { @@ -38266,27 +51305,17 @@ "type": "string" }, "metadata": { + "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.", - "$ref": "#/definitions/v1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authorization.k8s.io", - "Version": "v1", - "Kind": "LocalSubjectAccessReview" + "description": "Spec defines the matcher.", + "$ref": "#/definitions/v1.RoleBindingRestrictionSpec" } - ] + } }, - "v1alpha1.PodPresetList": { - "description": "PodPresetList is a list of PodPreset objects.", + "v1.RoleBindingRestrictionList": { + "description": "RoleBindingRestrictionList is a collection of RoleBindingRestriction objects.", "required": [ "items" ], @@ -38296,10 +51325,10 @@ "type": "string" }, "items": { - "description": "Items is a list of schema objects.", + "description": "Items is a list of RoleBindingRestriction objects.", "type": "array", "items": { - "$ref": "#/definitions/v1alpha1.PodPreset" + "$ref": "#/definitions/v1.RoleBindingRestriction" } }, "kind": { @@ -38307,20 +51336,35 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "settings.k8s.io", - "Version": "v1alpha1", - "Kind": "PodPresetList" + } + }, + "v1.RoleBindingRestrictionSpec": { + "description": "RoleBindingRestrictionSpec defines a rolebinding restriction. Exactly one field must be non-nil.", + "required": [ + "userrestriction", + "grouprestriction", + "serviceaccountrestriction" + ], + "properties": { + "grouprestriction": { + "description": "GroupRestriction matches against group subjects.", + "$ref": "#/definitions/v1.GroupRestriction" + }, + "serviceaccountrestriction": { + "description": "ServiceAccountRestriction matches against service-account subjects.", + "$ref": "#/definitions/v1.ServiceAccountRestriction" + }, + "userrestriction": { + "description": "UserRestriction matches against user subjects.", + "$ref": "#/definitions/v1.UserRestriction" } - ] + } }, - "v1alpha1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles", + "v1.RoleList": { + "description": "RoleList is a collection of Roles", "required": [ "items" ], @@ -38330,10 +51374,10 @@ "type": "string" }, "items": { - "description": "Items is a list of ClusterRoles", + "description": "Items is a list of Roles", "type": "array", "items": { - "$ref": "#/definitions/v1alpha1.ClusterRole" + "$ref": "#/definitions/v1.Role" } }, "kind": { @@ -38342,248 +51386,137 @@ }, "metadata": { "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "ClusterRoleList" + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1beta1.StatefulSetStatus": { - "description": "StatefulSetStatus represents the current state of a StatefulSet.", - "required": [ - "replicas" - ], + "v1.RollingDeploymentStrategyParams": { + "description": "RollingDeploymentStrategyParams are the input to the Rolling deployment strategy.", "properties": { - "observedGeneration": { - "description": "most recent generation observed by this StatefulSet.", + "intervalSeconds": { + "description": "IntervalSeconds is the time to wait between polling deployment status after update. If the value is nil, a default will be used.", "type": "integer", "format": "int64" }, - "replicas": { - "description": "Replicas is the number of actual replicas.", + "maxSurge": { + "description": "MaxSurge is the maximum number of pods that can be scheduled above the original number of pods. Value can be an absolute number (ex: 5) or a percentage of total pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up.\n\nThis cannot be 0 if MaxUnavailable is 0. By default, 25% is used.\n\nExample: when this is set to 30%, the new RC can be scaled up by 30% immediately when the rolling update starts. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of original pods.", + "type": "string", + "format": "int-or-string" + }, + "maxUnavailable": { + "description": "MaxUnavailable is the maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total pods at the start of update (ex: 10%). Absolute number is calculated from percentage by rounding down.\n\nThis cannot be 0 if MaxSurge is 0. By default, 25% is used.\n\nExample: when this is set to 30%, the old RC can be scaled down by 30% immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that at least 70% of original number of pods are available at all times during the update.", + "type": "string", + "format": "int-or-string" + }, + "post": { + "description": "Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. All LifecycleHookFailurePolicy values are supported.", + "$ref": "#/definitions/v1.LifecycleHook" + }, + "pre": { + "description": "Pre is a lifecycle hook which is executed before the deployment process begins. All LifecycleHookFailurePolicy values are supported.", + "$ref": "#/definitions/v1.LifecycleHook" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds is the time to wait for updates before giving up. If the value is nil, a default will be used.", "type": "integer", - "format": "int32" + "format": "int64" + }, + "updatePeriodSeconds": { + "description": "UpdatePeriodSeconds is the time to wait between individual pod updates. If the value is nil, a default will be used.", + "type": "integer", + "format": "int64" } } }, - "v1beta1.RoleBindingList": { - "description": "RoleBindingList is a collection of RoleBindings", + "v1.Route": { + "description": "A route allows developers to expose services through an HTTP(S) aware load balancing and proxy layer via a public DNS entry. The route may further specify TLS options and a certificate, or specify a public CNAME that the router should also accept for HTTP and HTTPS traffic. An administrator typically configures their router to be visible outside the cluster firewall, and may also add additional security, caching, or traffic controls on the service content. Routers usually talk directly to the service endpoints.\n\nOnce a route is created, the `host` field may not be changed. Generally, routers use the oldest route with a given host when resolving conflicts.\n\nRouters are subject to additional customization and may support additional controls via the annotations field.\n\nBecause administrators may configure multiple routers, the route status field is used to return information to clients about the names and states of the route under each router. If a client chooses a duplicate name, for instance, the route status conditions are used to indicate the route cannot be chosen.", "required": [ - "items" + "spec", + "status" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "Items is a list of RoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "RoleBindingList" + "description": "Standard object metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "spec is the desired state of the route", + "$ref": "#/definitions/v1.RouteSpec" + }, + "status": { + "description": "status is the current state of the route", + "$ref": "#/definitions/v1.RouteStatus" } - ] + } }, - "v1.LimitRangeList": { - "description": "LimitRangeList is a list of LimitRange items.", - "required": [ - "items" - ], + "v1.RouteIngress": { + "description": "RouteIngress holds information about the places where a route is exposed.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md", + "conditions": { + "description": "Conditions is the state of the route, may be empty.", "type": "array", "items": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/v1.RouteIngressCondition" } }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "host": { + "description": "Host is the host string under which the route is exposed; this value is required", "type": "string" }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "LimitRangeList" - } - ] - }, - "v1.AzureFileVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "required": [ - "secretName", - "shareName" - ], - "properties": { - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretName": { - "description": "the name of secret that contains Azure Storage Account Name and Key", + "routerCanonicalHostname": { + "description": "CanonicalHostname is the external host name for the router that can be used as a CNAME for the host requested for this route. This value is optional and may not be set in all cases.", "type": "string" }, - "shareName": { - "description": "Share Name", + "routerName": { + "description": "Name is a name chosen by the router to identify itself; this value is required", "type": "string" - } - } - }, - "v1.DownwardAPIVolumeSource": { - "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", - "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" }, - "items": { - "description": "Items is a list of downward API volume file", - "type": "array", - "items": { - "$ref": "#/definitions/v1.DownwardAPIVolumeFile" - } + "wildcardPolicy": { + "description": "Wildcard policy is the wildcard policy that was allowed where this route is exposed.", + "type": "string" } } }, - "extensions.v1beta1.ScaleStatus": { - "description": "represents the current status of a scale subresource.", + "v1.RouteIngressCondition": { + "description": "RouteIngressCondition contains details for the current condition of this route on a particular router.", "required": [ - "replicas" + "type", + "status" ], "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "targetSelector": { - "description": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "string" - } - } - }, - "v1.ObjectMeta": { - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { - "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "clusterName": { - "description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.", - "type": "string" - }, - "creationTimestamp": { - "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "type": "string", - "format": "date-time" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "type": "integer", - "format": "int64" - }, - "deletionTimestamp": { - "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "lastTransitionTime": { + "description": "RFC 3339 date and time when this condition last transitioned", "type": "string", - "format": "date-time" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed.", - "type": "array", - "items": { - "type": "string" - } - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency", - "type": "string" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "type": "integer", - "format": "int64" - }, - "labels": { - "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" + "format": "date-time" }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.OwnerReference" - } + "message": { + "description": "Human readable message indicating details about last transition.", + "type": "string" }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency", + "reason": { + "description": "(brief) reason for the condition's last transition, and is usually a machine and human readable constant", "type": "string" }, - "selfLink": { - "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.", + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown.", "type": "string" }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": { + "description": "Type is the type of the condition. Currently only Ready.", "type": "string" } } }, - "v1.StorageClassList": { - "description": "StorageClassList is a collection of storage classes.", + "v1.RouteList": { + "description": "RouteList is a collection of Routes.", "required": [ "items" ], @@ -38593,10 +51526,10 @@ "type": "string" }, "items": { - "description": "Items is the list of StorageClasses", + "description": "items is a list of routes", "type": "array", "items": { - "$ref": "#/definitions/v1.StorageClass" + "$ref": "#/definitions/v1.Route" } }, "kind": { @@ -38604,179 +51537,162 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "storage.k8s.io", - "Version": "v1", - "Kind": "StorageClassList" + "description": "Standard object metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1.Handler": { - "description": "Handler defines a specific action that should be taken", + "v1.RoutePort": { + "description": "RoutePort defines a port mapping from a router to an endpoint in the service endpoints.", + "required": [ + "targetPort" + ], "properties": { - "exec": { - "description": "One and only one of the following should be specified. Exec specifies the action to take.", - "$ref": "#/definitions/v1.ExecAction" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "$ref": "#/definitions/v1.HTTPGetAction" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", - "$ref": "#/definitions/v1.TCPSocketAction" + "targetPort": { + "description": "The target port on pods selected by the service this route points to. If this is a string, it will be looked up as a named port in the target endpoints port list. Required", + "type": "string", + "format": "int-or-string" } } }, - "v1.Namespace": { - "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", + "v1.RouteSpec": { + "description": "RouteSpec describes the hostname or path the route exposes, any security information, and one or more backends the route points to. Weights on each backend can define the balance of traffic sent to each backend - if all weights are zero the route will be considered to have no backends and return a standard 503 response.\n\nThe `tls` field is optional and allows specific certificates or behavior for the route. Routers typically configure a default certificate on a wildcard domain to terminate routes without explicit certificates, but custom hostnames usually must choose passthrough (send traffic directly to the backend via the TLS Server-Name- Indication field) or provide a certificate.", + "required": [ + "host", + "to" + ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "alternateBackends": { + "description": "alternateBackends is an extension of the 'to' field. If more than one service needs to be pointed to, then use this field. Use the weight field in RouteTargetReference object to specify relative preference. If the weight field is zero, the backend is ignored.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.RouteTargetReference" + } + }, + "host": { + "description": "host is an alias/DNS that points to the service. Optional. If not specified a route name will typically be automatically chosen. Must follow DNS952 subdomain conventions.", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "path": { + "description": "Path that the router watches for, to route traffic for to the service. Optional", "type": "string" }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "port": { + "description": "If specified, the port to be used by the router. Most routers will use all endpoints exposed by the service by default - set this value to instruct routers which port to use.", + "$ref": "#/definitions/v1.RoutePort" }, - "spec": { - "description": "Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NamespaceSpec" + "tls": { + "description": "The tls field provides the ability to configure certificates and termination for the route.", + "$ref": "#/definitions/v1.TLSConfig" }, - "status": { - "description": "Status describes the current status of a Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NamespaceStatus" + "to": { + "description": "to is an object the route should use as the primary backend. Only the Service kind is allowed, and it will be defaulted to Service. If the weight field is set to zero, no traffic will be sent to this service.", + "$ref": "#/definitions/v1.RouteTargetReference" + }, + "wildcardPolicy": { + "description": "Wildcard policy if any for the route. Currently only 'Subdomain' or 'None' is allowed.", + "type": "string" } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Namespace" + } + }, + "v1.RouteStatus": { + "description": "RouteStatus provides relevant info about the status of a route, including which routers acknowledge it.", + "required": [ + "ingress" + ], + "properties": { + "ingress": { + "description": "ingress describes the places where the route may be exposed. The list of ingress points may contain duplicate Host or RouterName values. Routes are considered live once they are `Ready`", + "type": "array", + "items": { + "$ref": "#/definitions/v1.RouteIngress" + } } - ] + } }, - "v1.Event": { - "description": "Event is a report of an event somewhere in the cluster.", + "v1.RouteTargetReference": { + "description": "RouteTargetReference specifies the target that resolve into endpoints. Only the 'Service' kind is allowed. Use 'weight' field to emphasize one over others.", "required": [ - "metadata", - "involvedObject" + "kind", + "name", + "weight" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "count": { - "description": "The number of times this event has occurred.", - "type": "integer", - "format": "int32" - }, - "firstTimestamp": { - "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", - "type": "string", - "format": "date-time" - }, - "involvedObject": { - "description": "The object that this event is about.", - "$ref": "#/definitions/v1.ObjectReference" - }, "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "description": "The kind of target that the route is referring to. Currently, only 'Service' is allowed", "type": "string" }, - "lastTimestamp": { - "description": "The time at which the most recent occurrence of this event was recorded.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "A human-readable description of the status of this operation.", + "name": { + "description": "name of the service/target that is being referred to. e.g. name of the service", "type": "string" }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "reason": { - "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + "weight": { + "description": "weight as an integer between 1 and 256 that specifies the target's relative weight against other target reference objects", + "type": "integer", + "format": "int32" + } + } + }, + "v1.RunAsUserStrategyOptions": { + "description": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.", + "properties": { + "type": { + "description": "Type is the strategy that will dictate what RunAsUser is used in the SecurityContext.", "type": "string" }, - "source": { - "description": "The component reporting this event. Should be a short machine understandable string.", - "$ref": "#/definitions/v1.EventSource" + "uid": { + "description": "UID is the user id that containers must run as. Required for the MustRunAs strategy if not using namespace/service account allocated uids.", + "type": "integer", + "format": "int64" }, - "type": { - "description": "Type of this event (Normal, Warning), new types could be added in the future", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Event" + "uidRangeMax": { + "description": "UIDRangeMax defines the max value for a strategy that allocates by range.", + "type": "integer", + "format": "int64" + }, + "uidRangeMin": { + "description": "UIDRangeMin defines the min value for a strategy that allocates by range.", + "type": "integer", + "format": "int64" } - ] + } }, - "apps.v1beta1.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", - "required": [ - "replicas" - ], + "v1.SELinuxContextStrategyOptions": { + "description": "SELinuxContextStrategyOptions defines the strategy type and any options used to create the strategy.", "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { - "type": "string" - } + "seLinuxOptions": { + "description": "seLinuxOptions required to run as; required for MustRunAs", + "$ref": "#/definitions/v1.SELinuxOptions" }, - "targetSelector": { - "description": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "type": { + "description": "Type is the strategy that will dictate what SELinux context is used in the SecurityContext.", "type": "string" } } }, - "v1.ResourceFieldSelector": { - "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", - "required": [ - "resource" - ], + "v1.SELinuxOptions": { + "description": "SELinuxOptions are the labels to be applied to the container", "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", + "level": { + "description": "Level is SELinux level label that applies to the container.", "type": "string" }, - "divisor": { - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", + "role": { + "description": "Role is a SELinux role label that applies to the container.", "type": "string" }, - "resource": { - "description": "Required: resource to select", + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": "string" + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", "type": "string" } } }, - "v1.StorageClass": { - "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", - "required": [ - "provisioner" - ], + "v1.Scale": { + "description": "Scale represents a scaling request for a resource.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -38787,155 +51703,132 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, - "parameters": { - "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "provisioner": { - "description": "Provisioner indicates the type of the provisioner.", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "storage.k8s.io", - "Version": "v1", - "Kind": "StorageClass" - } - ] - }, - "v1.SelfSubjectAccessReviewSpec": { - "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1.NonResourceAttributes" + "spec": { + "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", + "$ref": "#/definitions/v1.ScaleSpec" }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1.ResourceAttributes" + "status": { + "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", + "$ref": "#/definitions/v1.ScaleStatus" } } }, - "v1.AttachedVolume": { - "description": "AttachedVolume describes a volume attached to a node", - "required": [ - "name", - "devicePath" - ], + "v1.ScaleSpec": { + "description": "ScaleSpec describes the attributes of a scale subresource.", "properties": { - "devicePath": { - "description": "DevicePath represents the device path where the volume should be available", - "type": "string" - }, - "name": { - "description": "Name of the attached volume", - "type": "string" + "replicas": { + "description": "desired number of instances for the scaled object.", + "type": "integer", + "format": "int32" } } }, - "v1beta1.StatefulSetSpec": { - "description": "A StatefulSetSpec is the specification of a StatefulSet.", + "v1.ScaleStatus": { + "description": "ScaleStatus represents the current status of a scale subresource.", "required": [ - "template", - "serviceName" + "replicas" ], "properties": { "replicas": { - "description": "Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.", + "description": "actual number of observed instances of the scaled object.", "type": "integer", "format": "int32" }, "selector": { - "description": "Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" - }, - "serviceName": { - "description": "ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.", + "description": "label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors", "type": "string" + } + } + }, + "v1.ScopeRestriction": { + "description": "ScopeRestriction describe one restriction on scopes. Exactly one option must be non-nil.", + "properties": { + "clusterRole": { + "description": "ClusterRole describes a set of restrictions for cluster role scoping.", + "$ref": "#/definitions/v1.ClusterRoleScopeRestriction" }, - "template": { - "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.", - "$ref": "#/definitions/v1.PodTemplateSpec" - }, - "volumeClaimTemplates": { - "description": "VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.", + "literals": { + "description": "ExactValues means the scope has to match a particular set of strings exactly", "type": "array", "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "type": "string" } } } }, - "apps.v1beta1.Deployment": { - "description": "Deployment enables declarative updates for Pods and ReplicaSets.", + "v1.Secret": { + "description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "data": { + "description": "Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + "type": "object", + "additionalProperties": { + "type": "string", + "format": "byte" + } + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object metadata.", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, - "spec": { - "description": "Specification of the desired behavior of the Deployment.", - "$ref": "#/definitions/apps.v1beta1.DeploymentSpec" + "stringData": { + "description": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.", + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "status": { - "description": "Most recently observed status of the Deployment.", - "$ref": "#/definitions/apps.v1beta1.DeploymentStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "apps", - "Version": "v1beta1", - "Kind": "Deployment" + "type": { + "description": "Used to facilitate programmatic handling of secret data.", + "type": "string" } - ] + } }, - "v1.StatusDetails": { - "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "v1.SecretBuildSource": { + "description": "SecretBuildSource describes a secret and its destination directory that will be used only at the build time. The content of the secret referenced here will be copied into the destination directory instead of mounting.", + "required": [ + "secret" + ], "properties": { - "causes": { - "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.StatusCause" - } - }, - "group": { - "description": "The group attribute of the resource associated with the status StatusReason.", + "destinationDir": { + "description": "destinationDir is the directory where the files from the secret should be available for the build time. For the Source build strategy, these will be injected into a container where the assemble script runs. Later, when the script finishes, all files injected will be truncated to zero length. For the Docker build strategy, these will be copied into the build directory, where the Dockerfile is located, so users can ADD or COPY them during docker build.", "type": "string" }, - "kind": { - "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "secret": { + "description": "secret is a reference to an existing secret that you want to use in your build.", + "$ref": "#/definitions/v1.LocalObjectReference" + } + } + }, + "v1.SecretKeySelector": { + "description": "SecretKeySelector selects a key of a Secret.", + "required": [ + "key" + ], + "properties": { + "key": { + "description": "The key of the secret to select from. Must be a valid secret key.", "type": "string" }, "name": { - "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", "type": "string" - }, - "retryAfterSeconds": { - "description": "If specified, the time in seconds before the operation should be retried.", - "type": "integer", - "format": "int32" } } }, - "v1.ResourceQuotaList": { - "description": "ResourceQuotaList is a list of ResourceQuota items.", + "v1.SecretList": { + "description": "SecretList is a list of Secret.", "required": [ "items" ], @@ -38945,10 +51838,10 @@ "type": "string" }, "items": { - "description": "Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", + "description": "Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets", "type": "array", "items": { - "$ref": "#/definitions/v1.ResourceQuota" + "$ref": "#/definitions/v1.Secret" } }, "kind": { @@ -38957,250 +51850,239 @@ }, "metadata": { "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ResourceQuotaList" - } - ] - }, - "v1.LimitRangeSpec": { - "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", - "required": [ - "limits" - ], - "properties": { - "limits": { - "description": "Limits is the list of LimitRangeItem objects that are enforced.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LimitRangeItem" - } + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1.FlexVolumeSource": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", + "v1.SecretSpec": { + "description": "SecretSpec specifies a secret to be included in a build pod and its corresponding mount point", "required": [ - "driver" + "secretSource", + "mountPath" ], "properties": { - "driver": { - "description": "Driver is the name of the driver to use for this volume.", - "type": "string" - }, - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "mountPath": { + "description": "mountPath is the path at which to mount the secret", "type": "string" }, - "options": { - "description": "Optional: Extra command options if any.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.", + "secretSource": { + "description": "secretSource is a reference to the secret", "$ref": "#/definitions/v1.LocalObjectReference" } } }, - "v1.PodAffinity": { - "description": "Pod affinity is a group of inter pod affinity scheduling rules.", + "v1.SecretVolumeSource": { + "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.WeightedPodAffinityTerm" - } + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'.", "type": "array", "items": { - "$ref": "#/definitions/v1.PodAffinityTerm" + "$ref": "#/definitions/v1.KeyToPath" } - } - } - }, - "v1beta1.SELinuxStrategyOptions": { - "description": "SELinux Strategy Options defines the strategy type and any options used to create the strategy.", - "required": [ - "rule" - ], - "properties": { - "rule": { - "description": "type is the strategy that will dictate the allowable labels that may be set.", - "type": "string" }, - "seLinuxOptions": { - "description": "seLinuxOptions required to run as; required for MustRunAs More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context", - "$ref": "#/definitions/v1.SELinuxOptions" + "secretName": { + "description": "Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets", + "type": "string" } } }, - "v1.TokenReviewStatus": { - "description": "TokenReviewStatus is the result of the token authentication request.", + "v1.SecurityContext": { + "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", "properties": { - "authenticated": { - "description": "Authenticated indicates that the token was associated with a known user.", + "capabilities": { + "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.", + "$ref": "#/definitions/v1.Capabilities" + }, + "privileged": { + "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.", "type": "boolean" }, - "error": { - "description": "Error indicates that the token couldn't be checked", - "type": "string" + "readOnlyRootFilesystem": { + "description": "Whether this container has a read-only root filesystem. Default is false.", + "type": "boolean" }, - "user": { - "description": "User is the UserInfo associated with the provided token.", - "$ref": "#/definitions/v1.UserInfo" + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "integer", + "format": "int64" + }, + "seLinuxOptions": { + "description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "$ref": "#/definitions/v1.SELinuxOptions" } } }, - "v1beta1.RoleBinding": { - "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", + "v1.SecurityContextConstraints": { + "description": "SecurityContextConstraints governs the ability to make requests that affect the SecurityContext that will be applied to a container.", "required": [ - "subjects", - "roleRef" + "priority", + "allowPrivilegedContainer", + "defaultAddCapabilities", + "requiredDropCapabilities", + "allowedCapabilities", + "allowHostDirVolumePlugin", + "volumes", + "allowHostNetwork", + "allowHostPorts", + "allowHostPID", + "allowHostIPC", + "readOnlyRootFilesystem" ], "properties": { + "allowHostDirVolumePlugin": { + "description": "AllowHostDirVolumePlugin determines if the policy allow containers to use the HostDir volume plugin", + "type": "boolean" + }, + "allowHostIPC": { + "description": "AllowHostIPC determines if the policy allows host ipc in the containers.", + "type": "boolean" + }, + "allowHostNetwork": { + "description": "AllowHostNetwork determines if the policy allows the use of HostNetwork in the pod spec.", + "type": "boolean" + }, + "allowHostPID": { + "description": "AllowHostPID determines if the policy allows host pid in the containers.", + "type": "boolean" + }, + "allowHostPorts": { + "description": "AllowHostPorts determines if the policy allows host ports in the containers.", + "type": "boolean" + }, + "allowPrivilegedContainer": { + "description": "AllowPrivilegedContainer determines if a container can request to be run as privileged.", + "type": "boolean" + }, + "allowedCapabilities": { + "description": "AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field maybe added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities.", + "type": "array", + "items": { + "type": "string" + } + }, "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "defaultAddCapabilities": { + "description": "DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities.", + "type": "array", + "items": { + "type": "string" + } + }, + "fsGroup": { + "description": "FSGroup is the strategy that will dictate what fs group is used by the SecurityContext.", + "$ref": "#/definitions/v1.FSGroupStrategyOptions" + }, + "groups": { + "description": "The groups that have permission to use this security context constraints", + "type": "array", + "items": { + "type": "string" + } + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object's metadata.", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, - "roleRef": { - "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/v1beta1.RoleRef" + "priority": { + "description": "Priority influences the sort order of SCCs when evaluating which SCCs to try first for a given pod request based on access in the Users and Groups fields. The higher the int, the higher priority. If scores for multiple SCCs are equal they will be sorted by name.", + "type": "integer", + "format": "int32" }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "readOnlyRootFilesystem": { + "description": "ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the SCC should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.", + "type": "boolean" + }, + "requiredDropCapabilities": { + "description": "RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.Subject" + "type": "string" } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "RoleBinding" - } - ] - }, - "v1.ServicePort": { - "description": "ServicePort contains information on service's port.", - "required": [ - "port" - ], - "properties": { - "name": { - "description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service.", - "type": "string" }, - "nodePort": { - "description": "The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: http://kubernetes.io/docs/user-guide/services#type--nodeport", - "type": "integer", - "format": "int32" + "runAsUser": { + "description": "RunAsUser is the strategy that will dictate what RunAsUser is used in the SecurityContext.", + "$ref": "#/definitions/v1.RunAsUserStrategyOptions" }, - "port": { - "description": "The port that will be exposed by this service.", - "type": "integer", - "format": "int32" + "seLinuxContext": { + "description": "SELinuxContext is the strategy that will dictate what labels will be set in the SecurityContext.", + "$ref": "#/definitions/v1.SELinuxContextStrategyOptions" }, - "protocol": { - "description": "The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP.", - "type": "string" + "seccompProfiles": { + "description": "SeccompProfiles lists the allowed profiles that may be set for the pod or container's seccomp annotations. An unset (nil) or empty value means that no profiles may be specifid by the pod or container.\tThe wildcard '*' may be used to allow all profiles. When used to generate a value for a pod the first non-wildcard profile will be used as the default.", + "type": "array", + "items": { + "type": "string" + } }, - "targetPort": { - "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service", - "type": "string", - "format": "int-or-string" - } - } - }, - "v1.ProjectedVolumeSource": { - "description": "Represents a projected volume source", - "required": [ - "sources" - ], - "properties": { - "defaultMode": { - "description": "Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" + "supplementalGroups": { + "description": "SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.", + "$ref": "#/definitions/v1.SupplementalGroupsStrategyOptions" + }, + "users": { + "description": "The users who have permissions to use this security context constraints", + "type": "array", + "items": { + "type": "string" + } }, - "sources": { - "description": "list of volume projections", + "volumes": { + "description": "Volumes is a white list of allowed volume plugins. FSType corresponds directly with the field names of a VolumeSource (azureFile, configMap, emptyDir). To allow all volumes you may use '*'.", "type": "array", "items": { - "$ref": "#/definitions/v1.VolumeProjection" + "type": "string" } } } }, - "v1alpha1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", + "v1.SecurityContextConstraintsList": { + "description": "SecurityContextConstraintsList is a list of SecurityContextConstraints objects", "required": [ - "rules" + "items" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "items": { + "description": "List of security context constraints.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.SecurityContextConstraints" + } + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "Role" - } - ] - }, - "v1.Preconditions": { - "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", - "properties": { - "uid": { - "description": "Specifies the target UID.", - "type": "string" + "description": "More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1.Scale": { - "description": "Scale represents a scaling request for a resource.", + "v1.SelfSubjectRulesReview": { + "description": "SelfSubjectRulesReview is a resource you can create to determine which actions you can perform in a namespace", + "required": [ + "spec" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -39210,63 +52092,33 @@ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "metadata": { - "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, "spec": { - "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v1.ScaleSpec" + "description": "Spec adds information about how to conduct the check", + "$ref": "#/definitions/v1.SelfSubjectRulesReviewSpec" }, "status": { - "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/v1.ScaleStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "autoscaling", - "Version": "v1", - "Kind": "Scale" + "description": "Status is completed by the server to tell which permissions you have", + "$ref": "#/definitions/v1.SubjectRulesReviewStatus" } - ] + } }, - "v2alpha1.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", + "v1.SelfSubjectRulesReviewSpec": { + "description": "SelfSubjectRulesReviewSpec adds information about how to conduct the check", "required": [ - "scaleTargetRef", - "maxReplicas" + "scopes" ], "properties": { - "maxReplicas": { - "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", - "type": "integer", - "format": "int32" - }, - "metrics": { - "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond.", + "scopes": { + "description": "Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". Nil means \"use the scopes on this request\".", "type": "array", "items": { - "$ref": "#/definitions/v2alpha1.MetricSpec" + "type": "string" } - }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod.", - "type": "integer", - "format": "int32" - }, - "scaleTargetRef": { - "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.", - "$ref": "#/definitions/v2alpha1.CrossVersionObjectReference" } } }, - "apps.v1beta1.DeploymentRollback": { - "description": "DeploymentRollback stores the information required to rollback a deployment.", - "required": [ - "name", - "rollbackTo" - ], + "v1.Service": { + "description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -39276,56 +52128,32 @@ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "name": { - "description": "Required: This must match the Name of a deployment.", - "type": "string" - }, - "rollbackTo": { - "description": "The config of this deployment rollback.", - "$ref": "#/definitions/apps.v1beta1.RollbackConfig" - }, - "updatedAnnotations": { - "description": "The annotations to be updated to a deployment", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "apps", - "Version": "v1beta1", - "Kind": "DeploymentRollback" - } - ] - }, - "v2alpha1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", - "properties": { "metadata": { - "description": "Standard object's metadata of the jobs created from this template. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.JobSpec" + "description": "Spec defines the behavior of a service. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.ServiceSpec" + }, + "status": { + "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.ServiceStatus" } } }, - "v1.Secret": { - "description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", + "v1.ServiceAccount": { + "description": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "data": { - "description": "Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - "type": "object", - "additionalProperties": { - "type": "string", - "format": "byte" + "imagePullSecrets": { + "description": "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://kubernetes.io/docs/user-guide/secrets#manually-specifying-an-imagepullsecret", + "type": "array", + "items": { + "$ref": "#/definitions/v1.LocalObjectReference" } }, "kind": { @@ -39336,131 +52164,108 @@ "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, - "stringData": { - "description": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.", - "type": "object", - "additionalProperties": { - "type": "string" + "secrets": { + "description": "Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://kubernetes.io/docs/user-guide/secrets", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ObjectReference" } - }, - "type": { - "description": "Used to facilitate programmatic handling of secret data.", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Secret" } - ] + } }, - "extensions.v1beta1.DeploymentRollback": { - "description": "DeploymentRollback stores the information required to rollback a deployment.", + "v1.ServiceAccountList": { + "description": "ServiceAccountList is a list of ServiceAccount objects", "required": [ - "name", - "rollbackTo" + "items" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "items": { + "description": "List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ServiceAccount" + } + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.ServiceAccountPodSecurityPolicyReviewStatus": { + "description": "ServiceAccountPodSecurityPolicyReviewStatus represents ServiceAccount name and related review status", + "required": [ + "name" + ], + "properties": { + "allowedBy": { + "description": "allowedBy is a reference to the rule that allows the PodTemplateSpec. A rule can be a SecurityContextConstraint or a PodSecurityPolicy A `nil`, indicates that it was denied.", + "$ref": "#/definitions/v1.ObjectReference" + }, "name": { - "description": "Required: This must match the Name of a deployment.", + "description": "name contains the allowed and the denied ServiceAccount name", "type": "string" }, - "rollbackTo": { - "description": "The config of this deployment rollback.", - "$ref": "#/definitions/extensions.v1beta1.RollbackConfig" + "reason": { + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available.", + "type": "string" }, - "updatedAnnotations": { - "description": "The annotations to be updated to a deployment", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "DeploymentRollback" + "template": { + "description": "template is the PodTemplateSpec after the defaulting is applied.", + "$ref": "#/definitions/v1.PodTemplateSpec" } - ] + } }, - "v1beta1.SelfSubjectAccessReviewSpec": { - "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "v1.ServiceAccountReference": { + "description": "ServiceAccountReference specifies a service account and namespace by their names.", + "required": [ + "name", + "namespace" + ], "properties": { - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1beta1.NonResourceAttributes" + "name": { + "description": "Name is the name of the service account.", + "type": "string" }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1beta1.ResourceAttributes" + "namespace": { + "description": "Namespace is the namespace of the service account. Service accounts from inside the whitelisted namespaces are allowed to be bound to roles. If Namespace is empty, then the namespace of the RoleBindingRestriction in which the ServiceAccountReference is embedded is used.", + "type": "string" } } }, - "v1beta1.DaemonSetStatus": { - "description": "DaemonSetStatus represents the current status of a daemon set.", + "v1.ServiceAccountRestriction": { + "description": "ServiceAccountRestriction matches a service account by a string match on either the service-account name or the name of the service account's namespace.", "required": [ - "currentNumberScheduled", - "numberMisscheduled", - "desiredNumberScheduled", - "numberReady" + "serviceaccounts", + "namespaces" ], "properties": { - "currentNumberScheduled": { - "description": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md", - "type": "integer", - "format": "int32" - }, - "desiredNumberScheduled": { - "description": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md", - "type": "integer", - "format": "int32" - }, - "numberAvailable": { - "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "type": "integer", - "format": "int32" - }, - "numberMisscheduled": { - "description": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md", - "type": "integer", - "format": "int32" - }, - "numberReady": { - "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.", - "type": "integer", - "format": "int32" - }, - "numberUnavailable": { - "description": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "The most recent generation observed by the daemon set controller.", - "type": "integer", - "format": "int64" + "namespaces": { + "description": "Namespaces specifies a list of literal namespace names.", + "type": "array", + "items": { + "type": "string" + } }, - "updatedNumberScheduled": { - "description": "The total number of nodes that are running updated daemon pod", - "type": "integer", - "format": "int32" + "serviceaccounts": { + "description": "ServiceAccounts specifies a list of literal service-account names.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ServiceAccountReference" + } } } }, - "v2alpha1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", + "v1.ServiceList": { + "description": "ServiceList holds a list of services.", "required": [ "items" ], @@ -39470,10 +52275,10 @@ "type": "string" }, "items": { - "description": "Items is the list of CronJob.", + "description": "List of services", "type": "array", "items": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.Service" } }, "kind": { @@ -39481,295 +52286,339 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/unversioned.ListMeta" } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "batch", - "Version": "v2alpha1", - "Kind": "CronJobList" + } + }, + "v1.ServicePort": { + "description": "ServicePort contains information on service's port.", + "required": [ + "port" + ], + "properties": { + "name": { + "description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service.", + "type": "string" }, - { - "Group": "batch", - "Version": "v2alpha1", - "Kind": "ScheduledJobList" + "nodePort": { + "description": "The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: http://kubernetes.io/docs/user-guide/services#type--nodeport", + "type": "integer", + "format": "int32" + }, + "port": { + "description": "The port that will be exposed by this service.", + "type": "integer", + "format": "int32" + }, + "protocol": { + "description": "The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP.", + "type": "string" + }, + "targetPort": { + "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service", + "type": "string", + "format": "int-or-string" } - ] + } }, - "v1.JobList": { - "description": "JobList is a collection of jobs.", + "v1.ServiceSpec": { + "description": "ServiceSpec describes the attributes that a user creates on a service.", "required": [ - "items" + "ports" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "clusterIP": { + "description": "clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies", "type": "string" }, - "items": { - "description": "Items is the list of Job.", + "deprecatedPublicIPs": { + "description": "deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics. This field is retained in the v1 API for compatibility until at least 8/20/2016. It will be removed from any new API revisions. If both deprecatedPublicIPs *and* externalIPs are set, deprecatedPublicIPs is used.", "type": "array", "items": { - "$ref": "#/definitions/v1.Job" + "type": "string" } }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" + "externalIPs": { + "description": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field.", + "type": "array", + "items": { + "type": "string" + } }, - "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "batch", - "Version": "v1", - "Kind": "JobList" - } - ] - }, - "extensions.v1beta1.Scale": { - "description": "represents a scaling request for a resource.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "externalName": { + "description": "externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName.", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "loadBalancerIP": { + "description": "Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature.", "type": "string" }, - "metadata": { - "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/v1.ObjectMeta" + "loadBalancerSourceRanges": { + "description": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: http://kubernetes.io/docs/user-guide/services-firewalls", + "type": "array", + "items": { + "type": "string" + } }, - "spec": { - "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/extensions.v1beta1.ScaleSpec" + "ports": { + "description": "The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ServicePort" + } }, - "status": { - "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/extensions.v1beta1.ScaleStatus" + "selector": { + "description": "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#overview", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sessionAffinity": { + "description": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies", + "type": "string" + }, + "type": { + "description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: http://kubernetes.io/docs/user-guide/services#overview", + "type": "string" } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "Scale" + } + }, + "v1.ServiceStatus": { + "description": "ServiceStatus represents the current status of a service.", + "properties": { + "loadBalancer": { + "description": "LoadBalancer contains the current status of the load-balancer, if one is present.", + "$ref": "#/definitions/v1.LoadBalancerStatus" } - ] + } }, - "v1.Taint": { - "description": "The node this Taint is attached to has the effect \"effect\" on any pod that that does not tolerate the Taint.", + "v1.SignatureCondition": { + "description": "SignatureCondition describes an image signature condition of particular kind at particular probe time.", "required": [ - "key", - "effect" + "type", + "status" ], "properties": { - "effect": { - "description": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", + "lastProbeTime": { + "description": "Last time the condition was checked.", + "type": "string", + "format": "date-time" + }, + "lastTransitionTime": { + "description": "Last time the condition transit from one status to another.", + "type": "string", + "format": "date-time" + }, + "message": { + "description": "Human readable message indicating details about last transition.", "type": "string" }, - "key": { - "description": "Required. The taint key to be applied to a node.", + "reason": { + "description": "(brief) reason for the condition's last transition.", "type": "string" }, - "timeAdded": { - "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", - "type": "string", - "format": "date-time" + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" }, - "value": { - "description": "Required. The taint value corresponding to the taint key.", + "type": { + "description": "Type of signature condition, Complete or Failed.", "type": "string" } } }, - "v1beta1.Eviction": { - "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", + "v1.SignatureIssuer": { + "description": "SignatureIssuer holds information about an issuer of signing certificate or key.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "commonName": { + "description": "Common name (e.g. openshift-signing-service).", "type": "string" }, - "deleteOptions": { - "description": "DeleteOptions may be provided", - "$ref": "#/definitions/v1.DeleteOptions" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "organization": { + "description": "Organization name.", "type": "string" - }, - "metadata": { - "description": "ObjectMeta describes the pod that is being evicted.", - "$ref": "#/definitions/v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "policy", - "Version": "v1beta1", - "Kind": "Eviction" - } - ] - }, - "v1.NodeDaemonEndpoints": { - "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", - "properties": { - "kubeletEndpoint": { - "description": "Endpoint on which Kubelet is listening.", - "$ref": "#/definitions/v1.DaemonEndpoint" } } }, - "v1.ObjectFieldSelector": { - "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "v1.SignatureSubject": { + "description": "SignatureSubject holds information about a person or entity who created the signature.", "required": [ - "fieldPath" + "publicKeyID" ], "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "commonName": { + "description": "Common name (e.g. openshift-signing-service).", "type": "string" }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", + "organization": { + "description": "Organization name.", + "type": "string" + }, + "publicKeyID": { + "description": "If present, it is a human readable key id of public key belonging to the subject used to verify image signature. It should contain at least 64 lowest bits of public key's fingerprint (e.g. 0x685ebe62bf278440).", "type": "string" } } }, - "v1.SecurityContext": { - "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", + "v1.SourceBuildStrategy": { + "description": "SourceBuildStrategy defines input parameters specific to an Source build.", + "required": [ + "from" + ], "properties": { - "capabilities": { - "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.", - "$ref": "#/definitions/v1.Capabilities" + "env": { + "description": "env contains additional environment variables you want to pass into a builder container", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EnvVar" + } }, - "privileged": { - "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.", + "forcePull": { + "description": "forcePull describes if the builder should pull the images from registry prior to building.", "type": "boolean" }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem. Default is false.", - "type": "boolean" + "from": { + "description": "from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the docker image should be pulled", + "$ref": "#/definitions/v1.ObjectReference" }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "incremental": { + "description": "incremental flag forces the Source build to do incremental builds if true.", "type": "boolean" }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "integer", - "format": "int64" + "pullSecret": { + "description": "pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the Docker images from the private Docker registries", + "$ref": "#/definitions/v1.LocalObjectReference" }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "$ref": "#/definitions/v1.SELinuxOptions" + "runtimeArtifacts": { + "description": "runtimeArtifacts specifies a list of source/destination pairs that will be copied from the builder to the runtime image. sourcePath can be a file or directory. destinationDir must be a directory. destinationDir can also be empty or equal to \".\", in this case it just refers to the root of WORKDIR. This field and the feature it enables are in tech preview.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ImageSourcePath" + } + }, + "runtimeImage": { + "description": "runtimeImage is an optional image that is used to run an application without unneeded dependencies installed. The building of the application is still done in the builder image but, post build, you can copy the needed artifacts in the runtime image for use. This field and the feature it enables are in tech preview.", + "$ref": "#/definitions/v1.ObjectReference" + }, + "scripts": { + "description": "scripts is the location of Source scripts", + "type": "string" } } }, - "v1.ConfigMap": { - "description": "ConfigMap holds configuration data for pods to consume.", + "v1.SourceControlUser": { + "description": "SourceControlUser defines the identity of a user of source control", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "email": { + "description": "email of the source control user", "type": "string" }, - "data": { - "description": "Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "name": { + "description": "name of the source control user", "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ConfigMap" } - ] + } }, - "v1beta1.IDRange": { - "description": "ID Range provides a min/max of an allowed range of IDs.", + "v1.SourceRevision": { + "description": "SourceRevision is the revision or commit information from the source for the build", "required": [ - "min", - "max" + "type" ], "properties": { - "max": { - "description": "Max is the end of the range, inclusive.", - "type": "integer", - "format": "int64" + "git": { + "description": "Git contains information about git-based build source", + "$ref": "#/definitions/v1.GitSourceRevision" }, - "min": { - "description": "Min is the start of the range, inclusive.", - "type": "integer", - "format": "int64" + "type": { + "description": "type of the build source, may be one of 'Source', 'Dockerfile', 'Binary', or 'Images'", + "type": "string" } } }, - "v1beta1.CertificateSigningRequestSpec": { - "description": "This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users.", + "v1.SubjectAccessReview": { + "description": "SubjectAccessReview is an object for requesting information about whether a user or group can perform an action", "required": [ - "request" + "namespace", + "verb", + "resourceAPIGroup", + "resourceAPIVersion", + "resource", + "resourceName", + "path", + "isNonResourceURL", + "user", + "groups", + "scopes" ], "properties": { - "extra": { - "description": "Extra information about the requesting user. See user.Info interface for details.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "content": { + "description": "Content is the actual content of the request for create and update", + "$ref": "#/definitions/runtime.RawExtension" }, "groups": { - "description": "Group information about the requesting user. See user.Info interface for details.", + "description": "GroupsSlice is optional. Groups is the list of groups to which the User belongs.", "type": "array", "items": { "type": "string" } }, - "request": { - "description": "Base64-encoded PKCS#10 CSR data", - "type": "string", - "format": "byte" + "isNonResourceURL": { + "description": "IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy)", + "type": "boolean" }, - "uid": { - "description": "UID information about the requesting user. See user.Info interface for details.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces", + "type": "string" + }, + "path": { + "description": "Path is the path of a non resource URL", + "type": "string" + }, + "resource": { + "description": "Resource is one of the existing resource types", + "type": "string" + }, + "resourceAPIGroup": { + "description": "Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined", + "type": "string" + }, + "resourceAPIVersion": { + "description": "Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined", + "type": "string" + }, + "resourceName": { + "description": "ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\"", "type": "string" }, - "usages": { - "description": "allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3\n https://tools.ietf.org/html/rfc5280#section-4.2.1.12", + "scopes": { + "description": "Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\". Nil for a self-SAR, means \"use the scopes on this request\". Nil for a regular SAR, means the same as empty.", "type": "array", "items": { "type": "string" } }, - "username": { - "description": "Information about the requesting user. See user.Info interface for details.", + "user": { + "description": "User is optional. If both User and Groups are empty, the current authenticated user is used.", + "type": "string" + }, + "verb": { + "description": "Verb is one of: get, list, watch, create, update, delete", "type": "string" } } }, - "v1.TokenReview": { - "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", + "v1.SubjectRulesReview": { + "description": "SubjectRulesReview is a resource you can create to determine which actions another user can perform in a namespace", "required": [ "spec" ], @@ -39782,286 +52631,411 @@ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1.TokenReviewSpec" + "description": "Spec adds information about how to conduct the check", + "$ref": "#/definitions/v1.SubjectRulesReviewSpec" }, "status": { - "description": "Status is filled in by the server and indicates whether the request can be authenticated.", - "$ref": "#/definitions/v1.TokenReviewStatus" + "description": "Status is completed by the server to tell which permissions you have", + "$ref": "#/definitions/v1.SubjectRulesReviewStatus" } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authentication.k8s.io", - "Version": "v1", - "Kind": "TokenReview" + } + }, + "v1.SubjectRulesReviewSpec": { + "description": "SubjectRulesReviewSpec adds information about how to conduct the check", + "required": [ + "user", + "groups", + "scopes" + ], + "properties": { + "groups": { + "description": "Groups is optional. Groups is the list of groups to which the User belongs. At least one of User and Groups must be specified.", + "type": "array", + "items": { + "type": "string" + } + }, + "scopes": { + "description": "Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\".", + "type": "array", + "items": { + "type": "string" + } + }, + "user": { + "description": "User is optional. At least one of User and Groups must be specified.", + "type": "string" } - ] + } }, - "v1beta1.TokenReviewSpec": { - "description": "TokenReviewSpec is a description of the token authentication request.", + "v1.SubjectRulesReviewStatus": { + "description": "SubjectRulesReviewStatus is contains the result of a rules check", + "required": [ + "rules" + ], "properties": { - "token": { - "description": "Token is the opaque bearer token.", + "evaluationError": { + "description": "EvaluationError can appear in combination with Rules. It means some error happened during evaluation that may have prevented additional rules from being populated.", "type": "string" + }, + "rules": { + "description": "Rules is the list of rules (no particular sort) that are allowed for the subject", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PolicyRule" + } } } }, - "v1.SecretProjection": { - "description": "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.", + "v1.SupplementalGroupsStrategyOptions": { + "description": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.", "properties": { - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "ranges": { + "description": "Ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end.", "type": "array", "items": { - "$ref": "#/definitions/v1.KeyToPath" + "$ref": "#/definitions/v1.IDRange" } }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": { + "description": "Type is the strategy that will dictate what supplemental groups is used in the SecurityContext.", "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" } } }, - "v1beta1.SelfSubjectAccessReview": { - "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", + "v1.TCPSocketAction": { + "description": "TCPSocketAction describes an action based on opening a socket", "required": [ - "spec" + "port" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "port": { + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "type": "string", + "format": "int-or-string" + } + } + }, + "v1.TLSConfig": { + "description": "TLSConfig defines config used to secure a route and provide termination", + "required": [ + "termination" + ], + "properties": { + "caCertificate": { + "description": "caCertificate provides the cert authority certificate contents", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "certificate": { + "description": "certificate provides certificate contents", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" + "destinationCACertificate": { + "description": "destinationCACertificate provides the contents of the ca certificate of the final destination. When using reencrypt termination this file should be provided in order to have routers use it for health checks on the secure connection", + "type": "string" }, - "spec": { - "description": "Spec holds information about the request being evaluated. user and groups must be empty", - "$ref": "#/definitions/v1beta1.SelfSubjectAccessReviewSpec" + "insecureEdgeTerminationPolicy": { + "description": "insecureEdgeTerminationPolicy indicates the desired behavior for insecure connections to a route. While each router may make its own decisions on which ports to expose, this is normally port 80.\n\n* Allow - traffic is sent to the server on the insecure port (default) * Disable - no traffic is allowed on the insecure port. * Redirect - clients are redirected to the secure port.", + "type": "string" }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authorization.k8s.io", - "Version": "v1beta1", - "Kind": "SelfSubjectAccessReview" + "key": { + "description": "key provides key file contents", + "type": "string" + }, + "termination": { + "description": "termination indicates termination type.", + "type": "string" } - ] + } }, - "v1beta1.DaemonSetSpec": { - "description": "DaemonSetSpec is the specification of a daemon set.", + "v1.TagEvent": { + "description": "TagEvent is used by ImageStreamStatus to keep a historical record of images associated with a tag.", "required": [ - "template" + "created", + "dockerImageReference", + "image", + "generation" ], "properties": { - "minReadySeconds": { - "description": "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" + "created": { + "description": "Created holds the time the TagEvent was created", + "type": "string", + "format": "date-time" }, - "template": { - "description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template", - "$ref": "#/definitions/v1.PodTemplateSpec" + "dockerImageReference": { + "description": "DockerImageReference is the string that can be used to pull this image", + "type": "string" }, - "templateGeneration": { - "description": "A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation.", + "generation": { + "description": "Generation is the spec tag generation that resulted in this tag being updated", "type": "integer", "format": "int64" }, - "updateStrategy": { - "description": "An update strategy to replace existing DaemonSet pods with new pods.", - "$ref": "#/definitions/v1beta1.DaemonSetUpdateStrategy" + "image": { + "description": "Image is the image", + "type": "string" } } }, - "v2alpha1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", + "v1.TagEventCondition": { + "description": "TagEventCondition contains condition information for a tag event.", "required": [ - "schedule", - "jobTemplate" + "type", + "status", + "generation" ], "properties": { - "concurrencyPolicy": { - "description": "ConcurrencyPolicy specifies how to treat concurrent executions of a Job. Defaults to Allow.", - "type": "string" - }, - "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", + "generation": { + "description": "Generation is the spec tag generation that this status corresponds to", "type": "integer", - "format": "int32" + "format": "int64" }, - "jobTemplate": { - "description": "JobTemplate is the object that describes the job that will be created when executing a CronJob.", - "$ref": "#/definitions/v2alpha1.JobTemplateSpec" + "lastTransitionTime": { + "description": "LastTransitionTIme is the time the condition transitioned from one status to another.", + "type": "string", + "format": "date-time" }, - "schedule": { - "description": "Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + "message": { + "description": "Message is a human readable description of the details about last transition, complementing reason.", "type": "string" }, - "startingDeadlineSeconds": { - "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", - "type": "integer", - "format": "int64" + "reason": { + "description": "Reason is a brief machine readable explanation for the condition's last transition.", + "type": "string" }, - "successfulJobsHistoryLimit": { - "description": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", - "type": "integer", - "format": "int32" + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" }, - "suspend": { - "description": "Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "type": "boolean" + "type": { + "description": "Type of tag event condition, currently only ImportSuccess", + "type": "string" } } }, - "v1.PersistentVolumeClaimStatus": { - "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", + "v1.TagImageHook": { + "description": "TagImageHook is a request to tag the image in a particular container onto an ImageStreamTag.", + "required": [ + "containerName", + "to" + ], "properties": { - "accessModes": { - "description": "AccessModes contains the actual access modes the volume backing the PVC has. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1", - "type": "array", - "items": { - "type": "string" - } + "containerName": { + "description": "ContainerName is the name of a container in the deployment config whose image value will be used as the source of the tag. If there is only a single container this value will be defaulted to the name of that container.", + "type": "string" }, - "capacity": { - "description": "Represents the actual resources of the underlying volume.", + "to": { + "description": "To is the target ImageStreamTag to set the container's image onto.", + "$ref": "#/definitions/v1.ObjectReference" + } + } + }, + "v1.TagImportPolicy": { + "description": "TagImportPolicy controls how images related to this tag will be imported.", + "properties": { + "insecure": { + "description": "Insecure is true if the server may bypass certificate verification or connect directly over HTTP during image import.", + "type": "boolean" + }, + "scheduled": { + "description": "Scheduled indicates to the server that this tag should be periodically checked to ensure it is up to date, and imported", + "type": "boolean" + } + } + }, + "v1.TagReference": { + "description": "TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.", + "required": [ + "name", + "annotations", + "generation" + ], + "properties": { + "annotations": { + "description": "Annotations associated with images using this tag", "type": "object", "additionalProperties": { "type": "string" } }, - "phase": { - "description": "Phase represents the current phase of PersistentVolumeClaim.", + "from": { + "description": "From is a reference to an image stream tag or image stream this tag should track", + "$ref": "#/definitions/v1.ObjectReference" + }, + "generation": { + "description": "Generation is the image stream generation that updated this tag - setting it to 0 is an indication that the generation must be updated. Legacy clients will send this as nil, which means the client doesn't know or care.", + "type": "integer", + "format": "int64" + }, + "importPolicy": { + "description": "Import is information that controls how images may be imported by the server.", + "$ref": "#/definitions/v1.TagImportPolicy" + }, + "name": { + "description": "Name of the tag", "type": "string" + }, + "reference": { + "description": "Reference states if the tag will be imported. Default value is false, which means the tag will be imported.", + "type": "boolean" + }, + "referencePolicy": { + "description": "ReferencePolicy defines how other components should consume the image", + "$ref": "#/definitions/v1.TagReferencePolicy" } } }, - "v1beta1.TokenReviewStatus": { - "description": "TokenReviewStatus is the result of the token authentication request.", + "v1.TagReferencePolicy": { + "description": "TagReferencePolicy describes how pull-specs for images in this image stream tag are generated when image change triggers in deployment configs or builds are resolved. This allows the image stream author to control how images are accessed.", + "required": [ + "type" + ], "properties": { - "authenticated": { - "description": "Authenticated indicates that the token was associated with a known user.", - "type": "boolean" - }, - "error": { - "description": "Error indicates that the token couldn't be checked", + "type": { + "description": "Type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds. The default value is `Source`, indicating the original location of the image should be used (if imported). The user may also specify `Local`, indicating that the pull spec should point to the integrated Docker registry and leverage the registry's ability to proxy the pull to an upstream registry. `Local` allows the credentials used to pull this image to be managed from the image stream's namespace, so others on the platform can access a remote image but have no access to the remote secret. It also allows the image layers to be mirrored into the local registry which the images can still be pulled even if the upstream registry is unavailable.", "type": "string" - }, - "user": { - "description": "User is the UserInfo associated with the provided token.", - "$ref": "#/definitions/v1beta1.UserInfo" } } }, - "v1beta1.HostPortRange": { - "description": "Host Port Range defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.", + "v1.Template": { + "description": "Template contains the inputs needed to produce a Config.", "required": [ - "min", - "max" + "objects" ], "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "type": "integer", - "format": "int32" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "min": { - "description": "min is the start of the range, inclusive.", - "type": "integer", - "format": "int32" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "labels": { + "description": "labels is a optional set of labels that are applied to every object during the Template to Config transformation.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "message": { + "description": "message is an optional instructional message that will be displayed when this template is instantiated. This field should inform the user how to utilize the newly created resources. Parameter substitution will be performed on the message before being displayed so that generated credentials and other parameters can be included in the output.", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "objects": { + "description": "objects is an array of resources to include in this template. If a namespace value is hardcoded in the object, it will be removed during template instantiation, however if the namespace value is, or contains, a ${PARAMETER_REFERENCE}, the resolved value after parameter substitution will be respected and the object will be created in that namespace.", + "type": "array", + "items": { + "$ref": "#/definitions/runtime.RawExtension" + } + }, + "parameters": { + "description": "parameters is an optional array of Parameters used during the Template to Config transformation.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Parameter" + } } } }, - "v1.Endpoints": { - "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", + "v1.TemplateList": { + "description": "TemplateList is a list of Template objects.", "required": [ - "subsets" + "items" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "items": { + "description": "Items is a list of templates", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Template" + } + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1.User": { + "description": "Upon log in, every user of the system receives a User and Identity resource. Administrators may directly manipulate the attributes of the users for their own tracking, or set groups via the API. The user name is unique and is chosen based on the value provided by the identity provider - if a user already exists with the incoming name, the user name may have a number appended to it depending on the configuration of the system.", + "required": [ + "identities", + "groups" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "subsets": { - "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", + "fullName": { + "description": "FullName is the full name of user", + "type": "string" + }, + "groups": { + "description": "Groups specifies group names this user is a member of. This field is deprecated and will be removed in a future release. Instead, create a Group object containing the name of this User.", "type": "array", "items": { - "$ref": "#/definitions/v1.EndpointSubset" + "type": "string" } + }, + "identities": { + "description": "Identities are the identities associated with this user", + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Endpoints" - } - ] + } }, - "v1.Job": { - "description": "Job represents the configuration of a single job.", + "v1.UserIdentityMapping": { + "description": "UserIdentityMapping maps a user to an identity", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "identity": { + "description": "Identity is a reference to an identity", + "$ref": "#/definitions/v1.ObjectReference" + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, - "spec": { - "description": "Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.JobSpec" - }, - "status": { - "description": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.JobStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "batch", - "Version": "v1", - "Kind": "Job" + "user": { + "description": "User is a reference to a user", + "$ref": "#/definitions/v1.ObjectReference" } - ] + } }, - "v2alpha1.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.", + "v1.UserList": { + "description": "UserList is a collection of Users", "required": [ "items" ], @@ -40071,10 +53045,10 @@ "type": "string" }, "items": { - "description": "items is the list of horizontal pod autoscaler objects.", + "description": "Items is the list of users", "type": "array", "items": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.User" } }, "kind": { @@ -40082,67 +53056,206 @@ "type": "string" }, "metadata": { - "description": "metadata is the standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "autoscaling", - "Version": "v2alpha1", - "Kind": "HorizontalPodAutoscalerList" + "description": "Standard object's metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1.LimitRangeItem": { - "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "v1.UserRestriction": { + "description": "UserRestriction matches a user either by a string match on the user name, a string match on the name of a group to which the user belongs, or a label selector applied to the user labels.", + "required": [ + "users", + "groups", + "labels" + ], "properties": { - "default": { - "description": "Default resource requirement limit value by resource name if resource limit is omitted.", - "type": "object", - "additionalProperties": { + "groups": { + "description": "Groups specifies a list of literal group names.", + "type": "array", + "items": { "type": "string" } }, - "defaultRequest": { - "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", - "type": "object", - "additionalProperties": { - "type": "string" + "labels": { + "description": "Selectors specifies a list of label selectors over user labels.", + "type": "array", + "items": { + "$ref": "#/definitions/unversioned.LabelSelector" } }, - "max": { - "description": "Max usage constraints on this kind by resource name.", - "type": "object", - "additionalProperties": { + "users": { + "description": "Users specifies a list of literal user names.", + "type": "array", + "items": { "type": "string" } + } + } + }, + "v1.Volume": { + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "required": [ + "name" + ], + "properties": { + "awsElasticBlockStore": { + "description": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", + "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource" }, - "maxLimitRequestRatio": { - "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", - "type": "object", - "additionalProperties": { - "type": "string" - } + "azureDisk": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "$ref": "#/definitions/v1.AzureDiskVolumeSource" + }, + "azureFile": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "$ref": "#/definitions/v1.AzureFileVolumeSource" + }, + "cephfs": { + "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + "$ref": "#/definitions/v1.CephFSVolumeSource" + }, + "cinder": { + "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", + "$ref": "#/definitions/v1.CinderVolumeSource" + }, + "configMap": { + "description": "ConfigMap represents a configMap that should populate this volume", + "$ref": "#/definitions/v1.ConfigMapVolumeSource" + }, + "downwardAPI": { + "description": "DownwardAPI represents downward API about the pod that should populate this volume", + "$ref": "#/definitions/v1.DownwardAPIVolumeSource" + }, + "emptyDir": { + "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", + "$ref": "#/definitions/v1.EmptyDirVolumeSource" + }, + "fc": { + "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", + "$ref": "#/definitions/v1.FCVolumeSource" + }, + "flexVolume": { + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", + "$ref": "#/definitions/v1.FlexVolumeSource" + }, + "flocker": { + "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", + "$ref": "#/definitions/v1.FlockerVolumeSource" + }, + "gcePersistentDisk": { + "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource" + }, + "gitRepo": { + "description": "GitRepo represents a git repository at a particular revision.", + "$ref": "#/definitions/v1.GitRepoVolumeSource" + }, + "glusterfs": { + "description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", + "$ref": "#/definitions/v1.GlusterfsVolumeSource" + }, + "hostPath": { + "description": "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", + "$ref": "#/definitions/v1.HostPathVolumeSource" + }, + "iscsi": { + "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md", + "$ref": "#/definitions/v1.ISCSIVolumeSource" + }, + "metadata": { + "description": "Metadata represents metadata about the pod that should populate this volume Deprecated: Use downwardAPI instead.", + "$ref": "#/definitions/v1.DeprecatedDownwardAPIVolumeSource" + }, + "name": { + "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "nfs": { + "description": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://kubernetes.io/docs/user-guide/volumes#nfs", + "$ref": "#/definitions/v1.NFSVolumeSource" + }, + "persistentVolumeClaim": { + "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", + "$ref": "#/definitions/v1.PersistentVolumeClaimVolumeSource" + }, + "photonPersistentDisk": { + "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource" + }, + "quobyte": { + "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + "$ref": "#/definitions/v1.QuobyteVolumeSource" + }, + "rbd": { + "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", + "$ref": "#/definitions/v1.RBDVolumeSource" + }, + "secret": { + "description": "Secret represents a secret that should populate this volume. More info: http://kubernetes.io/docs/user-guide/volumes#secrets", + "$ref": "#/definitions/v1.SecretVolumeSource" + }, + "vsphereVolume": { + "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource" + } + } + }, + "v1.VolumeMount": { + "description": "VolumeMount describes a mounting of a Volume within a container.", + "required": [ + "name", + "mountPath" + ], + "properties": { + "mountPath": { + "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "type": "string" }, - "min": { - "description": "Min usage constraints on this kind by resource name.", - "type": "object", - "additionalProperties": { - "type": "string" - } + "name": { + "description": "This must match the Name of a Volume.", + "type": "string" }, - "type": { - "description": "Type of resource that this limit applies to.", + "readOnly": { + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "type": "boolean" + }, + "subPath": { + "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", "type": "string" } } }, - "v1.SubjectAccessReview": { - "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", + "v1.VsphereVirtualDiskVolumeSource": { + "description": "Represents a vSphere volume resource.", "required": [ - "spec" + "volumePath" ], + "properties": { + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "volumePath": { + "description": "Path that identifies vSphere volume vmdk", + "type": "string" + } + } + }, + "v1.WebHookTrigger": { + "description": "WebHookTrigger is a trigger that gets invoked using a webhook type of post", + "properties": { + "allowEnv": { + "description": "allowEnv determines whether the webhook can set environment variables; can only be set to true for GenericWebHook.", + "type": "boolean" + }, + "secret": { + "description": "secret used to validate requests.", + "type": "string" + } + } + }, + "v1alpha1.CertificateSigningRequest": { + "description": "Describes a certificate signing request", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -40156,144 +53269,128 @@ "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1.SubjectAccessReviewSpec" + "description": "The certificate request itself and any additional information.", + "$ref": "#/definitions/v1alpha1.CertificateSigningRequestSpec" }, "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authorization.k8s.io", - "Version": "v1", - "Kind": "SubjectAccessReview" + "description": "Derived information about the request.", + "$ref": "#/definitions/v1alpha1.CertificateSigningRequestStatus" } - ] + } }, - "v1beta1.PodDisruptionBudgetStatus": { - "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", + "v1alpha1.CertificateSigningRequestCondition": { "required": [ - "disruptedPods", - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" + "type" ], "properties": { - "currentHealthy": { - "description": "current number of healthy pods", - "type": "integer", - "format": "int32" - }, - "desiredHealthy": { - "description": "minimum desired number of healthy pods", - "type": "integer", - "format": "int32" - }, - "disruptedPods": { - "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", - "type": "object", - "additionalProperties": { - "type": "string", - "format": "date-time" - } + "lastUpdateTime": { + "description": "timestamp for the last update to this condition", + "type": "string", + "format": "date-time" }, - "disruptionsAllowed": { - "description": "Number of pod disruptions that are currently allowed.", - "type": "integer", - "format": "int32" + "message": { + "description": "human readable message with details about the request state", + "type": "string" }, - "expectedPods": { - "description": "total number of pods counted by this disruption budget", - "type": "integer", - "format": "int32" + "reason": { + "description": "brief reason for the request state", + "type": "string" }, - "observedGeneration": { - "description": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.", - "type": "integer", - "format": "int64" + "type": { + "description": "request approval state, currently Approved or Denied.", + "type": "string" } } }, - "v1.ResourceAttributes": { - "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", + "v1alpha1.CertificateSigningRequestList": { + "required": [ + "items" + ], "properties": { - "group": { - "description": "Group is the API Group of the Resource. \"*\" means all.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "name": { - "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", - "type": "string" + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + } }, - "namespace": { - "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "resource": { - "description": "Resource is one of the existing resource types. \"*\" means all.", - "type": "string" + "metadata": { + "$ref": "#/definitions/unversioned.ListMeta" + } + } + }, + "v1alpha1.CertificateSigningRequestSpec": { + "description": "This information is immutable after the request is created. Only the Request and ExtraInfo fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users.", + "required": [ + "request" + ], + "properties": { + "groups": { + "type": "array", + "items": { + "type": "string" + } }, - "subresource": { - "description": "Subresource is one of the existing resource types. \"\" means none.", - "type": "string" + "request": { + "description": "Base64-encoded PKCS#10 CSR data", + "type": "string", + "format": "byte" }, - "verb": { - "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "uid": { "type": "string" }, - "version": { - "description": "Version is the API Version of the Resource. \"*\" means all.", + "username": { + "description": "Information about the requesting user (if relevant) See user.Info interface for details", "type": "string" } } }, - "v1.ConfigMapVolumeSource": { - "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "v1alpha1.CertificateSigningRequestStatus": { "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" + "certificate": { + "description": "If request was approved, the controller will place the issued certificate here.", + "type": "string", + "format": "byte" }, - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "conditions": { + "description": "Conditions applied to the request, such as approval or denial.", "type": "array", "items": { - "$ref": "#/definitions/v1.KeyToPath" + "$ref": "#/definitions/v1alpha1.CertificateSigningRequestCondition" } - }, + } + } + }, + "v1beta1.APIVersion": { + "description": "An APIVersion represents a single concrete version of an object model.", + "properties": { "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "description": "Name of this version (e.g. 'v1').", "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or it's keys must be defined", - "type": "boolean" } } }, - "v1.HTTPHeader": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "v1beta1.CPUTargetUtilization": { "required": [ - "name", - "value" + "targetPercentage" ], "properties": { - "name": { - "description": "The header field name", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" + "targetPercentage": { + "description": "fraction of the requested CPU that should be utilized/used, e.g. 70 means that 70% of the requested CPU should be in use.", + "type": "integer", + "format": "int32" } } }, - "v1.ReplicationController": { - "description": "ReplicationController represents the configuration of a replication controller.", + "v1beta1.DaemonSet": { + "description": "DaemonSet represents the configuration of a daemon set.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -40304,187 +53401,95 @@ "type": "string" }, "metadata": { - "description": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ReplicationControllerSpec" + "description": "Spec defines the desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1beta1.DaemonSetSpec" }, "status": { - "description": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ReplicationControllerStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ReplicationController" + "description": "Status is the current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1beta1.DaemonSetStatus" } - ] + } }, - "v1.APIGroupList": { - "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "v1beta1.DaemonSetList": { + "description": "DaemonSetList is a collection of daemon sets.", "required": [ - "groups" + "items" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "groups": { - "description": "groups is a list of APIGroup.", + "items": { + "description": "Items is a list of daemon sets.", "type": "array", "items": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1beta1.DaemonSet" } }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - } - } - }, - "v1beta1.NetworkPolicy": { - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior for this NetworkPolicy.", - "$ref": "#/definitions/v1beta1.NetworkPolicySpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "NetworkPolicy" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "apps.v1beta1.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", + "v1beta1.DaemonSetSpec": { + "description": "DaemonSetSpec is the specification of a daemon set.", + "required": [ + "template" + ], "properties": { - "maxSurge": { - "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", - "type": "string", - "format": "int-or-string" + "selector": { + "description": "Selector is a label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "$ref": "#/definitions/unversioned.LabelSelector" }, - "maxUnavailable": { - "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "type": "string", - "format": "int-or-string" + "template": { + "description": "Template is the object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template", + "$ref": "#/definitions/v1.PodTemplateSpec" } } }, - "v1beta1.ReplicaSetStatus": { - "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", + "v1beta1.DaemonSetStatus": { + "description": "DaemonSetStatus represents the current status of a daemon set.", "required": [ - "replicas" + "currentNumberScheduled", + "numberMisscheduled", + "desiredNumberScheduled", + "numberReady" ], "properties": { - "availableReplicas": { - "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + "currentNumberScheduled": { + "description": "CurrentNumberScheduled is the number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md", "type": "integer", "format": "int32" }, - "conditions": { - "description": "Represents the latest available observations of a replica set's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ReplicaSetCondition" - } - }, - "fullyLabeledReplicas": { - "description": "The number of pods that have labels matching the labels of the pod template of the replicaset.", + "desiredNumberScheduled": { + "description": "DesiredNumberScheduled is the total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md", "type": "integer", "format": "int32" }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "The number of ready replicas for this replica set.", + "numberMisscheduled": { + "description": "NumberMisscheduled is the number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md", "type": "integer", "format": "int32" }, - "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", + "numberReady": { + "description": "NumberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.", "type": "integer", "format": "int32" } } }, - "v1.HTTPGetAction": { - "description": "HTTPGetAction describes an action based on HTTP Get requests.", - "required": [ - "port" - ], - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.HTTPHeader" - } - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - "type": "string", - "format": "int-or-string" - }, - "scheme": { - "description": "Scheme to use for connecting to the host. Defaults to HTTP.", - "type": "string" - } - } - }, - "v1.Affinity": { - "description": "Affinity is a group of affinity scheduling rules.", - "properties": { - "nodeAffinity": { - "description": "Describes node affinity scheduling rules for the pod.", - "$ref": "#/definitions/v1.NodeAffinity" - }, - "podAffinity": { - "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", - "$ref": "#/definitions/v1.PodAffinity" - }, - "podAntiAffinity": { - "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", - "$ref": "#/definitions/v1.PodAntiAffinity" - } - } - }, - "v1.APIGroup": { - "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", - "required": [ - "name", - "versions", - "serverAddressByClientCIDRs" - ], + "v1beta1.Deployment": { + "description": "Deployment enables declarative updates for Pods and ReplicaSets.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -40494,64 +53499,34 @@ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "name": { - "description": "name is the name of the group.", - "type": "string" - }, - "preferredVersion": { - "description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", - "$ref": "#/definitions/v1.GroupVersionForDiscovery" - }, - "serverAddressByClientCIDRs": { - "description": "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ServerAddressByClientCIDR" - } - }, - "versions": { - "description": "versions are the versions supported in this group.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.GroupVersionForDiscovery" - } - } - } - }, - "v1.ComponentCondition": { - "description": "Information about the condition of a component.", - "required": [ - "type", - "status" - ], - "properties": { - "error": { - "description": "Condition error code for a component. For example, a health check error code.", - "type": "string" + "metadata": { + "description": "Standard object metadata.", + "$ref": "#/definitions/v1.ObjectMeta" }, - "message": { - "description": "Message about the condition for a component. For example, information about a health check.", - "type": "string" + "spec": { + "description": "Specification of the desired behavior of the Deployment.", + "$ref": "#/definitions/v1beta1.DeploymentSpec" }, "status": { - "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", - "type": "string" - }, - "type": { - "description": "Type of condition for a component. Valid value: \"Healthy\"", - "type": "string" + "description": "Most recently observed status of the Deployment.", + "$ref": "#/definitions/v1beta1.DeploymentStatus" } } }, - "v1.ReplicationControllerCondition": { - "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", + "v1beta1.DeploymentCondition": { + "description": "DeploymentCondition describes the state of a deployment at a certain point.", "required": [ "type", "status" ], "properties": { "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", + "description": "Last time the condition transitioned from one status to another.", + "type": "string", + "format": "date-time" + }, + "lastUpdateTime": { + "description": "The last time this condition was updated.", "type": "string", "format": "date-time" }, @@ -40568,44 +53543,44 @@ "type": "string" }, "type": { - "description": "Type of replication controller condition.", + "description": "Type of deployment condition.", "type": "string" } } }, - "v1.APIVersions": { - "description": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", + "v1beta1.DeploymentList": { + "description": "DeploymentList is a list of Deployments.", "required": [ - "versions", - "serverAddressByClientCIDRs" + "items" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "serverAddressByClientCIDRs": { - "description": "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.", + "items": { + "description": "Items is the list of Deployments.", "type": "array", "items": { - "$ref": "#/definitions/v1.ServerAddressByClientCIDR" + "$ref": "#/definitions/v1beta1.Deployment" } }, - "versions": { - "description": "versions are the api versions that are available.", - "type": "array", - "items": { - "type": "string" - } + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1beta1.CertificateSigningRequest": { - "description": "Describes a certificate signing request", + "v1beta1.DeploymentRollback": { + "description": "DeploymentRollback stores the information required to rollback a deployment.", + "required": [ + "name", + "rollbackTo" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -40615,152 +53590,191 @@ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" + "name": { + "description": "Required: This must match the Name of a deployment.", + "type": "string" }, - "spec": { - "description": "The certificate request itself and any additional information.", - "$ref": "#/definitions/v1beta1.CertificateSigningRequestSpec" + "rollbackTo": { + "description": "The config of this deployment rollback.", + "$ref": "#/definitions/v1beta1.RollbackConfig" }, - "status": { - "description": "Derived information about the request.", - "$ref": "#/definitions/v1beta1.CertificateSigningRequestStatus" + "updatedAnnotations": { + "description": "The annotations to be updated to a deployment", + "type": "object", + "additionalProperties": { + "type": "string" + } } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "certificates.k8s.io", - "Version": "v1beta1", - "Kind": "CertificateSigningRequest" + } + }, + "v1beta1.DeploymentSpec": { + "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", + "required": [ + "template" + ], + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "type": "integer", + "format": "int32" + }, + "paused": { + "description": "Indicates that the deployment is paused and will not be processed by the deployment controller.", + "type": "boolean" + }, + "progressDeadlineSeconds": { + "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default.", + "type": "integer", + "format": "int32" + }, + "replicas": { + "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + "type": "integer", + "format": "int32" + }, + "revisionHistoryLimit": { + "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified.", + "type": "integer", + "format": "int32" + }, + "rollbackTo": { + "description": "The config this deployment is rolling back to. Will be cleared after rollback is done.", + "$ref": "#/definitions/v1beta1.RollbackConfig" + }, + "selector": { + "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", + "$ref": "#/definitions/unversioned.LabelSelector" + }, + "strategy": { + "description": "The deployment strategy to use to replace existing pods with new ones.", + "$ref": "#/definitions/v1beta1.DeploymentStrategy" + }, + "template": { + "description": "Template describes the pods that will be created.", + "$ref": "#/definitions/v1.PodTemplateSpec" } - ] + } + }, + "v1beta1.DeploymentStatus": { + "description": "DeploymentStatus is the most recently observed status of the Deployment.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", + "type": "integer", + "format": "int32" + }, + "conditions": { + "description": "Represents the latest available observations of a deployment's current state.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.DeploymentCondition" + } + }, + "observedGeneration": { + "description": "The generation observed by the deployment controller.", + "type": "integer", + "format": "int64" + }, + "replicas": { + "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", + "type": "integer", + "format": "int32" + }, + "unavailableReplicas": { + "description": "Total number of unavailable pods targeted by this deployment.", + "type": "integer", + "format": "int32" + }, + "updatedReplicas": { + "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", + "type": "integer", + "format": "int32" + } + } }, - "v2alpha1.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "required": [ - "target", - "metricName", - "currentValue" - ], + "v1beta1.DeploymentStrategy": { + "description": "DeploymentStrategy describes how to replace existing pods with new ones.", "properties": { - "currentValue": { - "description": "currentValue is the current value of the metric (as a quantity).", - "type": "string" + "rollingUpdate": { + "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", + "$ref": "#/definitions/v1beta1.RollingUpdateDeployment" }, - "metricName": { - "description": "metricName is the name of the metric in question.", + "type": { + "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", "type": "string" - }, - "target": { - "description": "target is the described Kubernetes object.", - "$ref": "#/definitions/v2alpha1.CrossVersionObjectReference" } } }, - "v1beta1.LocalSubjectAccessReview": { - "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", - "required": [ - "spec" - ], + "v1beta1.Eviction": { + "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "deleteOptions": { + "description": "DeleteOptions may be provided", + "$ref": "#/definitions/v1.DeleteOptions" + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { + "description": "ObjectMeta describes the pod that is being evicted.", "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authorization.k8s.io", - "Version": "v1beta1", - "Kind": "LocalSubjectAccessReview" - } - ] + } }, - "v1.WatchEvent": { - "description": "Event represents a single event to a watched resource.", - "required": [ - "type", - "object" - ], + "v1beta1.FSGroupStrategyOptions": { + "description": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.", "properties": { - "object": { - "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", - "$ref": "#/definitions/runtime.RawExtension" + "ranges": { + "description": "Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.IDRange" + } }, - "type": { + "rule": { + "description": "Rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", "type": "string" } } }, - "v1.CinderVolumeSource": { - "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "v1beta1.HTTPIngressPath": { + "description": "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.", "required": [ - "volumeID" + "backend" ], "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "type": "string" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "type": "boolean" + "backend": { + "description": "Backend defines the referenced service endpoint to which the traffic will be forwarded to.", + "$ref": "#/definitions/v1beta1.IngressBackend" }, - "volumeID": { - "description": "volume id used to identify the volume in cinder More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", + "path": { + "description": "Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.", "type": "string" } } }, - "v1.ResourceQuota": { - "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", + "v1beta1.HTTPIngressRuleValue": { + "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", + "required": [ + "paths" + ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the desired quota. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ResourceQuotaSpec" - }, - "status": { - "description": "Status defines the actual enforced quota and its current usage. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ResourceQuotaStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ResourceQuota" + "paths": { + "description": "A collection of paths that map requests to backends.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.HTTPIngressPath" + } } - ] + } }, - "v1.LimitRange": { - "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "v1beta1.HorizontalPodAutoscaler": { + "description": "configuration of a horizontal pod autoscaler.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -40771,24 +53785,21 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec defines the limits enforced. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.LimitRangeSpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "LimitRange" + "description": "behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscalerSpec" + }, + "status": { + "description": "current information about the autoscaler.", + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscalerStatus" } - ] + } }, - "v1beta1.DaemonSetList": { - "description": "DaemonSetList is a collection of daemon sets.", + "v1beta1.HorizontalPodAutoscalerList": { + "description": "list of horizontal pod autoscaler objects.", "required": [ "items" ], @@ -40798,10 +53809,10 @@ "type": "string" }, "items": { - "description": "A list of daemon sets.", + "description": "list of horizontal pod autoscaler objects.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.DaemonSet" + "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" } }, "kind": { @@ -40809,116 +53820,112 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "DaemonSetList" + "description": "Standard list metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "apps.v1beta1.Scale": { - "description": "Scale represents a scaling request for a resource.", + "v1beta1.HorizontalPodAutoscalerSpec": { + "description": "specification of a horizontal pod autoscaler.", + "required": [ + "scaleRef", + "maxReplicas" + ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" + "cpuUtilization": { + "description": "target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified it defaults to the target CPU utilization at 80% of the requested resources.", + "$ref": "#/definitions/v1beta1.CPUTargetUtilization" }, - "metadata": { - "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/v1.ObjectMeta" + "maxReplicas": { + "description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", + "type": "integer", + "format": "int32" }, - "spec": { - "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/apps.v1beta1.ScaleSpec" + "minReplicas": { + "description": "lower limit for the number of pods that can be set by the autoscaler, default 1.", + "type": "integer", + "format": "int32" }, - "status": { - "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/apps.v1beta1.ScaleStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "apps", - "Version": "v1beta1", - "Kind": "Scale" + "scaleRef": { + "description": "reference to Scale subresource; horizontal pod autoscaler will learn the current resource consumption from its status, and will set the desired number of pods by modifying its spec.", + "$ref": "#/definitions/v1beta1.SubresourceReference" } - ] + } }, - "v1.PodTemplateList": { - "description": "PodTemplateList is a list of PodTemplates.", + "v1beta1.HorizontalPodAutoscalerStatus": { + "description": "current status of a horizontal pod autoscaler", "required": [ - "items" + "currentReplicas", + "desiredReplicas" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" + "currentCPUUtilizationPercentage": { + "description": "current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.", + "type": "integer", + "format": "int32" }, - "items": { - "description": "List of pod templates", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PodTemplate" - } + "currentReplicas": { + "description": "current number of replicas of pods managed by this autoscaler.", + "type": "integer", + "format": "int32" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" + "desiredReplicas": { + "description": "desired number of replicas of pods managed by this autoscaler.", + "type": "integer", + "format": "int32" }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PodTemplateList" + "lastScaleTime": { + "description": "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.", + "type": "string", + "format": "date-time" + }, + "observedGeneration": { + "description": "most recent generation observed by this autoscaler.", + "type": "integer", + "format": "int64" } - ] + } }, - "v1beta1.RollingUpdateDaemonSet": { - "description": "Spec to control the desired behavior of daemon set rolling update.", + "v1beta1.HostPortRange": { + "description": "Host Port Range defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.", + "required": [ + "min", + "max" + ], "properties": { - "maxUnavailable": { - "description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", - "type": "string", - "format": "int-or-string" + "max": { + "description": "max is the end of the range, inclusive.", + "type": "integer", + "format": "int32" + }, + "min": { + "description": "min is the start of the range, inclusive.", + "type": "integer", + "format": "int32" } } }, - "v1.PodAffinityTerm": { - "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key tches that of any node on which a pod of the set of pods is running", + "v1beta1.IDRange": { + "description": "ID Range provides a min/max of an allowed range of IDs.", + "required": [ + "min", + "max" + ], "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "namespaces": { - "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"", - "type": "array", - "items": { - "type": "string" - } + "max": { + "description": "Max is the end of the range, inclusive.", + "type": "integer", + "format": "int64" }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.", - "type": "string" + "min": { + "description": "Min is the start of the range, inclusive.", + "type": "integer", + "format": "int64" } } }, - "v1beta1.PodDisruptionBudget": { - "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", + "v1beta1.Ingress": { + "description": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -40929,297 +53936,186 @@ "type": "string" }, "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Specification of the desired behavior of the PodDisruptionBudget.", - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetSpec" + "description": "Spec is the desired state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1beta1.IngressSpec" }, "status": { - "description": "Most recently observed status of the PodDisruptionBudget.", - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "policy", - "Version": "v1beta1", - "Kind": "PodDisruptionBudget" + "description": "Status is the current state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1beta1.IngressStatus" } - ] + } }, - "v1.VolumeMount": { - "description": "VolumeMount describes a mounting of a Volume within a container.", + "v1beta1.IngressBackend": { + "description": "IngressBackend describes all endpoints for a given service and port.", "required": [ - "name", - "mountPath" + "serviceName", + "servicePort" ], "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", + "serviceName": { + "description": "Specifies the name of the referenced service.", "type": "string" }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", - "type": "boolean" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", - "type": "string" + "servicePort": { + "description": "Specifies the port of the referenced service.", + "type": "string", + "format": "int-or-string" } } }, - "v1beta1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", + "v1beta1.IngressList": { + "description": "IngressList is a collection of Ingress.", "required": [ - "rules" + "items" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", + "items": { + "description": "Items is the list of Ingress.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.PolicyRule" + "$ref": "#/definitions/v1beta1.Ingress" } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "ClusterRole" - } - ] - }, - "v1.PersistentVolumeStatus": { - "description": "PersistentVolumeStatus is the current status of a persistent volume.", - "properties": { - "message": { - "description": "A human-readable message indicating details about why the volume is in this state.", - "type": "string" }, - "phase": { - "description": "Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#phase", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "reason": { - "description": "Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", - "type": "string" + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1.SelfSubjectAccessReview": { - "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", - "required": [ - "spec" - ], + "v1beta1.IngressRule": { + "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "host": { + "description": "Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the\n\t IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated. user and groups must be empty", - "$ref": "#/definitions/v1.SelfSubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authorization.k8s.io", - "Version": "v1", - "Kind": "SelfSubjectAccessReview" + "http": { + "$ref": "#/definitions/v1beta1.HTTPIngressRuleValue" } - ] + } }, - "v1alpha1.RoleBinding": { - "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", - "required": [ - "subjects", - "roleRef" - ], + "v1beta1.IngressSpec": { + "description": "IngressSpec describes the Ingress the user wishes to exist.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" + "backend": { + "description": "A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.", + "$ref": "#/definitions/v1beta1.IngressBackend" }, - "roleRef": { - "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/v1alpha1.RoleRef" + "rules": { + "description": "A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.IngressRule" + } }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "tls": { + "description": "TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", "type": "array", "items": { - "$ref": "#/definitions/v1alpha1.Subject" + "$ref": "#/definitions/v1beta1.IngressTLS" } } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "RoleBinding" - } - ] + } }, - "extensions.v1beta1.RollbackConfig": { + "v1beta1.IngressStatus": { + "description": "IngressStatus describe the current state of the Ingress.", "properties": { - "revision": { - "description": "The revision to rollback to. If set to 0, rollbck to the last revision.", - "type": "integer", - "format": "int64" + "loadBalancer": { + "description": "LoadBalancer contains the current status of the load-balancer.", + "$ref": "#/definitions/v1.LoadBalancerStatus" } } }, - "v1beta1.NetworkPolicyPeer": { + "v1beta1.IngressTLS": { + "description": "IngressTLS describes the transport layer security associated with an Ingress.", "properties": { - "namespaceSelector": { - "description": "Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If omitted, this selector selects no namespaces. If present but empty, this selector selects all namespaces.", - "$ref": "#/definitions/v1.LabelSelector" + "hosts": { + "description": "Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", + "type": "array", + "items": { + "type": "string" + } }, - "podSelector": { - "description": "This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If not provided, this selector selects no pods. If present but empty, this selector selects all pods in this namespace.", - "$ref": "#/definitions/v1.LabelSelector" + "secretName": { + "description": "SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing.", + "type": "string" } } }, - "v1.PodList": { - "description": "PodList is a list of Pods.", - "required": [ - "items" - ], + "v1beta1.Job": { + "description": "Job represents the configuration of a single job. DEPRECATED: extensions/v1beta1.Job is deprecated, use batch/v1.Job instead.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "List of pods. More info: http://kubernetes.io/docs/user-guide/pods", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Pod" - } - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PodList" + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1beta1.JobSpec" + }, + "status": { + "description": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1beta1.JobStatus" } - ] + } }, - "v1.NodeStatus": { - "description": "NodeStatus is information about the current status of a node.", + "v1beta1.JobCondition": { + "description": "JobCondition describes current state of a job.", + "required": [ + "type", + "status" + ], "properties": { - "addresses": { - "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NodeAddress" - } - }, - "allocatable": { - "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "capacity": { - "description": "Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "conditions": { - "description": "Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NodeCondition" - } - }, - "daemonEndpoints": { - "description": "Endpoints of daemons running on the Node.", - "$ref": "#/definitions/v1.NodeDaemonEndpoints" - }, - "images": { - "description": "List of container images on this node", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ContainerImage" - } + "lastProbeTime": { + "description": "Last time the condition was checked.", + "type": "string", + "format": "date-time" }, - "nodeInfo": { - "description": "Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info", - "$ref": "#/definitions/v1.NodeSystemInfo" + "lastTransitionTime": { + "description": "Last time the condition transit from one status to another.", + "type": "string", + "format": "date-time" }, - "phase": { - "description": "NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase The field is never populated, and now is deprecated.", + "message": { + "description": "Human readable message indicating details about last transition.", "type": "string" }, - "volumesAttached": { - "description": "List of volumes that are attached to the node.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.AttachedVolume" - } + "reason": { + "description": "(brief) reason for the condition's last transition.", + "type": "string" }, - "volumesInUse": { - "description": "List of attachable volumes in use (mounted) by the node.", - "type": "array", - "items": { - "type": "string" - } + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of job condition, Complete or Failed.", + "type": "string" } } }, - "v1.EventList": { - "description": "EventList is a list of events.", + "v1beta1.JobList": { + "description": "JobList is a collection of jobs. DEPRECATED: extensions/v1beta1.JobList is deprecated, use batch/v1.JobList instead.", "required": [ "items" ], @@ -41229,10 +54125,10 @@ "type": "string" }, "items": { - "description": "List of events", + "description": "Items is the list of Job.", "type": "array", "items": { - "$ref": "#/definitions/v1.Event" + "$ref": "#/definitions/v1beta1.Job" } }, "kind": { @@ -41240,91 +54136,84 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "EventList" + "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1.HostPathVolumeSource": { - "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", + "v1beta1.JobSpec": { + "description": "JobSpec describes how the job execution will look like.", "required": [ - "path" + "template" ], "properties": { - "path": { - "description": "Path of the directory on the host. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", - "type": "string" - } - } - }, - "v1.ExecAction": { - "description": "ExecAction describes a \"run in container\" action.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "type": "array", - "items": { - "type": "string" - } + "activeDeadlineSeconds": { + "description": "Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer", + "type": "integer", + "format": "int64" + }, + "autoSelector": { + "description": "AutoSelector controls generation of pod labels and pod selectors. It was not present in the original extensions/v1beta1 Job definition, but exists to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite meaning as, ManualSelector. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md", + "type": "boolean" + }, + "completions": { + "description": "Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs", + "type": "integer", + "format": "int32" + }, + "parallelism": { + "description": "Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs", + "type": "integer", + "format": "int32" + }, + "selector": { + "description": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "$ref": "#/definitions/unversioned.LabelSelector" + }, + "template": { + "description": "Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs", + "$ref": "#/definitions/v1.PodTemplateSpec" } } }, - "v1.ContainerStateRunning": { - "description": "ContainerStateRunning is a running state of a container.", + "v1beta1.JobStatus": { + "description": "JobStatus represents the current state of a Job.", "properties": { - "startedAt": { - "description": "Time at which the container was last (re-)started", + "active": { + "description": "Active is the number of actively running pods.", + "type": "integer", + "format": "int32" + }, + "completionTime": { + "description": "CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", "type": "string", "format": "date-time" - } - } - }, - "v1alpha1.PodPresetSpec": { - "description": "PodPresetSpec is a description of a pod injection policy.", - "properties": { - "env": { - "description": "Env defines the collection of EnvVar to inject into containers.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EnvVar" - } }, - "envFrom": { - "description": "EnvFrom defines the collection of EnvFromSource to inject into containers.", + "conditions": { + "description": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", "type": "array", "items": { - "$ref": "#/definitions/v1.EnvFromSource" + "$ref": "#/definitions/v1beta1.JobCondition" } }, - "selector": { - "description": "Selector is a label query over a set of resources, in this case pods. Required.", - "$ref": "#/definitions/v1.LabelSelector" + "failed": { + "description": "Failed is the number of pods which reached Phase Failed.", + "type": "integer", + "format": "int32" }, - "volumeMounts": { - "description": "VolumeMounts defines the collection of VolumeMount to inject into containers.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.VolumeMount" - } + "startTime": { + "description": "StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", + "type": "string", + "format": "date-time" }, - "volumes": { - "description": "Volumes defines the collection of Volume to inject into the pod.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Volume" - } + "succeeded": { + "description": "Succeeded is the number of pods which reached Phase Succeeded.", + "type": "integer", + "format": "int32" } } }, - "v1beta1.PodSecurityPolicy": { - "description": "Pod Security Policy governs the ability to make requests that affect the Security Context that will be applied to a pod and container.", + "v1beta1.NetworkPolicy": { "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -41339,270 +54228,210 @@ "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "spec defines the policy enforced.", - "$ref": "#/definitions/v1beta1.PodSecurityPolicySpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "PodSecurityPolicy" + "description": "Specification of the desired behavior for this NetworkPolicy.", + "$ref": "#/definitions/v1beta1.NetworkPolicySpec" } - ] + } }, - "v1.PodStatus": { - "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system.", + "v1beta1.NetworkPolicyIngressRule": { + "description": "This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.", "properties": { - "conditions": { - "description": "Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PodCondition" - } - }, - "containerStatuses": { - "description": "The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses", + "from": { + "description": "List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is not provided, this rule matches all sources (traffic not restricted by source). If this field is empty, this rule matches no sources (no traffic matches). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list.", "type": "array", "items": { - "$ref": "#/definitions/v1.ContainerStatus" + "$ref": "#/definitions/v1beta1.NetworkPolicyPeer" } }, - "hostIP": { - "description": "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", - "type": "string" - }, - "initContainerStatuses": { - "description": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses", + "ports": { + "description": "List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is not provided, this rule matches all ports (traffic not restricted by port). If this field is empty, this rule matches no ports (no traffic matches). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", "type": "array", "items": { - "$ref": "#/definitions/v1.ContainerStatus" + "$ref": "#/definitions/v1beta1.NetworkPolicyPort" } - }, - "message": { - "description": "A human readable message indicating details about why the pod is in this condition.", - "type": "string" - }, - "phase": { - "description": "Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase", - "type": "string" - }, - "podIP": { - "description": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", - "type": "string" - }, - "qosClass": { - "description": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md", - "type": "string" - }, - "reason": { - "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk'", - "type": "string" - }, - "startTime": { - "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", - "type": "string", - "format": "date-time" } } }, - "v1.NodeSelector": { - "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "v1beta1.NetworkPolicyList": { + "description": "Network Policy List is a list of NetworkPolicy objects.", "required": [ - "nodeSelectorTerms" + "items" ], "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of schema objects.", "type": "array", "items": { - "$ref": "#/definitions/v1.NodeSelectorTerm" + "$ref": "#/definitions/v1beta1.NetworkPolicy" } - } - } - }, - "v1.PodTemplateSpec": { - "description": "PodTemplateSpec describes the data a pod should have when created from a template", - "properties": { - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" }, - "spec": { - "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodSpec" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "apps.v1beta1.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", + "v1beta1.NetworkPolicyPeer": { "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - "$ref": "#/definitions/apps.v1beta1.RollingUpdateDeployment" + "namespaceSelector": { + "description": "Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If omitted, this selector selects no namespaces. If present but empty, this selector selects all namespaces.", + "$ref": "#/definitions/unversioned.LabelSelector" }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "type": "string" + "podSelector": { + "description": "This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If not provided, this selector selects no pods. If present but empty, this selector selects all pods in this namespace.", + "$ref": "#/definitions/unversioned.LabelSelector" } } }, - "v1beta1.PodDisruptionBudgetSpec": { - "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", + "v1beta1.NetworkPolicyPort": { "properties": { - "minAvailable": { - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".", + "port": { + "description": "If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.", "type": "string", "format": "int-or-string" }, - "selector": { - "description": "Label query over pods whose evictions are managed by the disruption budget.", - "$ref": "#/definitions/v1.LabelSelector" + "protocol": { + "description": "Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.", + "type": "string" } } }, - "v1.NodeAffinity": { - "description": "Node affinity is a group of node affinity scheduling rules.", + "v1beta1.NetworkPolicySpec": { + "required": [ + "podSelector" + ], "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", + "ingress": { + "description": "List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if namespace.networkPolicy.ingress.isolation is undefined and cluster policy allows it, OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not affect ingress isolation. If this field is present and contains at least one rule, this policy allows any traffic which matches at least one of the ingress rules in this list.", "type": "array", "items": { - "$ref": "#/definitions/v1.PreferredSchedulingTerm" + "$ref": "#/definitions/v1beta1.NetworkPolicyIngressRule" } }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.", - "$ref": "#/definitions/v1.NodeSelector" + "podSelector": { + "description": "Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", + "$ref": "#/definitions/unversioned.LabelSelector" } } }, - "v1beta1.ThirdPartyResourceList": { - "description": "ThirdPartyResourceList is a list of ThirdPartyResources.", - "required": [ - "items" - ], + "v1beta1.PodDisruptionBudget": { + "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "Items is the list of ThirdPartyResources.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" - } - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "ThirdPartyResourceList" + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Specification of the desired behavior of the PodDisruptionBudget.", + "$ref": "#/definitions/v1beta1.PodDisruptionBudgetSpec" + }, + "status": { + "description": "Most recently observed status of the PodDisruptionBudget.", + "$ref": "#/definitions/v1beta1.PodDisruptionBudgetStatus" } - ] + } }, - "v1beta1.StorageClass": { - "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", + "v1beta1.PodDisruptionBudgetList": { + "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", "required": [ - "provisioner" + "items" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + } + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "parameters": { - "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "provisioner": { - "description": "Provisioner indicates the type of the provisioner.", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "storage.k8s.io", - "Version": "v1beta1", - "Kind": "StorageClass" + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1beta1.IngressBackend": { - "description": "IngressBackend describes all endpoints for a given service and port.", - "required": [ - "serviceName", - "servicePort" - ], + "v1beta1.PodDisruptionBudgetSpec": { + "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", "properties": { - "serviceName": { - "description": "Specifies the name of the referenced service.", - "type": "string" - }, - "servicePort": { - "description": "Specifies the port of the referenced service.", + "minAvailable": { + "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".", "type": "string", "format": "int-or-string" + }, + "selector": { + "description": "Label query over pods whose evictions are managed by the disruption budget.", + "$ref": "#/definitions/unversioned.LabelSelector" } } }, - "v1beta1.RoleList": { - "description": "RoleList is a collection of Roles", + "v1beta1.PodDisruptionBudgetStatus": { + "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", "required": [ - "items" + "disruptedPods", + "disruptionsAllowed", + "currentHealthy", + "desiredHealthy", + "expectedPods" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" + "currentHealthy": { + "description": "current number of healthy pods", + "type": "integer", + "format": "int32" }, - "items": { - "description": "Items is a list of Roles", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.Role" + "desiredHealthy": { + "description": "minimum desired number of healthy pods", + "type": "integer", + "format": "int32" + }, + "disruptedPods": { + "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", + "type": "object", + "additionalProperties": { + "type": "string", + "format": "date-time" } }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" + "disruptionsAllowed": { + "description": "Number of pod disruptions that are currently allowed.", + "type": "integer", + "format": "int32" }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "RoleList" + "expectedPods": { + "description": "total number of pods counted by this disruption budget", + "type": "integer", + "format": "int32" + }, + "observedGeneration": { + "description": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.", + "type": "integer", + "format": "int64" } - ] + } }, - "v1.Pod": { - "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", + "v1beta1.PodSecurityPolicy": { + "description": "Pod Security Policy governs the ability to make requests that affect the Security Context that will be applied to a pod and container.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -41617,196 +54446,177 @@ "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodSpec" - }, - "status": { - "description": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Pod" + "description": "spec defines the policy enforced.", + "$ref": "#/definitions/v1beta1.PodSecurityPolicySpec" } - ] + } }, - "v1.NodeSpec": { - "description": "NodeSpec describes the attributes that a node is created with.", + "v1beta1.PodSecurityPolicyList": { + "description": "Pod Security Policy List is a list of PodSecurityPolicy objects.", + "required": [ + "items" + ], "properties": { - "externalID": { - "description": "External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated.", - "type": "string" - }, - "podCIDR": { - "description": "PodCIDR represents the pod IP range assigned to the node.", - "type": "string" - }, - "providerID": { - "description": "ID of the node assigned by the cloud provider in the format: ://", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "taints": { - "description": "If specified, the node's taints.", + "items": { + "description": "Items is a list of schema objects.", "type": "array", "items": { - "$ref": "#/definitions/v1.Taint" + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" } }, - "unschedulable": { - "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration", - "type": "boolean" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1.CephFSVolumeSource": { - "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "v1beta1.PodSecurityPolicySpec": { + "description": "Pod Security Policy Spec defines the policy enforced.", "required": [ - "monitors" + "seLinux", + "runAsUser", + "supplementalGroups", + "fsGroup" ], "properties": { - "monitors": { - "description": "Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "allowedCapabilities": { + "description": "AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities.", "type": "array", "items": { "type": "string" } }, - "path": { - "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" + "defaultAddCapabilities": { + "description": "DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities.", + "type": "array", + "items": { + "type": "string" + } }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "fsGroup": { + "description": "FSGroup is the strategy that will dictate what fs group is used by the SecurityContext.", + "$ref": "#/definitions/v1beta1.FSGroupStrategyOptions" + }, + "hostIPC": { + "description": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.", "type": "boolean" }, - "secretFile": { - "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" + "hostNetwork": { + "description": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.", + "type": "boolean" }, - "secretRef": { - "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "$ref": "#/definitions/v1.LocalObjectReference" + "hostPID": { + "description": "hostPID determines if the policy allows the use of HostPID in the pod spec.", + "type": "boolean" }, - "user": { - "description": "Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - } - }, - "v1.PersistentVolumeClaimVolumeSource": { - "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", - "required": [ - "claimName" - ], - "properties": { - "claimName": { - "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", - "type": "string" + "hostPorts": { + "description": "hostPorts determines which host port ranges are allowed to be exposed.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.HostPortRange" + } }, - "readOnly": { - "description": "Will force the ReadOnly setting in VolumeMounts. Default false.", + "privileged": { + "description": "privileged determines if a pod can request to be run as privileged.", "type": "boolean" - } - } - }, - "v1beta1.HTTPIngressPath": { - "description": "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.", - "required": [ - "backend" - ], - "properties": { - "backend": { - "description": "Backend defines the referenced service endpoint to which the traffic will be forwarded to.", - "$ref": "#/definitions/v1beta1.IngressBackend" }, - "path": { - "description": "Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.", - "type": "string" + "readOnlyRootFilesystem": { + "description": "ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.", + "type": "boolean" + }, + "requiredDropCapabilities": { + "description": "RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.", + "type": "array", + "items": { + "type": "string" + } + }, + "runAsUser": { + "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.", + "$ref": "#/definitions/v1beta1.RunAsUserStrategyOptions" + }, + "seLinux": { + "description": "seLinux is the strategy that will dictate the allowable labels that may be set.", + "$ref": "#/definitions/v1beta1.SELinuxStrategyOptions" + }, + "supplementalGroups": { + "description": "SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.", + "$ref": "#/definitions/v1beta1.SupplementalGroupsStrategyOptions" + }, + "volumes": { + "description": "volumes is a white list of allowed volume plugins. Empty indicates that all plugins may be used.", + "type": "array", + "items": { + "type": "string" + } } } }, - "v2alpha1.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "required": [ - "currentReplicas", - "desiredReplicas", - "currentMetrics" - ], + "v1beta1.ReplicaSet": { + "description": "ReplicaSet represents the configuration of a ReplicaSet.", "properties": { - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "type": "array", - "items": { - "$ref": "#/definitions/v2alpha1.MetricStatus" - } + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "type": "integer", - "format": "int32" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "type": "integer", - "format": "int32" + "metadata": { + "description": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "lastScaleTime": { - "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", - "type": "string", - "format": "date-time" + "spec": { + "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1beta1.ReplicaSetSpec" }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "type": "integer", - "format": "int64" + "status": { + "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1beta1.ReplicaSetStatus" } } }, - "v1.ContainerStateTerminated": { - "description": "ContainerStateTerminated is a terminated state of a container.", + "v1beta1.ReplicaSetCondition": { + "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", "required": [ - "exitCode" + "type", + "status" ], "properties": { - "containerID": { - "description": "Container's ID in the format 'docker://'", - "type": "string" - }, - "exitCode": { - "description": "Exit status from the last termination of the container", - "type": "integer", - "format": "int32" - }, - "finishedAt": { - "description": "Time at which the container last terminated", + "lastTransitionTime": { + "description": "The last time the condition transitioned from one status to another.", "type": "string", "format": "date-time" }, "message": { - "description": "Message regarding the last termination of the container", + "description": "A human readable message indicating details about the transition.", "type": "string" }, "reason": { - "description": "(brief) reason from the last termination of the container", + "description": "The reason for the condition's last transition.", "type": "string" }, - "signal": { - "description": "Signal from the last termination of the container", - "type": "integer", - "format": "int32" + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" }, - "startedAt": { - "description": "Time at which previous execution of the container started", - "type": "string", - "format": "date-time" + "type": { + "description": "Type of replica set condition.", + "type": "string" } } }, - "v1beta1.NetworkPolicyList": { - "description": "Network Policy List is a list of NetworkPolicy objects.", + "v1beta1.ReplicaSetList": { + "description": "ReplicaSetList is a collection of ReplicaSets.", "required": [ "items" ], @@ -41816,10 +54626,10 @@ "type": "string" }, "items": { - "description": "Items is a list of schema objects.", + "description": "List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" + "$ref": "#/definitions/v1beta1.ReplicaSet" } }, "kind": { @@ -41827,308 +54637,325 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/unversioned.ListMeta" } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "NetworkPolicyList" + } + }, + "v1beta1.ReplicaSetSpec": { + "description": "ReplicaSetSpec is the specification of a ReplicaSet.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "type": "integer", + "format": "int32" + }, + "replicas": { + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", + "type": "integer", + "format": "int32" + }, + "selector": { + "description": "Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "$ref": "#/definitions/unversioned.LabelSelector" + }, + "template": { + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template", + "$ref": "#/definitions/v1.PodTemplateSpec" } - ] + } }, - "v1.NodeSelectorRequirement": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "v1beta1.ReplicaSetStatus": { + "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", "required": [ - "key", - "operator" + "replicas" ], "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + "type": "integer", + "format": "int32" }, - "values": { - "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "conditions": { + "description": "Represents the latest available observations of a replica set's current state.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1beta1.ReplicaSetCondition" } + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replicaset.", + "type": "integer", + "format": "int32" + }, + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", + "type": "integer", + "format": "int64" + }, + "readyReplicas": { + "description": "The number of ready replicas for this replica set.", + "type": "integer", + "format": "int32" + }, + "replicas": { + "description": "Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", + "type": "integer", + "format": "int32" + } + } + }, + "v1beta1.RollbackConfig": { + "properties": { + "revision": { + "description": "The revision to rollback to. If set to 0, rollbck to the last revision.", + "type": "integer", + "format": "int64" + } + } + }, + "v1beta1.RollingUpdateDeployment": { + "description": "Spec to control the desired behavior of rolling update.", + "properties": { + "maxSurge": { + "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", + "type": "string", + "format": "int-or-string" + }, + "maxUnavailable": { + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", + "type": "string", + "format": "int-or-string" } } }, - "v1beta1.SubjectAccessReviewStatus": { - "description": "SubjectAccessReviewStatus", + "v1beta1.RunAsUserStrategyOptions": { + "description": "Run A sUser Strategy Options defines the strategy type and any options used to create the strategy.", "required": [ - "allowed" + "rule" ], "properties": { - "allowed": { - "description": "Allowed is required. True if the action would be allowed, false otherwise.", - "type": "boolean" - }, - "evaluationError": { - "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", - "type": "string" + "ranges": { + "description": "Ranges are the allowed ranges of uids that may be used.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.IDRange" + } }, - "reason": { - "description": "Reason is optional. It indicates why a request was allowed or denied.", + "rule": { + "description": "Rule is the strategy that will dictate the allowable RunAsUser values that may be set.", "type": "string" } } }, - "v1.RBDVolumeSource": { - "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "v1beta1.SELinuxStrategyOptions": { + "description": "SELinux Strategy Options defines the strategy type and any options used to create the strategy.", "required": [ - "monitors", - "image" + "rule" ], "properties": { - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#rbd", - "type": "string" - }, - "image": { - "description": "The rados image name. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "rule": { + "description": "type is the strategy that will dictate the allowable labels that may be set.", "type": "string" }, - "keyring": { - "description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "seLinuxOptions": { + "description": "seLinuxOptions required to run as; required for MustRunAs More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context", + "$ref": "#/definitions/v1.SELinuxOptions" + } + } + }, + "v1beta1.Scale": { + "description": "represents a scaling request for a resource.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "monitors": { - "description": "A collection of Ceph monitors. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "array", - "items": { - "type": "string" - } - }, - "pool": { - "description": "The rados pool name. Default is rbd. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "boolean" + "metadata": { + "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", + "$ref": "#/definitions/v1.ObjectMeta" }, - "secretRef": { - "description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "$ref": "#/definitions/v1.LocalObjectReference" + "spec": { + "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", + "$ref": "#/definitions/v1beta1.ScaleSpec" }, - "user": { - "description": "The rados user name. Default is admin. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "string" + "status": { + "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", + "$ref": "#/definitions/v1beta1.ScaleStatus" } } }, - "v1.HorizontalPodAutoscalerSpec": { - "description": "specification of a horizontal pod autoscaler.", - "required": [ - "scaleTargetRef", - "maxReplicas" - ], + "v1beta1.ScaleSpec": { + "description": "describes the attributes of a scale subresource", "properties": { - "maxReplicas": { - "description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", + "replicas": { + "description": "desired number of instances for the scaled object.", "type": "integer", "format": "int32" - }, - "minReplicas": { - "description": "lower limit for the number of pods that can be set by the autoscaler, default 1.", + } + } + }, + "v1beta1.ScaleStatus": { + "description": "represents the current status of a scale subresource.", + "required": [ + "replicas" + ], + "properties": { + "replicas": { + "description": "actual number of observed instances of the scaled object.", "type": "integer", "format": "int32" }, - "scaleTargetRef": { - "description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.", - "$ref": "#/definitions/v1.CrossVersionObjectReference" + "selector": { + "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "targetCPUUtilizationPercentage": { - "description": "target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", - "type": "integer", - "format": "int32" + "targetSelector": { + "description": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "type": "string" } } }, - "v1beta1.StorageClassList": { - "description": "StorageClassList is a collection of storage classes.", - "required": [ - "items" - ], + "v1beta1.StatefulSet": { + "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "Items is the list of StorageClasses", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "storage.k8s.io", - "Version": "v1beta1", - "Kind": "StorageClassList" + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec defines the desired identities of pods in this set.", + "$ref": "#/definitions/v1beta1.StatefulSetSpec" + }, + "status": { + "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", + "$ref": "#/definitions/v1beta1.StatefulSetStatus" } - ] + } }, - "extensions.v1beta1.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "v1beta1.StatefulSetList": { + "description": "StatefulSetList is a collection of StatefulSets.", "required": [ - "type", - "status" + "items" ], "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "A human readable message indicating details about the transition.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "reason": { - "description": "The reason for the condition's last transition.", - "type": "string" + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.StatefulSet" + } }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "type": { - "description": "Type of deployment condition.", - "type": "string" + "metadata": { + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1.DownwardAPIVolumeFile": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "v1beta1.StatefulSetSpec": { + "description": "A StatefulSetSpec is the specification of a StatefulSet.", "required": [ - "path" + "template", + "serviceName" ], "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", - "$ref": "#/definitions/v1.ObjectFieldSelector" - }, - "mode": { - "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "replicas": { + "description": "Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.", "type": "integer", "format": "int32" }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "selector": { + "description": "Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "$ref": "#/definitions/unversioned.LabelSelector" + }, + "serviceName": { + "description": "ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.", "type": "string" }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "$ref": "#/definitions/v1.ResourceFieldSelector" + "template": { + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.", + "$ref": "#/definitions/v1.PodTemplateSpec" + }, + "volumeClaimTemplates": { + "description": "VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PersistentVolumeClaim" + } } } }, - "v1.PreferredSchedulingTerm": { - "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "v1beta1.StatefulSetStatus": { + "description": "StatefulSetStatus represents the current state of a StatefulSet.", "required": [ - "weight", - "preference" + "replicas" ], "properties": { - "preference": { - "description": "A node selector term, associated with the corresponding weight.", - "$ref": "#/definitions/v1.NodeSelectorTerm" + "observedGeneration": { + "description": "most recent generation observed by this autoscaler.", + "type": "integer", + "format": "int64" }, - "weight": { - "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "replicas": { + "description": "Replicas is the number of actual replicas.", "type": "integer", "format": "int32" } } }, - "v1.NodeSelectorTerm": { - "description": "A null or empty node selector term matches no objects.", - "required": [ - "matchExpressions" - ], - "properties": { - "matchExpressions": { - "description": "Required. A list of node selector requirements. The requirements are ANDed.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NodeSelectorRequirement" - } - } - } - }, - "v1.LabelSelectorRequirement": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "v1beta1.StorageClass": { + "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", "required": [ - "key", - "operator" + "provisioner" ], "properties": { - "key": { - "description": "key is the label key that the selector applies to.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "operator": { - "description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", - "type": "array", - "items": { + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "parameters": { + "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", + "type": "object", + "additionalProperties": { "type": "string" } - } - } - }, - "v1.GlusterfsVolumeSource": { - "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", - "required": [ - "endpoints", - "path" - ], - "properties": { - "endpoints": { - "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", - "type": "string" }, - "path": { - "description": "Path is the Glusterfs volume path. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", + "provisioner": { + "description": "Provisioner indicates the type of the provisioner.", "type": "string" - }, - "readOnly": { - "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" } } }, - "apps.v1beta1.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", + "v1beta1.StorageClassList": { + "description": "StorageClassList is a collection of storage classes.", "required": [ "items" ], @@ -42138,10 +54965,10 @@ "type": "string" }, "items": { - "description": "Items is the list of Deployments.", + "description": "Items is the list of StorageClasses", "type": "array", "items": { - "$ref": "#/definitions/apps.v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.StorageClass" } }, "kind": { @@ -42149,17 +54976,31 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" + "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/unversioned.ListMeta" } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "apps", - "Version": "v1beta1", - "Kind": "DeploymentList" + } + }, + "v1beta1.SubresourceReference": { + "description": "SubresourceReference contains enough information to let you inspect or modify the referred subresource.", + "properties": { + "apiVersion": { + "description": "API version of the referent", + "type": "string" + }, + "kind": { + "description": "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "subresource": { + "description": "Subresource name of the referent", + "type": "string" } - ] + } }, "v1beta1.SupplementalGroupsStrategyOptions": { "description": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.", @@ -42177,8 +55018,36 @@ } } }, - "v1.ServiceList": { - "description": "ServiceList holds a list of services.", + "v1beta1.ThirdPartyResource": { + "description": "A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource types to the API. It consists of one or more Versions of the api.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "description": { + "description": "Description is the description of this object.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "versions": { + "description": "Versions are versions for this third party object", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.APIVersion" + } + } + } + }, + "v1beta1.ThirdPartyResourceList": { + "description": "ThirdPartyResourceList is a list of ThirdPartyResources.", "required": [ "items" ], @@ -42188,10 +55057,10 @@ "type": "string" }, "items": { - "description": "List of services", + "description": "Items is the list of ThirdPartyResources.", "type": "array", "items": { - "$ref": "#/definitions/v1.Service" + "$ref": "#/definitions/v1beta1.ThirdPartyResource" } }, "kind": { @@ -42199,20 +55068,16 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ServiceList" + "description": "Standard list metadata.", + "$ref": "#/definitions/unversioned.ListMeta" } - ] + } }, - "v1.Node": { - "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", + "v1beta1.TokenReview": { + "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", + "required": [ + "spec" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -42223,207 +55088,199 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec defines the behavior of a node. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NodeSpec" + "description": "Spec holds information about the request being evaluated", + "$ref": "#/definitions/v1beta1.TokenReviewSpec" }, "status": { - "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NodeStatus" + "description": "Status is filled in by the server and indicates whether the request can be authenticated.", + "$ref": "#/definitions/v1beta1.TokenReviewStatus" } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Node" + } + }, + "v1beta1.TokenReviewSpec": { + "description": "TokenReviewSpec is a description of the token authentication request.", + "properties": { + "token": { + "description": "Token is the opaque bearer token.", + "type": "string" } - ] + } }, - "v1.Container": { - "description": "A single application container that you want to run within a pod.", - "required": [ - "name" - ], + "v1beta1.TokenReviewStatus": { + "description": "TokenReviewStatus is the result of the token authentication request.", "properties": { - "args": { - "description": "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands", - "type": "array", - "items": { - "type": "string" - } + "authenticated": { + "description": "Authenticated indicates that the token was associated with a known user.", + "type": "boolean" }, - "command": { - "description": "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands", - "type": "array", - "items": { - "type": "string" - } + "error": { + "description": "Error indicates that the token couldn't be checked", + "type": "string" }, - "env": { - "description": "List of environment variables to set in the container. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EnvVar" + "user": { + "description": "User is the UserInfo associated with the provided token.", + "$ref": "#/definitions/v1beta1.UserInfo" + } + } + }, + "v1beta1.UserInfo": { + "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", + "properties": { + "extra": { + "description": "Any additional information provided by the authenticator.", + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } } }, - "envFrom": { - "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "groups": { + "description": "The names of groups this user is a part of.", "type": "array", "items": { - "$ref": "#/definitions/v1.EnvFromSource" + "type": "string" } }, - "image": { - "description": "Docker image name. More info: http://kubernetes.io/docs/user-guide/images", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images", + "uid": { + "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", "type": "string" }, - "lifecycle": { - "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", - "$ref": "#/definitions/v1.Lifecycle" - }, - "livenessProbe": { - "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", - "$ref": "#/definitions/v1.Probe" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", + "username": { + "description": "The name that uniquely identifies this user among all active users.", "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ContainerPort" - } - }, - "readinessProbe": { - "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", - "$ref": "#/definitions/v1.Probe" - }, - "resources": { - "description": "Compute Resources required by this container. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources", - "$ref": "#/definitions/v1.ResourceRequirements" - }, - "securityContext": { - "description": "Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md", - "$ref": "#/definitions/v1.SecurityContext" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", - "type": "boolean" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", - "type": "boolean" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + } + } + }, + "v2alpha1.CronJob": { + "description": "CronJob represents the configuration of a single cron job.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", - "type": "boolean" + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.VolumeMount" - } + "spec": { + "description": "Spec is a structure defining the expected behavior of a job, including the schedule. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v2alpha1.CronJobSpec" }, - "workingDir": { - "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", - "type": "string" + "status": { + "description": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v2alpha1.CronJobStatus" } } }, - "v1.GitRepoVolumeSource": { - "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.", + "v2alpha1.CronJobList": { + "description": "CronJobList is a collection of cron jobs.", "required": [ - "repository" + "items" ], "properties": { - "directory": { - "description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "repository": { - "description": "Repository URL", - "type": "string" + "items": { + "description": "Items is the list of CronJob.", + "type": "array", + "items": { + "$ref": "#/definitions/v2alpha1.CronJob" + } }, - "revision": { - "description": "Commit hash for the specified revision.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v2alpha1.PodsMetricSource": { - "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", + "v2alpha1.CronJobSpec": { + "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", "required": [ - "metricName", - "targetAverageValue" + "schedule", + "jobTemplate" ], "properties": { - "metricName": { - "description": "metricName is the name of the metric in question", + "concurrencyPolicy": { + "description": "ConcurrencyPolicy specifies how to treat concurrent executions of a Job.", "type": "string" }, - "targetAverageValue": { - "description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - "type": "string" - } - } - }, - "v1.EndpointPort": { - "description": "EndpointPort is a tuple that describes a single port.", - "required": [ - "port" - ], - "properties": { - "name": { - "description": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.", + "jobTemplate": { + "description": "JobTemplate is the object that describes the job that will be created when executing a CronJob.", + "$ref": "#/definitions/v2alpha1.JobTemplateSpec" + }, + "schedule": { + "description": "Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", "type": "string" }, - "port": { - "description": "The port number of the endpoint.", + "startingDeadlineSeconds": { + "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", "type": "integer", - "format": "int32" + "format": "int64" }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP or TCP. Default is TCP.", - "type": "string" + "suspend": { + "description": "Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "type": "boolean" } } }, - "v1beta1.FSGroupStrategyOptions": { - "description": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.", + "v2alpha1.CronJobStatus": { + "description": "CronJobStatus represents the current state of a cron job.", "properties": { - "ranges": { - "description": "Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end.", + "active": { + "description": "Active holds pointers to currently running jobs.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.IDRange" + "$ref": "#/definitions/v1.ObjectReference" } }, - "rule": { - "description": "Rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", + "lastScheduleTime": { + "description": "LastScheduleTime keeps information of when was the last time the job was successfully scheduled.", + "type": "string", + "format": "date-time" + } + } + }, + "v2alpha1.Job": { + "description": "Job represents the configuration of a single job.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v2alpha1.JobSpec" + }, + "status": { + "description": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v2alpha1.JobStatus" } } }, - "v1.JobCondition": { + "v2alpha1.JobCondition": { "description": "JobCondition describes current state of a job.", "required": [ "type", @@ -42458,216 +55315,173 @@ } } }, - "v1beta1.DaemonSetUpdateStrategy": { - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if type = \"RollingUpdate\".", - "$ref": "#/definitions/v1beta1.RollingUpdateDaemonSet" - }, - "type": { - "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete.", - "type": "string" - } - } - }, - "v1beta1.PolicyRule": { - "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", + "v2alpha1.JobList": { + "description": "JobList is a collection of jobs.", "required": [ - "verbs" + "items" ], "properties": { - "apiGroups": { - "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.", - "type": "array", - "items": { - "type": "string" - } - }, - "nonResourceURLs": { - "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", - "type": "array", - "items": { - "type": "string" - } + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "description": "Items is the list of Job.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v2alpha1.Job" } }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", - "type": "array", - "items": { - "type": "string" - } + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "type": "array", - "items": { - "type": "string" - } + "metadata": { + "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v1.NamespaceStatus": { - "description": "NamespaceStatus is information about the current status of a Namespace.", + "v2alpha1.JobSpec": { + "description": "JobSpec describes how the job execution will look like.", + "required": [ + "template" + ], "properties": { - "phase": { - "description": "Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases", - "type": "string" + "activeDeadlineSeconds": { + "description": "Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer", + "type": "integer", + "format": "int64" + }, + "completions": { + "description": "Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs", + "type": "integer", + "format": "int32" + }, + "manualSelector": { + "description": "ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md", + "type": "boolean" + }, + "parallelism": { + "description": "Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs", + "type": "integer", + "format": "int32" + }, + "selector": { + "description": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "$ref": "#/definitions/unversioned.LabelSelector" + }, + "template": { + "description": "Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs", + "$ref": "#/definitions/v1.PodTemplateSpec" } } }, - "v1beta1.NetworkPolicySpec": { - "required": [ - "podSelector" - ], + "v2alpha1.JobStatus": { + "description": "JobStatus represents the current state of a Job.", "properties": { - "ingress": { - "description": "List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if namespace.networkPolicy.ingress.isolation is undefined and cluster policy allows it, OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not affect ingress isolation. If this field is present and contains at least one rule, this policy allows any traffic which matches at least one of the ingress rules in this list.", + "active": { + "description": "Active is the number of actively running pods.", + "type": "integer", + "format": "int32" + }, + "completionTime": { + "description": "CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", + "type": "string", + "format": "date-time" + }, + "conditions": { + "description": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyIngressRule" + "$ref": "#/definitions/v2alpha1.JobCondition" } }, - "podSelector": { - "description": "Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", - "$ref": "#/definitions/v1.LabelSelector" + "failed": { + "description": "Failed is the number of pods which reached Phase Failed.", + "type": "integer", + "format": "int32" + }, + "startTime": { + "description": "StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", + "type": "string", + "format": "date-time" + }, + "succeeded": { + "description": "Succeeded is the number of pods which reached Phase Succeeded.", + "type": "integer", + "format": "int32" } } }, - "v1.PodAntiAffinity": { - "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "v2alpha1.JobTemplateSpec": { + "description": "JobTemplateSpec describes the data a Job should have when created from a template", "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.WeightedPodAffinityTerm" - } + "metadata": { + "description": "Standard object's metadata of the jobs created from this template. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PodAffinityTerm" - } + "spec": { + "description": "Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v2alpha1.JobSpec" } } }, - "v1alpha1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", + "version.Info": { + "description": "Info contains versioning information. how we'll want to distribute that information.", "required": [ - "items" + "major", + "minor", + "gitVersion", + "gitCommit", + "gitTreeState", + "buildDate", + "goVersion", + "compiler", + "platform" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "buildDate": { "type": "string" }, - "items": { - "description": "Items is a list of ClusterRoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "compiler": { "type": "string" }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "ClusterRoleBindingList" - } - ] - }, - "v1.EnvVarSource": { - "description": "EnvVarSource represents a source for the value of an EnvVar.", - "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "$ref": "#/definitions/v1.ConfigMapKeySelector" + "gitCommit": { + "type": "string" }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP.", - "$ref": "#/definitions/v1.ObjectFieldSelector" + "gitTreeState": { + "type": "string" }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "$ref": "#/definitions/v1.ResourceFieldSelector" + "gitVersion": { + "type": "string" }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "$ref": "#/definitions/v1.SecretKeySelector" - } - } - }, - "v1beta1.HTTPIngressRuleValue": { - "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", - "required": [ - "paths" - ], - "properties": { - "paths": { - "description": "A collection of paths that map requests to backends.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.HTTPIngressPath" - } - } - } - }, - "v2alpha1.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "required": [ - "metricName", - "currentAverageValue" - ], - "properties": { - "currentAverageValue": { - "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", + "goVersion": { "type": "string" }, - "metricName": { - "description": "metricName is the name of the metric in question", + "major": { "type": "string" - } - } - }, - "v1.LoadBalancerIngress": { - "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", - "properties": { - "hostname": { - "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", + }, + "minor": { "type": "string" }, - "ip": { - "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", + "platform": { "type": "string" } } }, - "v1beta1.NetworkPolicyPort": { + "versioned.Event": { + "description": "Event represents a single event to a watched resource.", + "required": [ + "type", + "object" + ], "properties": { - "port": { - "description": "If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.", - "type": "string", - "format": "int-or-string" + "object": { + "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *api.Status is recommended; other types may make sense\n depending on context.", + "$ref": "#/definitions/runtime.RawExtension" }, - "protocol": { - "description": "Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.", + "type": { "type": "string" } } @@ -42675,10 +55489,10 @@ }, "securityDefinitions": { "BearerToken": { - "description": "Bearer Token authentication", + "in": "header", "type": "apiKey", - "name": "authorization", - "in": "header" + "description": "Bearer Token authentication", + "name": "authorization" } }, "security": [ diff --git a/scripts/update-client.sh b/scripts/update-client.sh index 6be3f61a0e..d4cdd076ff 100755 --- a/scripts/update-client.sh +++ b/scripts/update-client.sh @@ -26,6 +26,11 @@ if ! which mvn > /dev/null 2>&1; then exit fi +SED=sed +if which gsed > /dev/null 2>&1; then + SED=gsed +fi + SCRIPT_ROOT=$(dirname "${BASH_SOURCE}") CLIENT_ROOT="${SCRIPT_ROOT}/../kubernetes" CLIENT_VERSION=$(python "${SCRIPT_ROOT}/constants.py" CLIENT_VERSION) @@ -53,16 +58,16 @@ echo "--- Generating client ..." mvn -f "${SCRIPT_ROOT}/pom.xml" clean generate-sources -Dgenerator.spec.path="${SCRIPT_ROOT}/swagger.json" -Dgenerator.output.path="${CLIENT_ROOT}" -Dgenerator.package.name=client -D=generator.client.version=${CLIENT_VERSION} echo "--- Patching generated code..." -find "${CLIENT_ROOT}/test" -type f -name \*.py -exec sed -i 's/\bclient/kubernetes.client/g' {} + -find "${CLIENT_ROOT}" -path "${CLIENT_ROOT}/base" -prune -o -type f -a -name \*.md -exec sed -i 's/\bclient/kubernetes.client/g' {} + -find "${CLIENT_ROOT}" -path "${CLIENT_ROOT}/base" -prune -o -type f -a -name \*.md -exec sed -i 's/kubernetes.client-python/client-python/g' {} + +find "${CLIENT_ROOT}/test" -type f -name \*.py -exec $SED -i 's/\bclient/kubernetes.client/g' {} + +find "${CLIENT_ROOT}" -path "${CLIENT_ROOT}/base" -prune -o -type f -a -name \*.md -exec $SED -i 's/\bclient/kubernetes.client/g' {} + +find "${CLIENT_ROOT}" -path "${CLIENT_ROOT}/base" -prune -o -type f -a -name \*.md -exec $SED -i 's/kubernetes.client-python/client-python/g' {} + # rm "${CLIENT_ROOT}/LICENSE" echo "--- updating version information..." -sed -i'' "s/^CLIENT_VERSION = .*/CLIENT_VERSION = \\\"${CLIENT_VERSION}\\\"/" "${SCRIPT_ROOT}/../setup.py" -sed -i'' "s/^PACKAGE_NAME = .*/PACKAGE_NAME = \\\"${PACKAGE_NAME}\\\"/" "${SCRIPT_ROOT}/../setup.py" -sed -i'' "s,^DEVELOPMENT_STATUS = .*,DEVELOPMENT_STATUS = \\\"${DEVELOPMENT_STATUS}\\\"," "${SCRIPT_ROOT}/../setup.py" -sed -i'' "/^configuration = Configuration()$/d" "${CLIENT_ROOT}/client/__init__.py" -sed -i'' "/^from .configuration import Configuration$/d" "${CLIENT_ROOT}/client/__init__.py" -sed -i '${/^$/d;}' "${CLIENT_ROOT}/client/__init__.py" +$SED -i'' "s/^CLIENT_VERSION = .*/CLIENT_VERSION = \\\"${CLIENT_VERSION}\\\"/" "${SCRIPT_ROOT}/../setup.py" +$SED -i'' "s/^PACKAGE_NAME = .*/PACKAGE_NAME = \\\"${PACKAGE_NAME}\\\"/" "${SCRIPT_ROOT}/../setup.py" +$SED -i'' "s,^DEVELOPMENT_STATUS = .*,DEVELOPMENT_STATUS = \\\"${DEVELOPMENT_STATUS}\\\"," "${SCRIPT_ROOT}/../setup.py" +$SED -i'' "/^configuration = Configuration()$/d" "${CLIENT_ROOT}/client/__init__.py" +$SED -i'' "/^from .configuration import Configuration$/d" "${CLIENT_ROOT}/client/__init__.py" +$SED -i '${/^$/d;}' "${CLIENT_ROOT}/client/__init__.py" echo "from .configuration import Configuration, ConfigurationObject, configuration" >> "${CLIENT_ROOT}/client/__init__.py" echo "---Done." diff --git a/setup.py b/setup.py index 8dd87296be..da026f45f0 100644 --- a/setup.py +++ b/setup.py @@ -16,8 +16,8 @@ # Do not edit these constants. They will be updated automatically # by scripts/update-client.sh. -CLIENT_VERSION = "2.0.0-snapshot" -PACKAGE_NAME = "kubernetes" +CLIENT_VERSION = "2.0.0" +PACKAGE_NAME = "openshift" DEVELOPMENT_STATUS = "3 - Alpha" # To install the library, run the following